Use case - Get AuditEvent

A clinician treating a child submits a query to CP-IS to see child protection information access history. The querying clinician is a registered "smartcard" user.

The system issues a GET call to CP-IS for the child's NHS Number.

Get call

GET [base]/AuditEvent?patient:identifier=https://fhir.nhs.uk/Id/nhs-number|[nhs-number]

Headers

Authorization: Bearer Z2NVIitD7bQOzsoCpO3P
TraceID: b2acfb2c-c40e-4f9a-8916-950a2e86fc4e
IsUnscheduledAccessEvent: true

Payload

None

Success case

The system responds with a SearchSet Bundle containing the AuditEvent history information for previous accesses (upto 25).

Http response

HTTP/1.1 200 OK

Headers

Date: Tue, 05 Sep 2023 11:23:45 GMT
Content-Type: application/fhir+json

Payload

Command 'json' could not render: File was not found for 145b0aa0-8709-4272-b7c0-75738a9822f3
Command 'xml' could not render: File was not found for 145b0aa0-8709-4272-b7c0-75738a9822f3

No record found case

The system responds with a 0 total record SearchSet Bundle.

Http response

HTTP/1.1 200 OK

Headers

Date: Tue, 05 Sep 2023 11:23:34 GMT
Content-Type: application/fhir+json

Payload

Command 'json' could not render: File was not found for 7eb1bc82-da03-427b-b2d3-237bd6038cb7