DK EHMI Endpoint Register (EER)
2.0.1-draft - ci-build Denmark flag

DK EHMI Endpoint Register (EER), published by MedCom. This guide is not an authorized publication; it is the continuous build for version 2.0.1-draft built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/medcomdk/dk-ehmi-eer/ and changes regularly. See the Directory of published versions

StructureMap: Map SOR Organization to EerMessagingOrganization

Official URL: http://medcomehmi.dk/ig/eer/StructureMap/CopyOrganizationToEerOrganization Version: 2.0.1-draft
Active as of 2026-02-03 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";
}