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.
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 kind | What it records | Typical evidence use |
|---|---|---|
auth_event | Login, credential use, token issue, failed authentication, service-account activity. | Access review, failed-login review, account investigation. |
repository_audit | Clinical and repository actions that write an audit event, including birth, death, medication, workflow, and reporting actions. | Clinical traceability and operational accountability. |
lifecycle_event | Create, update, amend, supersede, delete, restore, revoke, and related lifecycle transitions. | Version history, deletion review, legal traceability. |
protected_record_access | Granted 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_session | Emergency access session start, expiry, close, and review state. | Emergency access justification and auditor review. |
protected_record_reclassification | Promotion or demotion of a patient/EHR security classification. | VIP/protected-person lifecycle review. |
Audit Fields
| Field | Meaning |
|---|---|
event_id | Stable identifier for the audit entry or source security event. |
recorded_at | Time the event was recorded. |
actor_ref | User, service account, or system actor responsible for the action. |
action | Action or event type, such as login, composition update, protected record access, or reclassification. |
outcome | Result where applicable, such as success, failure, granted, denied, active, or classification value. |
patient_id, ehr_id | Clinical subject context where available. |
target_record_type, target_record_id | The object acted on, such as patient, EHR, composition, lifecycle object, or break-glass session. |
source_system | Auth mode, purpose of use, reason code, or source system context. |
details | Structured 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.
| Control | Audit expectation |
|---|---|
| User and membership changes | Record actor, user, membership scope, changed role keys, reason, and timestamp. |
| Access policy changes | Record policy id, effect, route/path/method scope, old value, new value, actor, and reason. |
| AQL and saved queries | Record query key or text hash, parameters, actor, scope, row count, export format, protected-record handling, and execution status. |
| Data viewer and reports | Record patient context, report key, actor, scope, export/download action, and protected-record masking. |
| FHIR and external CDR access | Record 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
- Use encrypted connections at all external boundaries.
- Keep admin, root-owner, and protected-record-admin identities tightly controlled.
- Use named user accounts for people and scoped service credentials for integrations.
- Rotate signing secrets, OAuth client secrets, API keys, and webhook secrets.
- Do not store raw passwords, secrets, bearer tokens, or production credentials in static documentation.
- Ensure search results, AQL, exports, reports, dashboards, subscriptions, and API responses obey the same governance rules as the source clinical record.
- Run regular audit review for denied access, protected records, break-glass sessions, admin changes, exports, and failed integrations.
- Audit exports are retained through the configured audit-hardening export store and manifest policy.
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
| Control | Platform behaviour |
|---|---|
| Tamper-evident export manifests | Every audit export receives a SHA-256 content hash and chained digest in a manifest. |
| Controlled export store | CSV/JSON exports and manifest files are written to the configured audit export directory when export backup is enabled. |
| Retention policy | Audit hardening exposes configured retention days and delete policy through the status API. |
| Breach workflow window | The platform exposes the configured breach notification workflow state and response window. |
| Audit exercise coverage | The platform exposes configured exercise scenarios covering patient access, protected access, AQL reporting, export, FHIR ingest, and external delivery. |
Review Checklist
| Review | Frequency | What to check |
|---|---|---|
| Failed login and credential activity | Daily or weekly | Repeated failures, unexpected service-account activity, unknown IP/device patterns. |
| Protected-record access | Daily for active VIP/sealed deployments | Denied attempts, granted accesses, purpose of use, role, clearance, reason, and patient context. |
| Break-glass sessions | Immediately after use | Emergency reason, session duration, accessed records, closure, and post-access review outcome. |
| Admin and policy changes | Weekly or after change windows | Role changes, policy edits, module mode changes, configuration changes, and reviewer approval. |
| AQL, reports, and exports | Weekly or per reporting cycle | Large queries, identifiable exports, protected-record handling, saved-query parameters, and delivery recipients. |
| FHIR/external integration | Per interface SLA | Failed 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 area | AMCDR evidence | Governance evidence |
|---|---|---|
| Access control | RBAC matrix, access policies, role assignments, protected clearances, denied/granted audit events. | Access review record, joiner/mover/leaver process, approval record. |
| Audit controls | Unified audit export, protected-record events, lifecycle events, provenance export, export manifests, retained export copies. | Audit review record and retention schedule. |
| Data protection | Protected records, patient-right workflows, FHIR/provenance traceability, purpose-of-use fields. | DPIA, ROPA, privacy notice, data subject request record, legal basis mapping. |
| Security operations | Readiness checks, health endpoints, dependency status, access logs, breach-workflow window. | Risk assessment, vulnerability management record, penetration test record, incident response record. |
| Availability | Readiness dashboard, migration status, cache/index status. | Backup/restore record, disaster recovery test, monitoring targets. |
| DiGA or medical-device readiness | Traceability, user access controls, audit logs, configuration and interoperability documentation. | Medical-device classification, clinical evaluation, BSI/security evidence, usability, patient safety, and quality-management evidence. |