Current Build
Orders and Observations Work GroupMaturity Level: N/ABallot Status: Informative Compartments: Device, Patient, Practitioner, RelatedPerson

R3 : R4 Conversion maps for SupplyRequest.

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

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


uses "http://hl7.org/fhir/3.0/StructureDefinition/SupplyRequest" alias SupplyRequestR3 as source
uses "http://hl7.org/fhir/StructureDefinition/SupplyRequest" alias SupplyRequest as target

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



group SupplyRequest extends DomainResource
  input src : SupplyRequestR3 as source
  input tgt : SupplyRequest as target

  "SupplyRequest.identifier": for src.identifier make tgt.identifier
  "SupplyRequest.status": for src.status make tgt.status
  "SupplyRequest.category": for src.category make tgt.category
  "SupplyRequest.priority": for src.priority make tgt.priority
  "SupplyRequest.item": for src.item make tgt.item
  "SupplyRequest.quantity": for src.quantity make tgt.quantity
  "SupplyRequest.parameter": for src.parameter as s make tgt.parameter as t then SupplyRequestParameter(s,t)
  "SupplyRequest.occurrence": for src.occurrence make tgt.occurrence
  "SupplyRequest.authoredOn": for src.authoredOn make tgt.authoredOn
  "SupplyRequest.requester": for src.requester make tgt.requester
  "SupplyRequest.supplier": for src.supplier make tgt.supplier
  "SupplyRequest.reasonCode": for src.reasonCode make tgt.reasonCode
  "SupplyRequest.reasonReference": for src.reasonReference make tgt.reasonReference
  "SupplyRequest.deliverFrom": for src.deliverFrom make tgt.deliverFrom
  "SupplyRequest.deliverTo": for src.deliverTo make tgt.deliverTo
endgroup


group SupplyRequestParameter extends BackboneElement
  input src : SupplyRequestR3 as source
  input tgt : SupplyRequest as target

  "SupplyRequest.parameter.code": for src.code make tgt.code
  "SupplyRequest.parameter.value": for src.value make tgt.value
endgroup


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


uses "http://hl7.org/fhir/StructureDefinition/SupplyRequest" alias SupplyRequest as source
uses "http://hl7.org/fhir/3.0/StructureDefinition/SupplyRequest" alias SupplyRequestR3 as target

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



group SupplyRequest extends DomainResource
  input src : SupplyRequestR3 as source
  input tgt : SupplyRequest as target

  "SupplyRequest.identifier": for src.identifier make tgt.identifier
  "SupplyRequest.status": for src.status make tgt.status
  "SupplyRequest.category": for src.category make tgt.category
  "SupplyRequest.priority": for src.priority make tgt.priority
  "SupplyRequest.item": for src.item make tgt.item
  "SupplyRequest.quantity": for src.quantity make tgt.quantity
  "SupplyRequest.parameter": for src.parameter as s make tgt.parameter as t then SupplyRequestParameter(s,t)
  "SupplyRequest.occurrence": for src.occurrence make tgt.occurrence
  "SupplyRequest.authoredOn": for src.authoredOn make tgt.authoredOn
  "SupplyRequest.requester": for src.requester make tgt.requester
  "SupplyRequest.supplier": for src.supplier make tgt.supplier
  "SupplyRequest.reasonCode": for src.reasonCode make tgt.reasonCode
  "SupplyRequest.reasonReference": for src.reasonReference make tgt.reasonReference
  "SupplyRequest.deliverFrom": for src.deliverFrom make tgt.deliverFrom
  "SupplyRequest.deliverTo": for src.deliverTo make tgt.deliverTo
endgroup

group SupplyRequestParameter extends BackboneElement
  input src : SupplyRequestR3 as source
  input tgt : SupplyRequest as target

  "SupplyRequest.parameter.code": for src.code make tgt.code
  "SupplyRequest.parameter.value": for src.value make tgt.value
endgroup