Guide d'implémentation du GT Standards et Interopérabilité pour les EDS
0.1.0 - ci-build France flag

Guide d'implémentation du GT Standards et Interopérabilité pour les EDS - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

StructureMap: Mapping Patient resource to Death OMOP Domain

Official URL: https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/Death Version: 0.1.0
Draft as of 2024-09-10 Computable Name: Death

Mapping Patient resource to Death OMOP Domain

Generated Narrative: StructureMap Death

map "https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/Death" = "Death"

// Mapping Patient resource to Death OMOP Domain

uses "https://interop.esante.gouv.fr/ig/fhir/eds/StructureDefinition/EDSPatient" alias EDSPatient as source
uses "https://interop.esante.gouv.fr/ig/fhir/eds/StructureDefinition/OMOPDeath" alias DeathTable as target

group Death(source src : EDSPatient, target tgt : DeathTable) {
  src.deceased : dateTime as srcDeceased then {
    srcDeceased -> tgt.death_datetime = srcDeceased "setDeathDT";
    srcDeceased -> tgt.death_date = (%srcDeceased.toString().substring(0, 10)) "setDeathD";
  } "SetDeathDate";
}