Operations

Audits and Security

Understand authentication, access policies, protected records, emergency access, and the audit trail.

Compliance Position

AMCDR records access decisions, clinical lifecycle events and data provenance for audit review. Its controls include authentication, roles, membership scope, access policies, protected-record clearances and break-glass sessions. Retained audit exports include tamper-evident manifests.

Security Model

AMCDR uses layered authorization. A user must be authenticated, belong to the correct tenant or organisation scope, hold the required role keys, pass route authorization, pass access policies, and pass protected-record rules where sensitive patients are involved.

Use the Authentication and Access-Control Matrix to check L0-L6 and emergency access levels, authentication methods, patient permissions, deny precedence and production acceptance requirements.

Access decision and audit path
IdentityUser, service account, API key
->
ScopeTenant, organisation, environment, facility
->
RBACRole keys and route matrix
->
PolicyPurpose, path, method, resource
->
Resource controlsProtected records, AQL, export
->
AuditDecision, actor, reason

Unified Audit Log

The platform audit log is available from Super-admin -> Platform configuration -> Readiness & Audit -> Audit log. It supports filtering and CSV or JSON export for internal review, regulator evidence packs, incident review, or operational monitoring.

GET /interoperability/audit-log
GET /interoperability/audit-log/export?format=csv
GET /interoperability/audit-log/export?format=json

Useful filters include event_kind, actor_ref, action, patient_id, target_record_type, outcome, recorded_from, recorded_to, and limit.

Audit Sources

Event kindWhat it recordsTypical evidence use
auth_eventLogin, credential use, token issue, failed authentication, service-account activity.Access review, failed-login review, account investigation.
repository_auditClinical and repository actions that write an audit event, including birth, death, medication, workflow, and reporting actions.Clinical traceability and operational accountability.
lifecycle_eventCreate, update, amend, supersede, delete, restore, revoke, and related lifecycle transitions.Version history, deletion review, legal traceability.
protected_record_accessGranted and denied access to VIP, sealed, witness-protected, national-security, restricted-minor, or other protected records.Protected-record monitoring and post-access review.
break_glass_sessionEmergency access session start, expiry, close, and review state.Emergency access justification and auditor review.
protected_record_reclassificationPromotion or demotion of a patient/EHR security classification.VIP/protected-person lifecycle review.

Audit Fields

FieldMeaning
event_idStable identifier for the audit entry or source security event.
recorded_atTime the event was recorded.
actor_refUser, service account, or system actor responsible for the action.
actionAction or event type, such as login, composition update, protected record access, or reclassification.
outcomeResult where applicable, such as success, failure, granted, denied, active, or classification value.
patient_id, ehr_idClinical subject context where available.
target_record_type, target_record_idThe object acted on, such as patient, EHR, composition, lifecycle object, or break-glass session.
source_systemAuth mode, purpose of use, reason code, or source system context.
detailsStructured event payload, including reason, role, classification, denial reason, request metadata, or source payload details.

Protected Records

VIP, sealed, witness-protected, national-security, restricted-minor, and unknown protected-person records use security classifications, clearances, access events, break-glass sessions, and reclassification events. These controls are documented in Protected Records.

Every protected-record access decision must include purpose of use and access reason. Denied attempts are also logged so the organisation detects inappropriate discovery attempts.

RBAC And Access Policy

Role keys define the user's job capability, but AQL, saved queries, data browsers, exports, dashboards, and protected records must also enforce scope, access policies, purpose of use, protected-record filtering, and audit. Use RBAC and Access Control for the assignment model and operating rules.

ControlAudit expectation
User and membership changesRecord actor, user, membership scope, changed role keys, reason, and timestamp.
Access policy changesRecord policy id, effect, route/path/method scope, old value, new value, actor, and reason.
AQL and saved queriesRecord query key or text hash, parameters, actor, scope, row count, export format, protected-record handling, and execution status.
Data viewer and reportsRecord patient context, report key, actor, scope, export/download action, and protected-record masking.
FHIR and external CDR accessRecord partner/source, resource type, patient context, mapping version, validation result, and response status.

Provenance

Audit records who did what and when. Provenance records where data came from, how it was transformed and which mapping or import produced it. Use provenance for migration, FHIR ingest, external CDR feeds, medication tracker interactions, and partner exchange traceability.

GET /interoperability/provenance
GET /interoperability/provenance/export?format=csv
GET /interoperability/provenance/export?format=json

FHIR AuditEvent

AMCDR exposes audit data to FHIR-facing clients where appropriate through the enabled FHIR resource set. Use FHIR AuditEvent for standards-facing exchange, and use the internal unified audit log for complete administrative review and evidence export.

GET /fhir/AuditEvent?patient={patient_uuid}
GET /fhir/Provenance?patient={patient_uuid}

Operational Controls

Audit Hardening Controls

When audit hardening is enabled, AMCDR saves exports in the controlled runtime export directory. Each export has a sidecar manifest with the record count, filters, retention date, content hash and chained entry digest.

GET /interoperability/audit-hardening/status
ControlPlatform behaviour
Tamper-evident export manifestsEvery audit export receives a SHA-256 content hash and chained digest in a manifest.
Controlled export storeCSV/JSON exports and manifest files are written to the configured audit export directory when export backup is enabled.
Retention policyAudit hardening exposes configured retention days and delete policy through the status API.
Breach workflow windowThe platform exposes the configured breach notification workflow state and response window.
Audit exercise coverageThe platform exposes configured exercise scenarios covering patient access, protected access, AQL reporting, export, FHIR ingest, and external delivery.

Review Checklist

ReviewFrequencyWhat to check
Failed login and credential activityDaily or weeklyRepeated failures, unexpected service-account activity, unknown IP/device patterns.
Protected-record accessDaily for active VIP/sealed deploymentsDenied attempts, granted accesses, purpose of use, role, clearance, reason, and patient context.
Break-glass sessionsImmediately after useEmergency reason, session duration, accessed records, closure, and post-access review outcome.
Admin and policy changesWeekly or after change windowsRole changes, policy edits, module mode changes, configuration changes, and reviewer approval.
AQL, reports, and exportsWeekly or per reporting cycleLarge queries, identifiable exports, protected-record handling, saved-query parameters, and delivery recipients.
FHIR/external integrationPer interface SLAFailed deliveries, validation failures, retries, mapping versions, source identifiers, and partner response codes.

Compliance Evidence Pack

For a formal audit, create an evidence pack that maps each regulatory or certification requirement to AMCDR controls, screenshots, exported audit logs, procedures, test evidence, and named owners.

Use Data Residency and Subprocessor Controls as the controlled inventory for processing locations, transfer mechanisms, retention, legal holds, key custody, privileged support, subprocessors and breach responsibilities.

Evidence areaAMCDR evidenceGovernance evidence
Access controlRBAC matrix, access policies, role assignments, protected clearances, denied/granted audit events.Access review record, joiner/mover/leaver process, approval record.
Audit controlsUnified audit export, protected-record events, lifecycle events, provenance export, export manifests, retained export copies.Audit review record and retention schedule.
Data protectionProtected records, patient-right workflows, FHIR/provenance traceability, purpose-of-use fields.DPIA, ROPA, privacy notice, data subject request record, legal basis mapping.
Security operationsReadiness checks, health endpoints, dependency status, access logs, breach-workflow window.Risk assessment, vulnerability management record, penetration test record, incident response record.
AvailabilityReadiness dashboard, migration status, cache/index status.Backup/restore record, disaster recovery test, monitoring targets.
DiGA or medical-device readinessTraceability, user access controls, audit logs, configuration and interoperability documentation.Medical-device classification, clinical evaluation, BSI/security evidence, usability, patient safety, and quality-management evidence.