An example to illustrate a location

Table View

Location.id[0]UKCore-Location-HospitalSJUH-Example
Location.identifier[0].system[0]https://fhir.nhs.uk/Id/ods-site-code
Location.identifier[0].value[0]RR813
Location.name[0]ST JAMES'S UNIVERSITY HOSPITAL
Location.type[0].coding[0].system[0]http://terminology.hl7.org/CodeSystem/v3-RoleCode
Location.type[0].coding[0].code[0]HOSP
Location.type[0].coding[0].display[0]Hospital
Location.telecom[0].system[0]phone
Location.telecom[0].value[0]0113 243 3144
Location.address[0].line[0]ST. JAMES'S UNIVERSITY HOSPITAL
Location.address[0].line[1]BECKETT STREET
Location.address[0].city[0]LEEDS
Location.address[0].postalCode[0]LS9 7TF
Location.address[0].country[0]ENGLAND
Location.managingOrganization[0].reference[0]Organization/UKCore-Organization-LeedsTeachingHospital-Example

XML View

<Location xmlns="http://hl7.org/fhir">
    <id value="UKCore-Location-HospitalSJUH-Example" />
    <identifier>
        <system value="https://fhir.nhs.uk/Id/ods-site-code" />
        <value value="RR813" />
    </identifier>
    <name value="ST JAMES&#39;S UNIVERSITY HOSPITAL" />
    <type>
        <coding>
            <system value="http://terminology.hl7.org/CodeSystem/v3-RoleCode" />
            <code value="HOSP" />
            <display value="Hospital" />
        </coding>
    </type>
    <telecom>
        <system value="phone" />
        <value value="0113 243 3144" />
    </telecom>
    <address>
        <line value="ST. JAMES&#39;S UNIVERSITY HOSPITAL" />
        <line value="BECKETT STREET" />
        <city value="LEEDS" />
        <postalCode value="LS9 7TF" />
        <country value="ENGLAND" />
    </address>
    <managingOrganization>
        <reference value="Organization/UKCore-Organization-LeedsTeachingHospital-Example" />
    </managingOrganization>
</Location>

JSON View

{
    "resourceType": "Location",
    "id": "UKCore-Location-HospitalSJUH-Example",
    "identifier":  [
        {
            "system": "https://fhir.nhs.uk/Id/ods-site-code",
            "value": "RR813"
        }
    ],
    "name": "ST JAMES'S UNIVERSITY HOSPITAL",
    "type":  [
        {
            "coding":  [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode",
                    "code": "HOSP",
                    "display": "Hospital"
                }
            ]
        }
    ],
    "telecom":  [
        {
            "system": "phone",
            "value": "0113 243 3144"
        }
    ],
    "address": {
        "line":  [
            "ST. JAMES'S UNIVERSITY HOSPITAL",
            "BECKETT STREET"
        ],
        "city": "LEEDS",
        "postalCode": "LS9 7TF",
        "country": "ENGLAND"
    },
    "managingOrganization": {
        "reference": "Organization/UKCore-Organization-LeedsTeachingHospital-Example"
    }
}