{
  "resourceType": "Bundle",
  "id": "87fce214-e677-4664-8b04-4615549e4a2c",
  "meta": {
    "lastUpdated": "2020-08-25T15:42:14.138+00:00"
  },
  "type": "searchset",
  "total": 2,
  "link": [
    {
      "relation": "self",
      "url": "https://fhir-test.nottinghamshire.gov.uk/LocatorService/v2/HealthcareService?_format=json&_query=responsibleLAfromAddress&address=23%20Deer%20Park%20Drive%5C%2C%20Nottingham&postcode=NG5%208SA&type=http%3A%2F%2Fsnomed.info%2Fsct%7C715591000000108"
    }
  ],
  "entry": [
    {
      "fullUrl": "https://fhir-test.nottinghamshire.gov.uk/LocatorService/v2/HealthcareService/141",
      "resource": {
        "resourceType": "HealthcareService",
        "id": "141",
        "meta": {
          "profile": [
            "https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-LocatorService-HealthcareService-1|0.0.1"
          ]
        },
        "contained": [
          {
            "resourceType": "Organization",
            "id": "o1",
            "meta": {
              "profile": [
                "https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-LocatorService-Organization-1|0.0.1"
              ]
            },
            "identifier": [
              {
                "system": "https://fhir.nhs.uk/Id/ods-organization-code",
                "value": "511"
              }
            ],
            "type": [
              {
                "coding": [
                  {
                    "system": "https://directory.spineservices.nhs.uk/STU3/CodeSystem/ODSAPI-OrganizationRole-1",
                    "code": "33",
                    "display": "COUNTY COUNCIL"
                  }
                ]
              }
            ],
            "name": "Nottinghamshire County Council"
          },
          {
            "resourceType": "Location",
            "id": "l1",
            "meta": {
              "profile": [
                "https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-LocatorService-Location-1|0.0.1"
              ]
            },
            "identifier": [
              {
                "system": "https://fhir.nhs.uk/Id/ods-organization-code",
                "value": "139"
              },
              {
                "system": "http://ordnancesurvey.co.uk/addressbase/custodian-code",
                "value": "3015"
              }
            ],
            "name": "Broxtowe Borough Council",
            "physicalType": {
              "coding": [
                {
                  "system": "https://directory.spineservices.nhs.uk/STU3/CodeSystem/ODSAPI-OrganizationRole-1",
                  "code": "34",
                  "display": "BOROUGH COUNCIL"
                }
              ]
            }
          },
          {
            "resourceType": "Location",
            "id": "l2",
            "meta": {
              "profile": [
                "https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-LocatorService-Location-1|0.0.1"
              ]
            },
            "identifier": [
              {
                "system": "https://fhir.nhs.uk/Id/ods-organization-code",
                "value": "195"
              },
              {
                "system": "http://ordnancesurvey.co.uk/addressbase/custodian-code",
                "value": "3020"
              }
            ],
            "name": "Gedling Borough Council",
            "physicalType": {
              "coding": [
                {
                  "system": "https://directory.spineservices.nhs.uk/STU3/CodeSystem/ODSAPI-OrganizationRole-1",
                  "code": "34",
                  "display": "BOROUGH COUNCIL"
                }
              ]
            }
          },
          {
            "resourceType": "Location",
            "id": "l3",
            "meta": {
              "profile": [
                "https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-LocatorService-Location-1|0.0.1"
              ]
            },
            "identifier": [
              {
                "system": "https://fhir.nhs.uk/Id/ods-organization-code",
                "value": "286"
              },
              {
                "system": "http://ordnancesurvey.co.uk/addressbase/custodian-code",
                "value": "3040"
              }
            ],
            "name": "Rushcliffe Borough Council",
            "physicalType": {
              "coding": [
                {
                  "system": "https://directory.spineservices.nhs.uk/STU3/CodeSystem/ODSAPI-OrganizationRole-1",
                  "code": "34",
                  "display": "BOROUGH COUNCIL"
                }
              ]
            }
          },
          {
            "resourceType": "Location",
            "id": "l4",
            "meta": {
              "profile": [
                "https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-LocatorService-Location-1|0.0.1"
              ]
            },
            "identifier": [
              {
                "system": "https://fhir.nhs.uk/Id/ods-organization-code",
                "value": "127"
              },
              {
                "system": "http://ordnancesurvey.co.uk/addressbase/custodian-code",
                "value": "3010"
              }
            ],
            "name": "Bassetlaw District Council",
            "physicalType": {
              "coding": [
                {
                  "system": "https://directory.spineservices.nhs.uk/STU3/CodeSystem/ODSAPI-OrganizationRole-1",
                  "code": "36",
                  "display": "DISTRICT COUNCIL"
                }
              ]
            }
          },
          {
            "resourceType": "Location",
            "id": "l5",
            "meta": {
              "profile": [
                "https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-LocatorService-Location-1|0.0.1"
              ]
            },
            "identifier": [
              {
                "system": "https://fhir.nhs.uk/Id/ods-organization-code",
                "value": "120"
              },
              {
                "system": "http://ordnancesurvey.co.uk/addressbase/custodian-code",
                "value": "3005"
              }
            ],
            "name": "Ashfield District Council",
            "physicalType": {
              "coding": [
                {
                  "system": "https://directory.spineservices.nhs.uk/STU3/CodeSystem/ODSAPI-OrganizationRole-1",
                  "code": "36",
                  "display": "DISTRICT COUNCIL"
                }
              ]
            }
          },
          {
            "resourceType": "Location",
            "id": "l6",
            "meta": {
              "profile": [
                "https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-LocatorService-Location-1|0.0.1"
              ]
            },
            "identifier": [
              {
                "system": "https://fhir.nhs.uk/Id/ods-organization-code",
                "value": "244"
              },
              {
                "system": "http://ordnancesurvey.co.uk/addressbase/custodian-code",
                "value": "3025"
              }
            ],
            "name": "Mansfield District Council",
            "physicalType": {
              "coding": [
                {
                  "system": "https://directory.spineservices.nhs.uk/STU3/CodeSystem/ODSAPI-OrganizationRole-1",
                  "code": "36",
                  "display": "DISTRICT COUNCIL"
                }
              ]
            }
          },
          {
            "resourceType": "Location",
            "id": "l7",
            "meta": {
              "profile": [
                "https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-LocatorService-Location-1|0.0.1"
              ]
            },
            "identifier": [
              {
                "system": "https://fhir.nhs.uk/Id/ods-organization-code",
                "value": "255"
              },
              {
                "system": "http://ordnancesurvey.co.uk/addressbase/custodian-code",
                "value": "3030"
              }
            ],
            "name": "Newark And Sherwood District Council",
            "physicalType": {
              "coding": [
                {
                  "system": "https://directory.spineservices.nhs.uk/STU3/CodeSystem/ODSAPI-OrganizationRole-1",
                  "code": "36",
                  "display": "DISTRICT COUNCIL"
                }
              ]
            }
          },
          {
            "resourceType": "Endpoint",
            "id": "e1",
            "meta": {
              "profile": [
                "https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/LocatorService-Endpoint|0.0.1"
              ]
            },
            "status": "active",
            "connectionType": {
              "system": "http://hl7.org/fhir/endpoint-connection-type",
              "code": "hl7-fhir-rest",
              "display": "HL7 FHIR"
            },
            "managingOrganization": {
              "reference": "#o1"
            },
            "payloadType": [
              {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/resource-types",
                    "code": "ReferralRequest"
                  }
                ]
              }
            ],
            "payloadMimeType": [
              "application/fhir+json",
              "application/fhir+xml"
            ],
            "address": "https://fhir-test.nottinghamshire.gov.uk/ReferralService/v3/"
          },
          {
            "resourceType": "Endpoint",
            "id": "e2",
            "meta": {
              "profile": [
                "https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/LocatorService-Endpoint|0.0.1"
              ]
            },
            "status": "active",
            "connectionType": {
              "system": "http://hl7.org/fhir/endpoint-connection-type",
              "code": "secure-email",
              "display": "Secure email"
            },
            "managingOrganization": {
              "reference": "#o1"
            },
            "payloadType": [
              {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/endpoint-payload-type",
                    "code": "any",
                    "display": "Any"
                  }
                ]
              }
            ],
            "address": "mailto:adult-social-care.test@nottscc.gov.uk"
          }
        ],
        "active": true,
        "providedBy": {
          "reference": "#o1"
        },
        "type": [
          {
            "coding": [
              {
                "system": "http://snomed.info/sct",
                "code": "715591000000108",
                "display": "Hospital Discharge Notification to Social Care"
              }
            ]
          }
        ],
        "name": "Nottinghamshire County Council - Social Care",
        "coverageArea": [
          {
            "reference": "#l1"
          },
          {
            "reference": "#l2"
          },
          {
            "reference": "#l3"
          },
          {
            "reference": "#l4"
          },
          {
            "reference": "#l5"
          },
          {
            "reference": "#l6"
          },
          {
            "reference": "#l7"
          }
        ],
        "endpoint": [
          {
            "reference": "#e1"
          },
          {
            "reference": "#e2"
          }
        ]
      },
      "search": {
        "mode": "match",
        "score": 0.8
      }
    },
    {
      "fullUrl": "https://fhir-test.nottinghamshire.gov.uk/LocatorService/v2/OperationOutcome/bd0153de-d9c3-425a-9406-afed049db5c8",
      "resource": {
        "resourceType": "OperationOutcome",
        "id": "bd0153de-d9c3-425a-9406-afed049db5c8",
        "issue": [
          {
            "severity": "information",
            "code": "processing",
            "diagnostics": "HealthcareService resource returned is based on an approximate address match"
          }
        ]
      },
      "search": {
        "mode": "outcome"
      }
    }
  ]
}