Guide d'implémentation AP-HP Core
0.13.5 - ci-build France (la) flag

This page is part of the AP-HP Core (v0.13.5: trial-use - Mixed Normative and STU) based on FHIR (HL7® FHIR® Standard) R4. No current official version has been published yet. For a full list of available versions, see the Directory of published versions

StructureMap: Normalisation Patient source vers Patient (IPP)

Official URL: https://interop.aphp.fr/ig/fhir/core/StructureMap/NormalizeEditeurPatientToCorePatientIpp Version: 0.13.5
Active as of 2026-11-24 Computable Name: NormalizeEditeurPatientToCorePatientIpp

Exemple de simulation Design First (page design-first.html) : transformation d'un Patient source brut (IPP sans system ni use) vers le profil AP-HP Core Patient (IPP), en ajoutant le system, le use et en recopiant le nom, le prénom, le sexe, la date de naissance et l'adresse.

map "https://interop.aphp.fr/ig/fhir/core/StructureMap/NormalizeEditeurPatientToCorePatientIpp" = "NormalizeEditeurPatientToCorePatientIpp"

// Exemple de simulation Design First (page design-first.html) : transformation d'un Patient source brut (IPP sans system ni use) vers le profil AP-HP Core Patient (IPP), en ajoutant le system, le use et en recopiant le nom, le prénom, le sexe, la date de naissance et l'adresse.

uses "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1" alias EditeurPatient as source
uses "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1" alias CorePatientIpp as target

group NormalizeEditeurPatientToCorePatientIpp(source src : EditeurPatient, target tgt : CorePatientIpp) {
  src ->  tgt.meta as m,  m.profile = 'https://interop.aphp.fr/ig/fhir/core/StructureDefinition/core-patient-ipp' "setProfile";
  src.identifier as srcId then {
    srcId.value as v ->  tgt.identifier as newId,  newId.use = 'usual',  newId.system = 'https://interop.aphp.fr/info/Patient/ipp',  newId.value = v then {
      v -> newId.type as t then {
        v ->  t.coding as c,  c.system = 'http://terminology.hl7.org/CodeSystem/v2-0203',  c.code = 'PI',  c.display = 'Patient internal identifier' "setIdentifierCoding";
      } "setIdentifierType";
    } "mapIdentifierValue";
  } "mapIdentifierGroup";
  src.name as srcName then {
    srcName.family as f ->  tgt.name as newName,  newName.use = 'official',  newName.family = f then {
      srcName.given as giv -> newName.given = giv "mapGiven";
    } "mapFamily";
  } "mapNameGroup";
  src.gender as g -> tgt.gender = g "mapGender";
  src.birthDate as bd -> tgt.birthDate = bd "mapBirthDate";
  src.address as a -> tgt.address = a "mapAddress";
}