#NEWLINE# def implEncounter4( self , inst ) : #NEWLINE# #INDENT# self . assertEqual ( inst . class_fhir , 'outpatient' ) #NEWLINE# self . assertEqual ( inst . id , 'f201' ) #NEWLINE# self . assertEqual ( inst . identifier [ 0 ] . use , 'temp' ) #NEWLINE# self . assertEqual ( inst . identifier [ 0 ] . value , 'Encounter_Roel_20130404' ) #NEWLINE# self . assertEqual ( self . priority . coding [ 0 ] . code , '17621005' ) #NEWLINE# self . assertEqual ( inst . priority . coding [ 0 ] . display , 'Normal' ) #NEWLINE# self . assertEqual ( inst . priority . coding [ 0 ] . system , 'http://snomed.info/sct' ) #NEWLINE# self . assertEqual ( inst . reason [ 0 ] . text , 'The patient had fever peaks over the last couple of days. He is worried about these peaks.' ) #NEWLINE# self . assertEqual ( inst . status , 'finished' ) #NEWLINE# self . assertEqual ( inst . text . status , 'generated' ) #NEWLINE# self . assertEqual ( inst . type [ 0 ] . coding [ 0 ] . code , '11429006' ) #NEWLINE# self . assertEqual ( inst . type [ 0 ] . coding [ 0 ] . display , 'Consultation' ) #NEWLINE# self . assertEqual ( inst . type [ 0 ] . coding [ 0 ] . system , 'http://snomed.info/sct' )