A hypothetical healthcare practice builds a pre-visit patient intake mobile app. Named system owner: the practice's compliance officer. Named proposer: the intake coordinator. Named independent approver: the clinic supervisor. All targets are hypothetical and illustrative.
Prelaunch fixtures.
hc_cur_1: Patient PAT-9900 completes pre-visit intake form on mobile device for Visit VST-2026-1115 (scheduled cardiology follow-up), saves minimum encrypted local draft on device, opts in to send. Intake coordinator verifies form completeness after reconnect, scoped to practice/patient account PAT-9900/clinic CLN-CARDIO/visit VST-2026-1115/local intake revision v2/session SES-7700. Two authoritative effects: (1) committed receipt at intake receipt store confirming practice received the submission, (2) clinic intake queue entry at CLN-CARDIO routing queue for clinician review
hc_cur_2: Clinic supervisor receives routing request, independently reads current patient account status (PAT-9900 active), reads current session SES-7700 validity, reads clinic CLN-CARDIO configuration and intake revision v2, reads patient consent status (current, covering pre-visit intake data), approves routing. No clinical conclusions drawn; intake routes existing patient-provided data for clinician review. No silent send; patient explicitly opted in
hc_stale_1: Submission referencing local intake revision v1 when current is v2 (patient updated demographics between saves)
hc_wrong_account_1: Intake for Patient PAT-9900 routed to Patient PAT-8800 clinic queue (cross-patient/account)
hc_wrong_clinic_1: Intake routed to CLN-ORTHO when visit is scheduled at CLN-CARDIO (wrong clinic)
hc_expired_consent_1: Patient data sharing consent expired before submission sent
hc_unauth_role_1: Front desk receptionist attempting to approve clinic routing (requires clinic supervisor role)
hc_session_expired_1: Session SES-7700 expired between offline save and reconnect
hc_declined_1: Patient PAT-9901 explicitly declined transfer after saving draft (patient opted out)
hc_encrypt_fail_1: Intake app detects device-level encryption is disabled
hc_revoke_send_1: Patient PAT-9902 saves encrypted minimized draft while offline, then revokes send permission before reconnect (separate from clinician R101 role revocation). Recovery-only fixture with distinct key op:hc_R_SEND_901
hc_unknown_account_1: Routing for Patient PAT-8888 not in the practice (valid coordinator, unknown patient account)
hc_authority_outage_1: Intake receipt store unreachable during submission (authoritative receipt authority unavailable, cannot confirm receipt)
App store data declarations. Apple App Store privacy labels require declaring data types collected, linked to identity and used for tracking, including health data and integrated third-party SDK disclosures. Google Play Data Safety requires a data safety section declaring what data is collected, shared and how it is secured. Both declarations must accurately reflect ePHI handling, device storage practices and any third-party analytics or crash reporting SDKs. No ePHI in notification bodies, analytics payloads or crash reporting payloads. Avoid linkable clinical context in general operational logs.
ePHI scope. HHS defines covered entities as health plans, health care clearinghouses and health care providers who transmit electronic information in a transaction for which HHS has adopted a standard. A business associate that performs functions involving ePHI on behalf of a covered entity or another business associate requires a written BAA; a downstream subcontractor performing on-behalf-of business associate functions involving ePHI requires a BAA with the upstream business associate. Persistent hosting or storage of ePHI on behalf of a covered entity or business associate qualifies as a business associate function even when encrypted; HHS recognizes a narrow conduit exception for transmission-only with temporary incidental storage. The HIPAA Security Rule under 45 CFR 164.312 establishes five required technical safeguard standards: access control, audit controls, integrity, person or entity authentication and transmission security. Audit controls and person or entity authentication are required standards with no separate addressable layer. Under access control, unique user identification and emergency access procedure are required; automatic logoff and encryption or decryption are addressable. Under integrity, mechanism to authenticate ePHI is addressable. Under transmission security, integrity controls and encryption are addressable. The covered entity or business associate assesses each addressable specification under 164.306(d)(3), adopts it if reasonable and appropriate, otherwise documents why and implements a reasonable and appropriate equivalent when one exists. SMART on FHIR integration is optional and used only where the practice EHR supports the relevant FHIR scope and version.
Disjoint held-out setup. 12 synthetic intake records divided into two disjoint cohorts. Positive cohort (4 records: INT-001 through INT-004): current intake revision, authorized coordinator, clinic supervisor verification and approval (patient account, session, clinic, consent and revision independently checked), consent current and patient opted in. Negative cohort (8 records: INT-005 through INT-012): each tests one denial (stale revision, wrong account/clinic, expired consent, wrong role, session expired, patient declined transfer, unknown patient account PAT-8888, receipt store unavailable). Each negative fixture has a distinct ID and test acceptance target of zero unauthorized effects. The held-out total (12: 4 positive and 8 negative) excludes the named recovery-only revocation fixture (INT-R101), private-restore fixture (INT-R201) and patient-revokes-send fixture (hc_R_SEND_901). Training and tuning data explicitly disjoint from held-out and recovery-only fixtures. All hypothetical.
Allowed workflow (hc_1, operation A). Fixture INT-001: patient saves encrypted local draft, opts in to send. After reconnect, intake coordinator verifies completeness with operation key op:hc_A_001 scoped to practice/patient PAT-9900/clinic CLN-CARDIO/visit VST-2026-1115/revision v2/session SES-7700. Clinic supervisor independently reads: (a) patient account PAT-9900 status (active); (b) session SES-7700 validity (current); (c) clinic CLN-CARDIO configuration (accepting intake); (d) intake revision v2 (matches); (e) patient consent (current, covering pre-visit data). Approves routing. Output 1: committed receipt at intake receipt store (read receipt store independently, confirm present with correct visit/revision). Output 2: clinic intake queue entry at CLN-CARDIO (read routing queue independently, confirm entry present for PAT-9900/VST-2026-1115). Stale local draft purged from device after confirmed receipt. 4 of 4 positive records processed. Test acceptance targets.
Replay of A. Same key op:hc_A_001 replayed. Durable log lookup: key present and committed. Rejected, 0 duplicate effects.
Independently approved B (hc_1b, operation B). Fixture INT-002: different patient PAT-9901 at same clinic CLN-CARDIO, Visit VST-2026-1116, with key op:hc_B_002, revision v1, session SES-7701. Clinic supervisor independently reads patient account, session, clinic, revision and consent for PAT-9901. Approves. Output 1: receipt confirmed (read independently). Output 2: queue entry confirmed (read independently). 2 of 3 (A, replay A, B) approved and applied. 0 duplicate effects, not observed. Test acceptance targets.
Denied: stale revision (hc_2a). Fixture hc_stale_1 / negative INT-005: references revision v1 when current is v2. Supervisor reads current state, detects mismatch. Routing deferred. 0 actions on stale revisions. Test acceptance target.
Denied: wrong account/clinic (hc_2b). Fixture hc_wrong_account_1 / negative INT-006: intake for PAT-9900 routed to PAT-8800 queue. Patient/account isolation enforced. 0 cross-patient routing. Test acceptance target.
Denied: expired consent (hc_2c). Fixture hc_expired_consent_1 / negative INT-007: consent expired before send. Transfer blocked. 0 ePHI transfers with expired consent. Test acceptance target.
Denied: unauthorized role (hc_2d). Fixture hc_unauth_role_1 / negative INT-008: receptionist attempts routing approval. Requires clinic supervisor role. 0 approvals by unauthorized roles. Test acceptance target.
Denied: session expired (hc_2e). Fixture hc_session_expired_1 / negative INT-009: session SES-7700 expired between offline save and reconnect. Transfer blocked until patient re-authenticates. 0 transfers on expired sessions. Test acceptance target.
Denied: patient declined transfer (hc_2f). Fixture hc_declined_1 / negative INT-010: patient explicitly opted out after saving draft. No silent send. Draft retained encrypted locally per policy purge schedule. 0 transfers after patient decline. Test acceptance target.
Denied: unknown account (hc_2g). Fixture hc_unknown_account_1 / negative INT-011: routing for PAT-8888 not in the practice. Patient account lookup returns absent. 0 routings for unknown accounts. Test acceptance target.
Denied: receipt store unavailable (hc_2h). Fixture hc_authority_outage_1 / negative INT-012: intake receipt store unreachable. Cannot confirm receipt. Submission held, no routing without confirmed receipt authority. 0 submissions with unavailable receipt store. Test acceptance target.
Patient revokes send permission (hc_revoke_send). Recovery-only fixture separate from clinician R101 role revocation. Patient PAT-9902 affirmatively authorizes send (consent opt-in confirmed on device), saves encrypted minimized draft while offline and the app queues the exact encrypted minimized submission for transmission on reconnect, key op:hc_R_SEND_901. Before reconnect, patient revokes send permission on device. On reconnect: reread consent decision from client (revoked) and from server (send permission absent for PAT-9902). Verify no inflight transmission for this key. No send, no retry, no receipt, no queue entry. Inspect receipt store (absent for this key), clinic queue (absent), pending transmission queue (absent or cancelled). Before revocation: consent opted in, submission queued locally. After revocation: consent revoked, no effects committed, no new effects before or after reconnect. Encrypted local draft purged per configured retention policy. Named manual clinic intake fallback: paper forms with manual entry after compliance officer review. 0 effects after patient revocation. Test acceptance target.
Idempotency and duplicate detection (hc_3). Operation A: coordinator verifies INT-001, supervisor reads account/session/clinic/consent/revision independently, approves, key op:hc_A_001. Output 1: receipt confirmed (read independently). Output 2: queue entry confirmed (read independently). Log committed. Exact replay of A with same key: rejected, 0 duplicates. Operation B: coordinator verifies distinct INT-002, supervisor reads state independently, approves, key op:hc_B_002. Output 1: receipt confirmed (read independently). Output 2: queue entry confirmed (read independently). 2 of 3 proposals applied (A and B), acceptance target 0 duplicate effects, not observed. Test acceptance targets.
Revoked authority (hc_3c). Fixture hc_revoked_1: coordinator queued routing for INT-R101 with key op:hc_R_101, current approval version APV-3, while practice intake scope was current; clinic supervisor had approved the current exact patient PAT-1100, clinic CL-NORTH, intake version v6 before enqueue. Before routing confirmed, compliance officer (named revoker) revoked coordinator's intake routing authority (approval version now APV-4). On delayed reconnect: system reads current approval version (APV-4, coordinator authority absent). Local decision ledger: op:hc_R_101 marked quarantined and non-dispatchable (retained for audit). Independently read authoritative intake receipt store: no receipt for INT-R101. Independently read authoritative clinic intake queue: no entry for INT-R101. Independently read authoritative downstream destination system: no routing delivered for this key. Independently read pending and in-flight receipt, routing and delivery queues at their respective authorities: zero pending or in-flight writes for this key. Committed effects from prior operations (receipt and clinic queue entry from op:hc_A_001): preserved. Before revocation: authority present at APV-3, routing queued. After revocation: authority absent at APV-4, no receipt, no clinic queue entry, no destination delivery, no new effects committed. 0 effects after revoked authority. Test acceptance target.
Ambiguous first response (hc_3b). Fixture hc_ambig_1: coordinator submits routing for INT-003, key op:hc_A_003, revision v2, session SES-7702. Connection interrupted before confirmation. Pre-retry gates:
- Read durable transaction log for key
op:hc_A_003: present/absent/error.
- Read intake receipt store for PAT-9900/VST-2026-1115 receipt: confirmed present/confirmed absent/pending.
- Read clinic intake queue CLN-CARDIO for PAT-9900/VST-2026-1115 entry: confirmed present/confirmed absent/pending.
- Read session SES-7702 validity: current/expired.
- Read patient account PAT-9900 status: active/inactive.
- Read patient consent status: current/expired.
- Read clinic CLN-CARDIO configuration: accepting/closed.
- Read intake revision: current v2/stale.
- Verify current coordinator authority and approval version.
- Check pending routing queue and inflight transfers for this key.
If log committed AND receipt confirmed present AND queue entry confirmed present, consistent, no pending: complete, no repeat. If log committed, receipt confirmed present (one verified committed output) but queue entry confirmed absent from CLN-CARDIO queue AND absent from pending/inflight routing (one confirmed missing output), current coordinator authority, session, consent and revision verified: standalone repair under new key op:hc_C_003, route ONLY the missing queue entry, clinic supervisor freshly approves, independently verify both receipt and queue entry afterward. If log committed but both outputs absent with nothing pending: HOLD for compliance officer, no new write. If log committed and any output pending or inflight: STOP, compliance officer investigates. If no log but one or both outputs exist at authoritative stores: reconcile existing outputs without replay. If no durable transaction for key op:hc_A_003 anywhere, receipt conclusively absent, queue entry conclusively absent, all pending/inflight clear, session current, consent current, revision current, coordinator authority verified, clinic supervisor freshly approves: identical-key resubmit op:hc_A_003. No silent send. Any unknown read, read failure, any pending, expired session, expired consent, conflict or revoked authority: hold for compliance officer. Policy: purge stale encrypted local draft per configured retention. No ePHI in notification bodies, analytics payloads or crash reporting payloads. 0 duplicate submissions. Test acceptance targets.
Operations logging and access control (hc_4). Audit controls is a required standard; the two-tier logging structure and particular fields are a proposed implementation scoped by the owner. Restricted protected audit record (proposed implementation; fields scoped by the owner): patient context, visit, clinic, session, ePHI access events, staff identity, decision and timestamp, stored with access controls per Security Rule. General operational log: non-identifying opaque operation reference (no patient context, visit, clinic, session, device IDs or linkable clinical metadata), operation key, staff role, timestamp and decision outcome. No ePHI in general logs, analytics payloads, crash reporting payloads or push notification bodies. Required Security Rule documentation is retained six years after creation or last effective date, whichever is later, per 164.316(b); retention of project audit trails, operational logs and development drafts is set by owner policy and applicable requirements. Native mobile input validation errors (keyboard dismissal, field focus) are an explicit acceptance target for usability testing; direct web WCAG criterion references do not apply to native platform input behaviors. Training/tuning data explicitly disjoint from held-out and recovery-only. All hypothetical.
Staged restore (hc_5). After system recovery: stage privately with no production ePHI writes using prior known revision. Read authoritative versions before restore: current intake receipt records, clinic queue entries, pending routing, committed effects, exact authorized key op:hc_A_001 (receipt and queue entry committed) and revoked key op:hc_R_101 (not committed). Authorized route in staging: coordinator with current scope and supervisor role accepted, committed receipts and queue entries from before outage present and consistent. Revoked route in staging: coordinator whose authority was revoked at APV-4 (hc_3c) denied. Private restore fixture INT-R201 with key op:hc_R_201 (distinct from INT-R101 and outside held-out): authoritative expected state before restore (receipt absent, queue entry absent for R201) and after restore (same, no production writes). 0 production effects. Named safe clinic fallback owner: compliance officer; patient intake reverts to paper forms, clinic staff manually enters from paper after two-role restart. Queue reconciliation: compliance officer reviews pending routing queue. Two named roles restart: compliance officer verifies ePHI data handling, clinic supervisor verifies routing workflows. Both approve before production restore.
VoiceOver and TalkBack accessibility plan (hc_6). On iPhone SE 3rd generation (iOS 17) with VoiceOver enabled, patient attempts 3 tasks: (1) complete pre-visit intake form fields (target: each field label announced, input error announced in text per WCAG 3.3.1); (2) review offline/pending submission status label (target: VoiceOver announces current status including offline/pending/sent); (3) opt-in consent toggle and retry after reconnect (target: toggle state announced, focus moves to confirmation after send). On Samsung Galaxy A14 (Android 14) with TalkBack enabled, patient attempts 3 tasks: (1) complete intake fields (target: field labels and input errors announced); (2) review offline/pending label (target: TalkBack announces submission status); (3) consent toggle and send (target: toggle announced, confirmation announced after send). On iPad 10th generation at 820 by 1180 with keyboard, intake coordinator attempts 3 tasks: (1) navigate intake queue with arrow keys (target: visible focus indicator on each row); (2) open intake detail with Enter (target: focus moves to detail, patient context and consent status visible); (3) submit for supervisor review with keyboard (target: action announced, draft submitted not committed). On desktop at 1280 by 800 with keyboard, clinic supervisor attempts 3 tasks: (1) navigate routing queue (target: focus ring visible); (2) open detail (target: patient account, session, clinic, consent independently shown); (3) approve or defer (target: action announced, no silent commit). Residual risk: EHR authorization server downtime may prevent optional SMART on FHIR data reads; clinic intake continues without EHR integration using patient-provided data only. Test plan; results not claimed.
This is a hypothetical scenario for illustration. Actual scope, timeline and cost depend on your requirements.