IMMZD1
type: StructureDefinition
node role: treeRoot
id:
  v: IMMZD1
meta:
  profile:
    v: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablestructuredefinition
    l: crmi-shareablestructuredefinition
  profile:
    v: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablestructuredefinition
    l: crmi-publishablestructuredefinition
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition IMMZD1 Profiles: CRMI Shareable StructureDefinition, CRMI Publishable StructureDefinition Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> IMMZD1 0..* Base IMMZ.D1.Capture or update client history #xD; patient 1..1 Reference() Patient #xD; birthDose <a style="padding-left: 3px; padding-right: 3px; border: 1px maroon solid; font-weight: bold; color: #301212; background-color: #fdf4f4;; padding-left: 3px; padding-right: 3px; border: 1px maroon solid; font-weight: bold; color: #301212; background-color: #fdf4f4;" href="http://hl7.org/fhir/R4/conformance-rules.html#constraints" title="This element has or is affected by constraints ( IMMZ-D-reqVType-1 )">C 0..1 boolean Birth dose Constraints: IMMZ-D-reqVType-1 #xD; typeOfDose 1..1 Coding Type of dose Binding: IMMZ.D.DE258 ValueSet for Type of dose (required) #xD; completedThePrimaryVaccinationSeries 0..1 boolean Completed the primary vaccination series #xD; completedTheBoosterSeries 0..1 boolean Completed the booster series #xD; dateWhenPrimaryVaccinationSeriesWasCompleted <a style="padding-left: 3px; padding-right: 3px; border: 1px maroon solid; font-weight: bold; color: #301212; background-color: #fdf4f4;; padding-left: 3px; padding-right: 3px; border: 1px maroon solid; font-weight: bold; color: #301212; background-color: #fdf4f4;" href="http://hl7.org/fhir/R4/conformance-rules.html#constraints" title="This element has or is affected by constraints ( IMMZ-D-reqPrimaryCompleted-1, IMMZ-D-dateOccurred-1 )">C 0..1 date Date when primary vaccination series was completed Constraints: IMMZ-D-reqPrimaryCompleted-1, IMMZ-D-dateOccurred-1 #xD; hivStatus 0..1 Coding HIV status Binding: IMMZ.D.DE204 ValueSet for HIV status (required) #xD; pretermBirth 0..1 boolean Preterm birth #xD; immunocompromised 0..1 boolean Immunocompromised #xD; currentlyOnArt <a style="padding-left: 3px; padding-right: 3px; border: 1px maroon solid; f…
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability
    l: cqf-knowledgeCapability
  value: Code
    v: shareable
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/artifact-versionAlgorithm
    l: artifact-versionAlgorithm
  value: Coding
    system:
      v: http://hl7.org/fhir/version-algorithm
      l: version-algorithm
    code:
      v: semver
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/artifact-versionPolicy
    l: artifact-versionPolicy
  value: CodeableConcept
    coding:
      system:
        v: http://terminology.hl7.org/CodeSystem/artifact-version-policy-codes
        l: artifact-version-policy-codes
      code:
        v: metadata
url:
  v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
  l: IMMZD1
version:
  v: 1.0.0
name:
  v: IMMZ_D1_Capture_or_update_client_history
title:
  v: IMMZ.D1.Capture or update client history
status:
  v: active
experimental:
  v: false
date:
  v: 2025-01-10
publisher:
  v: WHO
contact:
  name:
    v: WHO
  telecom:
    system:
      v: url
    value:
      v: http://who.int
description:
  v: Data elements for the IMMZ.D1.Capture or update client history Data Dictionary Activity.
fhir version:
  v: 4.0.1
mapping:
  identity:
    v: IMMZD1.to.Observation
  uri:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZObservation
    l: IMMZObservation
  name:
    v: Mapping from the IMMZ.D1 to the IMMZObservation profile
mapping:
  identity:
    v: IMMZD1.to.Immunization
  uri:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZImmunization
    l: IMMZImmunization
  name:
    v: Mapping from the IMMZ.D1 to the IMMZImmunization profile
kind:
  v: logical
abstract:
  v: false
type:
  v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
  l: IMMZD1
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Base
  l: Base
derivation:
  v: specialization
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
      l: snapshot-base-version
    value: String
      v: 4.0.1
  element:
    id:
      v: IMMZD1
    path:
      v: IMMZD1
    short:
      v: IMMZ.D1.Capture or update client history
    definition:
      v: Data elements for the IMMZ.D1.Capture or update client history Data Dictionary Activity.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Base
      min:
        v: 0
      max:
        v: *
    is modifier:
      v: false
    mapping:
      identity:
        v: IMMZD1.to.Observation
      map:
        v: Observation
    mapping:
      identity:
        v: IMMZD1.to.Immunization
      map:
        v: Immunization
  element:
    id:
      v: IMMZD1.patient
    path:
      v: IMMZD1.patient
    short:
      v: Patient
    definition:
      v: The patient.
    min:
      v: 1
    max:
      v: 1
    base:
      path:
        v: IMMZD1.patient
      min:
        v: 1
      max:
        v: 1
    type:
      code:
        v: Reference
        l: Reference
    mapping:
      identity:
        v: IMMZD1.to.Observation
      map:
        v: Observation.subject
    mapping:
      identity:
        v: IMMZD1.to.Immunization
      map:
        v: Immunization.patient
  element:
    id:
      v: IMMZD1.birthDose
    path:
      v: IMMZD1.birthDose
    code:
      system:
        v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
        l: IMMZ.D
      code:
        v: DE263
    short:
      v: Birth dose
    definition:
      v: Indicates if the client received a dose within 24 hours of birth. Whether a birth dose is counted as part of the primary series will depend on the antigen
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: IMMZD1.birthDose
      min:
        v: 0
      max:
        v: 1
    type:
      code:
        v: boolean
        l: boolean

key:
  v: IMMZ-D-reqVType-1
severity:
  v: error
human:
  v: Required if input in IMMZ.D.DE19 vaccine type is Hepatitis B-containing vaccines OR Poliovirus-containing vaccines.
expression:
  v: (%resource.vaccineType.value != 'DE6' and %resource.vaccineType.value != 'DE14') or $this.exists()
source:
  v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
  l: IMMZD1

identity:
  v: IMMZD1.to.Observation
map:
  v: Observation.valueBoolean

id:
  v: IMMZD1.typeOfDose
path:
  v: IMMZD1.typeOfDose
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE258
short:
  v: Type of dose
definition:
  v: The type of dose in a series that the client received
min:
  v: 1
max:
  v: 1
base:
  path:
    v: IMMZD1.typeOfDose
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: http://smart.who.int/immunizations/ValueSet/IMMZ.D.DE258
    l: IMMZ.D.DE258
mapping:
  identity:
    v: IMMZD1.to.Immunization
  map:
    v: Immunization.protocolApplied.series

id:
  v: IMMZD1.completedThePrimaryVaccinationSeries
path:
  v: IMMZD1.completedThePrimaryVaccinationSeries
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE203
short:
  v: Completed the primary vaccination series
definition:
  v: Indicates if the client has completed the primary vaccination series of a product/antigen. If the client has not yet completed their primary series, it means they may be expected to receive more doses to complete their vaccination regimen for the respective product/antigen
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IMMZD1.completedThePrimaryVaccinationSeries
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
mapping:
  identity:
    v: IMMZD1.to.Observation
  map:
    v: Observation.valueBoolean

id:
  v: IMMZD1.completedTheBoosterSeries
path:
  v: IMMZD1.completedTheBoosterSeries
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE257
short:
  v: Completed the booster series
definition:
  v: Indicates if the client has completed the booster series of a product/antigen
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IMMZD1.completedTheBoosterSeries
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
mapping:
  identity:
    v: IMMZD1.to.Observation
  map:
    v: Observation.valueBoolean

id:
  v: IMMZD1.dateWhenPrimaryVaccinationSeriesWasCompleted
path:
  v: IMMZD1.dateWhenPrimaryVaccinationSeriesWasCompleted
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE242
short:
  v: Date when primary vaccination series was completed
definition:
  v: The date when the client completed the primary vaccination series (per product/antigen)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IMMZD1.dateWhenPrimaryVaccinationSeriesWasCompleted
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: date
    l: date
constraint:
  key:
    v: IMMZ-D-reqPrimaryCompleted-1
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE203 Completed the primary vaccination series is Yes
  expression:
    v: %resource.completedTheBoosterSeries.value = false or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
constraint:
  key:
    v: IMMZ-D-dateOccurred-1
  severity:
    v: error
  human:
    v: Date ≤ current date
  expression:
    v: not($this.exists()) or $this.value <= today()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
mapping:
  identity:
    v: IMMZD1.to.Observation
  map:
    v: Observation.valueDateTime

id:
  v: IMMZD1.hivStatus
path:
  v: IMMZD1.hivStatus
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE204
code: https://loinc.org/rdf/55277-8
  system:
    v: http://loinc.org
    l: loinc.org
  code:
    v: 55277-8
  display:
    v: HIV Status
code: http://snomed.info/id/278977008
  system:
    v: http://snomed.info/sct
    l: sct
  code:
    v: 278977008
  display:
    v: HIV status
short:
  v: HIV status
definition:
  v: The current HIV status of the client
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IMMZD1.hivStatus
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: http://smart.who.int/immunizations/ValueSet/IMMZ.D.DE204
    l: IMMZ.D.DE204
mapping:
  identity:
    v: IMMZD1.to.Observation
  map:
    v: Observation.valueCodeableConcept.coding

id:
  v: IMMZD1.pretermBirth
path:
  v: IMMZD1.pretermBirth
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE208
code:
  system:
    v: http://id.who.int/icd/release/11/mms
    l: mms
  code:
    v: KA21.4
  display:
    v: Preterm newborn
code: https://loinc.org/rdf/76517-2
  system:
    v: http://loinc.org
    l: loinc.org
  code:
    v: 76517-2
  display:
    v: Premature infant
code: http://snomed.info/id/395507008
  system:
    v: http://snomed.info/sct
    l: sct
  code:
    v: 395507008
  display:
    v: Premature infant (finding)
short:
  v: Preterm birth
definition:
  v: The infant was preterm; the mother gave birth to the infant when gestational age was less than 37 weeks
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IMMZD1.pretermBirth
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
mapping:
  identity:
    v: IMMZD1.to.Observation
  map:
    v: Observation.valueBoolean

id:
  v: IMMZD1.immunocompromised
path:
  v: IMMZD1.immunocompromised
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE209
code:
  system:
    v: http://id.who.int/icd/release/11/mms
    l: mms
  code:
    v: 4B4Z
  display:
    v: Diseases of the immune system, unspecified
code: https://loinc.org/rdf/96381-9
  system:
    v: http://loinc.org
    l: loinc.org
  code:
    v: 96381-9
  display:
    v: Immune status
code: http://snomed.info/id/370388006
  system:
    v: http://snomed.info/sct
    l: sct
  code:
    v: 370388006
  display:
    v: Patient immunocompromised (finding)
short:
  v: Immunocompromised
definition:
  v: The client is known to be immunocompromised. This means the client has a weakened immune system and having a reduced ability to fight infections and other diseases
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IMMZD1.immunocompromised
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
mapping:
  identity:
    v: IMMZD1.to.Observation
  map:
    v: Observation.valueBoolean

id:
  v: IMMZD1.currentlyOnArt
path:
  v: IMMZD1.currentlyOnArt
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE210
short:
  v: Currently on ART
definition:
  v: The client is currently receiving antiretroviral therapy (ART)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IMMZD1.currentlyOnArt
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
constraint:
  key:
    v: IMMZ-D-reqHIVPositive-1
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE204 HIV status is HIV-positive
  expression:
    v: %resource.hivStatus.value != 'DE11' or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
mapping:
  identity:
    v: IMMZD1.to.Observation
  map:
    v: Observation.valueBoolean

id:
  v: IMMZD1.typeOfTbInfectionTestPerformed
path:
  v: IMMZD1.typeOfTbInfectionTestPerformed
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE243
short:
  v: Type of TB infection test performed
definition:
  v: The type of tuberculosis (TB) infection test performed
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IMMZD1.typeOfTbInfectionTestPerformed
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Coding
    l: Coding
constraint:
  key:
    v: IMMZ-D-reqVType-2
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE19 vaccine type is BCG vaccines
  expression:
    v: %resource.vaccineType.value != 'DE1' or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
binding:
  strength:
    v: required
  value set:
    v: http://smart.who.int/immunizations/ValueSet/IMMZ.D.DE243
    l: IMMZ.D.DE243
mapping:
  identity:
    v: IMMZD1.to.Observation
  map:
    v: Observation.valueCodeableConcept.coding

id:
  v: IMMZD1.tbInfectionTestResult
path:
  v: IMMZD1.tbInfectionTestResult
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE246
short:
  v: TB infection test result
definition:
  v: Records the result of the TB infection test
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IMMZD1.tbInfectionTestResult
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Coding
    l: Coding
constraint:
  key:
    v: IMMZ-D-reqTBTest-1
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE243 Type of TB infection test performed IS NOT NULL
  expression:
    v: not(%resource.typeOfTbInfectionTestPerformed.exists()) or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
binding:
  strength:
    v: required
  value set:
    v: http://smart.who.int/immunizations/ValueSet/IMMZ.D.DE246
    l: IMMZ.D.DE246
mapping:
  identity:
    v: IMMZD1.to.Observation
  map:
    v: Observation.valueCodeableConcept.coding

id:
  v: IMMZD1.immunologicallyStable
path:
  v: IMMZD1.immunologicallyStable
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE249
short:
  v: Immunologically stable
definition:
  v: The client is living with HIV and is immunologically stable with CD4 count or percentage above a minimum as defined in the HIV guidelines
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IMMZD1.immunologicallyStable
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
constraint:
  key:
    v: IMMZ-D-reqVType-3
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE19 vaccine type is BCG vaccines OR Typhoid vaccines
  expression:
    v: (%resource.vaccineType.value != 'DE1' and %resource.vaccineType.value != 'DE21') or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
mapping:
  identity:
    v: IMMZD1.to.Observation
  map:
    v: Observation.valueBoolean

id:
  v: IMMZD1.clinicallyWell
path:
  v: IMMZD1.clinicallyWell
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE250
short:
  v: Clinically well
definition:
  v: The client is living with HIV and is clinically well, as defined in HIV guidelines and WHO clinical staging
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IMMZD1.clinicallyWell
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
constraint:
  key:
    v: IMMZ-D-reqVType-2
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE19 vaccine type is BCG vaccines
  expression:
    v: %resource.vaccineType.value != 'DE1' or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
mapping:
  identity:
    v: IMMZD1.to.Observation
  map:
    v: Observation.valueBoolean

id:
  v: IMMZD1.birthWeightInGrams
path:
  v: IMMZD1.birthWeightInGrams
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE211
code:
  system:
    v: http://id.who.int/icd/release/11/mms
    l: mms
  code:
    v: KA21
  display:
    v: Disorders of newborn related to short gestation or low birth weight, not elsewhere classified
code: https://loinc.org/rdf/8339-4
  system:
    v: http://loinc.org
    l: loinc.org
  code:
    v: 8339-4
  display:
    v: Birth weight measured
short:
  v: Birth weight in grams
definition:
  v: Represents the client's birth weight value measures in grams
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IMMZD1.birthWeightInGrams
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: decimal
    l: decimal
constraint:
  key:
    v: IMMZ-D-reqVType-4
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE19 vaccine type is BCG vaccines OR Hepatitis B-containing vaccines
  expression:
    v: (%resource.vaccineType.value != 'DE1' and %resource.vaccineType.value != 'DE6') or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
constraint:
  key:
    v: IMMZ-D-reqGTEZero-1
  severity:
    v: error
  human:
    v: Must be positive decimal value greater than or equal to zero (≥0)
  expression:
    v: not($this.exists()) or $this.value >= 0
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
mapping:
  identity:
    v: IMMZD1.to.Observation
  map:
    v: Observation.valueQuantity.value

id:
  v: IMMZD1.typeOfPoliovirusDose
path:
  v: IMMZD1.typeOfPoliovirusDose
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE212
code:
  system:
    v: http://id.who.int/icd/release/11/mms
    l: mms
  code:
    v: XM0N50
  display:
    v: Poliomyelitis vaccines
short:
  v: Type of poliovirus dose
definition:
  v: The type of the poliovirus vaccine dose administered to the client
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IMMZD1.typeOfPoliovirusDose
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Coding
    l: Coding
constraint:
  key:
    v: IMMZ-D-reqVType-5
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE19 vaccine type is Poliovirus-containing vaccines
  expression:
    v: %resource.vaccineType.value != 'DE14' or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
binding:
  strength:
    v: required
  value set:
    v: http://smart.who.int/immunizations/ValueSet/IMMZ.D.DE212
    l: IMMZ.D.DE212
mapping:
  identity:
    v: IMMZD1.to.Immunization
  map:
    v: Immunization.extension[typeOfPolio].valueCodeableConcept.coding

id:
  v: IMMZD1.artStartDate
path:
  v: IMMZD1.artStartDate
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE215
short:
  v: ART start date
definition:
  v: The date on which the client started or restarted ART
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IMMZD1.artStartDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: date
    l: date
constraint:
  key:
    v: IMMZ-D-reqVType-6
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE19 vaccine type is Measles-containing vaccines
  expression:
    v: %resource.vaccineType.value != 'DE9' or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
constraint:
  key:
    v: IMMZ-D-dateOccurred-1
  severity:
    v: error
  human:
    v: Date ≤ current date
  expression:
    v: not($this.exists()) or $this.value <= today()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
mapping:
  identity:
    v: IMMZD1.to.Observation
  map:
    v: Observation.valueDateTime

id:
  v: IMMZD1.highRiskOfPneumococcalInfection
path:
  v: IMMZD1.highRiskOfPneumococcalInfection
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE251
short:
  v: High risk of pneumococcal infection
definition:
  v: The client is at high risk for pneumococcal infection because of underlying medical conditions (i.e. HIV infection or sickle-cell disease)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IMMZD1.highRiskOfPneumococcalInfection
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
constraint:
  key:
    v: IMMZ-D-reqVType-7
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE19 vaccine type is Pneumococcal vaccines
  expression:
    v: %resource.vaccineType.value != 'DE13' or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
mapping:
  identity:
    v: IMMZD1.to.Observation
  map:
    v: Observation.valueBoolean

id:
  v: IMMZD1.typeOfJeDose
path:
  v: IMMZD1.typeOfJeDose
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE216
short:
  v: Type of JE dose
definition:
  v: The type of Japanese encephalitis (JE) vaccine dose administered to the client
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IMMZD1.typeOfJeDose
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Coding
    l: Coding
constraint:
  key:
    v: IMMZ-D-reqVType-8
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE19 vaccine type is JE vaccines
  expression:
    v: %resource.vaccineType.value != 'DE8' or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
binding:
  strength:
    v: required
  value set:
    v: http://smart.who.int/immunizations/ValueSet/IMMZ.D.DE216
    l: IMMZ.D.DE216
mapping:
  identity:
    v: IMMZD1.to.Immunization
  map:
    v: Immunization.extension[typeOfJe].valueCodeableConcept.coding

id:
  v: IMMZD1.typeOfTbeDose
path:
  v: IMMZD1.typeOfTbeDose
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE220
short:
  v: Type of TBE dose
definition:
  v: The type of tick-borne encephalitis (TBE) vaccine dose administered
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IMMZD1.typeOfTbeDose
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Coding
    l: Coding
constraint:
  key:
    v: IMMZ-D-reqVType-9
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE19 vaccine type is TBE vaccines
  expression:
    v: %resource.vaccineType.value != 'DE20' or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
binding:
  strength:
    v: required
  value set:
    v: http://smart.who.int/immunizations/ValueSet/IMMZ.D.DE220
    l: IMMZ.D.DE220
mapping:
  identity:
    v: IMMZD1.to.Immunization
  map:
    v: Immunization.extension[typeOfTbe].valueCodeableConcept.coding

id:
  v: IMMZD1.typeOfTyphoidDose
path:
  v: IMMZD1.typeOfTyphoidDose
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE225
short:
  v: Type of typhoid dose
definition:
  v: The type of typhoid vaccine dose administered to the client
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IMMZD1.typeOfTyphoidDose
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Coding
    l: Coding
constraint:
  key:
    v: IMMZ-D-reqVType-10
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE19 vaccine type is Typhoid vaccines
  expression:
    v: %resource.vaccineType.value != 'DE21' or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
binding:
  strength:
    v: required
  value set:
    v: http://smart.who.int/immunizations/ValueSet/IMMZ.D.DE225
    l: IMMZ.D.DE225
mapping:
  identity:
    v: IMMZD1.to.Immunization
  map:
    v: Immunization.extension[typeOfTyphoid].valueCodeableConcept.coding

id:
  v: IMMZD1.typeOfCholeraDose
path:
  v: IMMZD1.typeOfCholeraDose
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE229
short:
  v: Type of cholera dose
definition:
  v: The type of cholera vaccine dose administered to the client
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IMMZD1.typeOfCholeraDose
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Coding
    l: Coding
constraint:
  key:
    v: IMMZ-D-reqVType-11
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE19 vaccine type is Cholera vaccines
  expression:
    v: %resource.vaccineType.value != 'DE2' or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
binding:
  strength:
    v: required
  value set:
    v: http://smart.who.int/immunizations/ValueSet/IMMZ.D.DE229
    l: IMMZ.D.DE229
mapping:
  identity:
    v: IMMZD1.to.Immunization
  map:
    v: Immunization.extension[typeOfCholera].valueCodeableConcept.coding

id:
  v: IMMZD1.typeOfMeningococcalDose
path:
  v: IMMZD1.typeOfMeningococcalDose
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE232
short:
  v: Type of meningococcal dose
definition:
  v: The type of meningococcal vaccine dose administered to the client
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IMMZD1.typeOfMeningococcalDose
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Coding
    l: Coding
constraint:
  key:
    v: IMMZ-D-reqVType-12
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE19 vaccine type is Meningococcal vaccines
  expression:
    v: %resource.vaccineType.value != 'DE10' or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
binding:
  strength:
    v: required
  value set:
    v: http://smart.who.int/immunizations/ValueSet/IMMZ.D.DE232
    l: IMMZ.D.DE232
mapping:
  identity:
    v: IMMZD1.to.Immunization
  map:
    v: Immunization.extension[typeOfMeningococcal].valueCodeableConcept.coding

id:
  v: IMMZD1.ageInMonthsWhenClientReceivedFirstMeningococcalDose
path:
  v: IMMZD1.ageInMonthsWhenClientReceivedFirstMeningococcalDose
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE236
short:
  v: Age in months when client received first meningococcal dose
definition:
  v: The age in months when client received their first meningococcal dose
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IMMZD1.ageInMonthsWhenClientReceivedFirstMeningococcalDose
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: decimal
    l: decimal
constraint:
  key:
    v: IMMZ-D-reqVType-12
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE19 vaccine type is Meningococcal vaccines
  expression:
    v: %resource.vaccineType.value != 'DE10' or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
constraint:
  key:
    v: IMMZ-D-reqGTEZero-1
  severity:
    v: error
  human:
    v: Must be positive decimal value greater than or equal to zero (≥0)
  expression:
    v: not($this.exists()) or $this.value >= 0
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
mapping:
  identity:
    v: IMMZD1.to.Observation
  map:
    v: Observation.valueQuantity.value

id:
  v: IMMZD1.typeOfHepatitisADose
path:
  v: IMMZD1.typeOfHepatitisADose
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE237
short:
  v: Type of hepatitis A dose
definition:
  v: The type of hepatitis A-containing vaccine dose administered to the client
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IMMZD1.typeOfHepatitisADose
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Coding
    l: Coding
constraint:
  key:
    v: IMMZ-D-reqVType-13
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE19 vaccine type is Hepatitis A-containing vaccines
  expression:
    v: %resource.vaccineType.value != 'DE5' or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
binding:
  strength:
    v: required
  value set:
    v: http://smart.who.int/immunizations/ValueSet/IMMZ.D.DE237
    l: IMMZ.D.DE237
mapping:
  identity:
    v: IMMZD1.to.Immunization
  map:
    v: Immunization.extension[typeOfHepatitisA].valueCodeableConcept.coding

id:
  v: IMMZD1.typeOfHepatitisBDose
path:
  v: IMMZD1.typeOfHepatitisBDose
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE254
short:
  v: Type of hepatitis B dose
definition:
  v: The type of hepatitis B-containing vaccine dose administered to the client
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IMMZD1.typeOfHepatitisBDose
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Coding
    l: Coding
constraint:
  key:
    v: IMMZ-D-reqVType-14
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE6 vaccine type is Hepatitis B-containing vaccines
  expression:
    v: %resource.vaccineType.value != 'DE6' or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
binding:
  strength:
    v: required
  value set:
    v: http://smart.who.int/immunizations/ValueSet/IMMZ.D.DE254
    l: IMMZ.D.DE254
mapping:
  identity:
    v: IMMZD1.to.Immunization
  map:
    v: Immunization.extension[typeOfHepatitisB].valueCodeableConcept.coding

id:
  v: IMMZD1.vnaLevel
path:
  v: IMMZD1.vnaLevel
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE240
short:
  v: VNA level
definition:
  v: Vaccine-induced neutralizing antibody (VNA) level, measured as a serum antibody concentration from the result of the concentrated, purified cell culture-derived and embryonated egg-based rabies vaccines (CCEEV)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IMMZD1.vnaLevel
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: decimal
    l: decimal
constraint:
  key:
    v: IMMZ-D-reqVType-15
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE19 vaccine type is Rabies vaccines
  expression:
    v: %resource.vaccineType.value != 'DE15' or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
mapping:
  identity:
    v: IMMZD1.to.Observation
  map:
    v: Observation.valueQuantity.value

id:
  v: IMMZD1.riskOfOccupationalExposureToRabiesVirus
path:
  v: IMMZD1.riskOfOccupationalExposureToRabiesVirus
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE253
short:
  v: Risk of occupational exposure to rabies virus
definition:
  v: Professional at risk of occupational exposure to rabies virus, particularly animal health workers. Also considered for medical professionals who regularly provide care to persons with rabies
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IMMZD1.riskOfOccupationalExposureToRabiesVirus
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
constraint:
  key:
    v: IMMZ-D-reqVType-15
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE19 vaccine type is Rabies vaccines
  expression:
    v: %resource.vaccineType.value != 'DE15' or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
mapping:
  identity:
    v: IMMZD1.to.Observation
  map:
    v: Observation.valueBoolean

id:
  v: IMMZD1.dengueSerostatus
path:
  v: IMMZD1.dengueSerostatus
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE241
short:
  v: Dengue serostatus
definition:
  v: Indicates the result of a serological test determining whether the client has antibodies against the dengue virus
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IMMZD1.dengueSerostatus
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Coding
    l: Coding
constraint:
  key:
    v: IMMZ-D-reqVType-16
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE19 vaccine type is Dengue vaccines
  expression:
    v: %resource.vaccineType.value != 'DE25' or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
binding:
  strength:
    v: required
  value set:
    v: http://smart.who.int/immunizations/ValueSet/IMMZ.D.DE241
    l: IMMZ.D.DE241
mapping:
  identity:
    v: IMMZD1.to.Observation
  map:
    v: Observation.valueCodeableConcept.coding

id:
  v: IMMZD1.vaccineType
path:
  v: IMMZD1.vaccineType
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE19
code: https://loinc.org/rdf/39236-5
  system:
    v: http://loinc.org
    l: loinc.org
  code:
    v: 39236-5
  display:
    v: Vaccine code (CPT [Current Procedural Terminology]) CPHS (Children's Preventative Health System)
code: http://snomed.info/id/787859002
  system:
    v: http://snomed.info/sct
    l: sct
  code:
    v: 787859002
  display:
    v: Vaccine product (medicinal product)
short:
  v: Vaccine type
definition:
  v: Vaccine type/category that was administered or was to be administered. Any vaccine code available in the IMMZ.Z Vaccine library list of codes applies in this data element
min:
  v: 1
max:
  v: *
base:
  path:
    v: IMMZD1.vaccineType
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: http://smart.who.int/immunizations/ValueSet/IMMZ.Z.VS
    l: IMMZ.Z.VS
mapping:
  identity:
    v: IMMZD1.to.Immunization
  map:
    v: Immunization.vaccineCode

id:
  v: IMMZD1.dateAndTimeOfVaccination
path:
  v: IMMZD1.dateAndTimeOfVaccination
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE20
code: https://loinc.org/rdf/30952-6
  system:
    v: http://loinc.org
    l: loinc.org
  code:
    v: 30952-6
  display:
    v: Date and time of vaccination
short:
  v: Date and time of vaccination
definition:
  v: Represents the visit/encounter date, which is the date and time when each vaccine was administered to the client
min:
  v: 1
max:
  v: 1
base:
  path:
    v: IMMZD1.dateAndTimeOfVaccination
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
mapping:
  identity:
    v: IMMZD1.to.Immunization
  map:
    v: Immunization.occurrenceDateTime

id:
  v: IMMZD1.contactDate
path:
  v: IMMZD1.contactDate
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE201
code: https://loinc.org/rdf/21975-8
  system:
    v: http://loinc.org
    l: loinc.org
  code:
    v: 21975-8
  display:
    v: Date last contact
code: http://snomed.info/id/406543005
  system:
    v: http://snomed.info/sct
    l: sct
  code:
    v: 406543005
  display:
    v: Date of visit
short:
  v: Contact date
definition:
  v: The date and time of the client's contact
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IMMZD1.contactDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
constraint:
  key:
    v: IMMZ-D-dateTimeOccurred-1
  severity:
    v: error
  human:
    v: DateTime ≤ current DateTime
  expression:
    v: not($this.exists()) or $this.value <= now()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
mapping:
  identity:
    v: IMMZD1.to.Observation
  map:
    v: Observation.valueDateTime

id:
  v: IMMZD1.ancContactNumber
path:
  v: IMMZD1.ancContactNumber
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE202
code: https://loinc.org/rdf/75612-2
  system:
    v: http://loinc.org
    l: loinc.org
  code:
    v: 75612-2
  display:
    v: Number of visits to this health-care entity in the last 12 months
code: http://snomed.info/id/3401000175105
  system:
    v: http://snomed.info/sct
    l: sct
  code:
    v: 3401000175105
  display:
    v: Total number of prenatal care visits
short:
  v: ANC contact number
definition:
  v: The antenatal care (ANC) contact or visit number
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IMMZD1.ancContactNumber
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: integer
    l: integer
mapping:
  identity:
    v: IMMZD1.to.Observation
  map:
    v: Observation.valueInteger

id:
  v: IMMZD1.doseNumber
path:
  v: IMMZD1.doseNumber
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE124
short:
  v: Dose number
definition:
  v: Vaccine dose number including dose number within series
min:
  v: 1
max:
  v: 1
base:
  path:
    v: IMMZD1.doseNumber
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: integer
    l: integer
constraint:
  key:
    v: IMMZ-D-reqGTEZero-1
  severity:
    v: error
  human:
    v: Must be positive decimal value greater than or equal to zero (≥0)
  expression:
    v: not($this.exists()) or $this.value >= 0
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
mapping:
  identity:
    v: IMMZD1.to.Immunization
  map:
    v: Immunization.protocolApplied.doseNumberString

element:
  id:
    v: IMMZD1
  path:
    v: IMMZD1
  short:
    v: IMMZ.D1.Capture or update client history
  definition:
    v: Data elements for the IMMZ.D1.Capture or update client history Data Dictionary Activity.
  mapping:
    identity:
      v: IMMZD1.to.Observation
    map:
      v: Observation
  mapping:
    identity:
      v: IMMZD1.to.Immunization
    map:
      v: Immunization
element:
  id:
    v: IMMZD1.patient
  path:
    v: IMMZD1.patient
  short:
    v: Patient
  definition:
    v: The patient.
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: Reference
      l: Reference
  mapping:
    identity:
      v: IMMZD1.to.Observation
    map:
      v: Observation.subject
  mapping:
    identity:
      v: IMMZD1.to.Immunization
    map:
      v: Immunization.patient
element:
  id:
    v: IMMZD1.birthDose
  path:
    v: IMMZD1.birthDose
  code:
    system:
      v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
      l: IMMZ.D
    code:
      v: DE263
  short:
    v: Birth dose
  definition:
    v: Indicates if the client received a dose within 24 hours of birth. Whether a birth dose is counted as part of the primary series will depend on the antigen
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: boolean
      l: boolean
  constraint:
    key:
      v: IMMZ-D-reqVType-1
    severity:
      v: error
    human:
      v: Required if input in IMMZ.D.DE19 vaccine type is Hepatitis B-containing vaccines OR Poliovirus-containing vaccines.
    expression:
      v: (%resource.vaccineType.value != 'DE6' and %resource.vaccineType.value != 'DE14') or $this.exists()
    source:
      v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
      l: IMMZD1
  mapping:
    identity:
      v: IMMZD1.to.Observation
    map:
      v: Observation.valueBoolean
element:
  id:
    v: IMMZD1.typeOfDose
  path:
    v: IMMZD1.typeOfDose
  code:
    system:
      v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
      l: IMMZ.D
    code:
      v: DE258
  short:
    v: Type of dose
  definition:
    v: The type of dose in a series that the client received
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: Coding
      l: Coding
  binding:
    strength:
      v: required
    value set:
      v: http://smart.who.int/immunizations/ValueSet/IMMZ.D.DE258
      l: IMMZ.D.DE258
  mapping:
    identity:
      v: IMMZD1.to.Immunization
    map:
      v: Immunization.protocolApplied.series
element:
  id:
    v: IMMZD1.completedThePrimaryVaccinationSeries
  path:
    v: IMMZD1.completedThePrimaryVaccinationSeries
  code:
    system:
      v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
      l: IMMZ.D
    code:
      v: DE203
  short:
    v: Completed the primary vaccination series
  definition:
    v: Indicates if the client has completed the primary vaccination series of a product/antigen. If the client has not yet completed their primary series, it means they may be expected to receive more doses to complete their vaccination regimen for the respective product/antigen
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: boolean
      l: boolean
  mapping:
    identity:
      v: IMMZD1.to.Observation
    map:
      v: Observation.valueBoolean
element:
  id:
    v: IMMZD1.completedTheBoosterSeries
  path:
    v: IMMZD1.completedTheBoosterSeries
  code:
    system:
      v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
      l: IMMZ.D
    code:
      v: DE257
  short:
    v: Completed the booster series
  definition:
    v: Indicates if the client has completed the booster series of a product/antigen
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: boolean
      l: boolean
  mapping:
    identity:
      v: IMMZD1.to.Observation
    map:
      v: Observation.valueBoolean
element:
  id:
    v: IMMZD1.dateWhenPrimaryVaccinationSeriesWasCompleted
  path:
    v: IMMZD1.dateWhenPrimaryVaccinationSeriesWasCompleted
  code:
    system:
      v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
      l: IMMZ.D
    code:
      v: DE242
  short:
    v: Date when primary vaccination series was completed
  definition:
    v: The date when the client completed the primary vaccination series (per product/antigen)
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: date
      l: date
  constraint:
    key:
      v: IMMZ-D-reqPrimaryCompleted-1

v: error

v: Required if input in IMMZ.D.DE203 Completed the primary vaccination series is Yes

v: %resource.completedTheBoosterSeries.value = false or $this.exists()

key:
  v: IMMZ-D-dateOccurred-1
severity:
  v: error
human:
  v: Date ≤ current date
expression:
  v: not($this.exists()) or $this.value <= today()
source:
  v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
  l: IMMZD1

identity:
  v: IMMZD1.to.Observation
map:
  v: Observation.valueDateTime

id:
  v: IMMZD1.hivStatus
path:
  v: IMMZD1.hivStatus
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE204
code: https://loinc.org/rdf/55277-8
  system:
    v: http://loinc.org
    l: loinc.org
  code:
    v: 55277-8
  display:
    v: HIV Status
code: http://snomed.info/id/278977008
  system:
    v: http://snomed.info/sct
    l: sct
  code:
    v: 278977008
  display:
    v: HIV status
short:
  v: HIV status
definition:
  v: The current HIV status of the client
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: http://smart.who.int/immunizations/ValueSet/IMMZ.D.DE204
    l: IMMZ.D.DE204
mapping:
  identity:
    v: IMMZD1.to.Observation
  map:
    v: Observation.valueCodeableConcept.coding

id:
  v: IMMZD1.pretermBirth
path:
  v: IMMZD1.pretermBirth
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE208
code:
  system:
    v: http://id.who.int/icd/release/11/mms
    l: mms
  code:
    v: KA21.4
  display:
    v: Preterm newborn
code: https://loinc.org/rdf/76517-2
  system:
    v: http://loinc.org
    l: loinc.org
  code:
    v: 76517-2
  display:
    v: Premature infant
code: http://snomed.info/id/395507008
  system:
    v: http://snomed.info/sct
    l: sct
  code:
    v: 395507008
  display:
    v: Premature infant (finding)
short:
  v: Preterm birth
definition:
  v: The infant was preterm; the mother gave birth to the infant when gestational age was less than 37 weeks
min:
  v: 0
max:
  v: 1
type:
  code:
    v: boolean
    l: boolean
mapping:
  identity:
    v: IMMZD1.to.Observation
  map:
    v: Observation.valueBoolean

id:
  v: IMMZD1.immunocompromised
path:
  v: IMMZD1.immunocompromised
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE209
code:
  system:
    v: http://id.who.int/icd/release/11/mms
    l: mms
  code:
    v: 4B4Z
  display:
    v: Diseases of the immune system, unspecified
code: https://loinc.org/rdf/96381-9
  system:
    v: http://loinc.org
    l: loinc.org
  code:
    v: 96381-9
  display:
    v: Immune status
code: http://snomed.info/id/370388006
  system:
    v: http://snomed.info/sct
    l: sct
  code:
    v: 370388006
  display:
    v: Patient immunocompromised (finding)
short:
  v: Immunocompromised
definition:
  v: The client is known to be immunocompromised. This means the client has a weakened immune system and having a reduced ability to fight infections and other diseases
min:
  v: 0
max:
  v: 1
type:
  code:
    v: boolean
    l: boolean
mapping:
  identity:
    v: IMMZD1.to.Observation
  map:
    v: Observation.valueBoolean

id:
  v: IMMZD1.currentlyOnArt
path:
  v: IMMZD1.currentlyOnArt
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE210
short:
  v: Currently on ART
definition:
  v: The client is currently receiving antiretroviral therapy (ART)
min:
  v: 0
max:
  v: 1
type:
  code:
    v: boolean
    l: boolean
constraint:
  key:
    v: IMMZ-D-reqHIVPositive-1
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE204 HIV status is HIV-positive
  expression:
    v: %resource.hivStatus.value != 'DE11' or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
mapping:
  identity:
    v: IMMZD1.to.Observation
  map:
    v: Observation.valueBoolean

id:
  v: IMMZD1.typeOfTbInfectionTestPerformed
path:
  v: IMMZD1.typeOfTbInfectionTestPerformed
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE243
short:
  v: Type of TB infection test performed
definition:
  v: The type of tuberculosis (TB) infection test performed
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Coding
    l: Coding
constraint:
  key:
    v: IMMZ-D-reqVType-2
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE19 vaccine type is BCG vaccines
  expression:
    v: %resource.vaccineType.value != 'DE1' or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
binding:
  strength:
    v: required
  value set:
    v: http://smart.who.int/immunizations/ValueSet/IMMZ.D.DE243
    l: IMMZ.D.DE243
mapping:
  identity:
    v: IMMZD1.to.Observation
  map:
    v: Observation.valueCodeableConcept.coding

id:
  v: IMMZD1.tbInfectionTestResult
path:
  v: IMMZD1.tbInfectionTestResult
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE246
short:
  v: TB infection test result
definition:
  v: Records the result of the TB infection test
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Coding
    l: Coding
constraint:
  key:
    v: IMMZ-D-reqTBTest-1
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE243 Type of TB infection test performed IS NOT NULL
  expression:
    v: not(%resource.typeOfTbInfectionTestPerformed.exists()) or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
binding:
  strength:
    v: required
  value set:
    v: http://smart.who.int/immunizations/ValueSet/IMMZ.D.DE246
    l: IMMZ.D.DE246
mapping:
  identity:
    v: IMMZD1.to.Observation
  map:
    v: Observation.valueCodeableConcept.coding

id:
  v: IMMZD1.immunologicallyStable
path:
  v: IMMZD1.immunologicallyStable
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE249
short:
  v: Immunologically stable
definition:
  v: The client is living with HIV and is immunologically stable with CD4 count or percentage above a minimum as defined in the HIV guidelines
min:
  v: 0
max:
  v: 1
type:
  code:
    v: boolean
    l: boolean
constraint:
  key:
    v: IMMZ-D-reqVType-3
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE19 vaccine type is BCG vaccines OR Typhoid vaccines
  expression:
    v: (%resource.vaccineType.value != 'DE1' and %resource.vaccineType.value != 'DE21') or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
mapping:
  identity:
    v: IMMZD1.to.Observation
  map:
    v: Observation.valueBoolean

id:
  v: IMMZD1.clinicallyWell
path:
  v: IMMZD1.clinicallyWell
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE250
short:
  v: Clinically well
definition:
  v: The client is living with HIV and is clinically well, as defined in HIV guidelines and WHO clinical staging
min:
  v: 0
max:
  v: 1
type:
  code:
    v: boolean
    l: boolean
constraint:
  key:
    v: IMMZ-D-reqVType-2
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE19 vaccine type is BCG vaccines
  expression:
    v: %resource.vaccineType.value != 'DE1' or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
mapping:
  identity:
    v: IMMZD1.to.Observation
  map:
    v: Observation.valueBoolean

id:
  v: IMMZD1.birthWeightInGrams
path:
  v: IMMZD1.birthWeightInGrams
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE211
code:
  system:
    v: http://id.who.int/icd/release/11/mms
    l: mms
  code:
    v: KA21
  display:
    v: Disorders of newborn related to short gestation or low birth weight, not elsewhere classified
code: https://loinc.org/rdf/8339-4
  system:
    v: http://loinc.org
    l: loinc.org
  code:
    v: 8339-4
  display:
    v: Birth weight measured
short:
  v: Birth weight in grams
definition:
  v: Represents the client's birth weight value measures in grams
min:
  v: 0
max:
  v: 1
type:
  code:
    v: decimal
    l: decimal
constraint:
  key:
    v: IMMZ-D-reqVType-4
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE19 vaccine type is BCG vaccines OR Hepatitis B-containing vaccines
  expression:
    v: (%resource.vaccineType.value != 'DE1' and %resource.vaccineType.value != 'DE6') or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
constraint:
  key:
    v: IMMZ-D-reqGTEZero-1
  severity:
    v: error
  human:
    v: Must be positive decimal value greater than or equal to zero (≥0)
  expression:
    v: not($this.exists()) or $this.value >= 0
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
mapping:
  identity:
    v: IMMZD1.to.Observation
  map:
    v: Observation.valueQuantity.value

id:
  v: IMMZD1.typeOfPoliovirusDose
path:
  v: IMMZD1.typeOfPoliovirusDose
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE212
code:
  system:
    v: http://id.who.int/icd/release/11/mms
    l: mms
  code:
    v: XM0N50
  display:
    v: Poliomyelitis vaccines
short:
  v: Type of poliovirus dose
definition:
  v: The type of the poliovirus vaccine dose administered to the client
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Coding
    l: Coding
constraint:
  key:
    v: IMMZ-D-reqVType-5
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE19 vaccine type is Poliovirus-containing vaccines
  expression:
    v: %resource.vaccineType.value != 'DE14' or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
binding:
  strength:
    v: required
  value set:
    v: http://smart.who.int/immunizations/ValueSet/IMMZ.D.DE212
    l: IMMZ.D.DE212
mapping:
  identity:
    v: IMMZD1.to.Immunization
  map:
    v: Immunization.extension[typeOfPolio].valueCodeableConcept.coding

id:
  v: IMMZD1.artStartDate
path:
  v: IMMZD1.artStartDate
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE215
short:
  v: ART start date
definition:
  v: The date on which the client started or restarted ART
min:
  v: 0
max:
  v: 1
type:
  code:
    v: date
    l: date
constraint:
  key:
    v: IMMZ-D-reqVType-6
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE19 vaccine type is Measles-containing vaccines
  expression:
    v: %resource.vaccineType.value != 'DE9' or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
constraint:
  key:
    v: IMMZ-D-dateOccurred-1
  severity:
    v: error
  human:
    v: Date ≤ current date
  expression:
    v: not($this.exists()) or $this.value <= today()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
mapping:
  identity:
    v: IMMZD1.to.Observation
  map:
    v: Observation.valueDateTime

id:
  v: IMMZD1.highRiskOfPneumococcalInfection
path:
  v: IMMZD1.highRiskOfPneumococcalInfection
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE251
short:
  v: High risk of pneumococcal infection
definition:
  v: The client is at high risk for pneumococcal infection because of underlying medical conditions (i.e. HIV infection or sickle-cell disease)
min:
  v: 0
max:
  v: 1
type:
  code:
    v: boolean
    l: boolean
constraint:
  key:
    v: IMMZ-D-reqVType-7
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE19 vaccine type is Pneumococcal vaccines
  expression:
    v: %resource.vaccineType.value != 'DE13' or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
mapping:
  identity:
    v: IMMZD1.to.Observation
  map:
    v: Observation.valueBoolean

id:
  v: IMMZD1.typeOfJeDose
path:
  v: IMMZD1.typeOfJeDose
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE216
short:
  v: Type of JE dose
definition:
  v: The type of Japanese encephalitis (JE) vaccine dose administered to the client
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Coding
    l: Coding
constraint:
  key:
    v: IMMZ-D-reqVType-8
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE19 vaccine type is JE vaccines
  expression:
    v: %resource.vaccineType.value != 'DE8' or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
binding:
  strength:
    v: required
  value set:
    v: http://smart.who.int/immunizations/ValueSet/IMMZ.D.DE216
    l: IMMZ.D.DE216
mapping:
  identity:
    v: IMMZD1.to.Immunization
  map:
    v: Immunization.extension[typeOfJe].valueCodeableConcept.coding

id:
  v: IMMZD1.typeOfTbeDose
path:
  v: IMMZD1.typeOfTbeDose
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE220
short:
  v: Type of TBE dose
definition:
  v: The type of tick-borne encephalitis (TBE) vaccine dose administered
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Coding
    l: Coding
constraint:
  key:
    v: IMMZ-D-reqVType-9
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE19 vaccine type is TBE vaccines
  expression:
    v: %resource.vaccineType.value != 'DE20' or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
binding:
  strength:
    v: required
  value set:
    v: http://smart.who.int/immunizations/ValueSet/IMMZ.D.DE220
    l: IMMZ.D.DE220
mapping:
  identity:
    v: IMMZD1.to.Immunization
  map:
    v: Immunization.extension[typeOfTbe].valueCodeableConcept.coding

id:
  v: IMMZD1.typeOfTyphoidDose
path:
  v: IMMZD1.typeOfTyphoidDose
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE225
short:
  v: Type of typhoid dose
definition:
  v: The type of typhoid vaccine dose administered to the client
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Coding
    l: Coding
constraint:
  key:
    v: IMMZ-D-reqVType-10
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE19 vaccine type is Typhoid vaccines
  expression:
    v: %resource.vaccineType.value != 'DE21' or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
binding:
  strength:
    v: required
  value set:
    v: http://smart.who.int/immunizations/ValueSet/IMMZ.D.DE225
    l: IMMZ.D.DE225
mapping:
  identity:
    v: IMMZD1.to.Immunization
  map:
    v: Immunization.extension[typeOfTyphoid].valueCodeableConcept.coding

id:
  v: IMMZD1.typeOfCholeraDose
path:
  v: IMMZD1.typeOfCholeraDose
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE229
short:
  v: Type of cholera dose
definition:
  v: The type of cholera vaccine dose administered to the client
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Coding
    l: Coding
constraint:
  key:
    v: IMMZ-D-reqVType-11
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE19 vaccine type is Cholera vaccines
  expression:
    v: %resource.vaccineType.value != 'DE2' or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
binding:
  strength:
    v: required
  value set:
    v: http://smart.who.int/immunizations/ValueSet/IMMZ.D.DE229
    l: IMMZ.D.DE229
mapping:
  identity:
    v: IMMZD1.to.Immunization
  map:
    v: Immunization.extension[typeOfCholera].valueCodeableConcept.coding

id:
  v: IMMZD1.typeOfMeningococcalDose
path:
  v: IMMZD1.typeOfMeningococcalDose
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE232
short:
  v: Type of meningococcal dose
definition:
  v: The type of meningococcal vaccine dose administered to the client
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Coding
    l: Coding
constraint:
  key:
    v: IMMZ-D-reqVType-12
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE19 vaccine type is Meningococcal vaccines
  expression:
    v: %resource.vaccineType.value != 'DE10' or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
binding:
  strength:
    v: required
  value set:
    v: http://smart.who.int/immunizations/ValueSet/IMMZ.D.DE232
    l: IMMZ.D.DE232
mapping:
  identity:
    v: IMMZD1.to.Immunization
  map:
    v: Immunization.extension[typeOfMeningococcal].valueCodeableConcept.coding

id:
  v: IMMZD1.ageInMonthsWhenClientReceivedFirstMeningococcalDose
path:
  v: IMMZD1.ageInMonthsWhenClientReceivedFirstMeningococcalDose
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE236
short:
  v: Age in months when client received first meningococcal dose
definition:
  v: The age in months when client received their first meningococcal dose
min:
  v: 0
max:
  v: 1
type:
  code:
    v: decimal
    l: decimal
constraint:
  key:
    v: IMMZ-D-reqVType-12
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE19 vaccine type is Meningococcal vaccines
  expression:
    v: %resource.vaccineType.value != 'DE10' or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
constraint:
  key:
    v: IMMZ-D-reqGTEZero-1
  severity:
    v: error
  human:
    v: Must be positive decimal value greater than or equal to zero (≥0)
  expression:
    v: not($this.exists()) or $this.value >= 0
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
mapping:
  identity:
    v: IMMZD1.to.Observation
  map:
    v: Observation.valueQuantity.value

id:
  v: IMMZD1.typeOfHepatitisADose
path:
  v: IMMZD1.typeOfHepatitisADose
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE237
short:
  v: Type of hepatitis A dose
definition:
  v: The type of hepatitis A-containing vaccine dose administered to the client
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Coding
    l: Coding
constraint:
  key:
    v: IMMZ-D-reqVType-13
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE19 vaccine type is Hepatitis A-containing vaccines
  expression:
    v: %resource.vaccineType.value != 'DE5' or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
binding:
  strength:
    v: required
  value set:
    v: http://smart.who.int/immunizations/ValueSet/IMMZ.D.DE237
    l: IMMZ.D.DE237
mapping:
  identity:
    v: IMMZD1.to.Immunization
  map:
    v: Immunization.extension[typeOfHepatitisA].valueCodeableConcept.coding

id:
  v: IMMZD1.typeOfHepatitisBDose
path:
  v: IMMZD1.typeOfHepatitisBDose
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE254
short:
  v: Type of hepatitis B dose
definition:
  v: The type of hepatitis B-containing vaccine dose administered to the client
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Coding
    l: Coding
constraint:
  key:
    v: IMMZ-D-reqVType-14
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE6 vaccine type is Hepatitis B-containing vaccines
  expression:
    v: %resource.vaccineType.value != 'DE6' or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
binding:
  strength:
    v: required
  value set:
    v: http://smart.who.int/immunizations/ValueSet/IMMZ.D.DE254
    l: IMMZ.D.DE254
mapping:
  identity:
    v: IMMZD1.to.Immunization
  map:
    v: Immunization.extension[typeOfHepatitisB].valueCodeableConcept.coding

id:
  v: IMMZD1.vnaLevel
path:
  v: IMMZD1.vnaLevel
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE240
short:
  v: VNA level
definition:
  v: Vaccine-induced neutralizing antibody (VNA) level, measured as a serum antibody concentration from the result of the concentrated, purified cell culture-derived and embryonated egg-based rabies vaccines (CCEEV)
min:
  v: 0
max:
  v: 1
type:
  code:
    v: decimal
    l: decimal
constraint:
  key:
    v: IMMZ-D-reqVType-15
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE19 vaccine type is Rabies vaccines
  expression:
    v: %resource.vaccineType.value != 'DE15' or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
mapping:
  identity:
    v: IMMZD1.to.Observation
  map:
    v: Observation.valueQuantity.value

id:
  v: IMMZD1.riskOfOccupationalExposureToRabiesVirus
path:
  v: IMMZD1.riskOfOccupationalExposureToRabiesVirus
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE253
short:
  v: Risk of occupational exposure to rabies virus
definition:
  v: Professional at risk of occupational exposure to rabies virus, particularly animal health workers. Also considered for medical professionals who regularly provide care to persons with rabies
min:
  v: 0
max:
  v: 1
type:
  code:
    v: boolean
    l: boolean
constraint:
  key:
    v: IMMZ-D-reqVType-15
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE19 vaccine type is Rabies vaccines
  expression:
    v: %resource.vaccineType.value != 'DE15' or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
mapping:
  identity:
    v: IMMZD1.to.Observation
  map:
    v: Observation.valueBoolean

id:
  v: IMMZD1.dengueSerostatus
path:
  v: IMMZD1.dengueSerostatus
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE241
short:
  v: Dengue serostatus
definition:
  v: Indicates the result of a serological test determining whether the client has antibodies against the dengue virus
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Coding
    l: Coding
constraint:
  key:
    v: IMMZ-D-reqVType-16
  severity:
    v: error
  human:
    v: Required if input in IMMZ.D.DE19 vaccine type is Dengue vaccines
  expression:
    v: %resource.vaccineType.value != 'DE25' or $this.exists()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
binding:
  strength:
    v: required
  value set:
    v: http://smart.who.int/immunizations/ValueSet/IMMZ.D.DE241
    l: IMMZ.D.DE241
mapping:
  identity:
    v: IMMZD1.to.Observation
  map:
    v: Observation.valueCodeableConcept.coding

id:
  v: IMMZD1.vaccineType
path:
  v: IMMZD1.vaccineType
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE19
code: https://loinc.org/rdf/39236-5
  system:
    v: http://loinc.org
    l: loinc.org
  code:
    v: 39236-5
  display:
    v: Vaccine code (CPT [Current Procedural Terminology]) CPHS (Children's Preventative Health System)
code: http://snomed.info/id/787859002
  system:
    v: http://snomed.info/sct
    l: sct
  code:
    v: 787859002
  display:
    v: Vaccine product (medicinal product)
short:
  v: Vaccine type
definition:
  v: Vaccine type/category that was administered or was to be administered. Any vaccine code available in the IMMZ.Z Vaccine library list of codes applies in this data element
min:
  v: 1
max:
  v: *
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: http://smart.who.int/immunizations/ValueSet/IMMZ.Z.VS
    l: IMMZ.Z.VS
mapping:
  identity:
    v: IMMZD1.to.Immunization
  map:
    v: Immunization.vaccineCode

id:
  v: IMMZD1.dateAndTimeOfVaccination
path:
  v: IMMZD1.dateAndTimeOfVaccination
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE20
code: https://loinc.org/rdf/30952-6
  system:
    v: http://loinc.org
    l: loinc.org
  code:
    v: 30952-6
  display:
    v: Date and time of vaccination
short:
  v: Date and time of vaccination
definition:
  v: Represents the visit/encounter date, which is the date and time when each vaccine was administered to the client
min:
  v: 1
max:
  v: 1
type:
  code:
    v: dateTime
    l: dateTime
mapping:
  identity:
    v: IMMZD1.to.Immunization
  map:
    v: Immunization.occurrenceDateTime

id:
  v: IMMZD1.contactDate
path:
  v: IMMZD1.contactDate
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE201
code: https://loinc.org/rdf/21975-8
  system:
    v: http://loinc.org
    l: loinc.org
  code:
    v: 21975-8
  display:
    v: Date last contact
code: http://snomed.info/id/406543005
  system:
    v: http://snomed.info/sct
    l: sct
  code:
    v: 406543005
  display:
    v: Date of visit
short:
  v: Contact date
definition:
  v: The date and time of the client's contact
min:
  v: 0
max:
  v: 1
type:
  code:
    v: dateTime
    l: dateTime
constraint:
  key:
    v: IMMZ-D-dateTimeOccurred-1
  severity:
    v: error
  human:
    v: DateTime ≤ current DateTime
  expression:
    v: not($this.exists()) or $this.value <= now()
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
mapping:
  identity:
    v: IMMZD1.to.Observation
  map:
    v: Observation.valueDateTime

id:
  v: IMMZD1.ancContactNumber
path:
  v: IMMZD1.ancContactNumber
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE202
code: https://loinc.org/rdf/75612-2
  system:
    v: http://loinc.org
    l: loinc.org
  code:
    v: 75612-2
  display:
    v: Number of visits to this health-care entity in the last 12 months
code: http://snomed.info/id/3401000175105
  system:
    v: http://snomed.info/sct
    l: sct
  code:
    v: 3401000175105
  display:
    v: Total number of prenatal care visits
short:
  v: ANC contact number
definition:
  v: The antenatal care (ANC) contact or visit number
min:
  v: 0
max:
  v: 1
type:
  code:
    v: integer
    l: integer
mapping:
  identity:
    v: IMMZD1.to.Observation
  map:
    v: Observation.valueInteger

id:
  v: IMMZD1.doseNumber
path:
  v: IMMZD1.doseNumber
code:
  system:
    v: http://smart.who.int/immunizations/CodeSystem/IMMZ.D
    l: IMMZ.D
  code:
    v: DE124
short:
  v: Dose number
definition:
  v: Vaccine dose number including dose number within series
min:
  v: 1
max:
  v: 1
type:
  code:
    v: integer
    l: integer
constraint:
  key:
    v: IMMZ-D-reqGTEZero-1
  severity:
    v: error
  human:
    v: Must be positive decimal value greater than or equal to zero (≥0)
  expression:
    v: not($this.exists()) or $this.value >= 0
  source:
    v: http://smart.who.int/immunizations/StructureDefinition/IMMZD1
    l: IMMZD1
mapping:
  identity:
    v: IMMZD1.to.Immunization
  map:
    v: Immunization.protocolApplied.doseNumberString