#NEWLINE# def implNutritionOrder9( 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 . id , 'proteinsupplement' ) #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 ] . instruction , 'Beneprotein 1 scoop TID with meal.starting on  2015-02-10' ) #NEWLINE# self . assertEqual ( inst . supplement [ 0 ] . productName , 'Beneprotein' ) #NEWLINE# self . assertEqual ( inst . supplement [ 0 ] . quantity . code , '{scoop}' ) #NEWLINE# self . assertEqual ( inst . supplement [ 0 ] . quantity . system , 'http://unitsofmeasure.org' ) #NEWLINE# self . assertEqual ( inst . supplement [ 0 ] . quantity . unit , 'scoop' ) #NEWLINE# self . assertEqual ( inst . supplement [ 0 ] . quantity . value , 1 ) #NEWLINE# self . assertEqual ( inst . supplement [ 0 ] . schedule [ 0 ] . repeat . boundsPeriod . start . date , FHIRDate ( '2015-02-10' ) . date ) #NEWLINE# self . assertEqual ( inst . supplement [ 0 ] . schedule [ 0 ] . repeat . boundsPeriod . start . as_json ( ) , '2015-02-10' ) #NEWLINE# self . assertEqual ( inst . supplement [ 0 ] . schedule [ 0 ] . repeat . when , 'C' ) #NEWLINE# self . assertEqual ( inst . supplement [ 0 ] . type . coding [ 0 ] . code , '442991000124104' ) #NEWLINE# self . assertEqual ( inst . supplement [ 0 ] . type . coding [ 0 ] . display , 'Adult high protein 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 , '1000' ) #NEWLINE# self . assertEqual ( inst . supplement [ 0 ] . type . coding [ 1 ] . display , 'High Protein Powder' ) #NEWLINE# self . assertEqual ( inst . supplement [ 0 ] . type . coding [ 1 ] . system , 'http://goodhealthhospital.org/supplement-type-codes' ) #NEWLINE# self . assertEqual ( inst . supplement [ 0 ] . type . text , 'High Protein Powder' ) #NEWLINE# self . assertEqual ( inst . text . status , 'generated' )