An example to illustrate the pre-adopted R5 element via an extension, which is used to reference a Patient or RelatedPerson within Specimen.collection.collector.

Table View

Specimen.id[0]UKCore-Extension-CollectionCollector-Example
Specimen.text[0].status[0]additional
Specimen.text[0].div[0]<div xmlns="http://www.w3.org/1999/xhtml">An example to illustrate the pre-adopted R5 element via an extension, which is used to reference a Patient or RelatedPerson within Specimen.collection.collector</div>
Specimen.status[0]available
Specimen.type[0].coding[0].system[0]http://snomed.info/sct
Specimen.type[0].coding[0].code[0]78014005
Specimen.type[0].coding[0].display[0]Urine
Specimen.subject[0].reference[0]Patient/UKCore-Patient-RichardSmith-Example
Specimen.receivedTime[0]2022-11-25T11:10:00Z
Specimen.collection[0].collector[0].extension[0].url[0]http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.collection.collector
Specimen.collection[0].collector[0].extension[0].value[0].reference[0]Patient/UKCore-Patient-RichardSmith-Example
Specimen.collection[0].collector[0].display[0]Patient: Richard Smith
Specimen.collection[0].collected[0]2022-11-25T16:00:00Z

XML View

<Specimen xmlns="http://hl7.org/fhir">
    <id value="UKCore-Extension-CollectionCollector-Example" />
    <text>
        <status value="additional" />
        --- We have skipped the narrative for better readability of the resource ---
    </text>
    <status value="available" />
    <type>
        <coding>
            <system value="http://snomed.info/sct" />
            <code value="78014005" />
            <display value="Urine" />
        </coding>
    </type>
    <subject>
        <reference value="Patient/UKCore-Patient-RichardSmith-Example" />
    </subject>
    <receivedTime value="2022-11-25T11:10:00Z" />
    <collection>
        <collector>
            <!--   ***************extension start***************   -->
            <extension url="http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.collection.collector">
                <valueReference>
                    <reference value="Patient/UKCore-Patient-RichardSmith-Example" />
                </valueReference>
            </extension>
            <!--   **************extension end ******************   -->
            <display value="Patient: Richard Smith" />
        </collector>
        <collectedDateTime value="2022-11-25T16:00:00Z" />
    </collection>
</Specimen>

JSON View

{
    "resourceType": "Specimen",
    "id": "UKCore-Extension-CollectionCollector-Example",
    "text": {
        "status": "additional",
        --- We have skipped the narrative for better readability of the resource ---
    },
    "status": "available",
    "type": {
        "coding":  [
            {
                "system": "http://snomed.info/sct",
                "code": "78014005",
                "display": "Urine"
            }
        ]
    },
    "subject": {
        "reference": "Patient/UKCore-Patient-RichardSmith-Example"
    },
    "receivedTime": "2022-11-25T11:10:00Z",
    "collection": {
        "collector": {
            "extension":  [
                {
                    "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.collection.collector",
                    "valueReference": {
                        "reference": "Patient/UKCore-Patient-RichardSmith-Example"
                    }
                }
            ],
            "display": "Patient: Richard Smith"
        },
        "collectedDateTime": "2022-11-25T16:00:00Z"
    }
}

back to top