#NEWLINE# def implProcedure8( self , inst ) : #NEWLINE# #INDENT# self . assertEqual ( inst . code . coding [ 0 ] . code , '80146002' ) #NEWLINE# self . assertEqual ( inst . code . coding [ 0 ] . display , 'Appendectomy (Procedure)' ) #NEWLINE# self . assertEqual ( inst . code . coding [ 0 ] . system , 'http://snomed.info/sct' ) #NEWLINE# self . assertEqual ( inst . code . text , 'Appendectomy' ) #NEWLINE# self . assertEqual ( inst . followUp [ 0 ] . text , 'ROS 5 days  - 2013-04-10' ) #NEWLINE# self . assertEqual ( inst . id , 'example' ) #NEWLINE# self . assertEqual ( inst . notes [ 0 ] . text , 'Routine Appendectomy. Appendix was inflamed and in retro-caecal position' ) #NEWLINE# self . assertEqual ( inst . performedDateTime . date , FHIRDate ( '2013-04-05' ) . date ) #NEWLINE# self . assertEqual ( inst . performedDateTime . as_json ( ) , '2013-04-05' ) #NEWLINE# self . assertEqual ( self . reasonCodeableConcept . text , 'Generalized abdominal pain 24 hours. Localized in RIF with rebound and guarding' ) #NEWLINE# self . assertEqual ( inst . status , 'completed' ) #NEWLINE# self . assertEqual ( inst . text . div , '<div>Routine Appendectomy</div>' ) #NEWLINE# self . assertEqual ( inst . text . status , 'generated' )