Purpose
Protected records prevent sensitive people and clinical records from appearing in standard access paths. AMCDR applies this to demographics, EHRs, visits, encounters, compositions, forms, documents, exports, AQL results, dashboards, and APIs.
AMCDR records VIP access, break-glass access, reclassification, export and AQL access as security events. Keep these separate from clinical encounter types.
Core Rules
- Patient and EHR security labels are the default inherited protection level.
- Encounter and composition security labels are optional overrides for narrower protection.
- The effective classification is the highest applicable classification across patient, EHR, encounter, and composition context.
- Protected records are hidden from general broad patient search.
- Unauthorized users must not be told that a protected record exists.
- Access requires a valid purpose of use and access reason.
- Every granted and denied protected-record access attempt is auditable.
- Break-glass access is time-limited and requires post-access review.
- Reclassification never rewrites clinical compositions.
Security Classifications
| Classification | Use |
|---|---|
STANDARD | Normal record handling. |
SENSITIVE | Record requires extra care but is not sealed. |
VIP_PROTECTED | VIP or prominent person requiring restricted discovery and access. |
VERY_HIGH_RISK | High-threat or high-harm record requiring stronger clearance. |
SEALED | Record hidden except to specifically cleared users or break-glass policy. |
WITNESS_PROTECTED | Witness-protection or identity-safety case. |
NATIONAL_SECURITY | National-security restricted record. |
RESTRICTED_MINOR | Minor with legal or safety restrictions. |
UNKNOWN_PERSON_PROTECTED | Unknown person or temporary identity that must be hidden while identity is resolved. |
Clearances
User clearances are stored separately from membership roles. A user may be a clinician and still be denied a VIP record when they do not hold the required clearance for the purpose, facility, and context.
| Clearance | Purpose |
|---|---|
VIP_ACCESS | Access to VIP protected records. |
VERY_HIGH_RISK_ACCESS | Access to very-high-risk records. |
SEALED_RECORD_ACCESS | Access to sealed records. |
WITNESS_PROTECTED_ACCESS | Access to witness-protected records. |
NATIONAL_SECURITY_ACCESS | Access to national-security records. |
PROTECTED_RECORD_ADMIN | Administer labels, promotion, demotion, and selected protected-record operations. |
PROTECTED_RECORD_AUDITOR | Review protected-record access events and break-glass sessions. |
BREAK_GLASS_ACCESS | Start emergency time-limited access sessions where policy allows it. |
Role Keys Versus Clearances
Protected-record access requires both a role and a clearance. The role controls which workspaces and APIs the user may use. The clearance controls which protected classifications and high-risk access types they may access.
| Control | Where it is assigned | What it controls | Audit impact |
|---|---|---|---|
clinician | User membership role assignment | Direct-care users request read or update access when they also hold the matching security clearance. | Stored as the user's role context on access events. |
protected_record_access | User membership role assignment | Protected Records workspace, clearance management, protected audit review, and protected-record administration screens. | Shows that the user had protected-record operational responsibility. |
platform_admin / system_admin | User membership role assignment | Platform-level administrative access. High-risk protected actions still require the relevant protected clearance unless the user is super admin. | Separates platform administration from protected clinical access. |
| Security clearance | Admin -> Protected Records -> Clearances | Classification-specific or operation-specific permission, optionally scoped by facility and expiry date. | Explains why access was permitted or denied. |
Do not rely on a role key alone for VIP, sealed, national-security, witness-protected, or very-high-risk records. The user must also receive the smallest clearance required for the assigned duty and, where possible, an expiry date.
Access Type And Role Matrix
Access types are seeded in the protected_record_access_type catalogue. The same catalogue feeds the Protected Records UI dropdown and carries metadata for role keys, clearances, audit event types, and post-review expectations.
| Access type | Role assignment | Clearance assignment | Audit event | Review expectation |
|---|---|---|---|---|
read | clinician or protected_record_access | Matching classification clearance such as VIP_ACCESS, SEALED_RECORD_ACCESS, or PROTECTED_RECORD_ADMIN. | PROTECTED_RECORD_ACCESS | Standard audit review. |
update | clinician or protected_record_access | Matching classification clearance and standard clinical write permission. | PROTECTED_RECORD_ACCESS | Standard audit review. |
export | protected_record_access, platform_admin, or system_admin | PROTECTED_RECORD_ADMIN. | PROTECTED_RECORD_EXPORT | Post-review required. |
aql_query | protected_record_access, governance_admin, platform_admin, or system_admin | PROTECTED_RECORD_AUDITOR or PROTECTED_RECORD_ADMIN. | PROTECTED_RECORD_AQL_ACCESS | Post-review required where protected rows are permitted to appear. |
bulk_access | protected_record_access, platform_admin, or system_admin | PROTECTED_RECORD_ADMIN. | PROTECTED_RECORD_BULK_ACCESS | Post-review required and expiry-bound. |
break_glass_access | clinician or protected_record_access | BREAK_GLASS_ACCESS or PROTECTED_RECORD_ADMIN. | BREAK_GLASS_ACCESS | Mandatory post-access review. |
audit_review | protected_record_access, governance_admin, platform_admin, or system_admin | PROTECTED_RECORD_AUDITOR or PROTECTED_RECORD_ADMIN. | VIP_ACCESS_REVIEW | Standard security audit trail. |
Assignment Workflow
- Create or confirm the user's AMCDR account and membership.
- Assign the standard job role first, such as
clinician,governance_admin, orplatform_admin. - Add
protected_record_accessonly for users who operate the Protected Records workspace or review protected-record security events. - Grant the smallest matching clearance, such as
VIP_ACCESSfor VIP care,PROTECTED_RECORD_AUDITORfor audit review, orBREAK_GLASS_ACCESSfor emergency duty. - Set
facility_id,scope, andvalid_untilwhen the assignment is temporary or facility-bound. - Use dropdown reasons for clearance grants, access requests, and break-glass sessions so audit trails remain consistent.
- Review
protected_record_access_eventsandbreak_glass_sessionsregularly, especially export, bulk, AQL, and break-glass events.
Data Model
| Table | Purpose |
|---|---|
patient_security_labels | Stores active and historical security labels assigned to patients and EHRs. |
user_security_clearances | Stores user clearance grants with optional scope, facility, and validity dates. |
protected_record_access_events | Audits granted and denied access attempts, exports, AQL access, and bulk access. |
break_glass_sessions | Tracks emergency sessions, expiry, closure, and post-access review status. |
protected_record_reclassification_events | Records promotion and demotion from one classification to another. |
clinical_type_catalogues | Seeds security_classification, security_event_type, security_clearance, protected patient types, protected EHR types, access types, purposes, and controlled reason lists. |
Search Behaviour
Ordinary patient search excludes protected records by default. For VIP records, exact identifier search is required unless the user has protected-record administration or audit clearance.
| Scenario | Expected behaviour |
|---|---|
| Broad search by partial name | Protected records are omitted. |
| Exact identifier search without clearance | Access is denied without confirming that the record exists. |
| Exact identifier search with valid clearance | Record is returned with a protected-record warning when policy permits access. |
| AQL query or report | Protected records are filtered by default unless the caller is allowed to include them. |
| Export | Protected records are masked or excluded by default according to export policy. |
Access Workflow
- User attempts to open a protected patient, EHR, encounter, composition, report row, or exported object.
- AMCDR computes the effective security classification.
- The access policy checks role, clearance, facility scope, purpose of use, access reason, user relationship to the record, and active break-glass status.
- If allowed, AMCDR returns the record and records a granted access event.
- If denied, AMCDR returns a safe authorization error and records a denied access event.
Break-Glass Workflow
Use break-glass when an approved patient-safety reason requires emergency access. It creates a temporary access session and leaves the clinical record unchanged.
- The user must supply a reason and purpose of use.
- The session receives an expiry time.
- Every protected object opened during the session is audited.
- The session must be closed when emergency access is no longer required.
- Auditors review the session after use.
Promotion And Demotion
Promotion assigns a stronger security label to a patient or EHR. Demotion reduces or removes the protection when the reason no longer applies. Both require a reason and create a reclassification event.
POST /admin/protected-records/{patient_id}/promote
POST /admin/protected-records/{patient_id}/demote
GET /admin/protected-records/{patient_id}/labels
GET /admin/protected-records/reclassification-events
When configured, promotion updates patient_type and ehr_type to values such as VIP_PATIENT and VIP_PROTECTED_EHR. Demotion restores previous type values. Clinical compositions are never rewritten during reclassification.
Runtime APIs
POST /protected-records/{patient_id}/access-request
POST /protected-records/{patient_id}/break-glass
POST /protected-records/break-glass/{session_id}/close
GET /admin/protected-records/access-events
GET /admin/protected-records/break-glass-sessions
Administrative APIs require protected-record administration or audit permissions. Runtime access APIs require authentication and policy evaluation.
AQL, Reports, And Exports
Protected-record filtering is applied to query outputs as well as direct patient access. This prevents a user from bypassing the patient screen by running a broad report or saved query.
- AQL filters protected records by default.
- Saved queries inherit the same protected-record policy.
- Dashboards and HMIS indicators must show aggregate outputs without leaking protected patient identity.
- Exports mask protected records by default unless the export user and export purpose are authorized.
- Bulk access creates security events because the risk is higher than one-record access.
Configuration
AMCDR_PROTECTED_RECORDS_ENABLED=true
AMCDR_PROTECTED_RECORDS_HIDE_FROM_NORMAL_SEARCH=true
AMCDR_PROTECTED_RECORDS_REQUIRE_EXACT_IDENTIFIER_SEARCH_FOR_VIP=true
AMCDR_PROTECTED_RECORDS_REQUIRE_REASON_FOR_ACCESS=true
AMCDR_PROTECTED_RECORDS_AUDIT_GRANTED_ACCESS=true
AMCDR_PROTECTED_RECORDS_AUDIT_DENIED_ACCESS=true
AMCDR_PROTECTED_RECORDS_ALLOW_BREAK_GLASS=true
AMCDR_PROTECTED_RECORDS_BREAK_GLASS_DURATION_MINUTES=60
AMCDR_PROTECTED_RECORDS_BREAK_GLASS_REQUIRES_POST_REVIEW=true
AMCDR_PROTECTED_RECORDS_ALLOW_PROMOTION_DEMOTION=true
AMCDR_PROTECTED_RECORDS_UPDATE_PATIENT_AND_EHR_TYPE_ON_RECLASSIFICATION=true
AMCDR_PROTECTED_RECORDS_AQL_FILTER_PROTECTED_RECORDS_BY_DEFAULT=true
AMCDR_PROTECTED_RECORDS_EXPORT_MASK_PROTECTED_RECORDS_BY_DEFAULT=true
Operational Playbooks
Promote A VIP Patient
- Confirm the patient identity using the approved MPI or local identifier.
- Open Admin -> Protected Records.
- Select
VIP_PROTECTEDor the required classification. - Enter a reason, effective date, and expiry date if applicable.
- Save and verify that standard search no longer exposes the record.
Grant Access To A User
- Grant only the minimum clearance needed, such as
VIP_ACCESS. - Limit by facility or scope where possible.
- Set an expiry date for temporary duties.
- Review access events regularly.
Handle Emergency Access
- User starts break-glass with emergency reason and purpose of use.
- AMCDR creates a timed session and audits the action.
- User opens only records needed for the emergency.
- User closes the session when finished.
- Auditor reviews the session and records the review outcome.
Implementation Notes
AMCDR supports patient/EHR labels, clearances, protected search, access events, break-glass sessions, reclassification, catalogue defaults and AQL/export controls. Encounter and composition labels are optional extensions for deployments that need more specific protection.
For related configuration, see Configuration Reference. For general audit guidance, see Audits and Security. For role assignment, AQL, data-browser, and export control, see RBAC and Access Control. For emergency and unknown-person workflows, see Foundational Workflows.