Operations

Protected Records and VIP Security

Restrict access to sensitive patient records and manage clearances, emergency access, and protected audit trails.

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.

Protected record access path
Patient/EHR labelDefault inherited security
->
Effective classificationHighest applicable label
->
Policy checkRole, clearance, facility, purpose
->
Grant or denyNo existence leak
->
Audit eventGranted and denied attempts

Core Rules

Security Classifications

ClassificationUse
STANDARDNormal record handling.
SENSITIVERecord requires extra care but is not sealed.
VIP_PROTECTEDVIP or prominent person requiring restricted discovery and access.
VERY_HIGH_RISKHigh-threat or high-harm record requiring stronger clearance.
SEALEDRecord hidden except to specifically cleared users or break-glass policy.
WITNESS_PROTECTEDWitness-protection or identity-safety case.
NATIONAL_SECURITYNational-security restricted record.
RESTRICTED_MINORMinor with legal or safety restrictions.
UNKNOWN_PERSON_PROTECTEDUnknown 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.

ClearancePurpose
VIP_ACCESSAccess to VIP protected records.
VERY_HIGH_RISK_ACCESSAccess to very-high-risk records.
SEALED_RECORD_ACCESSAccess to sealed records.
WITNESS_PROTECTED_ACCESSAccess to witness-protected records.
NATIONAL_SECURITY_ACCESSAccess to national-security records.
PROTECTED_RECORD_ADMINAdminister labels, promotion, demotion, and selected protected-record operations.
PROTECTED_RECORD_AUDITORReview protected-record access events and break-glass sessions.
BREAK_GLASS_ACCESSStart 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.

ControlWhere it is assignedWhat it controlsAudit impact
clinicianUser membership role assignmentDirect-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_accessUser membership role assignmentProtected Records workspace, clearance management, protected audit review, and protected-record administration screens.Shows that the user had protected-record operational responsibility.
platform_admin / system_adminUser membership role assignmentPlatform-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 clearanceAdmin -> Protected Records -> ClearancesClassification-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 typeRole assignmentClearance assignmentAudit eventReview expectation
readclinician or protected_record_accessMatching classification clearance such as VIP_ACCESS, SEALED_RECORD_ACCESS, or PROTECTED_RECORD_ADMIN.PROTECTED_RECORD_ACCESSStandard audit review.
updateclinician or protected_record_accessMatching classification clearance and standard clinical write permission.PROTECTED_RECORD_ACCESSStandard audit review.
exportprotected_record_access, platform_admin, or system_adminPROTECTED_RECORD_ADMIN.PROTECTED_RECORD_EXPORTPost-review required.
aql_queryprotected_record_access, governance_admin, platform_admin, or system_adminPROTECTED_RECORD_AUDITOR or PROTECTED_RECORD_ADMIN.PROTECTED_RECORD_AQL_ACCESSPost-review required where protected rows are permitted to appear.
bulk_accessprotected_record_access, platform_admin, or system_adminPROTECTED_RECORD_ADMIN.PROTECTED_RECORD_BULK_ACCESSPost-review required and expiry-bound.
break_glass_accessclinician or protected_record_accessBREAK_GLASS_ACCESS or PROTECTED_RECORD_ADMIN.BREAK_GLASS_ACCESSMandatory post-access review.
audit_reviewprotected_record_access, governance_admin, platform_admin, or system_adminPROTECTED_RECORD_AUDITOR or PROTECTED_RECORD_ADMIN.VIP_ACCESS_REVIEWStandard security audit trail.

Assignment Workflow

  1. Create or confirm the user's AMCDR account and membership.
  2. Assign the standard job role first, such as clinician, governance_admin, or platform_admin.
  3. Add protected_record_access only for users who operate the Protected Records workspace or review protected-record security events.
  4. Grant the smallest matching clearance, such as VIP_ACCESS for VIP care, PROTECTED_RECORD_AUDITOR for audit review, or BREAK_GLASS_ACCESS for emergency duty.
  5. Set facility_id, scope, and valid_until when the assignment is temporary or facility-bound.
  6. Use dropdown reasons for clearance grants, access requests, and break-glass sessions so audit trails remain consistent.
  7. Review protected_record_access_events and break_glass_sessions regularly, especially export, bulk, AQL, and break-glass events.

Data Model

TablePurpose
patient_security_labelsStores active and historical security labels assigned to patients and EHRs.
user_security_clearancesStores user clearance grants with optional scope, facility, and validity dates.
protected_record_access_eventsAudits granted and denied access attempts, exports, AQL access, and bulk access.
break_glass_sessionsTracks emergency sessions, expiry, closure, and post-access review status.
protected_record_reclassification_eventsRecords promotion and demotion from one classification to another.
clinical_type_cataloguesSeeds 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.

ScenarioExpected behaviour
Broad search by partial nameProtected records are omitted.
Exact identifier search without clearanceAccess is denied without confirming that the record exists.
Exact identifier search with valid clearanceRecord is returned with a protected-record warning when policy permits access.
AQL query or reportProtected records are filtered by default unless the caller is allowed to include them.
ExportProtected records are masked or excluded by default according to export policy.

Access Workflow

  1. User attempts to open a protected patient, EHR, encounter, composition, report row, or exported object.
  2. AMCDR computes the effective security classification.
  3. The access policy checks role, clearance, facility scope, purpose of use, access reason, user relationship to the record, and active break-glass status.
  4. If allowed, AMCDR returns the record and records a granted access event.
  5. 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.

Break-glass path
Emergency reason
->
Purpose of use
->
Timed sessionDefault 60 minutes
->
Access events
->
Post-access review

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.

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

  1. Confirm the patient identity using the approved MPI or local identifier.
  2. Open Admin -> Protected Records.
  3. Select VIP_PROTECTED or the required classification.
  4. Enter a reason, effective date, and expiry date if applicable.
  5. Save and verify that standard search no longer exposes the record.

Grant Access To A User

  1. Grant only the minimum clearance needed, such as VIP_ACCESS.
  2. Limit by facility or scope where possible.
  3. Set an expiry date for temporary duties.
  4. Review access events regularly.

Handle Emergency Access

  1. User starts break-glass with emergency reason and purpose of use.
  2. AMCDR creates a timed session and audits the action.
  3. User opens only records needed for the emergency.
  4. User closes the session when finished.
  5. 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.