@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<https://fhir-ig.digital.health.nz/sdhr/SearchParameter/allergyintolerance-clientlastupdated> a fhir:SearchParameter ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "allergyintolerance-clientlastupdated"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: SearchParameter allergyintolerance-clientlastupdated</b></p><a name=\"allergyintolerance-clientlastupdated\"> </a><a name=\"hcallergyintolerance-clientlastupdated\"> </a><h2>AllergyIntoleranceClientLastUpdated</h2><p>Parameter <code>clientlastupdated</code>:<code>date</code></p><div><p>Search by the ClientLastUpdated extension on SDHR AllergyIntolerance resources</p>\n</div><table class=\"grid\"><tr><td>Resource</td><td><a href=\"http://hl7.org/fhir/R4/allergyintolerance.html\">AllergyIntolerance</a></td></tr><tr><td>Expression</td><td><code>AllergyIntolerance.extension('https://fhir-ig.digital.health.nz/sdhr/StructureDefinition/hnz-sdhr-client-last-updated-extension').value</code></td></tr><tr><td>Processing Mode</td><td>Normal</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>"
  ] ;
  fhir:SearchParameter.url [ fhir:value "https://fhir-ig.digital.health.nz/sdhr/SearchParameter/allergyintolerance-clientlastupdated"] ;
  fhir:SearchParameter.version [ fhir:value "1.0.2"] ;
  fhir:SearchParameter.name [ fhir:value "AllergyIntoleranceClientLastUpdated"] ;
  fhir:SearchParameter.status [ fhir:value "active"] ;
  fhir:SearchParameter.date [ fhir:value "2026-06-30T04:46:48+00:00"^^xsd:dateTime] ;
  fhir:SearchParameter.publisher [ fhir:value "Health New Zealand"] ;
  fhir:SearchParameter.contact [
     fhir:index 0 ;
     fhir:ContactDetail.name [ fhir:value "Health New Zealand" ] ;
     fhir:ContactDetail.telecom [
       fhir:index 0 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "https://github.com/tewhatuora" ]
     ]
  ], [
     fhir:index 1 ;
     fhir:ContactDetail.name [ fhir:value "HNZ Integration Team" ] ;
     fhir:ContactDetail.telecom [
       fhir:index 0 ;
       fhir:ContactPoint.system [ fhir:value "email" ] ;
       fhir:ContactPoint.value [ fhir:value "integration@tewhatuora.govt.nz" ] ;
       fhir:ContactPoint.use [ fhir:value "work" ]
     ]
  ] ;
  fhir:SearchParameter.description [ fhir:value "Search by the ClientLastUpdated extension on SDHR AllergyIntolerance resources"] ;
  fhir:SearchParameter.code [ fhir:value "clientlastupdated"] ;
  fhir:SearchParameter.base [
     fhir:value "AllergyIntolerance" ;
     fhir:index 0
  ] ;
  fhir:SearchParameter.type [ fhir:value "date"] ;
  fhir:SearchParameter.expression [ fhir:value "AllergyIntolerance.extension('https://fhir-ig.digital.health.nz/sdhr/StructureDefinition/hnz-sdhr-client-last-updated-extension').value"] ;
  fhir:SearchParameter.xpathUsage [ fhir:value "normal"] .

# - ontology header ------------------------------------------------------------

<https://fhir-ig.digital.health.nz/sdhr/SearchParameter/allergyintolerance-clientlastupdated.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

