Skip to main content

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

Healthcare & Clinical Operations•Illustrative

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.

Architecture & Security Highlights:
  • 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
Healthcare worker using a secure digital patient portal on a tablet device.

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.

Encrypted PHI
Field-level Cloud KMS encryption (design target)
100% Clinician Review
Every extracted field verified before EHR write (design target)
Zero PHI Leakage
Design target, not a measured result
Illustrative Example — Composite Scenario

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.

Operating Region: United States (illustrative scenario)
System Architecture TopologyIllustrative Architecture Model

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.

Identified Root Causes:
Patients fill in multi-page paper forms on arrival, so queues build at the front desk during busy periods.
Front-desk staff retype insurance numbers into legacy Electronic Health Record (EHR) software, where typos can enter billing data.
Clinics added through acquisition run systems that do not connect to the core administrative system.
Operational Impact:Example assumption: mistyped subscriber IDs lead to claim rejections, and long lobby waits frustrate patients.

Project Scope & Planned Deliverables

The plan covers a responsive, mobile-friendly pre-registration web app, a clinical verification dashboard, and HL7/FHIR integration adapters.

Accessible patient web portal for pre-visit demographic intake and insurance card capture.
OCR ingestion microservice that extracts structured policy numbers from smartphone photos.
Clinical staff verification queue where intake coordinators confirm data before any EHR write.
Custom HL7/FHIR adapter that maps external payloads into legacy EHR systems for clinician-approved writes, where the EHR interface supports them.
Documentation and encryption audit logs, built with healthcare data requirements in mind.
Delivery Cycle: Planned: a 14-week engagement covering privacy modeling, core development, and a pilot deployment plan for a small group of clinics.

Engineering Role & Technical Responsibilities

Lead Agency Role

Lead Solution Architect & Full-Stack Healthcare Engineering Partner (planned role)

Core Architecture & Engineering Responsibilities:
✓Would architect zero-trust cloud infrastructure and Google Cloud KMS key management, built with healthcare data requirements in mind
✓Would author the HL7 v2 / FHIR R4 interoperability layer that translates records into legacy EHR databases for clinician-approved writes, where the EHR interface supports them
✓Would engineer the serverless OCR pipeline with automated PII redaction and confidence scoring
✓Would build the clinician review dashboard with a mandatory click-to-verify gate
✓Would design a WCAG 2.1 AA accessible mobile web pre-registration portal with large touch targets
Dedicated Team Topology:Planned team (remote): 1 Solution Architect (Obaid Tariq), 2 Full-Stack Engineers (React/Node.js/Python), 1 UX/UI Accessibility Specialist (WCAG 2.1 AA), 1 Healthcare Security & Compliance Consultant
Client Engineering Counterparts:Illustrative roles a real engagement would need on the client side: an IT lead or CIO, a clinic operations lead, the organization's privacy officer, and a lead intake nurse

Non-Negotiable Technical Constraints

Privacy Controls & Boundaries Built with Healthcare Data Requirements in Mind

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.

Zero Clinical Autonomy Mandate

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.

Older-Adult Accessibility (WCAG 2.1 AA)

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.

FHIR reads, not writes — what the EHR actually exposes

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.

Illustrative Example

Healthcare & Clinical Operations

Illustrative example: a composite scenario, not a delivered client project. Figures are examples, not measured results.

Engagement TypeIllustrative

Service Domains

Customer Portal DevelopmentCustom Software DevelopmentSecure AI IntegrationsUI/UX Design

Operating Stack

ReactNode.jsGoogle Cloud KMSGoogle Cloud Vision OCRHL7/FHIR StandardsPostgreSQL

Dedicated Team Topology

Planned team: 1 Solution Architect, 2 Full-Stack Engineers, 1 UX/UI Accessibility Specialist, 1 Security & Compliance Consultant

Implementation Process & Phased Milestones

Structured Engineering Lifecycle

Every phase produces verifiable deliverables with working staging deployments, automated CI regression suites, and sprint review demonstrations.

Milestone Execution

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

→Security Architecture & Threat Model (mapped to HIPAA Security Rule safeguards)
→WCAG 2.1 AA Accessibility Wireframes
→HL7/FHIR Data Transformation Mapping Document
01
System Architecture Model

Architecture Topology & Component Pipeline

Visual topology of client/driver interfaces, intermediate asynchronous event streaming or ingestion brokers, and backend transactional persistence boundaries.

Production Architecture TopologyIllustrative Architecture Model

Figure 1.0: End-to-end data flow and architectural subsystem boundaries for Patient Portal Development: EHR & FHIR Integration.

Architecture & Engineering Approach

System Architecture & Technical Design

A decoupled web application with strict network isolation between the patient-facing input layer and the internal EHR database connectors.

ARCHITECTURAL SUBSYSTEM 01

Patient Intake Frontend

A lightweight, responsive React application built for mobile web browsers, so patients do not need to install a native app.

Technologies:React, Tailwind CSS, TypeScript
Data Ingestion & Event Pipeline
Patient smartphone -> HTTPS (TLS 1.3) -> WAF -> Patient Portal -> encrypted Cloud Storage bucket -> OCR Microservice -> Clinician Queue -> Staff Approval -> FHIR Adapter -> Legacy EHR.
Non-Functional Production Controls

Security, Reliability & Integration Considerations

Data Security & Access Controls
  • •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.
Standard: Built with healthcare data requirements in mind; the design includes automated PHI scrubbers for application logs. This page makes no HIPAA compliance claim.
Elastic Scalability
  • •Serverless OCR endpoints scale out to absorb intake spikes during busy appointment hours.
  • •An image compression step shrinks uploaded photos before OCR processing.
Reliability & Interoperability
  • •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

Decision 1

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.

Decision 2

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.

Wireframe

UX Concept Visualization

Testing Approach & Quality Assurance

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.

Verification & Test Automation StackIntegrated into automated CI/CD pull request validation pipelines
CypressJestpytestaxe-coreSnykSonarQubeDocker

WCAG 2.1 AA Accessibility Testing

100% WCAG 2.1 AA (design target)

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

Every edge-case category falls back to manual review (design target)

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

No open high or critical findings at launch (design target)

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

100% payload durability (design target)

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 Outcomes

Illustrative Results & Deliverables

These are illustrative composite examples, not delivered client projects. Outcomes are design targets, not measured results.

Delivery Milestones
  • 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.
Technical Deliverables
  • 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 Targets (Illustrative)
  • 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.

Limitations & Operational Boundaries

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.

Boundary Parameter 01

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.

Enforced Operational Limit

Strict administrative intake scope; 100% of OCR extractions require explicit clinical staff review before permanent health record commit.

Boundary Parameter 02

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.

Enforced Operational Limit

OCR extraction depends on legible physical card text; unparseable cards route automatically to in-person physical review.

Boundary Parameter 03

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).

Enforced Operational Limit

Scoped to what the clinic network's existing EHR interfaces support; modern FHIR resources are adapted to legacy schema constraints.

Boundary Parameter 04

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.

Enforced Operational Limit

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.

Engineering Lessons & Technical Retrospectives

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.

Retrospective Insight 01

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.

Delivery & Collaboration Model

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.

Zero Telephone Game

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.

2-Week Iterations

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.

Automated Testing

QA & Verification Gates

Planned: automated Cypress end-to-end tests, WCAG 2.1 AA accessibility audits, and vulnerability scanning with Snyk and SonarQube.

Zero-Downtime CI/CD

Production Deployment

Planned: containerized deployment on Google Cloud Run with automated rolling updates, designed to avoid downtime.

100% IP Custody

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.

Ownership Guarantee

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.

✓ Direct Git Repository Transfer

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

Industry context

Software development for Healthcare: the workflows, integrations and compliance boundaries we plan for in this sector.

Engineering Portfolio
View all software development case studies
2024FinTech & Capital Markets

FinTech Trading Platform Case Study

The client's on-premise monolith experienced database locks and synchronization drift during market open spikes. We architected and deployed an event-driven AWS microservices infrastructure with immutable Kafka event streams and a real-time Next.js trading cockpit.

AWS (ECS/Fargate)Apache Kafka (Amazon MSK)Next.js
Inspect Architecture
2024Logistics, Supply Chain & Freight Operations

AI Fleet Routing Software: Telemetry & Predictive Routing

Static weekly dispatch plans caused fleet idling, missed border appointments, and fuel waste. We engineered an IoT telemetry pipeline ingesting live truck coordinates via AWS IoT Core and a React Native driver app with offline heuristic routing.

React NativePython (FastAPI)PostGIS
Inspect Architecture
2024B2B SaaS

Multi-Tenant SaaS Architecture Case Study

It turns a founder's idea into the database ERDs, API mappings and first MVP scope they need to check feasibility and start writing code — instead of paying for weeks of consultation before anyone's sure the idea can be built.

Next.js (App Router)Supabase (PostgreSQL)Supabase Auth
Inspect Architecture
Engineering Partnership

Planning a Similar System Architecture?

Whether you are modernizing legacy infrastructure, launching a B2B SaaS platform, or integrating production AI workflows, we scope your technical requirements before you spend a dollar.

Written Scope & Exclusions

Detailed technical boundaries, architecture parameters, and explicit exclusions in writing before any deposit.

Direct Access to Engineers

Direct Slack channel and Zoom sessions with Lead Architect Obaid Tariq and dedicated senior developers.

Sprint-End Video Walkthroughs

Sprint progress demonstrated with recorded Loom walkthroughs and testable staging builds at every milestone.

Day 1 Repository Ownership

All source code, database schemas, and CI/CD pipelines committed directly to your GitHub and cloud accounts.