{
  "resourceType": "OperationDefinition",
  "id": "HealthcareService-query-responsibleLAfromAddress",
  "url": "https://fhir.nottinghamshire.gov.uk/STU3/OperationDefinition/HealthcareService-query-responsibleLAfromAddress",
  "version": "0.0.1",
  "name": "Responsible Local Authority from Address",
  "status": "active",
  "kind": "query",
  "description": "This search returns an empty bundle or a single HealthcareService matching the type parameter & containing the coverageArea location identifier matching the local authority code discovered from the comma delimited address and postcode parameters",
  "idempotent": true,
  "code": "responsibleLAfromAddress",
  "resource": [
    "HealthcareService"
  ],
  "system": false,
  "type": true,
  "instance": false,
  "parameter": [
    {
      "name": "postcode",
      "use": "in",
      "min": 1,
      "max": "1",
      "documentation": "The postcode parameter is case insensitive and can be supplied with or without a space. The value SHALL be URL Encoded.",
      "type": "string",
      "searchType": "string"
    },
    {
      "name": "address",
      "use": "in",
      "min": 1,
      "max": "1",
      "documentation": "The address should be comma separated, however, because the comma has special meaning in FHIR, each comma in the parameter value should be escaped with a preceding '\\'. The address parameter is case insensitive. The value SHALL be URL Encoded.",
      "type": "string",
      "searchType": "string"
    },
    {
      "name": "type",
      "use": "in",
      "min": 1,
      "max": "1",
      "type": "Coding",
      "documentation": "Coding for the type of Social Care Sevice required.",
      "binding": {
        "strength": "required",
        "valueSetUri": "https://fhir.nottinghamshire.gov.uk/STU3/valueset/LocatorService-HealthcareServiceType"
      }
    },
    {
      "name": "response",
      "use": "out",
      "min": 0,
      "max": "1",
      "documentation": "A HealthcareService resource that has been returned in response to the given input parameters",
      "type": "HealthcareService",
      "profile": {
        "reference": "https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-LocatorService-HealthcareService-1"
      }
    }
  ]
}