An example to illustrate the extension which shows an organisation's main location

Table View

Organization.id[0]UKCore-Extension-MainLocation-Example
Organization.text[0].status[0]additional
Organization.text[0].div[0]<div xmlns="http://www.w3.org/1999/xhtml">An example to illustrate the extension which shows an organisation's main location</div>
Organization.extension[0].url[0]https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MainLocation
Organization.extension[0].value[0].reference[0]Location/UKCore-Location-HospitalSJUH-Example
Organization.extension[0].value[0].type[0]Location
Organization.extension[0].value[0].identifier[0].use[0]official
Organization.extension[0].value[0].identifier[0].system[0]https://fhir.nhs.uk/Id/ods-site-code
Organization.extension[0].value[0].identifier[0].value[0]RR813
Organization.identifier[0].use[0]official
Organization.identifier[0].system[0]https://fhir.nhs.uk/Id/ods-organization-code
Organization.identifier[0].value[0]RR8
Organization.name[0]LEEDS TEACHING HOSPITALS NHS TRUST

Tree View

Organization

XML View

<Organization xmlns="http://hl7.org/fhir">
    <id value="UKCore-Extension-MainLocation-Example" />
    <text>
        <status value="additional" />
        --- We have skipped the narrative for better readability of the resource ---
    </text>
    <!--  **************extension start**************  -->
    <extension url="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MainLocation">
        <valueReference>
            <reference value="Location/UKCore-Location-HospitalSJUH-Example" />
            <type value="Location" />
            <identifier>
                <use value="official" />
                <system value="https://fhir.nhs.uk/Id/ods-site-code" />
                <value value="RR813" />
            </identifier>
        </valueReference>
    </extension>
    <!--  *************extension end ***************** -->
    <identifier>
        <use value="official" />
        <system value="https://fhir.nhs.uk/Id/ods-organization-code" />
        <value value="RR8" />
    </identifier>
    <name value="LEEDS TEACHING HOSPITALS NHS TRUST" />
</Organization>

JSON View

{
    "resourceType": "Organization",
    "id": "UKCore-Extension-MainLocation-Example",
    "text": {
        "status": "additional",
        --- We have skipped the narrative for better readability of the resource ---
    },
    "extension":  [
        {
            "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MainLocation",
            "valueReference": {
                "reference": "Location/UKCore-Location-HospitalSJUH-Example",
                "type": "Location",
                "identifier": {
                    "use": "official",
                    "system": "https://fhir.nhs.uk/Id/ods-site-code",
                    "value": "RR813"
                }
            }
        }
    ],
    "identifier":  [
        {
            "use": "official",
            "system": "https://fhir.nhs.uk/Id/ods-organization-code",
            "value": "RR8"
        }
    ],
    "name": "LEEDS TEACHING HOSPITALS NHS TRUST"
}