Definition
An Organization represents an EMIS-X organisation, such as a GP practice, pharmacy or hospital. It provides the organisation’s name, ODS code, organisation type and the contact details and address of its main location.
Organisations can be looked up either by EMIS organisation GUID
(ern:emis:organisation:uuid:{guid}) or by NHS ODS code
(ern:nhs:organisation:ods:{odsCode}). If no organisation matches the supplied
ODS code the API returns 404 Not Found.
Contact details and address are taken from the organisation’s main location
(ignoring deleted locations), which is also referenced through the
mainLocation extension. Locations can be retrieved through the Location
endpoints, which are nested under the organisation.
Profile
Section titled “Profile”Every Organization returned by the FHIR Platform declares the
https://fhir.partner.emis-x.uk/StructureDefinition/emis-x-organisation-1
profile in meta.profile.
Endpoints
Section titled “Endpoints”Paths are relative to the FHIR Platform base URL. Every request needs a bearer
token with the listed scope. Responses are application/fhir+json by default,
or application/fhir+xml when requested in the Accept header. Errors are
returned as an OperationOutcome.
GET /R4/1/Organization/ern:{Vendor}:organisation:{Type}:{Identifier}Returns the organisation details for the given EMIS organisation GUID or ODS code.
- Scope:
fpx-org.read - Returns: Organization
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
Vendor |
path | string | Yes | The vendor system. Either emis (with Type uuid) or nhs (with Type ods). |
Type |
path | string | Yes | The identifier type. uuid for the emis vendor or ods for the nhs vendor. |
Identifier |
path | string | Yes | The EMIS organisation GUID (a valid, non-empty GUID) when Type is uuid, or the ODS code (3 to 8 upper-case letters or digits) when Type is ods. |
_elements |
query | string | No | Comma-separated list of top-level elements to return (for example name,identifier). id and meta are always returned, and the response is marked with the SUBSETTED security label when filtering is applied. |
Example response
Section titled “Example response”{ "resourceType": "Organization", "id": "D5753427-76EC-48E8-AB19-7F3308D5CA3D", "meta": { "profile": [ "https://fhir.partner.emis-x.uk/StructureDefinition/emis-x-organisation-1" ] }, "extension": [ { "url": "https://fhir.partner.emis-x.uk/StructureDefinition/emis-x-main-location", "valueReference": { "reference": "4985cf5f-3afe-4a84-a17b-a249d9e07b2e", "type": "Location" } } ], "identifier": [ { "system": "https://fhir.partner.emis-x.uk/Id/ods-code", "value": "F81029" } ], "type": [ { "coding": [ { "system": "https://fhir.partner.emis-x.uk/CodeSystem/emis-x-organisation-type-cs", "code": "general-practice", "display": "General Practice" } ] } ], "name": "The Practice", "contact": [ { "telecom": [ { "system": "phone", "value": "01234 567890", "use": "work", "rank": 1 } ] }, { "telecom": [ { "system": "email", "value": "info@thepractice.example.com", "use": "work", "rank": 1 } ] }, { "address": { "line": ["123 Main St"], "city": "Anytown", "state": "Anycounty", "postalCode": "A1 2BC" } } ]}