DocumentReference — clinical notes & C-CDA
DocumentReference is the index card; the actual content is an attachment (PDF, RTF, plain text, or a C-CDA XML document) carried inline or by URL.
Required: status (current/superseded/entered-in-error), type (LOINC document type code), category, subject, date, content.attachment, content.format.
content.attachment carries the bytes (data base64 or url) plus contentType (MIME) and title.
content.format identifies the document profile (e.g. C-CDA Continuity of Care Document) using a Coding from a small set.
Two main flows
- Free-form notes (progress note, discharge summary): contentType =
text/plainorapplication/pdf, type = LOINC like11506-3(Progress note). - C-CDA (legacy interop): contentType =
application/hl7-cda+xml, format identifies which C-CDA template.