#NEWLINE# def implAuditEvent3( self , inst ) : #NEWLINE# #INDENT# self . assertEqual ( inst . event . action , 'R' ) #NEWLINE# self . assertEqual ( inst . event . dateTime . date , FHIRDate ( '2015-08-27T23:42:24Z' ) . date ) #NEWLINE# self . assertEqual ( inst . event . dateTime . as_json ( ) , '2015-08-27T23:42:24Z' ) #NEWLINE# self . assertEqual ( inst . event . outcome , '0' ) #NEWLINE# self . assertEqual ( inst . event . subtype [ 0 ] . code , 'ITI-32' ) #NEWLINE# self . assertEqual ( inst . event . subtype [ 0 ] . display , 'Distribute Document Set on Media' ) #NEWLINE# self . assertEqual ( inst . event . subtype [ 0 ] . system , 'urn:oid:1.3.6.1.4.1.19376.1.2' ) #NEWLINE# self . assertEqual ( inst . event . type . code , '110106' ) #NEWLINE# self . assertEqual ( inst . event . type . display , 'Export' ) #NEWLINE# self . assertEqual ( inst . event . type . system , 'http://nema.org/dicom/dicm' ) #NEWLINE# self . assertEqual ( inst . id , 'example-media' ) #NEWLINE# self . assertEqual ( inst . object [ 0 ] . identifier . value , 'e3cdfc81a0d24bd^^^&2.16.840.1.113883.4.2&ISO' ) #NEWLINE# self . assertEqual ( inst . object [ 0 ] . role . code , '1' ) #NEWLINE# self . assertEqual ( inst . object [ 0 ] . role . display , 'Patient' ) #NEWLINE# self . assertEqual ( inst . object [ 0 ] . role . system , 'http://hl7.org/fhir/object-role' ) #NEWLINE# self . assertEqual ( inst . object [ 0 ] . type . code , '1' ) #NEWLINE# self . assertEqual ( inst . object [ 0 ] . type . display , 'Person' ) #NEWLINE# self . assertEqual ( inst . object [ 0 ] . type . system , 'http://hl7.org/fhir/object-type' ) #NEWLINE# self . assertEqual ( inst . object [ 1 ] . identifier . type . coding [ 0 ] . code , 'IHE XDS Metadata' ) #NEWLINE# self . assertEqual ( inst . object [ 1 ] . identifier . type . coding [ 0 ] . display , 'submission set classificationNode' ) #NEWLINE# self . assertEqual ( inst . object [ 1 ] . identifier . type . coding [ 0 ] . system , 'urn:uuid:a54d6aa5-d40d-43f9-88c5-b4633d873bdd' ) #NEWLINE# self . assertEqual ( inst . object [ 1 ] . identifier . value , 'e3cdfc81a0d24bd^^^&2.16.840.1.113883.4.2&ISO' ) #NEWLINE# self . assertEqual ( inst . object [ 1 ] . role . code , '20' ) #NEWLINE# self . assertEqual ( inst . object [ 1 ] . role . display , 'Job' ) #NEWLINE# self . assertEqual ( inst . object [ 1 ] . role . system , 'http://hl7.org/fhir/object-role' ) #NEWLINE# self . assertEqual ( inst . object [ 1 ] . type . code , '2' ) #NEWLINE# self . assertEqual ( inst . object [ 1 ] . type . display , 'System Object' ) #NEWLINE# self . assertEqual ( inst . object [ 1 ] . type . system , 'http://hl7.org/fhir/object-type' ) #NEWLINE# self . assertEqual ( inst . object [ 2 ] . type . code , '2' ) #NEWLINE# self . assertEqual ( inst . object [ 2 ] . type . display , 'System Object' ) #NEWLINE# self . assertEqual ( inst . object [ 2 ] . type . system , 'http://hl7.org/fhir/object-type' ) #NEWLINE# self . assertFalse ( inst . participant [ 0 ] . requestor ) #NEWLINE# self . assertEqual ( inst . participant [ 0 ] . role [ 0 ] . coding [ 0 ] . code , '110153' ) #NEWLINE# self . assertEqual ( inst . participant [ 0 ] . role [ 0 ] . coding [ 0 ] . display , 'Source Role ID' ) #NEWLINE# self . assertEqual ( inst . participant [ 0 ] . role [ 0 ] . coding [ 0 ] . system , 'http://nema.org/dicom/dicm' ) #NEWLINE# self . assertEqual ( inst . participant [ 0 ] . userId . value , 'ExportToMedia.app' ) #NEWLINE# self . assertEqual ( inst . participant [ 1 ] . altId , '601847123' ) #NEWLINE# self . assertEqual ( inst . participant [ 1 ] . name , 'Grahame Grieve' ) #NEWLINE# self . assertTrue ( inst . participant [ 1 ] . requestor ) #NEWLINE# self . assertEqual ( inst . participant [ 1 ] . userId . value , '95' ) #NEWLINE# self . assertEqual ( inst . participant [ 2 ] . media . code , '110033' ) #NEWLINE# self . assertEqual ( inst . participant [ 2 ] . media . display , 'DVD' ) #NEWLINE# self . assertEqual ( inst . participant [ 2 ] . media . system , 'http://nema.org/dicom/dicm' ) #NEWLINE# self . assertEqual ( inst . participant [ 2 ] . name , 'Media title: Hello World' ) #NEWLINE# self . assertFalse ( inst . participant [ 2 ] . requestor ) #NEWLINE# self . assertEqual ( inst . source . identifier . value , 'hl7connect.healthintersections.com.au' ) #NEWLINE# self . assertEqual ( inst . text . status , 'generated' )