DK EHMI Endpoint Register (EER)
3.0.0-trial-use-1 - release Denmark flag

This page is part of the DK EHMI Endpoint Register (EER) (v3.0.0-trial-use-1: Release 3.x.x) based on FHIR (HL7® FHIR® Standard) R4. This is the current published version in its permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions

StructureMap: Map SOR Organization to EerMessagingOrganization

Official URL: http://medcomehmi.dk/ig/eer/StructureMap/CopyOrganizationToEerOrganization Version: 3.0.0-trial-use-1
Active as of 2026-07-23 Computable Name: CopyOrganizationToOrganization

StructureMap that copies all fields from a SOR Organization to a EerMessagingOrganization

map "http://medcomehmi.dk/ig/eer/StructureMap/CopyOrganizationToEerOrganization" = "CopyOrganizationToOrganization"

// StructureMap that copies all fields from a SOR Organization to a EerMessagingOrganization

group CopyOrgDetailed(source src : Organization, target tgt : Organization) <<types>> {
  src.name as n ->  tgt.name = create('string'),  tgt.name = n "copyName";
  src.active as a ->  tgt.active = create('boolean'),  tgt.active = a "copyActive";
  src.identifier as sid -> tgt.identifier = create('Identifier') as tid then {
    sid.system as s -> tid.system = s;
    sid.value as v -> tid.value = v;
  } "copyIdentifier";
  src.type as st -> tgt.type = create('CodeableConcept') as tt then {
    st.coding as sc -> tt.coding = create('Coding') as tc then {
      sc.system as sys -> tc.system = sys "CopyTypeCodingSystem";
      sc.code as code -> tc.code = code "CopyTypeCodingCode";
    } "CopyTypeCoding";
  } "copyType";
  src.partOf as p -> tgt.partOf = p "copyPartOf";
  src.endpoint as se -> tgt.endpoint = se "copyEndpoint";
}