@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/condition-long-term-condition> a fhir:SearchParameter ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "condition-long-term-condition"] ;
  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 condition-long-term-condition</b></p><a name=\"condition-long-term-condition\"> </a><a name=\"hccondition-long-term-condition\"> </a><h2>ConditionLongTermCondition</h2><p>Parameter <code>long-term-condition</code>:<code>token</code></p><div><p>Search for conditions marked as long term in the SDHRCondition profile</p>\n</div><table class=\"grid\"><tr><td>Resource</td><td><a href=\"http://hl7.org/fhir/R4/condition.html\">Condition</a></td></tr><tr><td>Expression</td><td><code>Condition.extension('http://hl7.org.nz/fhir/StructureDefinition/long-term-condition')</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/condition-long-term-condition"] ;
  fhir:SearchParameter.version [ fhir:value "1.0.2"] ;
  fhir:SearchParameter.name [ fhir:value "ConditionLongTermCondition"] ;
  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 for conditions marked as long term in the SDHRCondition profile"] ;
  fhir:SearchParameter.code [ fhir:value "long-term-condition"] ;
  fhir:SearchParameter.base [
     fhir:value "Condition" ;
     fhir:index 0
  ] ;
  fhir:SearchParameter.type [ fhir:value "token"] ;
  fhir:SearchParameter.expression [ fhir:value "Condition.extension('http://hl7.org.nz/fhir/StructureDefinition/long-term-condition')"] ;
  fhir:SearchParameter.xpathUsage [ fhir:value "normal"] .

# - ontology header ------------------------------------------------------------

<https://fhir-ig.digital.health.nz/sdhr/SearchParameter/condition-long-term-condition.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

