Current Build
Patient Administration Work GroupMaturity Level: N/ABallot Status: Informative Compartments: Device, Encounter, Patient, Practitioner, RelatedPerson

R3 : R4 Conversion maps for ChargeItem.

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

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


uses "http://hl7.org/fhir/3.0/StructureDefinition/ChargeItem" alias ChargeItemR3 as source
uses "http://hl7.org/fhir/StructureDefinition/ChargeItem" alias ChargeItem as target

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



group ChargeItem extends DomainResource
  input src : ChargeItemR3 as source
  input tgt : ChargeItem as target

  "ChargeItem.identifier": for src.identifier make tgt.identifier
  "ChargeItem.definition": for src.definition make tgt.definition
  "ChargeItem.status": for src.status make tgt.status
  "ChargeItem.partOf": for src.partOf make tgt.partOf
  "ChargeItem.code": for src.code make tgt.code
  "ChargeItem.subject": for src.subject make tgt.subject
  "ChargeItem.context": for src.context make tgt.context
  "ChargeItem.occurrence": for src.occurrence make tgt.occurrence
  "ChargeItem.performer": for src.performer as s make tgt.performer as t then ChargeItemPerformer(s,t)
  "ChargeItem.performingOrganization": for src.performingOrganization make tgt.performingOrganization
  "ChargeItem.requestingOrganization": for src.requestingOrganization make tgt.requestingOrganization
  "ChargeItem.costCenter": for src.costCenter make tgt.costCenter
  "ChargeItem.quantity": for src.quantity make tgt.quantity
  "ChargeItem.bodysite": for src.bodysite make tgt.bodysite
  "ChargeItem.factorOverride": for src.factorOverride make tgt.factorOverride
  "ChargeItem.priceOverride": for src.priceOverride make tgt.priceOverride
  "ChargeItem.overrideReason": for src.overrideReason make tgt.overrideReason
  "ChargeItem.enterer": for src.enterer make tgt.enterer
  "ChargeItem.enteredDate": for src.enteredDate make tgt.enteredDate
  "ChargeItem.reason": for src.reason make tgt.reason
  "ChargeItem.service": for src.service make tgt.service
  "ChargeItem.product": for src.product make tgt.product
  "ChargeItem.account": for src.account make tgt.account
  "ChargeItem.note": for src.note make tgt.note
  "ChargeItem.supportingInformation": for src.supportingInformation make tgt.supportingInformation
endgroup


group ChargeItemPerformer extends BackboneElement
  input src : ChargeItemR3 as source
  input tgt : ChargeItem as target

  "ChargeItem.performer.function": for src.function make tgt.function
  "ChargeItem.performer.actor": for src.actor make tgt.actor
endgroup


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


uses "http://hl7.org/fhir/StructureDefinition/ChargeItem" alias ChargeItem as source
uses "http://hl7.org/fhir/3.0/StructureDefinition/ChargeItem" alias ChargeItemR3 as target

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



group ChargeItem extends DomainResource
  input src : ChargeItemR3 as source
  input tgt : ChargeItem as target

  "ChargeItem.identifier": for src.identifier make tgt.identifier
  "ChargeItem.definition": for src.definition make tgt.definition
  "ChargeItem.status": for src.status make tgt.status
  "ChargeItem.partOf": for src.partOf make tgt.partOf
  "ChargeItem.code": for src.code make tgt.code
  "ChargeItem.subject": for src.subject make tgt.subject
  "ChargeItem.context": for src.context make tgt.context
  "ChargeItem.occurrence": for src.occurrence make tgt.occurrence
  "ChargeItem.performer": for src.performer as s make tgt.performer as t then ChargeItemPerformer(s,t)
  "ChargeItem.performingOrganization": for src.performingOrganization make tgt.performingOrganization
  "ChargeItem.requestingOrganization": for src.requestingOrganization make tgt.requestingOrganization
  "ChargeItem.costCenter": for src.costCenter make tgt.costCenter
  "ChargeItem.quantity": for src.quantity make tgt.quantity
  "ChargeItem.bodysite": for src.bodysite make tgt.bodysite
  "ChargeItem.factorOverride": for src.factorOverride make tgt.factorOverride
  "ChargeItem.priceOverride": for src.priceOverride make tgt.priceOverride
  "ChargeItem.overrideReason": for src.overrideReason make tgt.overrideReason
  "ChargeItem.enterer": for src.enterer make tgt.enterer
  "ChargeItem.enteredDate": for src.enteredDate make tgt.enteredDate
  "ChargeItem.reason": for src.reason make tgt.reason
  "ChargeItem.service": for src.service make tgt.service
  "ChargeItem.product": for src.product make tgt.product
  "ChargeItem.account": for src.account make tgt.account
  "ChargeItem.note": for src.note make tgt.note
  "ChargeItem.supportingInformation": for src.supportingInformation make tgt.supportingInformation
endgroup

group ChargeItemPerformer extends BackboneElement
  input src : ChargeItemR3 as source
  input tgt : ChargeItem as target

  "ChargeItem.performer.function": for src.function make tgt.function
  "ChargeItem.performer.actor": for src.actor make tgt.actor
endgroup