{
  "resourceType": "DocumentReference",
  "id": "example-composition",
  "meta": {
    "security": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
        "code": "HTEST"
      }
    ],
    "tag": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
        "code": "HTEST",
        "display": "test health data"
      }
    ]
  },
  "text": {
    "status": "generated",
    "div": "\u003cdiv xmlns\u003d\"http://www.w3.org/1999/xhtml\"\u003e\u003cp\u003e\u003cb\u003eGenerated Narrative: DocumentReference\u003c/b\u003e\u003ca name\u003d\"example-composition\"\u003e \u003c/a\u003e\u003c/p\u003e\u003cdiv style\u003d\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"\u003e\u003cp style\u003d\"margin-bottom: 0px\"\u003eResource DocumentReference \u0026quot;example-composition\u0026quot; \u003c/p\u003e\u003cp style\u003d\"margin-bottom: 0px\"\u003eSecurity Labels: \u003cspan title\u003d\"{http://terminology.hl7.org/CodeSystem/v3-ActReason http://terminology.hl7.org/CodeSystem/v3-ActReason}\"\u003ehttp://terminology.hl7.org/CodeSystem/v3-ActReason\u003c/span\u003e\u003c/p\u003e\u003c/div\u003e\u003cp\u003e\u003cb\u003eidentifier\u003c/b\u003e: id: 1\u003c/p\u003e\u003cp\u003e\u003cb\u003estatus\u003c/b\u003e: current\u003c/p\u003e\u003cp\u003e\u003cb\u003etype\u003c/b\u003e: Consult note \u003cspan style\u003d\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"\u003e (\u003ca href\u003d\"https://loinc.org/\"\u003eLOINC\u003c/a\u003e#11488-4)\u003c/span\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003ecategory\u003c/b\u003e: Report \u003cspan style\u003d\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"\u003e (\u003ca href\u003d\"https://loinc.org/\"\u003eLOINC\u003c/a\u003e#LP173421-1)\u003c/span\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003esubject\u003c/b\u003e: \u003ca href\u003d\"patient-example-xcda.html\"\u003ePatient/xcda: Henry Levin the 7th\u003c/a\u003e \u0026quot;Henry LEVIN\u0026quot;\u003c/p\u003e\u003cp\u003e\u003cb\u003econtext\u003c/b\u003e: \u003ca href\u003d\"encounter-example-xcda.html\"\u003eEncounter/xcda\u003c/a\u003e\u003c/p\u003e\u003ch3\u003eEvents\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eConcept\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eReference\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003ehealth record \u003cspan style\u003d\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"\u003e (\u003ca href\u003d\"http://terminology.hl7.org/5.1.0/CodeSystem-v3-ActCode.html\"\u003eActCode\u003c/a\u003e#HEALTHREC)\u003c/span\u003e\u003c/td\u003e\u003ctd\u003e \u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003e \u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"observation-example.html\"\u003eObservation/example\u003c/a\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003cp\u003e\u003cb\u003eperiod\u003c/b\u003e: 2010-07-18 --\u0026gt; 2012-11-12\u003c/p\u003e\u003cp\u003e\u003cb\u003edate\u003c/b\u003e: 4 Jan 2012, 8:10:14 pm\u003c/p\u003e\u003cp\u003e\u003cb\u003eauthor\u003c/b\u003e: \u003ca href\u003d\"practitioner-example-xcda-author.html\"\u003ePractitioner/xcda-author: Harold Hippocrates, MD\u003c/a\u003e \u0026quot;Harold HIPPOCRATES\u0026quot;\u003c/p\u003e\u003ch3\u003eAttesters\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eMode\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eParty\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eProfessional \u003cspan style\u003d\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"\u003e (\u003ca href\u003d\"codesystem-composition-attestation-mode.html\"\u003eComposition Attestation Mode\u003c/a\u003e#professional)\u003c/span\u003e\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"practitioner-example-xcda-author.html\"\u003ePractitioner/xcda-author: Harold Hippocrates, MD\u003c/a\u003e \u0026quot;Harold HIPPOCRATES\u0026quot;\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003ch3\u003eRelatesTos\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eCode\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eTarget\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eReplaces \u003cspan style\u003d\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"\u003e (\u003ca href\u003d\"codesystem-document-relationship-type.html\"\u003eDocument Relationship Type\u003c/a\u003e#replaces)\u003c/span\u003e\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"broken-link.html\"\u003eDocumentReference/old-example\u003c/a\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003cp\u003e\u003cb\u003edescription\u003c/b\u003e: Example of a Comprehensive DocumentReference resource. This is fully filled for all mandatory elements and all optional elements.\u003c/p\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003econtent\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAttachments\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eUrl\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003e\u003ccode\u003eComposition/example\u003c/code\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003c/div\u003e"
  },
  "identifier": [
    {
      "system": "http://healthintersections.com.au/test",
      "value": "1"
    }
  ],
  "status": "current",
  "type": {
    "coding": [
      {
        "system": "http://loinc.org",
        "code": "11488-4",
        "display": "Consult note"
      }
    ]
  },
  "category": [
    {
      "coding": [
        {
          "system": "http://loinc.org",
          "code": "LP173421-1",
          "display": "Report"
        }
      ]
    }
  ],
  "subject": {
    "reference": "Patient/xcda",
    "display": "Henry Levin the 7th"
  },
  "context": [
    {
      "reference": "Encounter/xcda"
    }
  ],
  "event": [
    {
      "concept": {
        "coding": [
          {
            "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
            "code": "HEALTHREC",
            "display": "health record"
          }
        ]
      }
    },
    {
      "reference": {
        "reference": "Observation/example"
      }
    }
  ],
  "period": {
    "start": "2010-07-18",
    "end": "2012-11-12"
  },
  "date": "2012-01-04T09:10:14Z",
  "author": [
    {
      "reference": "Practitioner/xcda-author",
      "display": "Harold Hippocrates, MD"
    }
  ],
  "attester": [
    {
      "mode": {
        "coding": [
          {
            "system": "http://hl7.org/fhir/composition-attestation-mode",
            "code": "professional"
          }
        ]
      },
      "party": {
        "reference": "Practitioner/xcda-author",
        "display": "Harold Hippocrates, MD"
      }
    }
  ],
  "relatesTo": [
    {
      "code": {
        "coding": [
          {
            "system": "http://hl7.org/fhir/document-relationship-type",
            "code": "replaces"
          }
        ]
      },
      "target": {
        "reference": "DocumentReference/old-example"
      }
    }
  ],
  "description": "Example of a Comprehensive DocumentReference resource. This is fully filled for all mandatory elements and all optional elements.",
  "content": [
    {
      "attachment": {
        "url": "Composition/example"
      }
    }
  ]
}