#NEWLINE# def implAuditEvent7( self , inst ) : #NEWLINE# #INDENT# self . assertEqual ( inst . event . action , 'R' ) #NEWLINE# self . assertEqual ( inst . event . dateTime . date , FHIRDate ( '2013-09-22T00:08:00Z' ) . date ) #NEWLINE# self . assertEqual ( inst . event . dateTime . as_json ( ) , '2013-09-22T00:08:00Z' ) #NEWLINE# self . assertEqual ( inst . event . outcome , '0' ) #NEWLINE# self . assertEqual ( inst . event . outcomeDesc , 'Successful  Disclosure' ) #NEWLINE# self . assertEqual ( inst . event . purposeOfEvent [ 0 ] . code , 'HMARKT' ) #NEWLINE# self . assertEqual ( inst . event . purposeOfEvent [ 0 ] . display , 'healthcare marketing' ) #NEWLINE# self . assertEqual ( inst . event . purposeOfEvent [ 0 ] . system , 'http://hl7.org/fhir/v3/ActReason' ) #NEWLINE# self . assertEqual ( inst . event . subtype [ 0 ] . code , 'Disclosure' ) #NEWLINE# self . assertEqual ( inst . event . subtype [ 0 ] . display , 'HIPAA disclosure' ) #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-disclosure' ) #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/valueset-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 ] . description , 'data about Everthing important' ) #NEWLINE# self . assertEqual ( inst . object [ 1 ] . identifier . value , 'What.id' ) #NEWLINE# self . assertEqual ( inst . object [ 1 ] . lifecycle . code , '11' ) #NEWLINE# self . assertEqual ( inst . object [ 1 ] . lifecycle . display , 'Disclosure' ) #NEWLINE# self . assertEqual ( inst . object [ 1 ] . lifecycle . system , 'http://hl7.org/fhir/object-lifecycle' ) #NEWLINE# self . assertEqual ( inst . object [ 1 ] . name , 'Namne of What' ) #NEWLINE# self . assertEqual ( inst . object [ 1 ] . role . code , '4' ) #NEWLINE# self . assertEqual ( inst . object [ 1 ] . role . display , 'DomainResource' ) #NEWLINE# self . assertEqual ( inst . object [ 1 ] . role . system , 'http://hl7.org/fhir/valueset-object-role' ) #NEWLINE# self . assertEqual ( inst . object [ 1 ] . securityLabel [ 0 ] . code , 'V' ) #NEWLINE# self . assertEqual ( inst . object [ 1 ] . securityLabel [ 0 ] . display , 'very restricted' ) #NEWLINE# self . assertEqual ( inst . object [ 1 ] . securityLabel [ 0 ] . system , 'http://hl7.org/fhir/v3/Confidentiality' ) #NEWLINE# self . assertEqual ( inst . object [ 1 ] . securityLabel [ 1 ] . code , 'STD' ) #NEWLINE# self . assertEqual ( inst . object [ 1 ] . securityLabel [ 1 ] . display , 'sexually transmitted disease information sensitivity' ) #NEWLINE# self . assertEqual ( inst . object [ 1 ] . securityLabel [ 1 ] . system , 'http://hl7.org/fhir/v3/ActCode' ) #NEWLINE# self . assertEqual ( inst . object [ 1 ] . securityLabel [ 2 ] . code , 'DELAU' ) #NEWLINE# self . assertEqual ( inst . object [ 1 ] . securityLabel [ 2 ] . display , 'delete after use' ) #NEWLINE# self . assertEqual ( inst . object [ 1 ] . securityLabel [ 2 ] . system , 'http://hl7.org/fhir/v3/ActCode' ) #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 . participant [ 0 ] . altId , 'notMe' ) #NEWLINE# self . assertEqual ( inst . participant [ 0 ] . name , 'That guy everyone wishes would be caught' ) #NEWLINE# self . assertEqual ( inst . participant [ 0 ] . network . address , 'custodian.net' ) #NEWLINE# self . assertEqual ( inst . participant [ 0 ] . network . type , '1' ) #NEWLINE# self . assertEqual ( inst . participant [ 0 ] . policy [ 0 ] , 'http://consent.com/yes' ) #NEWLINE# self . assertTrue ( 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 , 'SomeIdiot@nowhere.com' ) #NEWLINE# self . assertEqual ( inst . participant [ 1 ] . network . address , 'marketing.land' ) #NEWLINE# self . assertEqual ( inst . participant [ 1 ] . network . type , '1' ) #NEWLINE# self . assertEqual ( inst . participant [ 1 ] . purposeOfUse [ 0 ] . code , 'HMARKT' ) #NEWLINE# self . assertEqual ( inst . participant [ 1 ] . purposeOfUse [ 0 ] . display , 'healthcare marketing' ) #NEWLINE# self . assertEqual ( inst . participant [ 1 ] . purposeOfUse [ 0 ] . system , 'http://hl7.org/fhir/v3/ActReason' ) #NEWLINE# self . assertFalse ( inst . participant [ 1 ] . requestor ) #NEWLINE# self . assertEqual ( inst . participant [ 1 ] . role [ 0 ] . coding [ 0 ] . code , '110152' ) #NEWLINE# self . assertEqual ( inst . participant [ 1 ] . role [ 0 ] . coding [ 0 ] . display , 'Destination Role ID' ) #NEWLINE# self . assertEqual ( inst . participant [ 1 ] . role [ 0 ] . coding [ 0 ] . system , 'http://nema.org/dicom/dicm' ) #NEWLINE# self . assertEqual ( inst . participant [ 1 ] . userId . value , 'Where' ) #NEWLINE# self . assertEqual ( inst . source . identifier . value , 'Watchers Accounting of Disclosures Application' ) #NEWLINE# self . assertEqual ( inst . source . site , 'Watcher' ) #NEWLINE# self . assertEqual ( inst . source . type [ 0 ] . code , '4' ) #NEWLINE# self . assertEqual ( inst . source . type [ 0 ] . display , 'Application Server' ) #NEWLINE# self . assertEqual ( inst . source . type [ 0 ] . system , 'http://hl7.org/fhir/security-source-type' ) #NEWLINE# self . assertEqual ( inst . text . div , '<div>Disclosure by some idiot, for marketing reasons, to places unknown, of a Poor Sap, data about Everthing important.</div>' ) #NEWLINE# self . assertEqual ( inst . text . status , 'generated' )