UK Core Implementation Guide 0.5.0 - STU1

An example to illustrate the extension for a patient's contact preferences

Table View

Patient.id[0]UKCore-Patient-Extension-ContactPreference-Example
Patient.extension[0].url[0]https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-ContactPreference
Patient.extension[0].extension[0].url[0]PreferredContactMethod
Patient.extension[0].extension[0].valueCodeableConcept[0].coding[0].system[0]https://fhir.hl7.org.uk/CodeSystem/UKCore-PreferredContactMethod
Patient.extension[0].extension[0].valueCodeableConcept[0].coding[0].code[0]3
Patient.extension[0].extension[0].valueCodeableConcept[0].coding[0].display[0]Telephone
Patient.extension[0].extension[1].url[0]PreferredContactTimes
Patient.extension[0].extension[1].valueTiming[0].repeat[0].frequency[0]1
Patient.extension[0].extension[1].valueTiming[0].repeat[0].period[0]1
Patient.extension[0].extension[1].valueTiming[0].repeat[0].periodUnit[0]d
Patient.extension[0].extension[1].valueTiming[0].repeat[0].dayOfWeek[0]mon
Patient.extension[0].extension[1].valueTiming[0].repeat[0].dayOfWeek[1]wed
Patient.extension[0].extension[1].valueTiming[0].repeat[0].dayOfWeek[2]fri
Patient.extension[0].extension[1].valueTiming[0].repeat[0].when[0]MORN
Patient.extension[0].extension[2].url[0]PreferredWrittenCommunicationFormat
Patient.extension[0].extension[2].valueCodeableConcept[0].coding[0].system[0]https://fhir.hl7.org.uk/CodeSystem/UKCore-PreferredWrittenCommunicationFormat
Patient.extension[0].extension[2].valueCodeableConcept[0].coding[0].code[0]11
Patient.extension[0].extension[2].valueCodeableConcept[0].coding[0].display[0]Large print

XML View

<Patient xmlns="http://hl7.org/fhir">
    <id value="UKCore-Patient-Extension-ContactPreference-Example" />
    <!--  **************extension start**************  -->
    <extension url="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-ContactPreference">
        <extension url="PreferredContactMethod">
            <valueCodeableConcept>
                <coding>
                    <system value="https://fhir.hl7.org.uk/CodeSystem/UKCore-PreferredContactMethod" />
                    <code value="3" />
                    <display value="Telephone" />
                </coding>
            </valueCodeableConcept>
        </extension>
        <extension url="PreferredContactTimes">
            <valueTiming>
                <repeat>
                    <frequency value="1" />
                    <period value="1" />
                    <periodUnit value="d" />
                    <dayOfWeek value="mon" />
                    <dayOfWeek value="wed" />
                    <dayOfWeek value="fri" />
                    <when value="MORN" />
                </repeat>
            </valueTiming>
        </extension>
        <extension url="PreferredWrittenCommunicationFormat">
            <valueCodeableConcept>
                <coding>
                    <system value="https://fhir.hl7.org.uk/CodeSystem/UKCore-PreferredWrittenCommunicationFormat" />
                    <code value="11" />
                    <display value="Large print" />
                </coding>
            </valueCodeableConcept>
        </extension>
    </extension>
    <!--  **************extension end**************  -->
</Patient>

JSON View

{
    "resourceType": "Patient",
    "id": "UKCore-Patient-Extension-ContactPreference-Example",
    "extension":  [
        {
            "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-ContactPreference",
            "extension":  [
                {
                    "url": "PreferredContactMethod",
                    "valueCodeableConcept": {
                        "coding":  [
                            {
                                "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-PreferredContactMethod",
                                "code": "3",
                                "display": "Telephone"
                            }
                        ]
                    }
                },
                {
                    "url": "PreferredContactTimes",
                    "valueTiming": {
                        "repeat": {
                            "frequency": 1,
                            "period": 1,
                            "periodUnit": "d",
                            "dayOfWeek":  [
                                "mon",
                                "wed",
                                "fri"
                            ],
                            "when":  [
                                "MORN"
                            ]
                        }
                    }
                },
                {
                    "url": "PreferredWrittenCommunicationFormat",
                    "valueCodeableConcept": {
                        "coding":  [
                            {
                                "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-PreferredWrittenCommunicationFormat",
                                "code": "11",
                                "display": "Large print"
                            }
                        ]
                    }
                }
            ]
        }
    ]
}

back to top