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-Specimen-Extension-CollectionCollector-Example
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].collected[0]2022-11-25T16:00:00Z

XML View

<Specimen xmlns="http://hl7.org/fhir">
    <id value="UKCore-Specimen-Extension-CollectionCollector-Example" />
    <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 ******************   -->
        </collector>
        <collectedDateTime value="2022-11-25T16:00:00Z" />
    </collection>
</Specimen>

JSON View

{
    "resourceType": "Specimen",
    "id": "UKCore-Specimen-Extension-CollectionCollector-Example",
    "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"
                    }
                }
            ]
        },
        "collectedDateTime": "2022-11-25T16:00:00Z"
    }
}

back to top