AuditEvent

POST {{host}}/fhir/AuditEvent

Request Body

{"resourceType"=>"AuditEvent", "id"=>"{{fhir_audit_event_id}}", "text"=>{"status"=>"generated", "div"=>"<div xmlns=\"http://www.w3.org/1999/xhtml\">Application Start for under service login &quot;Grahame&quot; (id: Grahame's Test HL7Connect)</div>"}, "type"=>{"system"=>"http://dicom.nema.org/resources/ontology/DCM", "code"=>"110100", "display"=>"Application Activity"}, "subtype"=>[{"system"=>"http://dicom.nema.org/resources/ontology/DCM", "code"=>"110120", "display"=>"Application Start"}], "action"=>"E", "recorded"=>"2012-10-25T22:04:27+11:00", "outcome"=>"0", "agent"=>[{"type"=>{"coding"=>[{"system"=>"http://terminology.hl7.org/CodeSystem/extra-security-role-type", "code"=>"humanuser", "display"=>"human user"}]}, "role"=>[{"text"=>"Service User (Logon)"}], "who"=>{"reference"=>"Patient/{{fhir_patient_id}}"}, "requestor"=>false, "network"=>{"address"=>"127.0.0.1", "type"=>"2"}}], "source"=>{"site"=>"Development", "observer"=>{"display"=>"Grahame's Laptop"}, "type"=>[{"system"=>"http://dicom.nema.org/resources/ontology/DCM", "code"=>"110122", "display"=>"Login"}]}, "entity"=>[{"what"=>{"reference"=>"Patient/{{fhir_patient_id}}"}, "type"=>{"system"=>"http://terminology.hl7.org/CodeSystem/audit-entity-type", "code"=>"4", "display"=>"Other"}, "role"=>{"system"=>"http://terminology.hl7.org/CodeSystem/object-role", "code"=>"4", "display"=>"Domain Resource"}, "lifecycle"=>{"system"=>"http://terminology.hl7.org/CodeSystem/dicom-audit-lifecycle", "code"=>"6", "display"=>"Access / Use"}, "name"=>"Grahame's Laptop"}]}

HEADERS

KeyDatatypeRequiredDescription
content-typestring
preferstring