{
  "resourceType" : "SearchParameter",
  "id" : "healthcareservice-new-patient-and-from-network",
  "language" : "en",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: SearchParameter healthcareservice-new-patient-and-from-network</b></p><a name=\"healthcareservice-new-patient-and-from-network\"> </a><a name=\"hchealthcareservice-new-patient-and-from-network\"> </a><h2>HealthcareServiceNewPatientAndFromNetworkSearchParameter</h2><p>Parameter <code>new-patient-and-from-network</code>:<code>composite</code></p><div><p>Select Healthcareservice of the specified new-patient and from-network</p>\n</div><table class=\"grid\"><tr><td>Resource</td><td><a href=\"http://hl7.org/fhir/R4/healthcareservice.html\">HealthcareService</a></td></tr><tr><td>Expression</td><td><code>HealthcareService.extension('http://hl7.org/fhir/us/ndh/StructureDefinition/base-ext-newpatients')</code></td></tr><tr><td>Multiples</td><td><ul><li>multipleAnd: It's up to the server whether the parameter may repeat in order to specify multiple values that must all be true</li><li>multipleOr: It's up to the server whether the parameter can have multiple values (separated by comma) where at least one must be true</li></ul></td></tr></table><p><b>Comparators</b></p><table class=\"grid\"><tr><td><a href=\"SearchParameter-healthcareservice-new-patient.html\">HealthcareServiceNewPatientSearchParameter</a></td><td><code>HealthcareService.extension.where(url='http://hl7.org/fhir/us/ndh/StructureDefinition/base-ext-newpatients').extension.where(url ='acceptingPatients').value.ofType(CodeableConcept)</code></td></tr><tr><td><a href=\"SearchParameter-healthcareservice-new-patient-from-network.html\">HealthcareServiceNewPatientFromNetworkSearchParameter</a></td><td><code>HealthcareService.extension.where(url='http://hl7.org/fhir/us/ndh/StructureDefinition/base-ext-newpatients').extension.where(url='fromNetwork').value.ofType(Reference)</code></td></tr></table></div>"
  },
  "extension" : [{
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
    "valueCode" : "pa"
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
    "valueInteger" : 4,
    "_valueInteger" : {
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
        "valueCanonical" : "http://hl7.org/fhir/us/ndh/ImplementationGuide/hl7.fhir.us.ndh"
      }]
    }
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
    "valueCode" : "trial-use",
    "_valueCode" : {
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
        "valueCanonical" : "http://hl7.org/fhir/us/ndh/ImplementationGuide/hl7.fhir.us.ndh"
      }]
    }
  }],
  "url" : "http://hl7.org/fhir/us/ndh/SearchParameter/healthcareservice-new-patient-and-from-network",
  "version" : "2.0.0-current",
  "name" : "HealthcareServiceNewPatientAndFromNetworkSearchParameter",
  "status" : "active",
  "date" : "2026-05-19T16:10:29+00:00",
  "publisher" : "HL7 International / Patient Administration",
  "contact" : [{
    "name" : "HL7 International / Patient Administration",
    "telecom" : [{
      "system" : "url",
      "value" : "http://www.hl7.org/Special/committees/pafm"
    },
    {
      "system" : "email",
      "value" : "pafm@lists.hl7.org"
    }]
  }],
  "description" : "Select Healthcareservice of the specified new-patient and from-network",
  "jurisdiction" : [{
    "coding" : [{
      "system" : "urn:iso:std:iso:3166",
      "code" : "US",
      "display" : "United States of America"
    }]
  }],
  "code" : "new-patient-and-from-network",
  "base" : ["HealthcareService"],
  "type" : "composite",
  "expression" : "HealthcareService.extension('http://hl7.org/fhir/us/ndh/StructureDefinition/base-ext-newpatients')",
  "component" : [{
    "definition" : "http://hl7.org/fhir/us/ndh/SearchParameter/healthcareservice-new-patient",
    "expression" : "HealthcareService.extension.where(url='http://hl7.org/fhir/us/ndh/StructureDefinition/base-ext-newpatients').extension.where(url ='acceptingPatients').value.ofType(CodeableConcept)"
  },
  {
    "definition" : "http://hl7.org/fhir/us/ndh/SearchParameter/healthcareservice-new-patient-from-network",
    "expression" : "HealthcareService.extension.where(url='http://hl7.org/fhir/us/ndh/StructureDefinition/base-ext-newpatients').extension.where(url='fromNetwork').value.ofType(Reference)"
  }]
}