FHIR Cross-Version Mapping Pack, published by HL7 International / FHIR Infrastructure. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/fhir-cross-version/ and changes regularly. See the Directory of published versions
Official URL: http://hl7.org/fhir/StructureMap/Coverage4to3 | Version: 0.1.0 | |||
Standards status: Draft | Maturity Level: 1 | Computable Name: Coverage4to3 |
CoverageTransformsR4toR3
/// url = 'http://hl7.org/fhir/StructureMap/Coverage4to3' /// name = 'Coverage4to3' /// title = 'Coverage Transforms: R4 to R3' /// status = 'active' uses "http://hl7.org/fhir/4.0/Coverage" alias Coverage as source uses "http://hl7.org/fhir/3.0/Coverage" alias CoverageR3 as target imports "http://hl7.org/fhir/StructureMap/*4to3" group Coverage(source src : CoverageR3, target tgt : Coverage) extends DomainResource <<type+>> { src.identifier -> tgt.identifier; src.status -> tgt.status; src.type -> tgt.type; src.policyHolder -> tgt.policyHolder; src.subscriber -> tgt.subscriber; src.subscriberId -> tgt.subscriberId; src.beneficiary -> tgt.beneficiary; src.dependent -> tgt.dependent; src.relationship -> tgt.relationship; src.period -> tgt.period; src.payor -> tgt.payor; src.class as class -> tgt.grouping as t then { class.type as vs then { vs.coding as c where code = 'group' then { c then CoverageClassGroup(class, t) "CoverageClassGroup"; }; }; }; src.class as class -> tgt.grouping as t then { class.type as vs then { vs.coding as c where code = 'subgroup' then { c then CoverageClassSubGroup(class, t) "CoverageClassSubGroup"; }; }; }; src.class as class -> tgt.grouping as t then { class.type as vs then { vs.coding as c where code = 'plan' then { c then CoverageClassPlanGroup(class, t) "CoverageClassPlanGroup"; }; }; }; src.class as class -> tgt.grouping as t then { class.type as vs then { vs.coding as c where code = 'subplan' then { c then CoverageClassSubPlanGroup(class, t) "CoverageClassSubPlanGroup"; }; }; }; src.class as class -> tgt.grouping as t then { class.type as vs then { vs.coding as c where code = 'class' then { c then CoverageClassClassGroup(class, t) "CoverageClassClassGroup"; }; }; }; src.class as class -> tgt.grouping as t then { class.type as vs then { vs.coding as c where code = 'subclass' then { c then CoverageClassSubClassGroup(class, t) "CoverageClassSubClassGroup"; }; }; }; src.class as class then { class.type as vs then { vs.coding as c where code = 'sequence' then { c then CoverageClassSequenceGroup(class, tgt) "CoverageClassSequenceGroup"; }; }; }; src.order -> tgt.order; src.network -> tgt.network; src.contract -> tgt.contract; } group CoverageClassGroup(source src, target tgt) extends BackboneElement { src.value -> tgt.group; src.name -> tgt.groupDisplay; } group CoverageClassSubGroup(source src, target tgt) extends BackboneElement { src.value -> tgt.subGroup; src.name -> tgt.subGroupDisplay; } group CoverageClassPlanGroup(source src, target tgt) extends BackboneElement { src.value -> tgt.plan; src.name -> tgt.planDisplay; } group CoverageClassSubPlanGroup(source src, target tgt) extends BackboneElement { src.value -> tgt.subPlan; src.name -> tgt.subPlanDisplay; } group CoverageClassClassGroup(source src, target tgt) extends BackboneElement { src.value -> tgt.class; src.name -> tgt.classDisplay; } group CoverageClassSubClassGroup(source src, target tgt) extends BackboneElement { src.value -> tgt.subClass; src.name -> tgt.subClassDisplay; } group CoverageClassSequenceGroup(source src, target tgt) extends BackboneElement { src.value -> tgt.sequence; }