National Directory of Healthcare Providers & Services (NDH) Implementation Guide
2.0.0-current - ci-build United States of America flag

National Directory of Healthcare Providers & Services (NDH) Implementation Guide, published by HL7 International / Patient Administration. This guide is not an authorized publication; it is the continuous build for version 2.0.0-current built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/fhir-us-ndh/ and changes regularly. See the Directory of published versions

StructureMap: This StructureMap defines the mapping from Plan-Net OrganizationAffiliation to NDH OrganizationAffiliation.

Official URL: http://hl7.org/fhir/us/ndh/StructureMap/PlanNetToNdhOrganizationAffiliationSM Version: 2.0.0-current
Standards status: Trial-use Maturity Level: 4 Computable Name: PlanNetToNdhOrganizationAffiliationSM

This StructureMap defines the mapping from Plan-Net OrganizationAffiliation to NDH OrganizationAffiliation.

Language: en

map "http://hl7.org/fhir/us/ndh/StructureMap/PlanNetToNdhOrganizationAffiliationSM" = "PlanNetToNdhOrganizationAffiliationSM"

// This StructureMap defines the mapping from Plan-Net OrganizationAffiliation to NDH OrganizationAffiliation.

uses "http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/plannet-OrganizationAffiliation" alias OrganizationAffiliationPN as source
uses "http://hl7.org/fhir/us/ndh/StructureDefinition/ndh-OrganizationAffiliation" alias OrganizationAffiliationNDH as target

group PlanNetToNdhOrganizationAffiliation(source src : OrganizationAffiliationPN, target tgt : OrganizationAffiliationNDH) {
  src.language as vLanguage -> tgt.language = vLanguage;
  src.text as vText -> tgt.text = vText;
  src.identifier as vIdentifier -> tgt.identifier = vIdentifier;
  src.active as vActive -> tgt.active = vActive;
  src.period as vPeriod -> tgt.period = vPeriod;
  src.organization as vOrganization -> tgt.organization = vOrganization;
  src.participatingOrganization as vParticipatingOrganization -> tgt.participatingOrganization = vParticipatingOrganization;
  src.network as vNetwork -> tgt.network = vNetwork;
  src.code as vCodeSrc -> tgt.code as vCodeTgt then {
    vCodeSrc.text as vCodeText -> vCodeTgt.text = vCodeText "copyCodeText";
    vCodeSrc.coding as vCodeCodingSrc where (system = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/OrganizationAffiliationRoleCS') -> vCodeTgt.coding = translate(vCodeCodingSrc, 'http://hl7.org/fhir/us/ndh/ConceptMap/plannet-to-ndh-organization-affiliation-role', 'Coding') "translateCodeCoding";
    vCodeSrc.coding as vCodeOtherCodingSrc where (system != 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/OrganizationAffiliationRoleCS') -> vCodeTgt.coding = vCodeOtherCodingSrc "copyCodeOtherCoding";
  } "copyCode";
  src.specialty as vSpecialty -> tgt.specialty = vSpecialty;
  src.location as vLocation -> tgt.location = vLocation;
  src.healthcareService as vHealthcareService -> tgt.healthcareService = vHealthcareService;
  src.telecom as vTelecom -> tgt.telecom = vTelecom;
  src.endpoint as vEndpoint -> tgt.endpoint = vEndpoint;
  src.meta as vMetaSrc -> tgt.meta as vMetaTgt then {
    vMetaSrc.lastUpdated as vLastUpdated -> vMetaTgt.lastUpdated = vLastUpdated "copyMetaLastUpdated";
    vMetaSrc as vMetaProfileSrc -> vMetaTgt.profile = 'http://hl7.org/fhir/us/ndh/StructureDefinition/ndh-OrganizationAffiliation' "setTargetProfile";
  } "copyMeta";
}