FHIR Mapping Language (FML), published by HL7 International / FHIR Infrastructure. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/mapping-language-ig/ and changes regularly. See the Directory of published versions
| Official URL: http://hl7.org/fhir/uv/mapping-language/StructureMap/GroupTypes | Version: | |||
| Standards status: Informative | Computable Name: GroupTypes | |||
Example demonstrating the types stereotype marking a default mapping for a type pair
/// url = 'http://hl7.org/fhir/uv/mapping-language/StructureMap/GroupTypes' /// name = 'GroupTypes' /// status = 'active' /// description = 'Example demonstrating the types stereotype marking a default mapping for a type pair' uses "http://hl7.org/fhir/StructureDefinition/HumanName" as source uses "http://hl7.org/fhir/StructureDefinition/HumanName" as target uses "http://hl7.org/fhir/StructureDefinition/Patient" as source uses "http://hl7.org/fhir/StructureDefinition/Patient" as target group UseDefaultTypes(source srcP : Patient, target tgtP : Patient) { // this rule will resolve the HumanName source/target types // to the GroupTypes group and call it srcP.name -> tgtP.name; } group GroupTypes(source src : HumanName, target tgt : HumanName) <<types>> { // This specific default group for mapping names will only copy the family and text, // all other properties will be dropped src.family as v -> tgt.family = v; src.text as v -> tgt.text = v; }