An example to illustrate referencing a composition within a diagnostic report

Table View

DiagnosticReport.id[0]UKCore-Extension-CompositionReference-Example
DiagnosticReport.text[0].status[0]additional
DiagnosticReport.text[0].div[0]<div xmlns="http://www.w3.org/1999/xhtml">An example to illustrate referencing a composition within a diagnostic report</div>
DiagnosticReport.extension[0].url[0]http://hl7.org/fhir/5.0/StructureDefinition/extension-DiagnosticReport.composition
DiagnosticReport.extension[0].value[0].reference[0]Composition/UKCore-Composition-Discharge-Example
DiagnosticReport.identifier[0].system[0]https://tools.ietf.org/html/rfc4122
DiagnosticReport.identifier[0].value[0]ce1913bf-ead4-4d04-904f-714cbc1636ef
DiagnosticReport.status[0]final
DiagnosticReport.code[0].coding[0].system[0]http://snomed.info/sct
DiagnosticReport.code[0].coding[0].code[0]252275004
DiagnosticReport.code[0].coding[0].display[0]Hematology test
DiagnosticReport.subject[0].reference[0]Patient/UKCore-Patient-RichardSmith-Example
DiagnosticReport.performer[0].reference[0]Organization/UKCore-Organization-LeedsTeachingHospital-Example
DiagnosticReport.performer[0].display[0]LEEDS TEACHING HOSPITALS NHS TRUST

Tree View

DiagnosticReport

XML View

<DiagnosticReport xmlns="http://hl7.org/fhir">
    <id value="UKCore-Extension-CompositionReference-Example" />
    <text>
        <status value="additional" />
        --- We have skipped the narrative for better readability of the resource ---
    </text>
    <!--   **************extension start**************   -->
    <extension url="http://hl7.org/fhir/5.0/StructureDefinition/extension-DiagnosticReport.composition">
        <valueReference>
            <reference value="Composition/UKCore-Composition-Discharge-Example" />
        </valueReference>
    </extension>
    <!--   **************extension end**************   -->
    <identifier>
        <system value="https://tools.ietf.org/html/rfc4122" />
        <value value="ce1913bf-ead4-4d04-904f-714cbc1636ef" />
    </identifier>
    <status value="final" />
    <code>
        <coding>
            <system value="http://snomed.info/sct" />
            <code value="252275004" />
            <display value="Hematology test" />
        </coding>
    </code>
    <subject>
        <reference value="Patient/UKCore-Patient-RichardSmith-Example" />
    </subject>
    <performer>
        <reference value="Organization/UKCore-Organization-LeedsTeachingHospital-Example" />
        <display value="LEEDS TEACHING HOSPITALS NHS TRUST" />
    </performer>
</DiagnosticReport>

JSON View

{
    "resourceType": "DiagnosticReport",
    "id": "UKCore-Extension-CompositionReference-Example",
    "text": {
        "status": "additional",
        --- We have skipped the narrative for better readability of the resource ---
    },
    "extension":  [
        {
            "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-DiagnosticReport.composition",
            "valueReference": {
                "reference": "Composition/UKCore-Composition-Discharge-Example"
            }
        }
    ],
    "identifier":  [
        {
            "system": "https://tools.ietf.org/html/rfc4122",
            "value": "ce1913bf-ead4-4d04-904f-714cbc1636ef"
        }
    ],
    "status": "final",
    "code": {
        "coding":  [
            {
                "system": "http://snomed.info/sct",
                "code": "252275004",
                "display": "Hematology test"
            }
        ]
    },
    "subject": {
        "reference": "Patient/UKCore-Patient-RichardSmith-Example"
    },
    "performer":  [
        {
            "reference": "Organization/UKCore-Organization-LeedsTeachingHospital-Example",
            "display": "LEEDS TEACHING HOSPITALS NHS TRUST"
        }
    ]
}