#NEWLINE# def implNutritionOrder3( 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 . excludeFoodModifier [ 0 ] . coding [ 0 ] . code , '227493005' ) #NEWLINE# self . assertEqual ( inst . excludeFoodModifier [ 0 ] . coding [ 0 ] . display , 'Cashew Nut' ) #NEWLINE# self . assertEqual ( inst . excludeFoodModifier [ 0 ] . coding [ 0 ] . system , 'http://snomed.info/sct' ) #NEWLINE# self . assertEqual ( inst . excludeFoodModifier [ 0 ] . coding [ 0 ] . version , '20140730' ) #NEWLINE# self . assertEqual ( inst . foodPreferenceModifier [ 0 ] . coding [ 0 ] . code , 'kosher' ) #NEWLINE# self . assertEqual ( inst . foodPreferenceModifier [ 0 ] . coding [ 0 ] . system , 'http://hl7.org/fhir/diet' ) #NEWLINE# self . assertEqual ( inst . id , 'diabeticsupplement' ) #NEWLINE# self . assertEqual ( inst . identifier [ 0 ] . system , 'http://goodhealthhospital.org/nutrition-orders' ) #NEWLINE# self . assertEqual ( inst . identifier [ 0 ] . value , '123' ) #NEWLINE# self . assertEqual ( inst . status , 'active' ) #NEWLINE# self . assertEqual ( inst . supplement [ 0 ] . productName , 'Glucerna' ) #NEWLINE# self . assertEqual ( inst . supplement [ 0 ] . quantity . unit , '8 oz bottle' ) #NEWLINE# self . assertEqual ( inst . supplement [ 0 ] . quantity . value , 1 ) #NEWLINE# self . assertEqual ( inst . supplement [ 0 ] . schedule [ 0 ] . repeat . boundsPeriod . start . date , FHIRDate ( '2015-02-10T15:00:00Z' ) . date ) #NEWLINE# self . assertEqual ( inst . supplement [ 0 ] . schedule [ 0 ] . repeat . boundsPeriod . start . as_json ( ) , '2015-02-10T15:00:00Z' ) #NEWLINE# self . assertEqual ( inst . supplement [ 0 ] . schedule [ 0 ] . repeat . frequency , 1 ) #NEWLINE# self . assertEqual ( inst . supplement [ 0 ] . schedule [ 0 ] . repeat . period , 24 ) #NEWLINE# self . assertEqual ( inst . supplement [ 0 ] . schedule [ 0 ] . repeat . periodUnits , 'h' ) #NEWLINE# self . assertEqual ( inst . supplement [ 0 ] . schedule [ 1 ] . repeat . duration , 1 ) #NEWLINE# self . assertEqual ( inst . supplement [ 0 ] . schedule [ 1 ] . repeat . durationUnits , 'h' ) #NEWLINE# self . assertEqual ( inst . supplement [ 0 ] . schedule [ 1 ] . repeat . when , 'HS' ) #NEWLINE# self . assertEqual ( inst . supplement [ 0 ] . type . coding [ 0 ] . code , '443051000124104' ) #NEWLINE# self . assertEqual ( inst . supplement [ 0 ] . type . coding [ 0 ] . display , 'Adult diabetes specialty formula' ) #NEWLINE# self . assertEqual ( inst . supplement [ 0 ] . type . coding [ 0 ] . system , 'http://snomed.info/sct' ) #NEWLINE# self . assertEqual ( inst . supplement [ 0 ] . type . coding [ 1 ] . code , '1010' ) #NEWLINE# self . assertEqual ( inst . supplement [ 0 ] . type . coding [ 1 ] . display , 'Adult diabetic formula' ) #NEWLINE# self . assertEqual ( inst . supplement [ 0 ] . type . coding [ 1 ] . system , 'http://goodhealthhospital.org/supplement-type-codes' ) #NEWLINE# self . assertEqual ( inst . supplement [ 0 ] . type . text , 'Adult diabetic formula' ) #NEWLINE# self . assertEqual ( inst . text . status , 'generated' )