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