R4 Ballot #2 (Mixed Normative/Trial use)

This page is part of the FHIR Specification (v3.5.0: R4 Ballot #2). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4

Financial Management Work GroupMaturity Level: N/ABallot Status: Informative Compartments: Patient, RelatedPerson

R3 : R4 Conversion maps for Coverage.

Functional status for this map: 4 tests of which 4 fail to execute. (see documentation)

map "http://hl7.org/fhir/StructureMap/Coverage3to4" = "R3 to R4 Conversions for Coverage"


uses "http://hl7.org/fhir/3.0/StructureDefinition/Coverage" alias CoverageR3 as source
uses "http://hl7.org/fhir/StructureDefinition/Coverage" alias Coverage as target

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



group Coverage extends DomainResource
  input src : CoverageR3 as source
  input tgt : Coverage as target

  "Coverage.identifier": for src.identifier make tgt.identifier
  "Coverage.status": for src.status make tgt.status
  "Coverage.type": for src.type make tgt.type
  "Coverage.policyHolder": for src.policyHolder make tgt.policyHolder
  "Coverage.subscriber": for src.subscriber make tgt.subscriber
  "Coverage.subscriberId": for src.subscriberId make tgt.subscriberId
  "Coverage.beneficiary": for src.beneficiary make tgt.beneficiary
  "Coverage.dependent": for src.dependent make tgt.dependent
  "Coverage.relationship": for src.relationship make tgt.relationship
  "Coverage.period": for src.period make tgt.period
  "Coverage.payor": for src.payor make tgt.payor
  "Coverage.class": for src.class as s make tgt.class as t then CoverageClass(s,t)
  "Coverage.order": for src.order make tgt.order
  "Coverage.network": for src.network make tgt.network
  "Coverage.copay": for src.copay as s make tgt.copay as t then CoverageCopay(s,t)
  "Coverage.contract": for src.contract make tgt.contract
endgroup


group CoverageClass extends BackboneElement
  input src : CoverageR3 as source
  input tgt : Coverage as target

  "Coverage.class.type": for src.type make tgt.type
  "Coverage.class.value": for src.value make tgt.value
  "Coverage.class.name": for src.name make tgt.name
endgroup


group CoverageCopay extends BackboneElement
  input src : CoverageR3 as source
  input tgt : Coverage as target

  "Coverage.copay.type": for src.type make tgt.type
  "Coverage.copay.value": for src.value make tgt.value
endgroup


map "http://hl7.org/fhir/StructureMap/Coverage4to3" = "R4 to R3 Conversion for Coverage"


uses "http://hl7.org/fhir/StructureDefinition/Coverage" alias Coverage as source
uses "http://hl7.org/fhir/3.0/StructureDefinition/Coverage" alias CoverageR3 as target

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



group Coverage extends DomainResource
  input src : CoverageR3 as source
  input tgt : Coverage as target

  "Coverage.identifier": for src.identifier make tgt.identifier
  "Coverage.status": for src.status make tgt.status
  "Coverage.type": for src.type make tgt.type
  "Coverage.policyHolder": for src.policyHolder make tgt.policyHolder
  "Coverage.subscriber": for src.subscriber make tgt.subscriber
  "Coverage.subscriberId": for src.subscriberId make tgt.subscriberId
  "Coverage.beneficiary": for src.beneficiary make tgt.beneficiary
  "Coverage.dependent": for src.dependent make tgt.dependent
  "Coverage.relationship": for src.relationship make tgt.relationship
  "Coverage.period": for src.period make tgt.period
  "Coverage.payor": for src.payor make tgt.payor
  "Coverage.class": for src.class as s make tgt.class as t then CoverageClass(s,t)
  "Coverage.order": for src.order make tgt.order
  "Coverage.network": for src.network make tgt.network
  "Coverage.copay": for src.copay as s make tgt.copay as t then CoverageCopay(s,t)
  "Coverage.contract": for src.contract make tgt.contract
endgroup

group CoverageClass extends BackboneElement
  input src : CoverageR3 as source
  input tgt : Coverage as target

  "Coverage.class.type": for src.type make tgt.type
  "Coverage.class.value": for src.value make tgt.value
  "Coverage.class.name": for src.name make tgt.name
endgroup

group CoverageCopay extends BackboneElement
  input src : CoverageR3 as source
  input tgt : Coverage as target

  "Coverage.copay.type": for src.type make tgt.type
  "Coverage.copay.value": for src.value make tgt.value
endgroup