Variable DocumentReferenceContentSchemaConst
DocumentReferenceContentSchema: ZodObject<
{
attachment: ZodObject<
{
contentType: ZodOptional<ZodString>;
creation: ZodOptional<ZodISODateTime>;
data: ZodOptional<ZodString>;
duration: ZodOptional<ZodNumber>;
frames: ZodOptional<ZodNumber>;
hash: ZodOptional<ZodString>;
height: ZodOptional<ZodNumber>;
id: ZodOptional<ZodString>;
language: ZodOptional<ZodString>;
pages: ZodOptional<ZodNumber>;
size: ZodOptional<ZodNumber>;
title: ZodOptional<ZodString>;
url: ZodOptional<ZodURL>;
width: ZodOptional<ZodNumber>;
},
$strip,
>;
profile: ZodOptional<
ZodArray<
ZodUnion<
readonly [
ZodObject<
{
valueCoding: ZodObject<
{
code: ZodOptional<(...)>;
display: ZodOptional<(...)>;
system: ZodURL;
userSelected: ZodOptional<(...)>;
version: ZodOptional<(...)>;
},
$strip,
>;
},
$strip,
>,
ZodObject<{ valueUri: ZodString }, $strip>,
],
>,
>,
>;
},
$strip,
> = ...
Content element for DocumentReference - links to the actual binary content.
Relationship Between Resources
The architecture adds DocumentReference as a metadata layer without modifying Binary:
Reference Flow
DocumentReference → Binary: Use makeBinaryReference to create references:
makeBinaryReference(binaryId).reference→"binary/{id}"content[].attachment.urlBinary → S3: Binary resource's
urlfield points to actual content:url = "welshare://{key}"(internal, for content retrieval)Binary.reference (deprecated, backwards compatibility): Used for questionnaire field references