@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/special-authority/SearchParameter/approval-version-state> a fhir:SearchParameter ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "approval-version-state"] ;
  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 approval-version-state</b></p><a name=\"approval-version-state\"> </a><a name=\"hcapproval-version-state\"> </a><h2>ApprovalVersionState</h2><p>Parameter <code>approval-version-state</code>:<code>token</code></p><div><p>Controls which Approval versions are returned: LATEST (default), PREVIOUS or ALL. This is a result-control parameter with no FHIRPath expression - an Approval version is a new Approval Store row, not a FHIR resource version (D17). Each version is returned as a distinct ClaimResponse ordered by meta.lastUpdated. Values are from the SA Approval Version State value set.</p>\n</div><table class=\"grid\"><tr><td>Resource</td><td><a href=\"http://hl7.org/fhir/R4/claimresponse.html\">ClaimResponse</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>"
  ] ;
  fhir:SearchParameter.url [ fhir:value "https://fhir-ig.digital.health.nz/special-authority/SearchParameter/approval-version-state"] ;
  fhir:SearchParameter.version [ fhir:value "0.1.1"] ;
  fhir:SearchParameter.name [ fhir:value "ApprovalVersionState"] ;
  fhir:SearchParameter.status [ fhir:value "draft"] ;
  fhir:SearchParameter.experimental [ fhir:value "false"^^xsd:boolean] ;
  fhir:SearchParameter.date [ fhir:value "2026-10-15"^^xsd:date] ;
  fhir:SearchParameter.publisher [ fhir:value "Health New Zealand | Te Whatu Ora"] ;
  fhir:SearchParameter.contact [
     fhir:index 0 ;
     fhir:ContactDetail.name [ fhir:value "Health New Zealand | Te Whatu Ora" ] ;
     fhir:ContactDetail.telecom [
       fhir:index 0 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "https://www.tewhatuora.govt.nz/" ]
     ], [
       fhir:index 1 ;
       fhir:ContactPoint.system [ fhir:value "email" ] ;
       fhir:ContactPoint.value [ fhir:value "integration@tewhatuora.govt.nz" ]
     ]
  ], [
     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 "Controls which Approval versions are returned: LATEST (default), PREVIOUS or ALL. This is a result-control parameter with no FHIRPath expression - an Approval version is a new Approval Store row, not a FHIR resource version (D17). Each version is returned as a distinct ClaimResponse ordered by meta.lastUpdated. Values are from the SA Approval Version State value set."] ;
  fhir:SearchParameter.jurisdiction [
     fhir:index 0 ;
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "urn:iso:std:iso:3166" ] ;
       fhir:Coding.code [ fhir:value "NZ" ] ;
       fhir:Coding.display [ fhir:value "New Zealand" ]
     ]
  ] ;
  fhir:SearchParameter.code [ fhir:value "approval-version-state"] ;
  fhir:SearchParameter.base [
     fhir:value "ClaimResponse" ;
     fhir:index 0
  ] ;
  fhir:SearchParameter.type [ fhir:value "token"] .

# - ontology header ------------------------------------------------------------

<https://fhir-ig.digital.health.nz/special-authority/SearchParameter/approval-version-state.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

