#NEWLINE# def implNutritionOrder8( self , inst ) : #NEWLINE# #INDENT# self . assertEqual ( inst . dateTime . date , FHIRDate ( '2014-09-17' ) . date ) #NEWLINE# self . assertEqual ( inst . dateTime . as_json ( ) , '2014-09-17' ) #NEWLINE# self . assertEqual ( inst . enteralFormula . additiveProductName , 'Acme High Carbohydrate Additive' ) #NEWLINE# self . assertEqual ( inst . enteralFormula . additiveType . coding [ 0 ] . code , 'carbohydrate' ) #NEWLINE# self . assertEqual ( inst . enteralFormula . additiveType . coding [ 0 ] . display , 'Modular carbohydrate enteral formula component' ) #NEWLINE# self . assertEqual ( inst . enteralFormula . additiveType . coding [ 0 ] . system , 'http://hl7.org/fhir/entformula-additive' ) #NEWLINE# self . assertEqual ( inst . enteralFormula . administrationInstruction , 'Add high calorie high carbohydrate additive to increase cal/oz from 24 cal/oz to 27 cal/oz.' ) #NEWLINE# self . assertEqual ( inst . enteralFormula . administration [ 0 ] . quantity . code , '[foz_us]' ) #NEWLINE# self . assertEqual ( inst . enteralFormula . administration [ 0 ] . quantity . system , 'http://unitsofmeasure.org' ) #NEWLINE# self . assertEqual ( inst . enteralFormula . administration [ 0 ] . quantity . unit , 'ounces' ) #NEWLINE# self . assertEqual ( inst . enteralFormula . administration [ 0 ] . quantity . value , 4 ) #NEWLINE# self . assertEqual ( inst . enteralFormula . administration [ 0 ] . schedule . repeat . boundsPeriod . start . date , FHIRDate ( '2014-09-17' ) . date ) #NEWLINE# self . assertEqual ( inst . enteralFormula . administration [ 0 ] . schedule . repeat . boundsPeriod . start . as_json ( ) , '2014-09-17' ) #NEWLINE# self . assertEqual ( inst . enteralFormula . administration [ 0 ] . schedule . repeat . frequency , 1 ) #NEWLINE# self . assertEqual ( inst . enteralFormula . administration [ 0 ] . schedule . repeat . period , 3 ) #NEWLINE# self . assertEqual ( inst . enteralFormula . administration [ 0 ] . schedule . repeat . periodUnits , 'h' ) #NEWLINE# self . assertEqual ( inst . enteralFormula . baseFormulaProductName , 'Acme Infant Formula + Iron' ) #NEWLINE# self . assertEqual ( inst . enteralFormula . baseFormulaType . coding [ 0 ] . code , '412414007' ) #NEWLINE# self . assertEqual ( inst . enteralFormula . baseFormulaType . coding [ 0 ] . display , 'infant formula + iron' ) #NEWLINE# self . assertEqual ( inst . enteralFormula . baseFormulaType . coding [ 0 ] . system , 'http://snomed.info/sct' ) #NEWLINE# self . assertEqual ( inst . enteralFormula . caloricDensity . code , 'cal/[foz_us]' ) #NEWLINE# self . assertEqual ( inst . enteralFormula . caloricDensity . system , 'http://unitsofmeasure.org' ) #NEWLINE# self . assertEqual ( inst . enteralFormula . caloricDensity . unit , 'calories per ounce' ) #NEWLINE# self . assertEqual ( inst . enteralFormula . caloricDensity . value , 20 ) #NEWLINE# self . assertEqual ( inst . enteralFormula . maxVolumeToDeliver . code , '[foz_us]' ) #NEWLINE# self . assertEqual ( inst . enteralFormula . maxVolumeToDeliver . system , 'http://unitsofmeasure.org' ) #NEWLINE# self . assertEqual ( inst . enteralFormula . maxVolumeToDeliver . unit , 'ounces' ) #NEWLINE# self . assertEqual ( inst . enteralFormula . maxVolumeToDeliver . value , 32 ) #NEWLINE# self . assertEqual ( inst . enteralFormula . routeofAdministration . coding [ 0 ] . code , 'PO' ) #NEWLINE# self . assertEqual ( self . enteralFormula . routeofAdministration . coding [ 0 ] . display , 'Swallow, oral' ) #NEWLINE# self . assertEqual ( inst . enteralFormula . routeofAdministration . coding [ 0 ] . system , 'http://hl7.org/fhir/v3/RouteOfAdministration' ) #NEWLINE# self . assertTrue ( inst . enteralFormula . routeofAdministration . coding [ 0 ] . userSelected ) #NEWLINE# self . assertEqual ( inst . id , 'infantenteral' ) #NEWLINE# self . assertEqual ( inst . identifier [ 0 ] . system , 'http://www.acme.org/nutritionorders' ) #NEWLINE# self . assertEqual ( inst . identifier [ 0 ] . value , '123' ) #NEWLINE# self . assertEqual ( inst . status , 'active' ) #NEWLINE# self . assertEqual ( inst . text . status , 'generated' )