Patient engagement · Guide for IT, integration and security

Patient Portal

How the portal is built, how it exchanges data with EHRs, payers and processors, and the controls, testing and operations behind it.

HL7 v2 · FHIR R4 · X12Da Vinci CRD · DTR · PASBuilt for HIPAA-regulated workflows
Architecture

One application, many connectors

CHANNELSPATIENT PORTAL · PHOENIX PLATFORMEXTERNAL SYSTEMSPatient portalphone · tablet · PCLobby kioskenrolled devicesStaff and adminrole-based screensWebsite widgetembedded, no PHIPhone lineAI voice agentREVERSE PROXY · TLS 1.2+ · HSTS · RATE LIMITSWeb UIReact · Remix SSRAPI.NET 10 · pipelinesWorkersjobs · outboxAccess layerroles · MFA · sessionsPostgreSQL 16encrypted PHI columnsRediscachePDF rendererforms · resultsVirus scannerfail-closed uploadsPHI access logappend-only auditSettings vaultencrypted secretsEvery workflow is a hookable pipelineCONNECTORS · RETRIES · REPLAYEHR / interface engineHL7 v2 · FHIR R4Clearinghouseeligibility · claims · PACard processorhosted fields · tokensSMS and e-mailtwo-way texts · relayPrivate AI gatewayOpenAI-compatiblePhone systemSIP / PBX
ChannelsPatient Portal servicesExternal systemsTraffic (two-way where both ends have heads)
Leadership analytics

Staff, admin and patient screens are one application. Example figures; synthetic data.

Extend without forking

Pipelines with hooks; site rules plug in and upgrades keep flowing.

Reliable delivery

Outbox with backoff, a dead-letter lane and operator replay.

Write-back you control

Automatic, after staff review, or off.

Patient Portal · Guide · TechnicalClarity VenturesPage 1 of 12
Architecture deep dive

Layers and what each one does

LayerWhat it doesBuilt with
EdgeTLS termination, HSTS, routing, sign-in rate limitsReverse proxy
Web UIPatient, kiosk, staff and admin routes in one appReact, Remix (server-rendered)
APIWorkflows as pipelines; permissions; audit.NET 10
WorkersScheduled jobs, outbox delivery, retries.NET hosted services
DataRecords, settings, audit log; PHI columns encryptedPostgreSQL 16
CachePipeline-level cachingRedis
DocumentsSigned forms, consents and result PDFsIn-network PDF renderer
UploadsEvery file scanned before it is storedVirus scanner, fail-closed
Extensibility

Change behaviour without changing the core

Plugins

Each feature area ships as a plugin with its own schema, pipelines and endpoints.

Serial and parallel pipelines

Hooks can add, filter or replace steps; results can be cached.

Settings, default off

Site behaviour is switched on per setting, not forked.

Arrivals board

One app, many workspaces: the staff arrivals board. Synthetic data; names hidden.

Booking a visit

Patient routes: booking, served by the same app and API.

Results with the assistant

Results with the assistant: the private AI path in the UI.

Patient Portal · Guide · TechnicalClarity VenturesPage 2 of 12
Data flow

Where data lives and how it moves

DataWhere it livesProtectionLeaves the server
Demographics, visitsPostgreSQLRole-scoped endpointsTo the EHR over HL7, after staff review
Member IDs, messages, form answersEncrypted columnsPlatform data-protection keysMember ID to the clearinghouse
Card and ID photosFile storageScanned; location data removedNo
Card numbersNot storedHosted fields; processor tokenProcessor only
Assistant promptsNot stored as textIdentifiers replaced firstPrivate model gateway only
Texts and e-mailsTemplatesMinimum-necessary lintSMS and mail providers
Audit eventsAppend-only logWho, patient, action, purposeExport on request
Application logsLog filesNo patient details; 3–14 daysNo
Private AI

The request path

PRIVATE AI PATHQuestionpatient, own recordDe-identifyplaceholders for IDsPrivate modelcloud AI offCheck outputper sentenceRe-identifycite the recordEvery record read for the assistant is written to the PHI access log; conversations are logged as summaries, never text.
Results on a phone

Results on a phone.

Before the model

Names, dates, record numbers, member IDs, phones, e-mail and addresses become placeholders.

After the model

Diagnoses, treatment instructions, unknown numbers and other people’s identifiers are replaced.

Safety first

Crisis language brings up 911 and 988 without waiting for the model.

Patient Portal · Guide · TechnicalClarity VenturesPage 3 of 12
Integrations and APIs

Standards in, standards out

ConnectionWhat it carriesStandard / transport
EHRADT, SIU, ORU, MDM, DFT, ORM/OMLHL7 v2 over MLLP/TLS, SFTP or HTTPS
EHR APIsRead, search, create, patchFHIR R4 with SMART backend services
PayersEligibility, claim status, estimates, member cardClearinghouse REST, OAuth 2.0
Prior authCoverage requirements, documentation, submissionDa Vinci CRD, DTR, PAS
Claim filesClaims and remittancesX12 837 and 835, folder or SFTP watch
PaymentsCard, card on file, ACH, pay links, plansHosted fields, gateway tokens
MessagingTwo-way SMS; e-mailTwilio-compatible API; SMTP
PATIENT PORTALYOUR EHR ESTATEPortal eventbooking, consentStaff reviewauto, review, offHL7 builderADT, SIU, MDM, DFTOutboxMLLP/TLS · SFTPInterface enginerouting, mappingEHRsystem of recordPortal recordsresults, visitsApply and mapunmapped codesParserschema checksListenerMLLP over TLSInbound ORU, SIU, ADT^A08 and DFT are parsed, mapped and applied.Every message is acknowledged: AA done · AE retried · AR to dead-letter.
Patient PortalYour EHR estateHL7 v2 message path
Prior authorization summary

Prior authorization from the desk: needs action, at risk, pended and auto-approved.

Arrivals board rows

Eligibility answers on the board: Verified or Needs review.

Payment options

Payments on the gateway; card data tokenized by the processor.

Patient Portal · Guide · TechnicalClarity VenturesPage 4 of 12
Security, privacy and compliance

Controls mapped to the HIPAA Security Rule technical safeguards

SafeguardHow the portal meets it
Access controlRole-scoped endpoints; proxy access by grant; unseen records answer “not found”; 15-min idle, 1-h tokens
Audit controlsAppend-only PHI access log; sign-in, impersonation and settings audited separately
IntegrityFail-closed virus scanning; SHA-256 hash of each signed consent
Authentication12+ character passwords, lockout, staff one-time code, link birth-date check, kiosk enrolment
TransmissionTLS 1.2+ with HSTS and a content-security policy; MLLP over TLS to the EHR
PHI access log

The PHI access log with filters by patient, action, person, channel, outcome and kind.

Family access on a phone

Proxy access, logged.

Data at rest

Member IDs, messages, form answers, HL7 payloads and transcripts encrypted.

Minimum necessary

Texts and e-mails: first name, time, place, link.

Kiosk privacy

Idle warning, then the screen, storage and camera clear.

Patient Portal · Guide · TechnicalClarity VenturesPage 5 of 12
Automation, AI and rules

Rules first, AI proposes, people decide

Autonomy levelWhat an agent may do
OffNothing
ShadowRecords what it would have done; changes nothing
AssistEvery change needs a person’s click
AutopilotOnly allow-listed actions, above a confidence threshold, under a dollar cap
AI checks summary

Checks enabled, suggestions made and acceptance rate across the AI checks.

Nurse shift summary

Deterministic nurse protocols rank refills and callbacks, red flags first.

Voice agent safety rules

Safety rules for the voice agent, each kept as an automated eval.

Eval gates

Raising an agent’s autonomy is refused until its evals pass.

Guardrails

Coding, appeals and prior-auth submissions are never touchless; two approvers above a second threshold.

Audit

Every agent step, recommendation and decision is recorded.

Patient Portal · Guide · TechnicalClarity VenturesPage 6 of 12
Admin and configuration

Settings, not custom code

SettingChoicesWhat it changes
Unverified coverageBlock · Warn · Flag staffWhether check-in stops when coverage does not verify
EHR write-backAuto · Staff review · OffHow corrections reach the record
Self-schedulingStaff only · Request only · Self-scheduleHow much patients may book
Quiet hoursStart and end, per patientWhen non-urgent texts and calls wait
KioskIdle warning and reset; lookup attemptsPrivacy between patients
Cloud AIOff by defaultWhether any model outside the private gateway may be used
Staff MFAOnOne-time code for staff sign-in
View as patientRoles; idle minutesWho may open a read-only patient view
Form rules

Form rules: condition, form, the reason shown and an on/off switch.

Payment options

Staff payment options on the same gateway.

Preferences on a phone

Patient channels and quiet hours.

Templates with a lint

Every e-mail and text in English and Spanish, checked for values, diagnoses, birth dates, identifiers and amounts.

Kiosk devices

Enrol, rename, move or revoke lobby tablets; a revoked device is refused at once.

Secrets

Stored encrypted and never shown in screens or logs.

View as patient

Allowed roles and idle minutes are settings; each view is audited.

Patient Portal · Guide · TechnicalClarity VenturesPage 7 of 12
Deployment and hosting

A container stack behind one TLS entry point

ServiceRole
Reverse proxyTLS, HSTS, routing, rate limits; the only inbound entry point
Web UIServer-rendered React app for every audience
API and workers.NET 10 pipelines, scheduled jobs and the outbox
PostgreSQL 16Records, settings and the audit log
RedisCache
PDF rendererSigned forms and results, with no route out
Virus scannerScans every upload before storage
SMS bridgeTwilio-compatible sending and signed inbound replies

Hosting

Clarity-hosted; your own environment as a proposed configuration.

Environments

Test environments run on synthetic data sets that apply and remove cleanly.

Health

Health endpoints and integration events per connection.

Patient home page

The patient home, served by the same application as the staff screens.

Operations

What IT watches

SignalWhereWhat it tells you
Health endpointsEach serviceWhether the app and its dependencies are up
Integration eventsAdmin integrations pageOperation, mode, outcome and latency per connection; no PHI
OutboxMessaging consolePending, retried and dead-lettered messages, with replay
Audit logAdmin audit pageWho saw which record, when, and why
Application logsLog filesWarnings and errors only, 3 to 14 days, no patient details
Booking on a phone

The same build serves phones.

One release, every audience

Patient, kiosk, staff and admin routes ship together in one web app and one API.

Settings per environment

Connector modes, policies and secrets are configured per environment, not in code.

Synthetic data for test

Named, versioned data sets of synthetic patients apply and remove cleanly.

Patient Portal · Guide · TechnicalClarity VenturesPage 8 of 12
Feature matrix · 1 of 2

How each feature works

58 features across access, forms, scheduling, records, messaging, AI, billing, revenue, front desk, telehealth and administration.

FeatureHow it worksCategoryFor
Unified patient home
Responsive web UI; phone tab bar; one proxy-aware account.AccessPatients
Passwordless check-in links
Hashed random token; single-use, expiring; 5-try DOB lock.AccessPatients
Online pre-check-in
Four-step resumable session; status pushed to the board.AccessPatients
Insurance card capture
Upload virus-scanned (fail-closed); photo location removed.AccessPatients
Real-time eligibility
Provider-neutral layer; clearinghouse REST, OAuth 2.0, poll.AccessStaff
Lobby kiosk check-in
Enrolled devices only; 60 s wipe of screen, storage, camera.AccessPatients
Self-registration
Setting-gated; creates the account and linked patient.AccessPatients
English and Spanish
Per-patient language drives UI, templates and SMS parsing.AccessPatients
Smart forms
Rules on visit type, age, payer, recency; autosave.FormsPatients
E-consent and signature
PDF rendered in-network; SHA-256 hash of the signed copy.FormsPatients
Screeners with a safety net
Auto-scoring; risk answer pauses form, opens a care task.FormsPatients · Staff
AI-assisted form import
Private-AI draft, staff review, publish as template.FormsAdmins
Self-scheduling
5-minute slot holds; one booking per slot; next 3 openings.SchedulingPatients
Manage appointments
ICS export; changes emit HL7 SIU scheduling messages.SchedulingPatients
Waitlist auto-fill
30-minute offer hold; reply Y accepts; manual “offer next”.SchedulingStaff
Video-visit waiting room
Waiting-room flow; joins the video service you choose.SchedulingPatients
Referrals
Codes, providers, linked visit and prior auth, status log.SchedulingStaff
Staff calendar and worklist
Calendar reads the board feed; worklist from order messages.SchedulingStaff
Results in plain language
Inbound ORU results; range flags; trends; PDF download.RecordsPatients
Provider-held release
Release queue; notices carry no result content.RecordsStaff
My health record and education
Chart snapshot shared by portal, staff and assistant.RecordsPatients
Share with another provider
Hashed token, out-of-band code, per-view audit, revoke.RecordsPatients
Family and proxy access
Proxy grants (full or visits and billing); viewing banner.RecordsPatients
Secure messaging
Pooled inboxes; scanned attachments; crisis auto-reply.MessagingPatients · Staff
Reminders and two-way texts
Twilio-compatible API; signed inbound webhook; STOP/HELP.MessagingPatients
Surveys and recall outreach
Scheduled jobs; 1–5 SMS replies captured to analytics.MessagingPatients
Website chat widget
Embed snippet; frame-ancestors allow-list; rate-limited.MessagingPatients
Private AI assistant
Identifiers replaced before the model; output checks.AIPatients
AI voice agent
Intent and name matching; masked transcripts; SIP/PBX.AIStaff
PHI access log filters

The PHI access log: filters by patient, action, person, channel, outcome and kind; IP addresses stored as hashes.

Patient Portal · Guide · TechnicalClarity VenturesPage 9 of 12
Feature matrix · 2 of 2

How each feature works

Telehealth features are a module on the same platform, switched on per site.

FeatureHow it worksCategoryFor
Nurse triage queues
Deterministic nurse protocols; shift summary.AIStaff
Statements with claim status
Invoice lines by procedure code; hourly 276/277 refresh.BillingPatients
Online payments and autopay
Client-side tokenization; minimum-necessary receipts.BillingPatients
Payment plans
Scheduled instalments; remainder on the final payment.BillingPatients
Cost estimates
From the latest 271 answer; Good Faith Estimate if self-pay.BillingPatients
Price transparency
Anonymous endpoint; filters by type and facility.BillingPatients
Virtual terminal
Staff card entry on the same gateway; channel tagging.BillingStaff
Payment reconciliation
Deterministic match, then rule or AI proposals; 835 export.BillingStaff
Prior authorization
Da Vinci CRD, DTR and PAS; pended requests re-polled.RevenueStaff
Revenue-cycle agents
Off, Shadow, Assist, Autopilot; dollar caps; dual approval.RevenueStaff · Admins
Claims and remit import
X12 837/835 readers; folder or SFTP watch; posting.RevenueAdmins
Arrivals board
Live board, status filters, patient side panel.Front deskStaff
Needs-review triage
Nightly sweep; member ID, Medicare ID, name, DOB compare.Front deskStaff
Walk-in registration
Five-step flow; record search; ADT^A04 on registration.Front deskStaff
View as patient
Server-enforced read-only; idle and 8-hour limits; audited.Front deskStaff
Clinical photo capture
In-browser camera; images held in memory until filed.Front deskStaff
Telehealth intake
Question engine; disqualifier and risk rules; saved progress.TelehealthPatients
Clinician visit queue
Required-actions gate (ID, labs, checklist); reassign.TelehealthStaff
E-prescribing connector
OAuth connector; patient sync; signed SSO frame; webhook.TelehealthStaff
Pharmacy routing
State and link routing; rendered script; fax queue.TelehealthStaff
Subscriptions and auto-refill
Renewal jobs, price rules, failure handling, refill orders.TelehealthPatients
Role-based access
Role-scoped endpoints; unseen records answer “not found”.SecurityAdmins
Strong sign-in and sessions
12+ chars; 5-try lockout; staff MFA; 15-min idle; 1-h tokens.SecurityStaff · Admins
PHI access log
Append-only: who, patient, action, channel, purpose, outcome.SecurityAdmins
Message templates
Lint blocks values, diagnoses, DOB, identifiers, amounts.AdminAdmins
Integrations console
Integration events: operation, mode, outcome, latency.AdminAdmins
HL7 v2 interface
ADT, SIU, ORU, MDM, DFT, ORM/OML over MLLP/TLS or SFTP.IntegrationAdmins
FHIR R4 connector
Read, search, create, patch; SMART backend services.IntegrationAdmins
Leadership analytics
Aggregates with CSV export (no patient data).AdminStaff
Arrivals board rows

Eligibility results land on the board as Verified or Needs review. Synthetic data; names hidden.

Patient Portal · Guide · TechnicalClarity VenturesPage 10 of 12
Implementation, testing and monitoring

How a rollout is run and watched

STEP 1

Discover

Visit types, roles, policies, systems.

STEP 2

Configure

Settings, form rules, templates.

STEP 3

Connect

EHR, clearinghouse, processor, SMS.

STEP 4

Test

Synthetic data, end to end.

STEP 5

Go live

Monitor and tune.

Unit tests

NUnit test projects for the portal, coverage, workflows and revenue engine.

End-to-end tests

Playwright suites for patient, staff and admin journeys, including accessibility.

Synthetic data sets

Named, versioned sets of synthetic patients that apply and remove cleanly.

Agent evals

Business rules replayed against scripted calls before any model change.

Integration health

Mode, last activity and messages per connection, with no PHI.

Delivery monitoring

Dead-letter lane and replay for every outbound message.

Registration analytics

Watching the rollout: registration time and check-in channels. Example figures; synthetic data.

Voice agent tiles

Voice agent monitoring: calls, AI answers, transfers. Example figures; synthetic data.

Access analytics

Access: no-shows and waitlist fills. Example figures; synthetic data.

Patient Portal · Guide · TechnicalClarity VenturesPage 11 of 12
Summary

What IT gets

Results with the private assistant
Medications on a phone

The results page with the private assistant, and medications on a phone. Synthetic data.

  • Standards: HL7 v2, FHIR R4, X12, Da Vinci
  • Control: write-back, autonomy and policies as settings
  • Audit: append-only PHI access log
  • Privacy: private AI with de-identification
  • Reliability: outbox, retries, replay
  • Testing: unit, end-to-end and eval suites

Interfaces

HL7 v2 over MLLP/TLS or SFTP; FHIR R4 with SMART backend services.

Encryption

TLS 1.2+ in transit; PHI columns encrypted at rest.

Hosting

Container stack; Clarity-hosted or yours as a proposed configuration.

Forms on a phone

Forms

Payment plan on a phone

Plans

Family access on a phone

Proxy access

Booking on a phone

Booking

HL7 v2 · FHIR
EHR interfaces
X12 · Da Vinci
payer transactions
TLS 1.2+
in transit, HSTS
15 min
idle session timeout

Go deeper with a technical session

The HL7 console, an eligibility round trip, the audit log and the AI output checks.

Talk to Clarity Ventures about a guided demo
Patient Portal · Guide · TechnicalClarity VenturesPage 12 of 12