Current Build
Health Care Devices Work GroupMaturity Level: N/ABallot Status: Informative Compartments: Not linked to any defined compartments

R3 : R4 Conversion maps for DeviceComponent.

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

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


uses "http://hl7.org/fhir/3.0/StructureDefinition/DeviceComponent" alias DeviceComponentR3 as source
uses "http://hl7.org/fhir/StructureDefinition/DeviceComponent" alias DeviceComponent as target

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



group DeviceComponent extends DomainResource
  input src : DeviceComponentR3 as source
  input tgt : DeviceComponent as target

  "DeviceComponent.identifier" : for src.identifier as vs make tgt.identifier as vt
  "DeviceComponent.type" : for src.type as vs make tgt.type as vt
  "DeviceComponent.lastSystemChange" : for src.lastSystemChange as vs make tgt.lastSystemChange as vt
  "DeviceComponent.source" : for src.source as vs make tgt.source as vt
  "DeviceComponent.parent" : for src.parent as vs make tgt.parent as vt
  "DeviceComponent.operationalStatus" : for src.operationalStatus as vs make tgt.operationalStatus as vt
  "DeviceComponent.parameterGroup" : for src.parameterGroup as vs make tgt.parameterGroup as vt
  "DeviceComponent.measurementPrinciple" : for src.measurementPrinciple as vs make tgt.measurementPrinciple as vt
  "DeviceComponent.productionSpecification" : for src.productionSpecification as vs0 make tgt.productionSpecification as vt0 then {
    "DeviceComponent.productionSpecification.specType" : for vs0.specType as vs make vt0.specType as vt
    "DeviceComponent.productionSpecification.componentId" : for vs0.componentId as vs make vt0.componentId as vt
    "DeviceComponent.productionSpecification.productionSpec" : for vs0.productionSpec as vs make vt0.productionSpec as vt
  }
  "DeviceComponent.languageCode" : for src.languageCode as vs make tgt.languageCode as vt
endgroup


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


uses "http://hl7.org/fhir/StructureDefinition/DeviceComponent" alias DeviceComponent as source
uses "http://hl7.org/fhir/3.0/StructureDefinition/DeviceComponent" alias DeviceComponentR3 as target

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



group DeviceComponent extends DomainResource
  input src : DeviceComponent as source
  input tgt : DeviceComponentR3 as target

  "DeviceComponent.identifier" : for src.identifierFirstRep as vs make tgt.identifier as vt
  "DeviceComponent.type" : for src.type as vs make tgt.type as vt
  "DeviceComponent.lastSystemChange" : for src.lastSystemChange as vs make tgt.lastSystemChange as vt
  "DeviceComponent.source" : for src.source as vs make tgt.source as vt
  "DeviceComponent.parent" : for src.parent as vs make tgt.parent as vt
  "DeviceComponent.operationalStatus" : for src.operationalStatus as vs make tgt.operationalStatus as vt
  "DeviceComponent.parameterGroup" : for src.parameterGroup as vs make tgt.parameterGroup as vt
  "DeviceComponent.measurementPrinciple" : for src.measurementPrinciple as vs make tgt.measurementPrinciple as vt
  "DeviceComponent.productionSpecification" : for src.productionSpecification as vs0 make tgt.productionSpecification as vt0 then {
    "DeviceComponent.productionSpecification.specType" : for vs0.specType as vs make vt0.specType as vt
    "DeviceComponent.productionSpecification.componentId" : for vs0.componentId as vs make vt0.componentId as vt
    "DeviceComponent.productionSpecification.productionSpec" : for vs0.productionSpec as vs make vt0.productionSpec as vt
  }
  "DeviceComponent.languageCode" : for src.languageCode as vs make tgt.languageCode as vt
endgroup