National Directory of Healthcare Providers & Services (NDH) Implementation Guide
2.0.0-current - ci-build US

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 InsurancePlan to NDH InsurancePlan.

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

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

Language: en

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

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

uses "http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/plannet-InsurancePlan" alias Source as source
uses "http://hl7.org/fhir/us/ndh/StructureDefinition/ndh-InsurancePlan" alias Target as target

group PlanNetToNdhInsurancePlan(source src : InsurancePlan, target tgt : InsurancePlan) {
  src.identifier as vIdentifier -> tgt.identifier = vIdentifier;
  src.status as vStatus -> tgt.status = vStatus;
  src.type as vTypeSrc -> tgt.type as vTypeTgt then {
    vTypeSrc.text as vTypeText -> vTypeTgt.text = vTypeText "copyTypeText";
    vTypeSrc.coding as vTypeCodingSrc where (system = 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/InsuranceProductTypeCS') -> vTypeTgt.coding = translate(vTypeCodingSrc, 'http://hl7.org/fhir/us/ndh/ConceptMap/plannet-to-ndh-insurance-product-type', 'Coding') "translateTypeCoding";
    vTypeSrc.coding as vTypeCodingOtherSrc where (system != 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/InsuranceProductTypeCS') -> vTypeTgt.coding = vTypeCodingOtherSrc "copyTypeCodingOther";
  } "copyType";
  src.name as vName -> tgt.name = vName;
  src.alias as vAlias -> tgt.alias = vAlias;
  src.language as vLanguage -> tgt.language = vLanguage;
  src.period as vPeriod -> tgt.period = vPeriod;
  src.ownedBy as vOwnedBy -> tgt.ownedBy = vOwnedBy;
  src.administeredBy as vAdministeredBy -> tgt.administeredBy = vAdministeredBy;
  src.coverageArea as vCoverageArea -> tgt.coverageArea = vCoverageArea;
  src.contact as vContact -> tgt.contact = vContact;
  src.endpoint as vEndpoint -> tgt.endpoint = vEndpoint;
  src.network as vNetwork -> tgt.network = vNetwork;
  src.coverage as vCoverage -> tgt.coverage = vCoverage;
  src.plan as vPlan -> tgt.plan = vPlan;
  src.meta as vMetaSrc -> tgt.meta as vMetaTgt then {
    vMetaSrc.lastUpdated as vLastUpdated -> vMetaTgt.lastUpdated = vLastUpdated;
  };
}