<?xml version="1.0" encoding="UTF-8"?>

<SearchParameter xmlns="http://hl7.org/fhir">
  <id value="based-on-emp-sp"/>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: SearchParameter based-on-emp-sp</b></p><a name="based-on-emp-sp"> </a><a name="hcbased-on-emp-sp"> </a><h2>IsEMPSP</h2><p>Parameter <code>based-on-emp</code>:<code>reference</code></p><div><p>Liefert alle Referencen, die einen eMP bezug haben</p>
</div><table class="grid"><tr><td>Resource</td><td><a href="http://hl7.org/fhir/R4/medicationstatement.html">MedicationStatement</a></td></tr><tr><td>Expression</td><td><code>Resource.basedOn.where(extension('https://gematik.de/fhir/epa-medication/StructureDefinition/is-emp-extension').value = true)</code></td></tr><tr><td>Target Resources</td><td><a href="http://hl7.org/fhir/R4/medicationrequest.html">MedicationRequest</a></td></tr><tr><td>Multiples</td><td><ul><li>multipleAnd: The parameter may only appear once</li><li>multipleOr: The parameter may only have one value (no comma separators)</li></ul></td></tr></table></div>
  </text>
  <url value="https://gematik.de/fhir/epa-medication/SearchParameter/based-on-emp-sp"/>
  <version value="1.2.0-ballot.2"/>
  <name value="IsEMPSP"/>
  <status value="draft"/>
  <date value="2025-09-02"/>
  <publisher value="gematik GmbH"/>
  <contact>
    <name value="gematik GmbH"/>
    <telecom>
      <system value="url"/>
      <value value="https://www.gematik.de"/>
    </telecom>
    <telecom>
      <system value="email"/>
      <value value="patientteam [ at ] gematik.de"/>
    </telecom>
  </contact>
  <description value="Liefert alle Referencen, die einen eMP bezug haben"/>
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166"/>
      <code value="DE"/>
    </coding>
  </jurisdiction>
  <code value="based-on-emp"/>
  <base value="MedicationStatement"/>
  <type value="reference"/>
  <expression value="Resource.basedOn.where(extension('https://gematik.de/fhir/epa-medication/StructureDefinition/is-emp-extension').value = true)"/>
  <target value="MedicationRequest"/>
  <multipleOr value="false"/>
  <multipleAnd value="false"/>
</SearchParameter>