R6 Ballot (1st Draft)

This page is part of the FHIR Specification v6.0.0-ballot1: Release 6 Ballot (1st Draft) (see Ballot Notes). The current version is 5.0.0. For a full list of available versions, see the Directory of published versions

Financial Management icon Work GroupMaturity Level: N/AStandards Status: InformativeSecurity Category: Patient Compartments: Patient, Practitioner

R4 : R5 Conversion maps for CoverageEligibilityRequest.

Functional status for this map: See Conversions Summary. (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;
  };
}


n/a