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

<SearchParameter xmlns="http://hl7.org/fhir">
  <id value="ahd-counseling-last"/>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: SearchParameter ahd-counseling-last</b></p><a name="ahd-counseling-last"> </a><a name="hcahd-counseling-last"> </a><h2>AhdCounselingLast</h2><p>Parameter <code>last</code>:<code>token</code></p><div><p>Custom parameter (UC-AHD-054): last=true returns only the chronologically latest valid counselling decision for the patient and linked persons.</p>
</div><table class="grid"><tr><td>Resource</td><td><a href="http://hl7.org/fhir/R5/observation.html">Observation</a></td></tr><tr><td>Expression</td><td>(none)</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></div>
  </text>
  <url value="https://fhir.ee/ahd/SearchParameter/ahd-counseling-last"/>
  <version value="0.1.0"/>
  <name value="AhdCounselingLast"/>
  <status value="active"/>
  <date value="2026-09-04T09:27:54+00:00"/>
  <publisher value="TEHIK"/>
  <contact>
    <name value="TEHIK"/>
    <telecom>
      <system value="url"/>
      <value value="https://tehik.ee"/>
    </telecom>
    <telecom>
      <system value="email"/>
      <value value="abi@tehik.ee"/>
    </telecom>
  </contact>
  <description value="Custom parameter (UC-AHD-054): last=true returns only the chronologically latest valid counselling decision for the patient and linked persons."/>
  <code value="last"/>
  <base value="Observation"/>
  <type value="token"/>
</SearchParameter>