UK Core Implementation Guide 0.1.0 STU1

Example to illustrate the Patients birth time using the common extension

Table View

Patient.id[0]Patient-Extension-BirthTime-Example
Patient.birthDate[0].extension[0].url[0]http://hl7.org/fhir/StructureDefinition/patient-birthTime
Patient.birthDate[0].extension[0].valueDateTime[0]2002-03-11T15:39:00+00:00

XML View

<Patient xmlns="http://hl7.org/fhir">
    <id value="Patient-Extension-BirthTime-Example" />
    <!--  **************extension start**************  -->
    <birthDate>
        <extension url="http://hl7.org/fhir/StructureDefinition/patient-birthTime">
            <valueDateTime value="2002-03-11T15:39:00+00:00" />
        </extension>
    </birthDate>
    <!--  **************extension end**************  -->
</Patient>

JSON View

{
    "resourceType": "Patient",
    "id": "Patient-Extension-BirthTime-Example",
    "_birthDate": {
        "extension":  [
            {
                "url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime",
                "valueDateTime": "2002-03-11T15:39:00+00:00"
            }
        ]
    }
}

back to top