FHIR © HL7.org  |  Server Home  |  XIG Home  |  XIG Stats  |  Server Source  |  FHIR  

FHIR IG Statistics: StructureMap/CertDCCtoCoreDataSet

Packagewho.ddcc
Resource TypeStructureMap
IdCertDCCtoCoreDataSet
FHIR VersionR4
Sourcehttp://smart.who.int/ddcc/https://build.fhir.org/ig/WorldHealthOrganization/ddcc/StructureMap-CertDCCtoCoreDataSet.html
URLhttp://smart.who.int/ddcc/StructureMap/CertDCCtoCoreDataSet
Version1.0.0
Statusdraft
Date2025-06-24T09:07:32+00:00
NameCertDCCtoCoreDataSet
Realmuv
Authoritywho
DescriptionStructure map transforming CertDCC logical model to bundle of Core Data Set logical model

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

Note: links and images are rebased to the (stated) source

Generated Narrative: StructureMap CertDCCtoCoreDataSet

map "http://smart.who.int/ddcc/StructureMap/CertDCCtoCoreDataSet" = "CertDCCtoCoreDataSet"

// Structure map transforming CertDCC logical model to bundle of Core Data Set logical model

uses "http://smart.who.int/ddcc/StructureDefinition/CertDCC" alias CWTPayload as source
uses "http://hl7.org/fhir/StructureDefinition/Bundle" alias DDCCBundle as target
uses "http://smart.who.int/ddcc/StructureDefinition/DDCCCoreDataSet" alias DDCC as target
uses "http://smart.who.int/ddcc/StructureDefinition/DDCCCoreDataSetVS" alias DDCCVS as target
uses "http://smart.who.int/ddcc/StructureDefinition/DDCCCoreDataSetTR" alias DDCCTR as target

group CertDCCtoCoreDataSet(source src : CWTPayload, target ddccBundle : DDCCBundle) {
  src.-260 as hcert then {
    hcert.1 as dcc then {
      dcc.v as v ->  ddccBundle.entry as outentry,  create('http://smart.who.int/ddcc/StructureDefinition/DDCCCoreDataSetVS') as ddcc then {
        v then DCCtoCoreDataSet(dcc, ddcc) "set DDCC";
        v -> ddcc.certificate as certificate then CertDCCtoCoreDataSetCertificate(src, dcc, v, certificate) "set certificate";
        v -> ddcc.vaccination as vaccination then VtoCoreDataSetVS(v, vaccination) "set vaccination";
        v -> outentry.resource = ddcc "set outentry";
      };
      dcc.t as t ->  ddccBundle.entry as outentry,  create('http://smart.who.int/ddcc/StructureDefinition/DDCCCoreDataSetTR') as ddcc then {
        t then DCCtoCoreDataSet(dcc, ddcc) "set DDCC";
        t -> ddcc.certificate as certificate then CertDCCtoCoreDataSetCertificate(src, dcc, t, certificate) "set certificate";
        t -> ddcc.test as test then TtoCoreDataSetTR(t, test) "set test";
        t -> outentry.resource = ddcc "set outentry";
      };
    } "eu_DCC_v1";
  } "hcert";
}

group DCCtoCoreDataSet(source dcc, target ddcc : DDCC) {
  dcc.dob as birthDate -> ddcc.birthDate = birthDate "set birthDate";
  dcc.nam as nam then {
    nam.gn as given -> ddcc.name = (given.replaceMatches('