Illustrative Example — composite, not a delivered client project. Outcomes are design targets, not measured results.
By Obaid Tariq, Founder & Lead Engineer · Published 6 October 2026 · Last updated 28 November 2026
Patient Portal Development: EHR Example
In this illustrative scenario, front-desk staff photocopy insurance cards and retype health histories by hand at every check-in. The design replaces that with a digital pre-registration portal, built with healthcare data requirements in mind, that extracts card details with OCR and sends every extracted field to a clinician for review before it reaches the EHR.
- Google Cloud KMS envelope encryption for protected health information (PHI) at rest, TLS 1.3 in transit
- Private OCR document ingestion pipeline with a clinician review gate: the software writes nothing to the record on its own
- Multi-role RBAC enforced in the API and in PostgreSQL row-level policies
- Audit trail design that records every record view and transmission
What this page is — and what it is not
Illustrative Example — composite, not a delivered client project. Outcomes are design targets, not measured results. What this page is: an illustrative design for a secure patient intake portal — pre-registration, OCR insurance capture and clinician review before anything reaches the EHR. What it is not: a delivered client project. No client identity is shown, no clinic pilot is claimed, and no outcome on this page is a measured result. The design makes no HIPAA compliance claim.
A multi-clinic outpatient network (illustrative scenario)
A multi-clinic outpatient network (illustrative scenario). In this scenario, the network wants to replace paper front-desk intake with a digital pre-registration flow, starting with a small pilot group of clinics and building with healthcare data requirements in mind before any wider rollout.
Illustrative example: a composite scenario, not a delivered client project. No client identity is shown.
- Patient onboarding
- Insurance cards
- FHIR EHR records
- Clinic staff review
Note: The system architecture topology, data flow diagrams, and user journey workflows are illustrative technical models developed by AI Dev Planner for a composite scenario. No Protected Health Information (PHI) or proprietary client trademarks are published.
Business Problem & Operating Friction
In this illustrative scenario, manual front-desk intake slows check-in, invites transcription errors, and delays insurance verification across a multi-clinic outpatient network.
Project Scope & Planned Deliverables
The plan covers a responsive, mobile-friendly pre-registration web app, a clinical verification dashboard, and HL7/FHIR integration adapters.
Engineering Role & Technical Responsibilities
Lead Solution Architect & Full-Stack Healthcare Engineering Partner (planned role)
Non-Negotiable Technical Constraints
Constraint Parameter: All protected health information (PHI) must be encrypted at rest and in transit, and no PHI may reach a third party without a signed agreement.
Architectural Trade-off: The design rules out public third-party AI APIs that do not sign a Business Associate Agreement (BAA); it hosts on a provider that signs a BAA and uses Google Cloud KMS with private model endpoints.
Constraint Parameter: The software must never make medical or diagnostic determinations on its own.
Architectural Trade-off: UI and API constraints block any automated record write; every OCR-extracted record requires an explicit click-to-verify review by clinical staff.
Constraint Parameter: Example assumption: a large share of patients are older adults with varied digital literacy.
Architectural Trade-off: The design replaces multi-field forms with step-by-step, one-question-per-screen wizards, large touch targets (minimum 48px), and high contrast ratios.
Constraint Parameter: Most legacy EHRs expose FHIR reads for patient demographics, appointments and results; write-back is not guaranteed and depends on the EHR's interface version and vendor permissions. Booking, messaging and uploads depend on the vendor's own APIs, not on FHIR alone.
Architectural Trade-off: The design treats FHIR reads as the default and scopes write-back per EHR after an interface audit; where write-back is not supported, verified records wait in the clinician queue for staff to enter them, so the software never writes to the record on its own.
Healthcare & Clinical Operations
Illustrative example: a composite scenario, not a delivered client project. Figures are examples, not measured results.
Service Domains
Operating Stack
Dedicated Team Topology
Planned team: 1 Solution Architect, 2 Full-Stack Engineers, 1 UX/UI Accessibility Specialist, 1 Security & Compliance Consultant
Structured Engineering Lifecycle
Every phase produces verifiable deliverables with working staging deployments, automated CI regression suites, and sprint review demonstrations.
Privacy Threat Modeling & Clinical Workflow Mapping
Engineering Activities
- ✓Would shadow intake coordinators remotely (screen-shared walkthroughs and recorded process reviews) to map check-in bottlenecks
- ✓Would audit legacy EHR database schemas, HL7 interface specifications, and network security boundaries
- ✓Requirement: hosting on a provider that signs a Business Associate Agreement (BAA); would run a risk analysis against the HIPAA Security Rule safeguards
- ✓Would wireframe step-by-step mobile pre-registration flows designed for older-adult accessibility
Verified Deliverables Handed Over
Architecture Topology & Component Pipeline
Visual topology of client/driver interfaces, intermediate asynchronous event streaming or ingestion brokers, and backend transactional persistence boundaries.
- Patient onboarding
- Insurance cards
- FHIR EHR records
- Clinic staff review
Figure 1.0: End-to-end data flow and architectural subsystem boundaries for Patient Portal Development: EHR & FHIR Integration.
System Architecture & Technical Design
A decoupled web application with strict network isolation between the patient-facing input layer and the internal EHR database connectors.
Patient Intake Frontend
A lightweight, responsive React application built for mobile web browsers, so patients do not need to install a native app.
Security, Reliability & Integration Considerations
- •Field-level AES-256 encryption with Google Cloud KMS for all sensitive patient demographic attributes.
- •Audit logging that records timestamp, user ID, and IP address for every PHI read and write event.
- •Session timeout policy that ends inactive patient sessions after 10 minutes.
- •Zero-trust network policies that separate public-facing web servers from internal EHR database connections.
- •Serverless OCR endpoints scale out to absorb intake spikes during busy appointment hours.
- •An image compression step shrinks uploaded photos before OCR processing.
- •Graceful degradation: if the device camera fails, patients can skip photo capture and type card numbers by hand.
- •Dead-letter queues for HL7 sync events, so a patient record is held and retried, not dropped, if an external EHR server disconnects.
- •Reads from existing legacy EHR systems using FHIR R4 resources; writes back only through the EHR's own supported interface, after clinician review.
- •SMS appointment reminders with secure one-time passcode verification links.
Clinical AI copilot: drafting, never deciding
A clinical AI copilot in this design drafts intake summaries and pre-visit notes for clinician review — it never decides. The copilot's job is to turn what the patient typed and what the OCR read from an insurance card into a tidy draft: names, dates, policy numbers and a short summary of the intake, each field shown next to its source so a clinician can confirm or correct it in one step. What it does not do is just as important. The copilot makes no diagnosis, performs no triage and issues no autonomous order. It does not decide whether a patient needs care, which treatment applies, or whether a record is correct — those are clinical judgements, and this design leaves them entirely with people. There is no autonomous commit path: the software cannot write anything to the health record on its own, and no AI output reaches the EHR without passing through the clinician verification queue first. In practice the flow is deliberately boring: the copilot drafts, the clinician reviews, and only a reviewed record moves on. Low-confidence OCR captures are flagged for manual review instead of guessed at, and every review action is logged in the audit trail. If the evidence in the draft is thin or contradictory, the record waits — the queue, not the model, decides what is ready. That boundary is the point of the section. A copilot that drafts saves front-desk and clinician time; a copilot that decided would be practising medicine, and this portal is an administrative intake system, not a clinical one. The design targets — faster intake, fewer transcription errors — are therefore targets for the drafting workflow, not claims about clinical outcomes.
Market context only: NVIDIA State of AI in Healthcare 2026 (Feb 2026) reports 70% of healthcare organisations using AI. That figure describes the wider market, not this portal, and it is not evidence for any outcome on this page.
Technical Decisions
Choosing FHIR standards from the start
Instead of writing a separate mapping script for each EHR system, the design routes everything through one central FHIR adapter, so adding another clinic's EHR means adding one mapping, not rebuilding the integration.
Server-side OCR processing
Patients' phones vary widely in hardware, so on-device models would give inconsistent results. The design runs OCR on secure serverless endpoints so extraction quality does not depend on the patient's phone.
UX & Product Thinking
What We Learned
Example assumption: older patients find long multi-step digital forms hard to finish, so many could abandon pre-registration before the visit.
What Changed
The design splits pre-registration into a conversational, one-question-per-screen interface with large tap targets.
The Why
Healthcare UX has to put accessibility ahead of aesthetics. The design keeps cognitive load low on every screen; completion rates would need to be measured in a real pilot.
UX Concept Visualization
Rigorous Verification & Test Harness Architecture
Planned verification framework covering WCAG 2.1 AA accessibility automation, image distortion edge cases, automated access control and session tests for PHI, and EHR disconnect recovery.
WCAG 2.1 AA Accessibility Testing
Planned: automated axe-core regression tests on every form view plus manual screen-reader testing (NVDA and VoiceOver), checking 48px minimum touch targets and 4.5:1 contrast ratios.
OCR Image Degradation & Distortion Suite
Planned: a test set of edge-case images covering low light, flash glare, rotation, blur, and non-insurance cards, to confirm each falls back to manual review.
PHI Access Control & Session Boundary Tests
Planned: automated penetration tests that check for unauthenticated access to PHI, enforce the 10-minute session expiry, and confirm PII scrubbing in every application log sink.
EHR Dead-Letter Queue & Interoperability Tests
Planned: simulated legacy EHR timeouts and connection drops, checking that every HL7/FHIR payload is buffered in a dead-letter queue and retried.
Illustrative Test Evidence (Design Target)
Design target: every build passes automated Cypress E2E pipelines and Snyk vulnerability gates, and every extracted record gets clinician review before any EHR write. Illustrative example, not a measured result; no clinic pilot is claimed.
Illustrative Results & Deliverables
These are illustrative composite examples, not delivered client projects. Outcomes are design targets, not measured results.
- Design target: deployment across pilot outpatient clinics with zero security or data leakage incidents (example, not a measured result; no clinic pilot is claimed).
- Design target: every scanned insurance document passes clinician verification before entering the permanent health record (example, not a measured result).
- Design target: compliance documentation, architecture diagrams and system runbooks to support the healthcare organization's own IT audits.
- Planned: a secure web application code repository with full Git history and an automated CI/CD pipeline.
- Planned: a FHIR adapter microservice designed to connect additional EHR instances.
- Planned: an automated unit and accessibility test suite covering every patient form component.
- Design target: fewer front-desk paper intake bottlenecks (example, not a measured result).
- Design target: no manual transcription of patient insurance subscriber IDs.
- Design target: a simplified mobile web workflow that elderly patients can complete unaided (example, not a measured result).
Illustrative Example — composite, not a delivered client project. The outcomes above are design targets, not measured results.
System Boundaries & Architectural Scope Limits
Authentic software engineering involves concrete physical, regulatory, and infrastructural limits. We transparently document the design boundaries, environmental dependencies, and intentional scope constraints of this architecture.
Zero Autonomous Clinical Decision-Making
The platform is an administrative pre-registration and document extraction system. It does not provide medical diagnoses, treatment suggestions, triage evaluations, or clinical interpretations of any kind.
Strict administrative intake scope; 100% of OCR extractions require explicit clinical staff review before permanent health record commit.
Physical Document Quality & Smartphone Sensor Variance
Severely crumpled, water-damaged, or over-exposed card captures cannot be extracted with high confidence. The system gracefully flags low-confidence images for manual front-desk entry rather than guessing.
OCR extraction depends on legible physical card text; unparseable cards route automatically to in-person physical review.
EHR Upstream API Version Constraints
Interoperability features and write-back speed depend on the version and availability of the clinic network's legacy EHR interfaces (for example, HL7 v2.3/v2.5 limitations).
Scoped to what the clinic network's existing EHR interfaces support; modern FHIR resources are adapted to legacy schema constraints.
What this is not — limits
This page is an illustrative composite, not a delivered client project: the figures are design targets, not measured results. The software makes no autonomous clinical decisions, and this page makes no HIPAA-compliance claim.
Read this page as a design example: no client project, no measured results, no compliance claim.
Acknowledging system boundaries is essential for technical risk management. We scope every client architecture to its verified operational envelope rather than overpromising unachievable guarantees.
Design Lessons & Architectural Trade-Offs
Production engineering involves real-world trade-offs. We document key implementation insights, edge cases encountered during rollout, and retrospective architecture decisions.
Planning for Edge Cases in Document Scanning
The design assumes patients will submit blurry photos, photos taken in dark lighting, and photos of cards that are not insurance cards. The OCR pipeline therefore flags low-confidence captures for manual review instead of guessing.
How the Build Would Be Run
Our engagements adhere to a transparent engineering process with direct founder/lead access, automated CI/CD verification, and complete IP custody transferred to your organization.
Direct Technical Communication
Planned: weekly remote check-ins with the clinic IT lead and nursing supervisors, plus a shared chat channel for engineering questions and sprint review demos.
Agile Sprint Cadence
Planned: regular written updates and demos, with working builds deployed to a secure staging environment built with healthcare data requirements in mind.
QA & Verification Gates
Planned: automated Cypress end-to-end tests, WCAG 2.1 AA accessibility audits, and vulnerability scanning with Snyk and SonarQube.
Production Deployment
Planned: containerized deployment on Google Cloud Run with automated rolling updates, designed to avoid downtime.
Hypercare & IP Transfer
Planned: a post-launch support period, with its length and response times set in the contract, to handle clinical staff feedback, followed by optional ongoing maintenance.
Complete IP & Asset Custody
You own 100% of all source code, database schemas, CI/CD pipeline scripts, and cloud infrastructure keys upon milestone acceptance. No vendor lock-in, proprietary licensing, or hidden dependencies.
Build a patient portal for your clinics? Book a Free Scoping Call — we start with a 2-week Validation Sprint ($2,500–$5,000, 100% credited toward the build) and a written KEEP / PIVOT / RESEARCH / STOP verdict.
Related: Healthcare software development · Website maintenance cost · How the Validation Sprint works
Frequently asked questions
Is this a real client project?
No. Illustrative Example — composite, not a delivered client project. Outcomes are design targets, not measured results. No client identity is shown, and no clinic pilot is claimed.
What does a clinical AI copilot do — and what does it not do?
In this design, a clinical AI copilot drafts intake summaries and pre-visit notes — including OCR-extracted insurance fields — for clinician review. It does not diagnose, triage, or issue orders, and it never writes to the health record on its own. Every AI output waits in the clinician verification queue before EHR commit.
How does a patient portal integrate with an EHR?
Through an interoperability adapter. In this design, verified intake records are mapped to FHIR R4 resources and translated to HL7 v2 messages where the legacy EHR only accepts those, with a dead-letter queue so no record is lost if the EHR connection drops. One honest limit: most EHRs expose FHIR reads for scheduling and results, not writes — booking, messaging and uploads depend on the vendor's own APIs, so write-back is scoped per EHR after an interface audit.
Does the AI make clinical decisions on its own?
No. The software makes no clinical or patient-outcome determinations on its own. OCR extraction and drafted summaries are assistants only: every extracted field is shown next to the original image and must be confirmed by clinical staff before anything is written to the health record.
How much does it cost to scope a portal like this?
There is no fixed price for scoping a portal like this. Scoping starts with a Validation Sprint ($2,500–$5,000, 2 weeks, 100% credited toward the build), which tests the idea and produces the milestone scope the build estimate is based on. See the Validation Sprint page for what the sprint returns.
How much does a patient portal cost to build?
There is no fixed quote on this page: the cost depends on how deep the EHR integration goes. Published market ranges (KrishaWeb, 2026) put a read-only patient portal at roughly $15,000–$50,000 and a bidirectional EHR integration at $50,000–$150,000. A scoped price for your clinics comes from a 2-week Validation Sprint ($2,500–$5,000, 100% credited toward the build), which audits your EHR interfaces before any price is fixed.
Continue reading
- Validation Sprint — scope a portal like this before funding a build.
- Custom web application security — how we approach security for custom applications, including AI features.
- Custom web application development process — how a custom web application is built, step by step.
- Client dashboard — how clients track a build: tickets, burn, code and decisions.