@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 sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<https://standards.digital.health.nz/fhir/air/Bundle/82020190> a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "82020190"] ;
  fhir:Resource.meta [
     fhir:Meta.tag [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-ProcessingID" ] ;
       fhir:Coding.code [ fhir:value "P" ]
     ]
  ] ;
  fhir:Bundle.type [ fhir:value "message"] ;
  fhir:Bundle.timestamp [ fhir:value "2023-05-14T11:15:33+10:00"^^xsd:dateTime] ;
  fhir:Bundle.entry [
     fhir:index 0 ;
     fhir:Bundle.entry.fullUrl [ fhir:value "https://air.api-dev.digital.health.nz/fhir/R48182fbd6-c7a5-43a4-bbfc-b1443e493ca39" ] ;
     fhir:Bundle.entry.resource <https://air.api-dev.digital.health.nz/fhir/R48182fbd6-c7a5-43a4-bbfc-b1443e493ca39>
  ], [
     fhir:index 1 ;
     fhir:Bundle.entry.fullUrl [ fhir:value "https://air.api-test.digital.health.nz/fhir/R4/Immunization/IMM-ABCDE" ] ;
     fhir:Bundle.entry.resource <https://air.api-test.digital.health.nz/fhir/R4/Immunization/IMM-ABCDE>
  ] .

<https://air.api-dev.digital.health.nz/fhir/R48182fbd6-c7a5-43a4-bbfc-b1443e493ca39> a fhir:MessageHeader ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "extensions" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"MessageHeader_null\"> </a><p class=\"res-header-id\"><b>Generated Narrative: MessageHeader </b></p><p><b>Air Immunisation Notification Action</b>: [not stated]: RESEND (RESEND)</p><p><b>event</b>: <a href=\"CodeSystem-air-event-type-1.0.html#air-event-type-1.0-IMMUNISATION_UPDATE\">AIR Event Type: IMMUNISATION_UPDATE</a> (Immunisation Update Request)</p><h3>Destinations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Name</b></td></tr><tr><td style=\"display: none\">*</td><td>FZZ968-B</td></tr></table><h3>Sources</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Software</b></td><td><b>Endpoint</b></td></tr><tr><td style=\"display: none\">*</td><td>HSAP4444</td><td><a href=\"https://simplifier.net/resolve?scope=fhir.org.nz.ig.base@2.0.0&amp;canonical=http://fhir.org.nz/ig/base/{immsot-base-address}/$process-messages\">{immsot-base-address}/$process-messages</a></td></tr></table><p><b>focus</b>: <a href=\"Bundle-72178030.html#https-//air.api-test.digital.health.nz/fhir/R4/Immunization/IMM-ABCDE\">Immunization: extension = ,; status = completed; statusReason = Active or passive immunisation; vaccineCode = MMR; occurrence[x] = 2016-09-01 16:45:46+1300; site = Structure of left deltoid muscle; route = Intramuscular route; reasonCode = 12 months</a></p></div>"
  ] ;
  fhir:DomainResource.extension [
     fhir:index 0 ;
     fhir:Extension.url [ fhir:value "http://hl7.org.nz/fhir/StructureDefinition/air-immunisation-notification-action" ] ;
     fhir:Extension.valueCoding [
       fhir:Coding.code [ fhir:value "RESEND" ]
     ]
  ] ;
  fhir:MessageHeader.eventCoding [
     fhir:Coding.system [ fhir:value "https://standards.digital.health.nz/ns/air-event-type" ] ;
     fhir:Coding.code [ fhir:value "IMMUNISATION_UPDATE" ]
  ] ;
  fhir:MessageHeader.destination [
     fhir:index 0 ;
     fhir:MessageHeader.destination.name [ fhir:value "FZZ968-B" ]
  ] ;
  fhir:MessageHeader.source [
     fhir:MessageHeader.source.software [ fhir:value "HSAP4444" ] ;
     fhir:MessageHeader.source.endpoint [ fhir:value "{immsot-base-address}/$process-messages" ]
  ] ;
  fhir:MessageHeader.focus [
     fhir:index 0 ;
     fhir:link <https://air.api-test.digital.health.nz/fhir/R4/Immunization/IMM-ABCDE> ;
     fhir:Reference.reference [ fhir:value "https://air.api-test.digital.health.nz/fhir/R4/Immunization/IMM-ABCDE" ]
  ] .

<https://air.api-test.digital.health.nz/fhir/R4/Immunization/IMM-ABCDE> a fhir:Immunization ;
  fhir:Resource.id [ fhir:value "b868b73d-ef57-4480-85de-ac012a1ee1a9"] ;
  fhir:Resource.meta [
     fhir:Meta.versionId [ fhir:value "null" ] ;
     fhir:Meta.lastUpdated [ fhir:value "2023-03-01T16:45:46.781+13:00"^^xsd:dateTime ] ;
     fhir:Meta.profile [
       fhir:value "https://standards.digital.health.nz/fhir/air/StructureDefinition/orch-immunization" ;
       fhir:index 0 ;
       fhir:link <https://standards.digital.health.nz/fhir/air/StructureDefinition/orch-immunization>
     ]
  ] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "extensions" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Immunization_b868b73d-ef57-4480-85de-ac012a1ee1a9\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Immunization b868b73d-ef57-4480-85de-ac012a1ee1a9</b></p><a name=\"b868b73d-ef57-4480-85de-ac012a1ee1a9\"> </a><a name=\"hcb868b73d-ef57-4480-85de-ac012a1ee1a9\"> </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\">version: null; Last updated: 2023-03-01 16:45:46+1300</p><p style=\"margin-bottom: 0px\">Profile: <a href=\"https://simplifier.net/resolve?scope=fhir.org.nz.ig.base@2.0.0&amp;canonical=https://standards.digital.health.nz/fhir/air/StructureDefinition/orch-immunization\">https://standards.digital.health.nz/fhir/air/StructureDefinition/orch-immunization</a></p></div><blockquote><p><b>Immunization Diluent</b></p><ul><li>diluentLotNumber: 33332222</li><li>diluentExpiryDate: 2026-01-01</li></ul></blockquote><blockquote><p><b>AIR Age Given Extension</b></p><ul><li>years: 0</li><li>months: 11</li><li>days: 20</li><li>daysSinceBirth: 355</li><li>precision: Day</li></ul></blockquote><p><b>status</b>: Completed</p><p><b>statusReason</b>: <span title=\"Codes:{http://snomed.info/sct 127785005}\">Active or passive immunisation</span></p><p><b>vaccineCode</b>: <span title=\"Codes:{http://hl7.org/fhir/sid/cvx 03}\">MMR</span></p><p><b>patient</b>: <a href=\"Bundle-AIRBundleOrchestrationExample.html#https-//api.hip.digital.health.nz/fhir/nhi/v1/Patient/ZAA0792\">BABY OF TESTING NEWMUM  Female, DoB: 2015-09-09 ( https://standards.digital.health.nz/ns/nhi-id#NHI#ZAA0792 (use: official, ))</a></p><p><b>occurrence</b>: 2016-09-01 16:45:46+1300</p><p><b>location</b>: <a href=\"Bundle-AIRBundleOrchestrationExample.html#https-//api.hip.digital.health.nz/fhir/hpi/v1/Location/FZZ958-K\">Location Medical Centre Flat-Unit</a></p><p><b>site</b>: <span title=\"Codes:{http://snomed.info/sct 16217701000119102}\">Structure of left deltoid muscle</span></p><p><b>route</b>: <span title=\"Codes:{http://snomed.info/sct 78421000}\">Intramuscular route</span></p><h3>Performers</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Function</b></td><td><b>Actor</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{https://standards.digital.health.nz/ns/air-terms-code VC}\">Vaccinator</span></td><td><a href=\"Bundle-AIRBundleOrchestrationExample.html#https-//api.hip.digital.health.nz/fhir/hpi/v1/Practitioner/90ZZLP\">Practitioner: identifier = https://standards.digital.health.nz/ns/hpi-person-id#HPIProvider#90ZZLP (use: official, )</a></td></tr></table><p><b>reasonCode</b>: <span title=\"Codes:{https://standards.digital.health.nz/ns/air-terms-code 12M}\">12 months</span></p><h3>ProtocolApplieds</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>DoseNumber[x]</b></td></tr><tr><td style=\"display: none\">*</td><td>1</td></tr></table></div>"
  ] ;
  fhir:DomainResource.extension [
     fhir:index 0 ;
     fhir:Element.extension [
       fhir:index 0 ;
       fhir:Extension.url [ fhir:value "diluentLotNumber" ] ;
       fhir:Extension.valueString [ fhir:value "33332222" ]
     ], [
       fhir:index 1 ;
       fhir:Extension.url [ fhir:value "diluentExpiryDate" ] ;
       fhir:Extension.valueDate [ fhir:value "2026-01-01"^^xsd:date ]
     ] ;
     fhir:Extension.url [ fhir:value "https://standards.digital.health.nz/fhir/air/StructureDefinition/air-diluent" ]
  ], [
     fhir:index 1 ;
     fhir:Element.extension [
       fhir:index 0 ;
       fhir:Extension.url [ fhir:value "years" ] ;
       fhir:Extension.valueInteger [ fhir:value "0"^^xsd:integer ]
     ], [
       fhir:index 1 ;
       fhir:Extension.url [ fhir:value "months" ] ;
       fhir:Extension.valueInteger [ fhir:value "11"^^xsd:integer ]
     ], [
       fhir:index 2 ;
       fhir:Extension.url [ fhir:value "days" ] ;
       fhir:Extension.valueInteger [ fhir:value "20"^^xsd:integer ]
     ], [
       fhir:index 3 ;
       fhir:Extension.url [ fhir:value "daysSinceBirth" ] ;
       fhir:Extension.valueInteger [ fhir:value "355"^^xsd:integer ]
     ], [
       fhir:index 4 ;
       fhir:Extension.url [ fhir:value "precision" ] ;
       fhir:Extension.valueString [ fhir:value "Day" ]
     ] ;
     fhir:Extension.url [ fhir:value "https://standards.digital.health.nz/fhir/air/StructureDefinition/air-age-given" ]
  ] ;
  fhir:Immunization.status [ fhir:value "completed"] ;
  fhir:Immunization.statusReason [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       a sct:127785005 ;
       fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
       fhir:Coding.code [ fhir:value "127785005" ] ;
       fhir:Coding.display [ fhir:value "Active or passive immunisation" ]
     ]
  ] ;
  fhir:Immunization.vaccineCode [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "http://hl7.org/fhir/sid/cvx" ] ;
       fhir:Coding.code [ fhir:value "03" ] ;
       fhir:Coding.display [ fhir:value "MMR" ]
     ]
  ] ;
  fhir:Immunization.patient [
     fhir:link <https://api.hip.digital.health.nz/fhir/nhi/v1/Patient/ZAA0792> ;
     fhir:Reference.reference [ fhir:value "https://api.hip.digital.health.nz/fhir/nhi/v1/Patient/ZAA0792" ]
  ] ;
  fhir:Immunization.occurrenceDateTime [ fhir:value "2016-09-01T16:45:46+13:00"^^xsd:dateTime] ;
  fhir:Immunization.location [
     fhir:link <https://api.hip.digital.health.nz/fhir/hpi/v1/Location/FZZ958-K> ;
     fhir:Reference.reference [ fhir:value "https://api.hip.digital.health.nz/fhir/hpi/v1/Location/FZZ958-K" ]
  ] ;
  fhir:Immunization.site [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       a sct:16217701000119102 ;
       fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
       fhir:Coding.code [ fhir:value "16217701000119102" ] ;
       fhir:Coding.display [ fhir:value "Structure of left deltoid muscle" ]
     ]
  ] ;
  fhir:Immunization.route [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       a sct:78421000 ;
       fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
       fhir:Coding.code [ fhir:value "78421000" ] ;
       fhir:Coding.display [ fhir:value "Intramuscular route" ]
     ]
  ] ;
  fhir:Immunization.performer [
     fhir:index 0 ;
     fhir:Immunization.performer.function [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "https://standards.digital.health.nz/ns/air-terms-code" ] ;
         fhir:Coding.code [ fhir:value "VC" ]
       ]
     ] ;
     fhir:Immunization.performer.actor [
       fhir:link <https://api.hip.digital.health.nz/fhir/hpi/v1/Practitioner/90ZZLP> ;
       fhir:Reference.reference [ fhir:value "https://api.hip.digital.health.nz/fhir/hpi/v1/Practitioner/90ZZLP" ]
     ]
  ] ;
  fhir:Immunization.reasonCode [
     fhir:index 0 ;
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "https://standards.digital.health.nz/ns/air-terms-code" ] ;
       fhir:Coding.code [ fhir:value "12M" ] ;
       fhir:Coding.display [ fhir:value "12 months" ]
     ]
  ] ;
  fhir:Immunization.protocolApplied [
     fhir:index 0 ;
     fhir:Immunization.protocolApplied.doseNumberPositiveInt [ fhir:value "1"^^xsd:positiveInteger ]
  ] .

# - ontology header ------------------------------------------------------------

<https://standards.digital.health.nz/fhir/air/Bundle/82020190.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

