{
  "resourceType": "DocumentReference",
  "id": "example-comprehensive",
  "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": "extensions",
    "div": "\u003cdiv xmlns\u003d\"http://www.w3.org/1999/xhtml\"\u003e\u003cp\u003e\u003cb\u003eGenerated Narrative: DocumentReference\u003c/b\u003e\u003ca name\u003d\"example-comprehensive\"\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-comprehensive\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\u003eDocumentReference Source Patient\u003c/b\u003e: \u003ca name\u003d\"in-patient\"\u003e \u003c/a\u003e\u003c/p\u003e\u003cblockquote\u003e\u003cp style\u003d\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\"\u003e\u003cb\u003eAnonymous Patient\u003c/b\u003e (no stated gender), DoB Unknown\u003c/p\u003e\u003chr/\u003e\u003c/blockquote\u003e\u003cp\u003e\u003cb\u003eidentifier\u003c/b\u003e: id: urn:oid:1.2.840.113556.1.8000.2554.58783.21864.3474.19410.44358.58254.41281.46340, id: urn:uuid:0c287d32-01e3-4d87-9953-9fcc9404eb21\u003c/p\u003e\u003cp\u003e\u003cb\u003eversion\u003c/b\u003e: urn:uuid:0c287d32-01e3-4d87-9953-9fcc9404eb21\u003c/p\u003e\u003cp\u003e\u003cb\u003estatus\u003c/b\u003e: current\u003c/p\u003e\u003cp\u003e\u003cb\u003etype\u003c/b\u003e: Addendum Document \u003cspan style\u003d\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"\u003e (\u003ca href\u003d\"https://loinc.org/\"\u003eLOINC\u003c/a\u003e#55107-7)\u003c/span\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003ecategory\u003c/b\u003e: History of immunization Narrative \u003cspan style\u003d\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"\u003e (\u003ca href\u003d\"https://loinc.org/\"\u003eLOINC\u003c/a\u003e#11369-6)\u003c/span\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003esubject\u003c/b\u003e: \u003ca href\u003d\"patient-example-xcda.html\"\u003ePatient/xcda\u003c/a\u003e \u0026quot;Henry LEVIN\u0026quot;\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\u003eaccount receivable \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#ACCTRECEIVABLE)\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\u003cspan/\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003cp\u003e\u003cb\u003efacilityType\u003c/b\u003e: Children\u0027s hospital \u003cspan style\u003d\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"\u003e (\u003ca href\u003d\"https://browser.ihtsdotools.org/\"\u003eSNOMED CT\u003c/a\u003e#82242000)\u003c/span\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003epracticeSetting\u003c/b\u003e: Adult mental illness - speciality \u003cspan style\u003d\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"\u003e (\u003ca href\u003d\"https://browser.ihtsdotools.org/\"\u003eSNOMED CT\u003c/a\u003e#408467006)\u003c/span\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003eperiod\u003c/b\u003e: 2020-12-31T23:50:50-05:00 --\u0026gt; 2020-12-31T23:50:50-05:00\u003c/p\u003e\u003cp\u003e\u003cb\u003edate\u003c/b\u003e: 1 Jan 2021, 3:50:50 pm\u003c/p\u003e\u003cp\u003e\u003cb\u003eauthor\u003c/b\u003e: \u003ca name\u003d\"in-author\"\u003e \u003c/a\u003e\u003c/p\u003e\u003cblockquote\u003e\u003cp/\u003e\u003cp\u003e\u003ca name\u003d\"in-author\"\u003e \u003c/a\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003etelecom\u003c/b\u003e: \u003ca href\u003d\"mailto:JohnMoehrke@gmail.com\"\u003eJohnMoehrke@gmail.com\u003c/a\u003e\u003c/p\u003e\u003c/blockquote\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 name\u003d\"in-author\"\u003e \u003c/a\u003e\u003cblockquote\u003e\u003cp/\u003e\u003cp\u003e\u003ca name\u003d\"in-author\"\u003e \u003c/a\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003etelecom\u003c/b\u003e: \u003ca href\u003d\"mailto:JohnMoehrke@gmail.com\"\u003eJohnMoehrke@gmail.com\u003c/a\u003e\u003c/p\u003e\u003c/blockquote\u003e\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\u003eAppends \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#appends)\u003c/span\u003e\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"documentreference-example.html\"\u003eDocumentReference/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\u003cp\u003e\u003cb\u003esecurityLabel\u003c/b\u003e: normal \u003cspan style\u003d\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"\u003e (\u003ca href\u003d\"http://terminology.hl7.org/5.1.0/CodeSystem-v3-Confidentiality.html\"\u003eConfidentiality\u003c/a\u003e#N)\u003c/span\u003e\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\u003eContentType\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eLanguage\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eUrl\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eSize\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eHash\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eTitle\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eCreation\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003etext/plain\u003c/td\u003e\u003ctd\u003een\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"http://example.com/nowhere.txt\"\u003ehttp://example.com/nowhere.txt\u003c/a\u003e\u003c/td\u003e\u003ctd\u003e190\u003c/td\u003e\u003ctd\u003eOGEzOGYyNjMzMDA2ZmQ1MzUxNDljNDRhM2E3M2YzMTI0MzdiMzQ3OA\u003d\u003d\u003c/td\u003e\u003ctd\u003eDocumentReference for Comprehensive fully filled metadata\u003c/td\u003e\u003ctd\u003e2020-12-31T23:50:50-05:00\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003ch3\u003eProfiles\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eValue[x]\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eITI XDS-SD TEXT (Details: http://ihe.net/fhir/ihe.formatcode.fhir/CodeSystem/formatcode code urn:ihe:iti:xds-sd:text:2008 \u003d \u0027ITI XDS-SD TEXT\u0027, stated as \u0027null\u0027)\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003c/div\u003e"
  },
  "contained": [
    {
      "resourceType": "Practitioner",
      "id": "in-author",
      "telecom": [
        {
          "system": "email",
          "value": "JohnMoehrke@gmail.com"
        }
      ]
    },
    {
      "resourceType": "Patient",
      "id": "in-patient"
    }
  ],
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/documentreference-sourcepatient",
      "valueReference": {
        "reference": "#in-patient"
      }
    }
  ],
  "identifier": [
    {
      "system": "urn:ietf:rfc:3986",
      "value": "urn:oid:1.2.840.113556.1.8000.2554.58783.21864.3474.19410.44358.58254.41281.46340"
    },
    {
      "system": "urn:ietf:rfc:3986",
      "value": "urn:uuid:0c287d32-01e3-4d87-9953-9fcc9404eb21"
    }
  ],
  "version": "urn:uuid:0c287d32-01e3-4d87-9953-9fcc9404eb21",
  "status": "current",
  "type": {
    "coding": [
      {
        "system": "http://loinc.org",
        "code": "55107-7"
      }
    ]
  },
  "category": [
    {
      "coding": [
        {
          "system": "http://loinc.org",
          "code": "11369-6"
        }
      ]
    }
  ],
  "subject": {
    "reference": "Patient/xcda"
  },
  "event": [
    {
      "concept": {
        "coding": [
          {
            "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
            "code": "ACCTRECEIVABLE"
          }
        ]
      }
    },
    {
      "reference": {
        "identifier": {
          "system": "urn:ietf:rfc:3986",
          "value": "urn:oid:1.2.840.113556.1.8000.2554.17917.46600.21181.17878.33419.62048.57128.2759"
        }
      }
    }
  ],
  "facilityType": {
    "coding": [
      {
        "system": "http://snomed.info/sct",
        "code": "82242000"
      }
    ]
  },
  "practiceSetting": {
    "coding": [
      {
        "system": "http://snomed.info/sct",
        "code": "408467006"
      }
    ]
  },
  "period": {
    "start": "2020-12-31T23:50:50-05:00",
    "end": "2020-12-31T23:50:50-05:00"
  },
  "date": "2020-12-31T23:50:50-05:00",
  "author": [
    {
      "reference": "#in-author"
    }
  ],
  "attester": [
    {
      "mode": {
        "coding": [
          {
            "system": "http://hl7.org/fhir/composition-attestation-mode",
            "code": "professional"
          }
        ]
      },
      "party": {
        "reference": "#in-author"
      }
    }
  ],
  "relatesTo": [
    {
      "code": {
        "coding": [
          {
            "system": "http://hl7.org/fhir/document-relationship-type",
            "code": "appends"
          }
        ]
      },
      "target": {
        "reference": "DocumentReference/example"
      }
    }
  ],
  "description": "Example of a Comprehensive DocumentReference resource. This is fully filled for all mandatory elements and all optional elements.",
  "securityLabel": [
    {
      "coding": [
        {
          "system": "http://terminology.hl7.org/CodeSystem/v3-Confidentiality",
          "code": "N"
        }
      ]
    }
  ],
  "content": [
    {
      "attachment": {
        "contentType": "text/plain",
        "language": "en",
        "url": "http://example.com/nowhere.txt",
        "size": "190",
        "hash": "OGEzOGYyNjMzMDA2ZmQ1MzUxNDljNDRhM2E3M2YzMTI0MzdiMzQ3OA\u003d\u003d",
        "title": "DocumentReference for Comprehensive fully filled metadata",
        "creation": "2020-12-31T23:50:50-05:00"
      },
      "profile": [
        {
          "valueCoding": {
            "system": "http://ihe.net/fhir/ihe.formatcode.fhir/CodeSystem/formatcode",
            "code": "urn:ihe:iti:xds-sd:text:2008"
          }
        }
      ]
    }
  ]
}