An example to illustrate referencing a composition within a diagnostic report

Table View

DiagnosticReport.id[0]UKCore-DiagnosticReport-Extension-CompositionReference-Example
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

XML View

<DiagnosticReport xmlns="http://hl7.org/fhir">
    <id value="UKCore-DiagnosticReport-Extension-CompositionReference-Example" />
    <extension url="http://hl7.org/fhir/5.0/StructureDefinition/extension-DiagnosticReport.composition">
        <valueReference>
            <reference value="Composition/UKCore-Composition-Discharge-Example" />
        </valueReference>
    </extension>
    <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-DiagnosticReport-Extension-CompositionReference-Example",
    "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"
        }
    ]
}

back to top