Get Audit Event

 

A record of an event made for purposes of maintaining a security log. Typical uses include detection of intrusion attempts and monitoring for inappropriate usage.

 
CareSpan available search parameters Details Search Paramters

Name Field Name Type Value Description Required
Appointment ID Entity - eg. f5827c71a422947984bc3e6b67d2dd10 Appointment where encounter takes place Yes

Sample Request URL

https://api.carespan.clinic/R4/AuditEvent/?entity=Appointment/{{appointment_id}}

Response
        
        
{
    "resourceType": "Bundle",
   "type": "searchset",
   "entry": [
       {
           "resourceType": "AuditEvent",
           "type": {
               "system": "https://api.carespan.clinic/fhir/coding/status-types/appointment",
               "code": "create"
            },
           "recorded": "2021-10-09T12:59:47+00:00",
           "agent": [
               {
                   "extension": [
                       {
                           "url": "https://api.carespan.clinic/fhir/StructureDefinition/valueset-roles/roles"
                       }
                   ],
                   "who": {
                       "reference": "Patient/cVLMMP5H8E"
                   }
               }
           ],
           "entity": [
               {
                   "what": {
                       "reference": "Appointment/f5827c71a422947984bc3e6b67d2dd10"
                   }
               }
           ]
       },
       {
           "resource": {
               "resourceType": "AuditEvent",
               "type": {
                   "system": "https://api.carespan.clinic/fhir/coding/event-types/exam-room",
                   "code": "12",
                   "display": "Enter Exam Room"
               },
               "recorded": "2021-10-09T13:00:19+00:00",
               "agent": [
                   {
                       "extension": [
                           {
                               "valueInteger": "3",
                               "url": "https://api.carespan.clinic/fhir/StructureDefinition/valueset-roles/roles"
                           }
                        ],
                       "who": {
                           "reference": "Practitioner/cVOEMaKLTc"
                       }
                   }
               ],
               "entity": [
                   {
                       "what": {
                           "reference": "Encounter/6B16BFB6-9364-4386-908F-ECABB4F30C11"
                       }
                   }
               ]
           }
       },
       {
           "resource": {
               "resourceType": "AuditEvent",
               "type": {
                   "system": "https://api.carespan.clinic/fhir/coding/event-types/exam-room",
                   "code": "13",
                   "display": "Exit Exam Room"
               },
               "recorded": "2021-10-09T13:01:13+00:00",
               "agent": [
                   {
                       "extension": [
                           {
                               "valueInteger": "3",
                               "url": "https://api.carespan.clinic/fhir/StructureDefinition/valueset-roles/roles"
                           }
                       ],
                       "who": {
                           "reference": "Practitioner/cVOEMaKLTc"
                       }
                   }
               ],
               "entity": [
                   {
                       "what": {
                           "reference": "Encounter/6B16BFB6-9364-4386-908F-ECABB4F30C11"
                       }
                   }
               ]
           }
       },
       {
           "resource": {
               "resourceType": "AuditEvent",
               "type": {
                   "system": "https://api.carespan.clinic/fhir/coding/event-types/exam-room",
                   "code": "29",
                   "display": "Sign"
               },
               "recorded": "2021-10-09T13:01:14+00:00",
               "agent": [
                   {
                       "extension": [
                           {
                               "valueInteger": "3",
                               "url": "https://api.carespan.clinic/fhir/StructureDefinition/valueset-roles/roles"
                           }
                       ],
                       "who": {
                           "reference": "Practitioner/cVOEMaKLTc"
                       }
                   }
               ],
               "entity": [
                   {
                       "what": {
                           "reference": "Encounter/6B16BFB6-9364-4386-908F-ECABB4F30C11"
                       }
                   }
               ]
           }
       }
   ]
}