Release 5 Preview #3
Financial Management Work GroupMaturity Level: N/AStandards Status: InformativeSecurity Category: Patient Compartments: Patient, Practitioner

R3 : R4 Conversion maps for CoverageEligibilityRequest.

Functional status for this map: Not Mapped (see documentation)

map "http://hl7.org/fhir/StructureMap/EligibilityRequest3to4" = "R3 to R4 Conversions for (Coverage)EligibilityRequest"

uses "http://hl7.org/fhir/3.0/StructureDefinition/EligibilityRequest" alias EligibilityRequestR3 as source
uses "http://hl7.org/fhir/StructureDefinition/CoverageEligibilityRequest" alias CoverageEligibilityRequest as target

imports "http://hl7.org/fhir/StructureMap/*3to4"

group EligibilityRequest(source src : EligibilityRequestR3, target tgt : CoverageEligibilityRequest) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.status -> tgt.status;
  src.priority -> tgt.priority;
  src.patient -> tgt.patient;
  src.serviced -> tgt.serviced;
  src.created -> tgt.created;
  src.enterer -> tgt.enterer;
  src.provider -> tgt.provider;
  src.insurer -> tgt.insurer;
  src.facility -> tgt.facility;
  src.coverage as coverage -> tgt.insurance as insurance then {
    src ->  insurance.focal = true,  insurance.coverage = coverage "focal";
    src.businessArrangement as ba -> insurance.businessArrangement = ba;
  };
  src.benefitCategory as bc -> tgt.item as item then {
    src -> item.category = bc "category";
  };
}


map "http://hl7.org/fhir/StructureMap/CoverageEligibilityRequest4to3" = "R4 to R3 Conversion for (Coverage)EligibilityRequest"

uses "http://hl7.org/fhir/StructureDefinition/CoverageEligibilityRequest" alias CoverageEligibilityRequest as source
uses "http://hl7.org/fhir/3.0/StructureDefinition/EligibilityRequest" alias EligibilityRequestR3 as target

imports "http://hl7.org/fhir/StructureMap/*4to3"

group CoverageEligibilityRequest(source src : CoverageEligibilityRequestR3, target tgt : EligibilityRequest) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.status -> tgt.status;
  src.priority -> tgt.priority;
  src.patient -> tgt.patient;
  src.serviced -> tgt.serviced;
  src.created -> tgt.created;
  src.enterer -> tgt.enterer;
  src.provider -> tgt.provider;
  src.insurer -> tgt.insurer;
  src.facility -> tgt.facility;
  src.insurance as s then {
    s.coverage where (s.focal = true) -> tgt.coverage;
    s.businessArrangement where (s.focal = true) -> tgt.businessArrangement;
  };
  src.item as i then {
    i.category -> tgt.benefitCategory;
  };
}


<p>n/a</p>