Examples


DOS-Bundle-SearchResults-Example

Example of a Bundle Searchset Results.

Bundle
{
"resourceType": "Bundle",
"id": "DOS-Bundle-SearchResults-Example",
"meta": {
"versionId": "0.1.0",
"lastUpdated": "2024-07-16T15:01:30.8185338+00:00"
},
"type": "searchset",
"timestamp": "2024-07-16T12:15:10+00:00",
"total": 8,
"link": [
{
"relation": "self",
"url": "https://simplifier.net/nhsbookingandreferrals/777a156c-af3c-4748-a8a3-7e95e4b0df9a-duplicate-2"
}
],
"entry": [
{
"fullUrl": "http://example.org/fhir/Slot/RR8-SJUH-TAUTO-001",
"resourceType": "Slot",
"id": "RR8-SJUH-TAUTO-001",
"meta": {
"lastUpdated": "2024-07-16T15:01:30.8185338+00:00"
},
{
"url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-DeliveryChannel",
"coding": [
{
"system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-DeliveryChannel",
"code": "Telephone",
"display": "Telephone"
}
]
}
}
],
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/service-category",
"code": "14",
"display": "Emergency Department"
}
]
}
],
"reference": "Schedule/DoS-Schedule-RR8-LEEDSSJUH-Example"
},
"status": "free",
"start": "2024-07-22T09:00:00+00:00",
"end": "2024-07-22T10:00:00+00:00"
},
"search": {
"mode": "include"
}
},
{
"fullUrl": "http://example.org/fhir/Slot/RR8-SJUH-TAUTO-002",
"resourceType": "Slot",
"id": "RR8-SJUH-TAUTO-002",
"meta": {
"lastUpdated": "2024-07-16T15:01:30.8185338+00:00"
},
{
"url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-DeliveryChannel",
"coding": [
{
"system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-DeliveryChannel",
"code": "Telephone",
"display": "Telephone"
}
]
}
}
],
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/service-category",
"code": "14",
"display": "Emergency Department"
}
]
}
],
"reference": "Schedule/DoS-Schedule-RR8-LEEDSSJUH-Example"
},
"status": "free",
"start": "2024-07-22T10:00:00+00:00",
"end": "2024-07-22T10:30:00+00:00"
},
"search": {
"mode": "include"
}
},
{
"fullUrl": "http://example.org/fhir/Slot/RR8-SJUH-TAUTO-003",
"resourceType": "Slot",
"id": "RR8-SJUH-TAUTO-003",
"meta": {
"lastUpdated": "2024-07-16T15:01:30.8185338+00:00"
},
{
"url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-DeliveryChannel",
"coding": [
{
"system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-DeliveryChannel",
"code": "Telephone",
"display": "Telephone"
}
]
}
}
],
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/service-category",
"code": "14",
"display": "Emergency Department"
}
]
}
],
"reference": "Schedule/DoS-Schedule-RR8-LEEDSSJUH-Example"
},
"status": "free",
"start": "2024-07-22T11:00:00+00:00",
"end": "2024-07-22T11:30:00+00:00"
},
"search": {
"mode": "include"
}
},
{
"fullUrl": "http://example.org/fhir/Schedule/DoS-Schedule-RR8-LEEDSSJUH-Example",
"resourceType": "Schedule",
"id": "DoS-Schedule-RR8-LEEDSSJUH-Example",
"meta": {
"lastUpdated": "2024-07-16T15:01:30.8185338+00:00"
},
{
"system": "https://fhir.leedssth.nhs.uk/Diary/id",
"value": "8622dfdb-dc6a-47b6-b3a7-2eb2829db287"
}
],
"active": true,
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/service-category",
"code": "14",
"display": "Emergency Department"
}
]
}
],
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/service-type",
"code": "117",
"display": "Emergency Medical"
}
]
}
],
{
"coding": [
{
"system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-PracticeSettingCode",
"code": "110",
"display": "Trauma and Orthopaedics"
}
]
}
],
"actor": [
{
"reference": "HealthcareService/DoS-HealthcareService-OrthopaedicService-Example",
"display": "Trauma and Orthopaedics Service"
},
{
"reference": "PractitionerRole/PractitionerRole-JoeSmithLeedsSTH-Example",
"display": "Paedatrician"
},
{
"reference": "Practitioner/Practitioner-JoeSmith-Example",
"display": "Dr. Joe Smith"
},
{
"reference": "Location/DoS-Location-HospitalSJUH-Example",
"display": "St James' University Hospital, Leeds"
}
],
"start": "2024-07-22T09:00:00+00:00",
"end": "2024-07-29T10:00:00+00:00"
}
},
"search": {
"mode": "include"
}
},
{
"fullUrl": "http://example.org/fhir/HealthcareService/DoS-HealthcareService-OrthopaedicService-Example",
"resourceType": "HealthcareService",
"id": "DoS-HealthcareService-OrthopaedicService-Example",
"meta": {
"lastUpdated": "2024-07-16T15:01:30.8185338+00:00"
},
{
"system": "https://fhir.leedssth.nhs.uk/MyHealthcare/Services",
"value": "100"
}
],
"active": true,
"reference": "Organization/UKCore-Organization-LeedsTeachingHospital-Example",
"display": "St James' University Hospital, Leeds"
},
{
"reference": "Location/DoS-Location-HospitalSJUH-Example"
}
],
"name": "Trauma and Orthopaedics Service"
},
"search": {
"mode": "include"
}
},
{
"fullUrl": "http://example.org/fhir/Practitioner/Practitioner-JoeSmith-Example",
"resourceType": "Practitioner",
"id": "Practitioner-JoeSmith-Example",
"meta": {
"lastUpdated": "2024-07-16T15:01:30.8185338+00:00"
},
{
"use": "official",
"system": "https://fhir.hl7.org.uk/Id/gmc-number",
"value": "C9999999"
}
],
"name": [
{
"family": "Smith",
"given": [
"Joe"
],
"prefix": [
"Dr"
]
}
],
{
"code": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0360",
"code": "MD",
"display": "Doctor of Medicine"
}
]
}
}
]
},
"search": {
"mode": "include"
}
},
{
"fullUrl": "http://example.org/fhir/PractitionerRole/PractitionerRole-JoeSmithLeedsSTH-Example",
"resourceType": "PractitionerRole",
"id": "PractitionerRole-JoeSmithLeedsSTH-Example",
"meta": {
"lastUpdated": "2024-07-16T15:01:30.8185338+00:00"
},
{
"system": "https://fhir.nhs.uk/Id/sds-role-profile-id",
"value": "R0260"
}
],
"reference": "Practitioner/Practitioner-JoeSmith-Example"
},
"code": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/practitioner-role",
"code": "doctor",
"display": "Doctor"
}
]
}
],
"system": "https://fhir.nhs.uk/Id/ods-organization-code",
"value": "RR8"
},
"display": "Leeds Teaching Hospitals NHS Trust"
},
{
"coding": [
{
"system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-PracticeSettingCode",
"code": "110",
"display": "Trauma and Orthopaedics"
}
]
}
],
"telecom": [
{
"system": "phone",
"value": "0113 243 3144"
},
{
"system": "email",
"value": "jsmithgppracticeg@nhs.net"
},
{
"system": "email",
"value": "orthopaedics@leedsuniversitynhs.net",
{
"url": "http://hl7.org/fhir/StructureDefinition/contactpoint-comment",
"valueString": "reporting"
}
]
}
]
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "http://example.org/fhir/Location/DoS-Location-HospitalSJUH-Example",
"resourceType": "Location",
"id": "DoS-Location-HospitalSJUH-Example",
"meta": {
"lastUpdated": "2024-07-16T15:01:30.8185338+00:00"
},
{
"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"
},
"longitude": 143.20196,
"latitude": -37.22866
},
"reference": "Organization/UKCore-Organization-LeedsTeachingHospital-Example"
}
},
"search": {
"mode": "include"
}
},
{
"fullUrl": "http://example.org/fhir/Organization/UKCore-Organization-LeedsTeachingHospital-Example",
"resourceType": "Organization",
"id": "UKCore-Organization-LeedsTeachingHospital-Example",
{
"use": "official",
"system": "https://fhir.nhs.uk/Id/ods-organization-code",
"value": "RR8"
}
],
"name": "LEEDS TEACHING HOSPITALS NHS TRUST",
"telecom": [
{
"system": "phone",
"value": "0113 243 3144"
}
],
"address": [
{
"line": [
"ST. JAMES'S UNIVERSITY HOSPITAL",
"BECKETT STREET"
],
"city": "LEEDS",
"postalCode": "LS9 7TF",
"country": "ENGLAND"
}
]
},
"search": {
"mode": "include"
}
}
]
}
<Bundle xmlns="http://hl7.org/fhir">
<id value="DOS-Bundle-SearchResults-Example" />
<versionId value="0.1.0" />
<lastUpdated value="2024-07-16T15:01:30.8185338+00:00" />
</meta>
<type value="searchset" />
<timestamp value="2024-07-16T12:15:10+00:00" />
<total value="8" />
<relation value="self" />
<url value="https://simplifier.net/nhsbookingandreferrals/777a156c-af3c-4748-a8a3-7e95e4b0df9a-duplicate-2" />
</link>
<fullUrl value="http://example.org/fhir/Slot/RR8-SJUH-TAUTO-001" />
<Slot>
<id value="RR8-SJUH-TAUTO-001" />
<lastUpdated value="2024-07-16T15:01:30.8185338+00:00" />
</meta>
<extension url="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-DeliveryChannel">
<system value="https://fhir.hl7.org.uk/CodeSystem/UKCore-DeliveryChannel" />
<code value="Telephone" />
<display value="Telephone" />
</coding>
</valueCodeableConcept>
</extension>
<system value="http://terminology.hl7.org/CodeSystem/service-category" />
<code value="14" />
<display value="Emergency Department" />
</coding>
</serviceCategory>
<reference value="Schedule/DoS-Schedule-RR8-LEEDSSJUH-Example" />
</schedule>
<status value="free" />
<start value="2024-07-22T09:00:00+00:00" />
<end value="2024-07-22T10:00:00+00:00" />
</Slot>
</resource>
<mode value="include" />
</search>
</entry>
<fullUrl value="http://example.org/fhir/Slot/RR8-SJUH-TAUTO-002" />
<Slot>
<id value="RR8-SJUH-TAUTO-002" />
<lastUpdated value="2024-07-16T15:01:30.8185338+00:00" />
</meta>
<extension url="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-DeliveryChannel">
<system value="https://fhir.hl7.org.uk/CodeSystem/UKCore-DeliveryChannel" />
<code value="Telephone" />
<display value="Telephone" />
</coding>
</valueCodeableConcept>
</extension>
<system value="http://terminology.hl7.org/CodeSystem/service-category" />
<code value="14" />
<display value="Emergency Department" />
</coding>
</serviceCategory>
<reference value="Schedule/DoS-Schedule-RR8-LEEDSSJUH-Example" />
</schedule>
<status value="free" />
<start value="2024-07-22T10:00:00+00:00" />
<end value="2024-07-22T10:30:00+00:00" />
</Slot>
</resource>
<mode value="include" />
</search>
</entry>
<fullUrl value="http://example.org/fhir/Slot/RR8-SJUH-TAUTO-003" />
<Slot>
<id value="RR8-SJUH-TAUTO-003" />
<lastUpdated value="2024-07-16T15:01:30.8185338+00:00" />
</meta>
<extension url="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-DeliveryChannel">
<system value="https://fhir.hl7.org.uk/CodeSystem/UKCore-DeliveryChannel" />
<code value="Telephone" />
<display value="Telephone" />
</coding>
</valueCodeableConcept>
</extension>
<system value="http://terminology.hl7.org/CodeSystem/service-category" />
<code value="14" />
<display value="Emergency Department" />
</coding>
</serviceCategory>
<reference value="Schedule/DoS-Schedule-RR8-LEEDSSJUH-Example" />
</schedule>
<status value="free" />
<start value="2024-07-22T11:00:00+00:00" />
<end value="2024-07-22T11:30:00+00:00" />
</Slot>
</resource>
<mode value="include" />
</search>
</entry>
<fullUrl value="http://example.org/fhir/Schedule/DoS-Schedule-RR8-LEEDSSJUH-Example" />
<Schedule>
<id value="DoS-Schedule-RR8-LEEDSSJUH-Example" />
<lastUpdated value="2024-07-16T15:01:30.8185338+00:00" />
</meta>
<system value="https://fhir.leedssth.nhs.uk/Diary/id" />
<value value="8622dfdb-dc6a-47b6-b3a7-2eb2829db287" />
</identifier>
<active value="true" />
<system value="http://terminology.hl7.org/CodeSystem/service-category" />
<code value="14" />
<display value="Emergency Department" />
</coding>
</serviceCategory>
<system value="http://terminology.hl7.org/CodeSystem/service-type" />
<code value="117" />
<display value="Emergency Medical" />
</coding>
</serviceType>
<system value="https://fhir.hl7.org.uk/CodeSystem/UKCore-PracticeSettingCode" />
<code value="110" />
<display value="Trauma and Orthopaedics" />
</coding>
</specialty>
<reference value="HealthcareService/DoS-HealthcareService-OrthopaedicService-Example" />
<display value="Trauma and Orthopaedics Service" />
</actor>
<reference value="PractitionerRole/PractitionerRole-JoeSmithLeedsSTH-Example" />
<display value="Paedatrician" />
</actor>
<reference value="Practitioner/Practitioner-JoeSmith-Example" />
<display value="Dr. Joe Smith" />
</actor>
<reference value="Location/DoS-Location-HospitalSJUH-Example" />
<display value="St James' University Hospital, Leeds" />
</actor>
<start value="2024-07-22T09:00:00+00:00" />
<end value="2024-07-29T10:00:00+00:00" />
</planningHorizon>
</Schedule>
</resource>
<mode value="include" />
</search>
</entry>
<fullUrl value="http://example.org/fhir/HealthcareService/DoS-HealthcareService-OrthopaedicService-Example" />
<HealthcareService>
<id value="DoS-HealthcareService-OrthopaedicService-Example" />
<lastUpdated value="2024-07-16T15:01:30.8185338+00:00" />
</meta>
<system value="https://fhir.leedssth.nhs.uk/MyHealthcare/Services" />
<value value="100" />
</identifier>
<active value="true" />
<reference value="Organization/UKCore-Organization-LeedsTeachingHospital-Example" />
<display value="St James' University Hospital, Leeds" />
</providedBy>
<reference value="Location/DoS-Location-HospitalSJUH-Example" />
</location>
<name value="Trauma and Orthopaedics Service" />
</HealthcareService>
</resource>
<mode value="include" />
</search>
</entry>
<fullUrl value="http://example.org/fhir/Practitioner/Practitioner-JoeSmith-Example" />
<Practitioner>
<id value="Practitioner-JoeSmith-Example" />
<lastUpdated value="2024-07-16T15:01:30.8185338+00:00" />
</meta>
<use value="official" />
<system value="https://fhir.hl7.org.uk/Id/gmc-number" />
<value value="C9999999" />
</identifier>
<family value="Smith" />
<given value="Joe" />
<prefix value="Dr" />
</name>
<system value="http://terminology.hl7.org/CodeSystem/v2-0360" />
<code value="MD" />
<display value="Doctor of Medicine" />
</coding>
</code>
</qualification>
</Practitioner>
</resource>
<mode value="include" />
</search>
</entry>
<fullUrl value="http://example.org/fhir/PractitionerRole/PractitionerRole-JoeSmithLeedsSTH-Example" />
<PractitionerRole>
<id value="PractitionerRole-JoeSmithLeedsSTH-Example" />
<lastUpdated value="2024-07-16T15:01:30.8185338+00:00" />
</meta>
<system value="https://fhir.nhs.uk/Id/sds-role-profile-id" />
<value value="R0260" />
</identifier>
<reference value="Practitioner/Practitioner-JoeSmith-Example" />
</practitioner>
<system value="https://fhir.nhs.uk/Id/ods-organization-code" />
<value value="RR8" />
</identifier>
<display value="Leeds Teaching Hospitals NHS Trust" />
</organization>
<system value="http://terminology.hl7.org/CodeSystem/practitioner-role" />
<code value="doctor" />
<display value="Doctor" />
</coding>
</code>
<system value="https://fhir.hl7.org.uk/CodeSystem/UKCore-PracticeSettingCode" />
<code value="110" />
<display value="Trauma and Orthopaedics" />
</coding>
</specialty>
<system value="phone" />
<value value="0113 243 3144" />
</telecom>
<system value="email" />
<value value="jsmithgppracticeg@nhs.net" />
</telecom>
<extension url="http://hl7.org/fhir/StructureDefinition/contactpoint-comment">
<valueString value="reporting" />
</extension>
<system value="email" />
<value value="orthopaedics@leedsuniversitynhs.net" />
</telecom>
</PractitionerRole>
</resource>
<mode value="match" />
</search>
</entry>
<fullUrl value="http://example.org/fhir/Location/DoS-Location-HospitalSJUH-Example" />
<Location>
<id value="DoS-Location-HospitalSJUH-Example" />
<lastUpdated value="2024-07-16T15:01:30.8185338+00:00" />
</meta>
<system value="https://fhir.nhs.uk/Id/ods-site-code" />
<value value="RR813" />
</identifier>
<name value="ST JAMES'S UNIVERSITY HOSPITAL" />
<system value="http://terminology.hl7.org/CodeSystem/v3-RoleCode" />
<code value="HOSP" />
<display value="Hospital" />
</coding>
</type>
<system value="phone" />
<value value="0113 243 3144" />
</telecom>
<line value="ST. JAMES'S UNIVERSITY HOSPITAL" />
<line value="BECKETT STREET" />
<city value="LEEDS" />
<postalCode value="LS9 7TF" />
<country value="ENGLAND" />
</address>
<longitude value="143.20196" />
<latitude value="-37.22866" />
</position>
<reference value="Organization/UKCore-Organization-LeedsTeachingHospital-Example" />
</managingOrganization>
</Location>
</resource>
<mode value="include" />
</search>
</entry>
<fullUrl value="http://example.org/fhir/Organization/UKCore-Organization-LeedsTeachingHospital-Example" />
<Organization>
<id value="UKCore-Organization-LeedsTeachingHospital-Example" />
<use value="official" />
<system value="https://fhir.nhs.uk/Id/ods-organization-code" />
<value value="RR8" />
</identifier>
<name value="LEEDS TEACHING HOSPITALS NHS TRUST" />
<system value="phone" />
<value value="0113 243 3144" />
</telecom>
<line value="ST. JAMES'S UNIVERSITY HOSPITAL" />
<line value="BECKETT STREET" />
<city value="LEEDS" />
<postalCode value="LS9 7TF" />
<country value="ENGLAND" />
</address>
</Organization>
</resource>
<mode value="include" />
</search>
</entry>
</Bundle>


DoS-OperationOutcome-AccessDeniedAuthRequired-Example

Example of error message indicating access has been denied to process the request.

OperationOutcome
{
"resourceType": "OperationOutcome",
"id": "DoS-OperationOutcome-AccessDeniedAuthRequired-Example",
"issue": [
{
"severity": "error",
"code": "security",
"details": {
"coding": [
{
"system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-SpineErrorOrWarningCode",
"version": "1.0.0",
"code": "ACCESS_DENIED",
"display": "Access has been denied to process this request"
}
]
},
"diagnostics": "Authentication is required"
}
]
}
<OperationOutcome xmlns="http://hl7.org/fhir">
<id value="DoS-OperationOutcome-AccessDeniedAuthRequired-Example" />
<severity value="error" />
<code value="security" />
<system value="https://fhir.hl7.org.uk/CodeSystem/UKCore-SpineErrorOrWarningCode" />
<version value="1.0.0" />
<code value="ACCESS_DENIED" />
<display value="Access has been denied to process this request" />
</coding>
</details>
<diagnostics value="Authentication is required" />
</issue>
</OperationOutcome>


DoS-OperationOutcome-InternalServerError-Example

Example of error message indicating an internal server error has occured. e.g. Can't connect to DB

OperationOutcome
{
"resourceType": "OperationOutcome",
"id": "DoS-OperationOutcome-InternalServerError-Example",
"issue": [
{
"severity": "fatal",
"code": "exception",
"diagnostics": "Internal server error"
}
]
}
<OperationOutcome xmlns="http://hl7.org/fhir">
<id value="DoS-OperationOutcome-InternalServerError-Example" />
<severity value="fatal" />
<code value="exception" />
<diagnostics value="Internal server error" />
</issue>
</OperationOutcome>


DoS-OperationOutcome-InvalidSearchDataAndIdentifierValue-Example

Example of error message indicating an invalid identifier value was provided as a search parameter (e.g. Invalid ODS Code, Missing ODS Code?)

OperationOutcome
{
"resourceType": "OperationOutcome",
"id": "DoS-OperationOutcome-InvalidSearchDataAndIdentifierValue-Example",
"issue": [
{
"severity": "error",
"code": "value",
"details": {
"coding": [
{
"system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-SpineErrorOrWarningCode",
"version": "1.0.0",
"code": "INVALID_SEARCH_DATA",
"display": "Invalid search data"
}
]
},
"diagnostics": "Invalid identifier value: ODS code 'H82028' must follow format ^[A-Z0-9]{5,12}$"
}
]
}
<OperationOutcome xmlns="http://hl7.org/fhir">
<id value="DoS-OperationOutcome-InvalidSearchDataAndIdentifierValue-Example" />
<severity value="error" />
<code value="value" />
<system value="https://fhir.hl7.org.uk/CodeSystem/UKCore-SpineErrorOrWarningCode" />
<version value="1.0.0" />
<code value="INVALID_SEARCH_DATA" />
<display value="Invalid search data" />
</coding>
</details>
<diagnostics value="Invalid identifier value: ODS code 'H82028' must follow format ^[A-Z0-9]{5,12}$" />
</issue>
</OperationOutcome>


DoS-OperationOutcome-InvalidSearchDataAndIdentifierSys-Example

Example of error message indicating an invalid identifier system was provided as a search parameter.

OperationOutcome
{
"resourceType": "OperationOutcome",
"id": "DoS-OperationOutcome-InvalidSearchDataAndIdentifierSys-Example",
"issue": [
{
"severity": "error",
"code": "code-invalid",
"details": {
"coding": [
{
"system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-SpineErrorOrWarningCode",
"version": "1.0.0",
"code": "INVALID_SEARCH_DATA",
"display": "Invalid search data"
}
]
},
"diagnostics": "Invalid identifier system 'foo' - expected '_odsOrganisationCode'"
}
]
}
<OperationOutcome xmlns="http://hl7.org/fhir">
<id value="DoS-OperationOutcome-InvalidSearchDataAndIdentifierSys-Example" />
<severity value="error" />
<code value="code-invalid" />
<system value="https://fhir.hl7.org.uk/CodeSystem/UKCore-SpineErrorOrWarningCode" />
<version value="1.0.0" />
<code value="INVALID_SEARCH_DATA" />
<display value="Invalid search data" />
</coding>
</details>
<diagnostics value="Invalid identifier system 'foo' - expected '_odsOrganisationCode'" />
</issue>
</OperationOutcome>


DoS-OperationOutcome-InvalidSearchDataMissingSearchParam-Example

Example of error message indicating a required search parameter was missing.

OperationOutcome
{
"resourceType": "OperationOutcome",
"id": "DoS-OperationOutcome-InvalidSearchDataMissingSearchParam-Example",
"issue": [
{
"severity": "error",
"code": "value",
"details": {
"coding": [
{
"system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-SpineErrorOrWarningCode",
"version": "1.0.0",
"code": "INVALID_SEARCH_DATA",
"display": "Invalid search data"
}
]
},
"diagnostics": "The request is missing the 'revinclude=Endpoint:organization' parameter, which is required to include linked Endpoint resources."
}
]
}
<OperationOutcome xmlns="http://hl7.org/fhir">
<id value="DoS-OperationOutcome-InvalidSearchDataMissingSearchParam-Example" />
<severity value="error" />
<code value="value" />
<system value="https://fhir.hl7.org.uk/CodeSystem/UKCore-SpineErrorOrWarningCode" />
<version value="1.0.0" />
<code value="INVALID_SEARCH_DATA" />
<display value="Invalid search data" />
</coding>
</details>
<diagnostics value="The request is missing the 'revinclude=Endpoint:organization' parameter, which is required to include linked Endpoint resources." />
</issue>
</OperationOutcome>


DoS-OperationOutcome-UnsupportedServicePatient-Example

Example of error message indicating an incorrect request was sent.

OperationOutcome
{
"resourceType": "OperationOutcome",
"id": "DoS-OperationOutcome-UnsupportedServicePatient-Example",
"issue": [
{
"severity": "error",
"code": "not-supported",
"details": {
"coding": [
{
"system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-SpineErrorOrWarningCode",
"version": "1.0.0",
"code": "UNSUPPORTED_SERVICE",
"display": "Unsupported service"
}
]
},
"diagnostics": "Unsupported service: 'Patient'"
}
]
}
<OperationOutcome xmlns="http://hl7.org/fhir">
<id value="DoS-OperationOutcome-UnsupportedServicePatient-Example" />
<severity value="error" />
<code value="not-supported" />
<system value="https://fhir.hl7.org.uk/CodeSystem/UKCore-SpineErrorOrWarningCode" />
<version value="1.0.0" />
<code value="UNSUPPORTED_SERVICE" />
<display value="Unsupported service" />
</coding>
</details>
<diagnostics value="Unsupported service: 'Patient'" />
</issue>
</OperationOutcome>