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-11-23 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 "http://hl7.org/fhir/StructureDefinition/Patient" alias Patient as source
uses "https://interop.esante.gouv.fr/ig/fhir/eds/StructureDefinition/OMOPDeath" alias DeathTable as target

group Death(source src : Patient, 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";
}