<OperationDefinition xmlns="http://hl7.org/fhir">
  <id value="HealthcareService-query-responsibleLAfromAddress" />
  <url value="https://fhir.nottinghamshire.gov.uk/STU3/OperationDefinition/HealthcareService-query-responsibleLAfromAddress" />
  <version value="0.0.1" />
  <name value="Responsible Local Authority from Address" />
  <status value="active" />
  <kind value="query" />
  <description value="This search returns an empty bundle or a single HealthcareService matching the type parameter &amp; containing the coverageArea location identifier matching the local authority code discovered from the comma delimited address and postcode parameters" />
  <idempotent value="true" />
  <code value="responsibleLAfromAddress" />
  <resource value="HealthcareService" />
  <system value="false" />
  <type value="true" />
  <instance value="false" />
  <parameter>
    <name value="postcode" />
    <use value="in" />
    <min value="1" />
    <max value="1" />
    <documentation value="The postcode parameter is case insensitive and can be supplied with or without a space. The value SHALL be URL Encoded." />
    <type value="string" />
    <searchType value="string" />
  </parameter>
  <parameter>
    <name value="address" />
    <use value="in" />
    <min value="1" />
    <max value="1" />
    <documentation value="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 value="string" />
    <searchType value="string" />
  </parameter>
  <parameter>
    <name value="type" />
    <use value="in" />
    <min value="1" />
    <max value="1" />
    <documentation value="Coding for the type of Social Care Sevice required." />
    <type value="Coding" />
    <binding>
      <strength value="required" />
      <valueSetUri value="https://fhir.nottinghamshire.gov.uk/STU3/valueset/LocatorService-HealthcareServiceType" />
    </binding>
  </parameter>
  <parameter>
    <name value="response" />
    <use value="out" />
    <min value="0" />
    <max value="1" />
    <documentation value="A HealthcareService resource that has been returned in response to the given input parameters" />
    <type value="HealthcareService" />
    <profile>
      <reference value="https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-LocatorService-HealthcareService-1" />
    </profile>
  </parameter>
</OperationDefinition>