#NEWLINE# def implAuditEvent1( self , inst ) : #NEWLINE# #INDENT# self . assertEqual ( inst . event . action , 'E' ) #NEWLINE# self . assertEqual ( inst . event . dateTime . date , FHIRDate ( '2013-06-20T23:41:23Z' ) . date ) #NEWLINE# self . assertEqual ( inst . event . dateTime . as_json ( ) , '2013-06-20T23:41:23Z' ) #NEWLINE# self . assertEqual ( inst . event . outcome , '0' ) #NEWLINE# self . assertEqual ( inst . event . subtype [ 0 ] . code , '110122' ) #NEWLINE# self . assertEqual ( inst . event . subtype [ 0 ] . display , 'Login' ) #NEWLINE# self . assertEqual ( inst . event . subtype [ 0 ] . system , 'http://nema.org/dicom/dicm' ) #NEWLINE# self . assertEqual ( inst . event . type . code , '110114' ) #NEWLINE# self . assertEqual ( inst . event . type . display , 'User Authentication' ) #NEWLINE# self . assertEqual ( inst . event . type . system , 'http://nema.org/dicom/dicm' ) #NEWLINE# self . assertEqual ( inst . id , 'example-login' ) #NEWLINE# self . assertEqual ( inst . participant [ 0 ] . altId , '601847123' ) #NEWLINE# self . assertEqual ( inst . participant [ 0 ] . name , 'Grahame Grieve' ) #NEWLINE# self . assertEqual ( inst . participant [ 0 ] . network . address , '127.0.0.1' ) #NEWLINE# self . assertEqual ( inst . participant [ 0 ] . network . type , '2' ) #NEWLINE# self . assertTrue ( inst . participant [ 0 ] . requestor ) #NEWLINE# self . assertEqual ( inst . participant [ 0 ] . userId . value , '95' ) #NEWLINE# self . assertEqual ( inst . source . identifier . value , 'hl7connect.healthintersections.com.au' ) #NEWLINE# self . assertEqual ( inst . source . site , 'Cloud' ) #NEWLINE# self . assertEqual ( inst . source . type [ 0 ] . code , '3' ) #NEWLINE# self . assertEqual ( inst . source . type [ 0 ] . display , 'Web Server' ) #NEWLINE# self . assertEqual ( inst . source . type [ 0 ] . system , 'http://hl7.org/fhir/security-source-type' ) #NEWLINE# self . assertEqual ( inst . text . status , 'generated' )