@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/ClaimResponse/sa-example-cr-approved> a fhir:ClaimResponse ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "sa-example-cr-approved"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://fhir-ig.digital.health.nz/special-authority/StructureDefinition/sa-application-claimresponse" ;
       fhir:index 0 ;
       fhir:link <https://fhir-ig.digital.health.nz/special-authority/StructureDefinition/sa-application-claimresponse>
     ]
  ] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "extensions" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: ClaimResponse sa-example-cr-approved</b></p><a name=\"sa-example-cr-approved\"> </a><a name=\"hcsa-example-cr-approved\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-sa-application-claimresponse.html\">SA Application ClaimResponse</a></p></div><blockquote><p><b>Application Status</b></p><ul><li>status: DONE</li><li>outcome: APPROVED</li></ul></blockquote><p><b>identifier</b>: <a href=\"NamingSystem-sa-approval-number.html\" title=\"Special Authority Approval Number. Carried on ClaimResponse.identifier and ClaimResponse.preAuthRef (D23).\">SAApprovalNumber</a>/26SA0004567</p><p><b>status</b>: Active</p><p><b>type</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/claim-type pharmacy}\">Pharmacy</span></p><p><b>use</b>: Preauthorization</p><p><b>patient</b>: <a href=\"Patient-sa-example-patient.html\">Aroha Parata (official) (no stated gender), DoB: 1968-03-14 ( https://standards.digital.health.nz/ns/nhi-id#NHI#ZZZ0016 (use: official))</a></p><p><b>created</b>: 2026-10-14 10:35:07+1300</p><p><b>insurer</b>: Health New Zealand | Te Whatu Ora</p><p><b>requestor</b>: <a href=\"Practitioner-sa-example-applicant.html\">Jane Smith (official) (https://standards.digital.health.nz/ns/hpi-person-id#HPIProvider#99ZZZZ (use: official))</a></p><p><b>request</b>: Identifier: <a href=\"NamingSystem-sa-application-number.html\" title=\"Special Authority Application Number allocated by the special-authority-application-service. The only identifier carried on Claim.identifier (D23).\">SAApplicationNumber</a>/000123456</p><p><b>outcome</b>: Processing Complete</p><p><b>disposition</b>: Application approved</p><p><b>preAuthRef</b>: 26SA0004567</p><p><b>preAuthPeriod</b>: 2026-10-14 --&gt; 2027-10-14</p></div>"
  ] ;
  fhir:DomainResource.extension [
     fhir:index 0 ;
     fhir:Element.extension [
       fhir:index 0 ;
       fhir:Extension.url [ fhir:value "status" ] ;
       fhir:Extension.valueCode [ fhir:value "DONE" ]
     ], [
       fhir:index 1 ;
       fhir:Extension.url [ fhir:value "outcome" ] ;
       fhir:Extension.valueCode [ fhir:value "APPROVED" ]
     ] ;
     fhir:Extension.url [ fhir:value "https://fhir-ig.digital.health.nz/special-authority/StructureDefinition/application-status" ]
  ] ;
  fhir:ClaimResponse.identifier [
     fhir:index 0 ;
     fhir:Identifier.system [ fhir:value "https://fhir-ig.digital.health.nz/special-authority/ns/approval-number" ] ;
     fhir:Identifier.value [ fhir:value "26SA0004567" ]
  ] ;
  fhir:ClaimResponse.status [ fhir:value "active"] ;
  fhir:ClaimResponse.type [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/claim-type" ] ;
       fhir:Coding.code [ fhir:value "pharmacy" ]
     ]
  ] ;
  fhir:ClaimResponse.use [ fhir:value "preauthorization"] ;
  fhir:ClaimResponse.patient [
     fhir:link <https://fhir-ig.digital.health.nz/special-authority/Patient/sa-example-patient> ;
     fhir:Reference.reference [ fhir:value "Patient/sa-example-patient" ]
  ] ;
  fhir:ClaimResponse.created [ fhir:value "2026-10-14T10:35:07+13:00"^^xsd:dateTime] ;
  fhir:ClaimResponse.insurer [
     fhir:Reference.display [ fhir:value "Health New Zealand | Te Whatu Ora" ]
  ] ;
  fhir:ClaimResponse.requestor [
     fhir:link <https://fhir-ig.digital.health.nz/special-authority/Practitioner/sa-example-applicant> ;
     fhir:Reference.reference [ fhir:value "Practitioner/sa-example-applicant" ]
  ] ;
  fhir:ClaimResponse.request [
     fhir:Reference.identifier [
       fhir:Identifier.system [ fhir:value "https://fhir-ig.digital.health.nz/special-authority/ns/application-number" ] ;
       fhir:Identifier.value [ fhir:value "000123456" ]
     ]
  ] ;
  fhir:ClaimResponse.outcome [ fhir:value "complete"] ;
  fhir:ClaimResponse.disposition [ fhir:value "Application approved"] ;
  fhir:ClaimResponse.preAuthRef [ fhir:value "26SA0004567"] ;
  fhir:ClaimResponse.preAuthPeriod [
     fhir:Period.start [ fhir:value "2026-10-14"^^xsd:date ] ;
     fhir:Period.end [ fhir:value "2027-10-14"^^xsd:date ]
  ] .

# - ontology header ------------------------------------------------------------

<https://fhir-ig.digital.health.nz/special-authority/ClaimResponse/sa-example-cr-approved.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

