@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/Immunization/immunisation-update-response-message-meta-tag> a fhir:Immunization ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "immunisation-update-response-message-meta-tag"] ;
  fhir:Resource.meta [
     fhir:Element.extension [
       fhir:index 0 ;
       fhir:Extension.url [ fhir:value "https://standards.digital.health.nz/fhir/air/StructureDefinition/air-created-source-system" ] ;
       fhir:Extension.valueString [ fhir:value "HSAPP0010" ]
     ], [
       fhir:index 1 ;
       fhir:Extension.url [ fhir:value "https://standards.digital.health.nz/fhir/air/StructureDefinition/air-created-by" ] ;
       fhir:Extension.valueString [ fhir:value "user" ]
     ], [
       fhir:index 2 ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/firstCreated" ] ;
       fhir:Extension.valueInstant [ fhir:value "2026-03-31T01:29:49.597+00:00"^^xsd:dateTime ]
     ], [
       fhir:index 3 ;
       fhir:Extension.url [ fhir:value "https://standards.digital.health.nz/fhir/air/StructureDefinition/air-modified-by" ] ;
       fhir:Extension.valueString [ fhir:value "user" ]
     ], [
       fhir:index 4 ;
       fhir:Extension.url [ fhir:value "https://standards.digital.health.nz/fhir/air/StructureDefinition/air-modified-source-system" ] ;
       fhir:Extension.valueString [ fhir:value "HSAPP0010" ]
     ], [
       fhir:index 5 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "dqScore" ] ;
         fhir:Extension.valueInteger [ fhir:value "100"^^xsd:integer ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "dqLastUpdated" ] ;
         fhir:Extension.valueDateTime [ fhir:value "2026-03-31T01:32:08.270+00:00"^^xsd:dateTime ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "dqStatus" ] ;
         fhir:Extension.valueString [ fhir:value "P" ]
       ] ;
       fhir:Extension.url [ fhir:value "https://standards.digital.health.nz/fhir/air/StructureDefinition/air-data-quality-assessment" ]
     ], [
       fhir:index 6 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Element.extension [
           fhir:index 0 ;
           fhir:Extension.url [ fhir:value "plannedEventId" ] ;
           fhir:Extension.valueString [ fhir:value "00513eb7-7d2a-495a-b3aa-c361b3f923a2" ]
         ], [
           fhir:index 1 ;
           fhir:Extension.url [ fhir:value "matchedDate" ] ;
           fhir:Extension.valueDateTime [ fhir:value "2026-03-31T01:32:08.369+00:00"^^xsd:dateTime ]
         ], [
           fhir:index 2 ;
           fhir:Extension.url [ fhir:value "matchedBy" ] ;
           fhir:Extension.valueString [ fhir:value "user" ]
         ], [
           fhir:index 3 ;
           fhir:Extension.url [ fhir:value "matchedReason" ] ;
           fhir:Extension.valueCoding [
             fhir:Coding.code [ fhir:value "302" ] ;
             fhir:Coding.display [ fhir:value "Automatically matched by dose and indication" ]
           ]
         ] ;
         fhir:Extension.url [ fhir:value "match" ]
       ] ;
       fhir:Extension.url [ fhir:value "https://standards.digital.health.nz/fhir/air/StructureDefinition/air-planned-event-match" ]
     ] ;
     fhir:Meta.versionId [ fhir:value "2" ] ;
     fhir:Meta.lastUpdated [ fhir:value "2026-03-31T01:32:08.126+00:00"^^xsd:dateTime ] ;
     fhir:Meta.profile [
       fhir:value "https://standards.digital.health.nz/fhir/air/StructureDefinition/air-immunization" ;
       fhir:index 0 ;
       fhir:link <https://standards.digital.health.nz/fhir/air/StructureDefinition/air-immunization>
     ] ;
     fhir:Meta.tag [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "https://standards.digital.health.nz/ns/air-processing-terms" ] ;
       fhir:Coding.code [ fhir:value "identifier-not-updated" ] ;
       fhir:Coding.display [ fhir:value "Patient identifier not updated - identifier is immutable for this operation" ]
     ]
  ] ;
  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: Immunization immunisation-update-response-message-meta-tag</b></p><a name=\"immunisation-update-response-message-meta-tag\"> </a><a name=\"hcimmunisation-update-response-message-meta-tag\"> </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: 2; Last updated: 2026-03-31 01:32:08+0000</p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-air-immunization.html\">AIR Immunization</a></p><p style=\"margin-bottom: 0px\">Tag: <a href=\"CodeSystem-air-processing-terms.html\">Patient identifier not updated - identifier is immutable for this operation (Details: AIR Processing Terms code identifier-not-updated = 'Patient identifier not updated - identifier is immutable for this operation')</a></p></div><blockquote><p><b>AIR Age Given Extension</b></p><ul><li>years: 0</li><li>months: 1</li><li>days: 14</li><li>daysSinceBirth: 45</li><li>precision: DAY</li></ul></blockquote><p><b>status</b>: Completed</p><p><b>statusReason</b>: <span title=\"Codes:{https://standards.digital.health.nz/ns/air-status-reason-terms GIVEN}\">Vaccination given</span></p><p><b>vaccineCode</b>: <span title=\"Codes:{http://hl7.org/fhir/sid/cvx 119}\">RV1</span></p><p><b>patient</b>: <a href=\"https://simplifier.net/resolve?scope=fhir.org.nz.ig.base@2.0.0&amp;canonical=https://api.hip.digital.health.nz/fhir/nhi/v1/Patient/ZGY9681\">https://api.hip.digital.health.nz/fhir/nhi/v1/Patient/ZGY9681</a></p><p><b>occurrence</b>: 2024-03-02 00:00:00+0000</p><p><b>location</b>: <a href=\"https://simplifier.net/resolve?scope=fhir.org.nz.ig.base@2.0.0&amp;canonical=https://api.hip.digital.health.nz/fhir/hpi/v1/Location/FZZ835-E\">https://api.hip.digital.health.nz/fhir/hpi/v1/Location/FZZ835-E</a></p><p><b>lotNumber</b>: RV1-001</p><p><b>expirationDate</b>: 2026-01-31</p><p><b>route</b>: <span title=\"Codes:{https://standards.digital.health.nz/ns/air-terms-code PO}\">Oral</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=\"https://simplifier.net/resolve?scope=fhir.org.nz.ig.base@2.0.0&amp;canonical=https://api.hip.digital.health.nz/fhir/hpi/v1/Practitioner/92ZZRR\">https://api.hip.digital.health.nz/fhir/hpi/v1/Practitioner/92ZZRR</a></td></tr></table><p><b>reasonCode</b>: <span title=\"Codes:{https://standards.digital.health.nz/ns/air-terms-code 6W}\">6 weeks</span></p><h3>ProtocolApplieds</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>TargetDisease</b></td><td><b>DoseNumber[x]</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{http://snomed.info/sct 18624000}\">Rotavirus</span></td><td>1</td></tr></table></div>"
  ] ;
  fhir:DomainResource.extension [
     fhir:index 0 ;
     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 "1"^^xsd:integer ]
     ], [
       fhir:index 2 ;
       fhir:Extension.url [ fhir:value "days" ] ;
       fhir:Extension.valueInteger [ fhir:value "14"^^xsd:integer ]
     ], [
       fhir:index 3 ;
       fhir:Extension.url [ fhir:value "daysSinceBirth" ] ;
       fhir:Extension.valueInteger [ fhir:value "45"^^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 ;
       fhir:Coding.system [ fhir:value "https://standards.digital.health.nz/ns/air-status-reason-terms" ] ;
       fhir:Coding.code [ fhir:value "GIVEN" ] ;
       fhir:Coding.display [ fhir:value "Vaccination given" ]
     ]
  ] ;
  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 "119" ] ;
       fhir:Coding.display [ fhir:value "RV1" ]
     ] ;
     fhir:CodeableConcept.text [ fhir:value "RV1" ]
  ] ;
  fhir:Immunization.patient [
     fhir:link <https://api.hip.digital.health.nz/fhir/nhi/v1/Patient/ZGY9681> ;
     fhir:Reference.reference [ fhir:value "https://api.hip.digital.health.nz/fhir/nhi/v1/Patient/ZGY9681" ] ;
     fhir:Reference.identifier [
       fhir:Identifier.system [ fhir:value "https://standards.digital.health.nz/ns/nhi-id" ] ;
       fhir:Identifier.value [ fhir:value "ZGY9681" ]
     ]
  ] ;
  fhir:Immunization.occurrenceDateTime [ fhir:value "2024-03-02T00:00:00+00:00"^^xsd:dateTime] ;
  fhir:Immunization.location [
     fhir:link <https://api.hip.digital.health.nz/fhir/hpi/v1/Location/FZZ835-E> ;
     fhir:Reference.reference [ fhir:value "https://api.hip.digital.health.nz/fhir/hpi/v1/Location/FZZ835-E" ] ;
     fhir:Reference.identifier [
       fhir:Identifier.system [ fhir:value "https://standards.digital.health.nz/ns/hpi-facility-id" ] ;
       fhir:Identifier.value [ fhir:value "FZZ835-E" ]
     ]
  ] ;
  fhir:Immunization.lotNumber [ fhir:value "RV1-001"] ;
  fhir:Immunization.expirationDate [ fhir:value "2026-01-31"^^xsd:date] ;
  fhir:Immunization.route [
     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 "PO" ] ;
       fhir:Coding.display [ fhir:value "Oral" ]
     ]
  ] ;
  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:Coding.display [ fhir:value "Vaccinator" ]
       ]
     ] ;
     fhir:Immunization.performer.actor [
       fhir:link <https://api.hip.digital.health.nz/fhir/hpi/v1/Practitioner/92ZZRR> ;
       fhir:Reference.reference [ fhir:value "https://api.hip.digital.health.nz/fhir/hpi/v1/Practitioner/92ZZRR" ] ;
       fhir:Reference.identifier [
         fhir:Identifier.system [ fhir:value "https://standards.digital.health.nz/ns/hpi-person-id" ] ;
         fhir:Identifier.value [ fhir:value "92ZZRR" ]
       ]
     ]
  ] ;
  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 "6W" ] ;
       fhir:Coding.display [ fhir:value "6 weeks" ]
     ]
  ] ;
  fhir:Immunization.protocolApplied [
     fhir:index 0 ;
     fhir:Immunization.protocolApplied.targetDisease [
       fhir:index 0 ;
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         a sct:18624000 ;
         fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
         fhir:Coding.code [ fhir:value "18624000" ] ;
         fhir:Coding.display [ fhir:value "Rotavirus" ]
       ]
     ] ;
     fhir:Immunization.protocolApplied.doseNumberPositiveInt [ fhir:value "1"^^xsd:positiveInteger ]
  ] .

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

<https://standards.digital.health.nz/fhir/air/Immunization/immunisation-update-response-message-meta-tag.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

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

