The DocumentReference submission
Optionalauthor?: {Who and/or what authored the document
Optionalcategory?: {Categorization of document - use DOCUMENT_CATEGORY_CONCEPTS
Document content - array of content elements. Each element has an attachment that references the Binary resource via url (e.g., "binary/{id}") and includes metadata like contentType, size, title.
Optionaldate?: stringWhen this document reference was created
Optionaldescription?: stringHuman-readable description (title/summary)
Optionalmeta?: { lastUpdated?: string; profile?: string[]; versionId?: string }OptionalsecurityLabel?: {Document security labels
Document status: current | superseded | entered-in-error
Optionalsubject?: {Who/what is the subject of the document (typically patient reference)
Optionaltype?: {Kind of document (LOINC code) - use DOCUMENT_TYPE_CONCEPTS
The "patient" / user DID (will become a reference)
Array
Optionalauthor?: {Who and/or what authored the document
Optionalcategory?: {Categorization of document - use DOCUMENT_CATEGORY_CONCEPTS
Document content - array of content elements. Each element has an attachment that references the Binary resource via url (e.g., "binary/{id}") and includes metadata like contentType, size, title.
Optionaldate?: stringWhen this document reference was created
Optionaldescription?: stringHuman-readable description (title/summary)
Optionalmeta?: { lastUpdated?: string; profile?: string[]; versionId?: string }OptionalsecurityLabel?: {Document security labels
Document status: current | superseded | entered-in-error
Optionalsubject?: {Who/what is the subject of the document (typically patient reference)
Optionaltype?: {Kind of document (LOINC code) - use DOCUMENT_TYPE_CONCEPTS
Maps a DocumentReference submission to the Nillion schema format. Adds _id and ensures required fields are set.