WHO Digital Documentation of COVID-19 Certificates (DDCC)
1.0.0 - CI Build
This page is part of the WHO Digital Documentation of COVID-19 Certificates (DDCC) (v1.0.0: releases Draft) based on FHIR (HL7® FHIR® Standard) R4. This is the current published version in its permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions
Official URL: http://smart.who.int/ddcc/StructureMap/DDCCtoEUdcc | Version: 1.0.0 | |||
Draft as of 2024-10-15 | Computable Name: DDCCtoEUdcc |
Generated Narrative: StructureMap DDCCtoEUdcc
map "http://smart.who.int/ddcc/StructureMap/DDCCtoEUdcc" = "DDCCtoEUdcc" uses "http://smart.who.int/ddcc/StructureDefinition/DDCCVSomposition" alias DDCC as source uses "http://smart.who.int/ddcc/StructureDefinition/DDCCDocument" alias DDCCDocument as source uses "http://smart.who.int/ddcc/StructureDefinition/DDCCPatient" alias DDCCPatient as source uses "http://smart.who.int/ddcc/StructureDefinition/DDCCVSComposition" alias DDCCVSComposition as source uses "http://smart.who.int/ddcc/StructureDefinition/DDCCOrganization" alias DDCCOrganization as source uses "http://smart.who.int/ddcc/StructureDefinition/DDCCCountryOfVaccination" alias DDCCCountryOfVaccination as source uses "http://smart.who.int/ddcc/StructureDefinition/DDCCVaccineBrand" alias DDCCVaccineBrand as source uses "http://smart.who.int/ddcc/StructureDefinition/DDCCImmunization" alias DDCCImmunization as source uses "http://hl7.eu/fhir/ig/dcc/StructureDefinition/HC1" alias EUDCC as target uses "http://hl7.eu/fhir/ig/dcc/StructureDefinition/v" alias vacEvent as target group DecodeDDCCtoQR(source ddcc : DDCCDocument, target qr : EUDCC) { ddcc -> qr.ver = 'XXX' "Version"; ddcc.entry as entry then { entry.resource : DDCCPatient as patient then DecodePatientToQR(patient, qr) "Patient"; } "Patient"; ddcc.entry as entry then { entry.resource : Immunization as immunization then DecodeImmunizationToQR(ddcc, immunization, qr) "Immunization"; } "Immunization"; } group DecodePatientToQR(source patient : DDCCPatient, target qr : EUDCC) { patient.birthDate as birthDate -> qr.dob = birthDate; patient.name as name then { name.text as text -> qr.nam = text; }; } group DecodeImmunizationToQR(source ddcc : DDCCDocument, source immunization : DDCCImmunization, target qr : EUDCC) { immunization -> qr.v = create('http://hl7.eu/fhir/ig/dcc/StructureDefinition/v') as vacEvent then { immunization.protocolApplied as protocol then { protocol.doseNumberPositiveInt as dose -> vacEvent.dn = dose; protocol.seriesDosesPositiveInt as doseNum -> vacEvent.sd = doseNum; protocol.targetDisease as targetDisease then { targetDisease.coding as coding then { coding.code as code -> vacEvent.tg = code; } "ProtocolDiseaseCode"; } "ProtocolDisease"; } "Protocol"; immunization.occurrenceDateTime as date -> vacEvent.dt = date; // TODO: need to populate vacEvent.ma market authorization holder // immunization.extension : DDCCCountryOfVaccination as country immunization.extension as country where (url = 'http://smart.who.int/ddcc/StructureDefinition/DDCCCountryOfEvent') then { country.valueCode as code -> vacEvent.co = code; } "Country"; // immunization.extension : DDCCBrand as brand immunization.extension as brand where (url = 'http://smart.who.int/ddcc/StructureDefinition/DDCCEventBrand') then { brand.valueCoding as valueCoding then { valueCoding.code as code -> vacEvent.mp = code; } "VaccineBrandCode"; } "VaccineBrand"; // immunization.vaccineCode : Coding as vaccineCode then { immunization.vaccineCode as vaccineCode then { vaccineCode.coding as coding then { coding.code as code -> vacEvent.vp = code; } "VaccineCode"; } "VaccineCoding"; ddcc.entry as entry then { // entry.resource : DDCCOrganization as organization entry.resource : Organization as organization then { organization.name as name -> vacEvent.is = name; } "CentreName"; } "VaccinationCentre"; ddcc.entry as entry then { // entry.resource : DDCCVSComposition as composition entry.resource : Composition as composition then { composition.identifier as identifier then { identifier.value as value -> vacEvent.ci = value; } "VaccinationEventIDValue"; } "VaccinationEventID"; } "VaccinationEvent"; } "Vaccination"; }