This page is part of the FHIR Core Extensions Registry (v5.1.0-ballot: Releases Ballot 4) based on FHIR (HL7® FHIR® Standard) v5.0.0. The current version which supersedes this version is 1.0.0. For a full list of available versions, see the Directory of published versions
Official URL: http://hl7.org/fhir/StructureMap/NutritionOrder5to4 | Version: 5.1.0-ballot1 | |||
Standards status: Trial-use | Maturity Level: 1 | Computable Name: NutritionOrder5to4 |
FMLConversionforNutritionOrderR5toR4
/// url = 'http://hl7.org/fhir/StructureMap/NutritionOrder5to4' /// name = 'NutritionOrder5to4' /// title = 'FML Conversion for NutritionOrder: R5 to R4' /// status = 'active' conceptmap "NutritiionOrderIntent" { prefix s = "http://hl7.org/fhir/request-intent" prefix t = "http://hl7.org/fhir/4.0/request-intent" s:proposal - t:proposal s:plan - t:plan s:directive - t:directive s:order - t:order s:"original-order" - t:"original-order" s:"reflex-order" - t:"reflex-order" s:"filler-order" - t:"filler-order" s:"instance-order" - t:"instance-order" s:option - t:option } conceptmap "NutritionOrderStatus" { prefix s = "http://hl7.org/fhir/request-status" prefix t = "http://hl7.org/fhir/4.0/request-status" s:draft - t:draft s:active - t:active s:"on-hold" - t:"on-hold" s:revoked - t:revoked s:completed - t:completed s:"entered-in-error" - t:"entered-in-error" s:unknown - t:unknown } uses "http://hl7.org/fhir/StructureDefinition/NutritionOrder" alias NutritionOrderR5 as source uses "http://hl7.org/fhir/4.0/StructureDefinition/NutritionOrder" alias NutritionOrderR4 as target imports "http://hl7.org/fhir/StructureMap/*5to4" group NutritionOrder(source src : NutritionOrderR5, target tgt : NutritionOrderR4) extends DomainResource <<type+>> { src.identifier -> tgt.identifier; src.instantiatesCanonical -> tgt.instantiatesCanonical; src.instantiatesUri -> tgt.instantiatesUri; src.instantiates -> tgt.instantiates; src.status as v -> tgt.status = translate(v, '#NutritionOrderStatus', 'code'); // src.basedOn -> tgt.basedOn; src.intent as v -> tgt.intent = translate(v, '#NutritiionOrderIntent', 'code'); src.subject -> tgt.patient; // src.priority as v -> tgt.priority = translate(v, '#NutritionOrderPriority', 'code'); src.encounter -> tgt.encounter; src.dateTime -> tgt.dateTime; // src.supportingInformation -> tgt.supportingInformation; src.orderer -> tgt.orderer; src.allergyIntolerance -> tgt.allergyIntolerance; // src.performer -> tgt.performer; src.foodPreferenceModifier -> tgt.foodPreferenceModifier; src.excludeFoodModifier -> tgt.excludeFoodModifier; src.oralDiet as s -> tgt.oralDiet as t then NutritionOrderOralDiet(s, t); // src.outsideFoodAllowed -> tgt.outsideFoodAllowed; src.supplement as s -> tgt.supplement as t then NutritionOrderSupplement(s, t); src.enteralFormula as s -> tgt.enteralFormula as t then NutritionOrderEnteralFormula(s, t); src.note -> tgt.note; } group NutritionOrderOralDiet(source src, target tgt) extends BackboneElement { src.type -> tgt.type; src.schedule as s -> tgt then { s.timing -> tgt.schedule; }; src.nutrient as s -> tgt.nutrient as t then NutritionOrderOralDietNutrient(s, t); src.texture as s -> tgt.texture as t then NutritionOrderOralDietTexture(s, t); src.fluidConsistencyType -> tgt.fluidConsistencyType; src.instruction -> tgt.instruction; } // group NutritionOrderOralDietSchedule(source src, target tgt) extends BackboneElement { // src.timing -> tgt.timing; // src.asNeeded -> tgt.asNeeded; // src.asNeededFor -> tgt.asNeededFor; // } group NutritionOrderOralDietNutrient(source src, target tgt) extends BackboneElement { src.modifier -> tgt.modifier; src.amount -> tgt.amount; } group NutritionOrderOralDietTexture(source src, target tgt) extends BackboneElement { src.modifier -> tgt.modifier; src.foodType -> tgt.foodType; } group NutritionOrderSupplement(source src, target tgt) extends BackboneElement { src.type -> tgt.type; src.productName -> tgt.productName; src.schedule as s -> tgt then { s.timing -> tgt.schedule; }; src.quantity -> tgt.quantity; src.instruction -> tgt.instruction; } // group NutritionOrderSupplementSchedule(source src, target tgt) extends BackboneElement { // src.timing -> tgt.timing; // src.asNeeded -> tgt.asNeeded; // src.asNeededFor -> tgt.asNeededFor; // } group NutritionOrderEnteralFormula(source src, target tgt) extends BackboneElement { src.baseFormulaType -> tgt.baseFormulaType; src.baseFormulaProductName -> tgt.baseFormulaProductName; src.additive as s -> tgt then { s.type -> tgt.additiveType; s.productName -> tgt.additiveProductName; }; // src.deliveryDevice -> tgt.deliveryDevice; src.caloricDensity -> tgt.caloricDensity; src.routeOfAdministration -> tgt.routeofAdministration; src.administration as s -> tgt.administration as t then NutritionOrderEnteralFormulaAdministration(s, t); src.maxVolumeToDeliver -> tgt.maxVolumeToDeliver; src.administrationInstruction -> tgt.administrationInstruction; } // group NutritionOrderEnteralFormulaAdditive(source src, target tgt) extends BackboneElement { // src.type -> tgt.type; // src.productName -> tgt.productName; // src.quantity -> tgt.quantity; // } group NutritionOrderEnteralFormulaAdministration(source src, target tgt) extends BackboneElement { src.schedule as s -> tgt then { s.timing -> tgt.schedule; }; src.quantity -> tgt.quantity; src.rate : Quantity -> tgt.rate; src.rate : Ratio -> tgt.rate; }