LVD for Regulated Systems: The MedConnect Architecture
The book's MedConnect case study asks whether LVD's layers can double as compliance boundaries in a healthcare platform: the setting, the idea, the team.
Regulated software has a reputation: compliance slows everything down, and the slowdown is the price of doing business. The end of the MedConnect case study asks a sharper question. How much slower, compared with a conventional architecture, and where did it hurt anyway? The answer is more interesting for the second half than the first.
As with the rest of the book's case studies, MedConnect is a representative generic platform, and its results are projected outcomes, not field measurements. The projections include a favourable five-year audit and incident history. Read those as targets the design aims at, not as a record anyone can cite.
The comparison I find most useful is about effort. The book projects that regulated work on this architecture carries about 45% more development time than equivalent unregulated work, against about 65% for a traditional architecture. These are projections, and the exact percentages matter less than the reasons the book gives for the gap.
Three properties of the layered design do the work, according to the book.
The challenges section reads like a project retrospective, and each item is a familiar problem.
Two learning curves at once. New developers had to learn LVD and healthcare compliance together. The book projects about six weeks to productivity, against about two for LVD in an unregulated domain. Pair programming and a healthcare-specific onboarding guide brought this to roughly four weeks for later hires.
Encryption is not free. Field-level encryption is cheap for one record and noticeable for ten thousand. A population-level report initially took a projected 45 seconds to decrypt its data. A dedicated bulk decryption pipeline, using hardware acceleration and parallel work, cut that to a projected 8.
Legacy systems. Older EHR systems speak HL7v2, which predates modern security practice. Some lack mutual TLS, send data in cleartext inside private networks and number their patients inconsistently. The fix was a dedicated adapter in the Resources layer that translates the messages into FHIR, encrypts on the way in and reconciles identities through a master patient index. The tools above never see the mess; isolating an EHR vendor behind the Resources layer shows the pattern in more detail.
Log volume. Complete audit logging produces a lot of data, and hot-tier storage cost became a concern in the second year. A tiered retention scheme, described in designing an audit trail, brought it down while keeping recent entries fast to query.
The recommendations for regulated environments share a theme: make the right thing the cheap thing. Put regulatory tags in the schema so they travel with the data. Centralise security primitives in Utils rather than letting each tool improvise. Design layer patterns so that compliant behaviour takes less code than non-compliant behaviour; when the easy path is the safe path, accidents become structurally unlikely. Generate audit documentation from the layer structure instead of assembling it by hand before each audit. And treat a screen as a disclosure: send the UI only what the task needs.
The book argues the same mapping of concerns to layers is not HIPAA-specific and could carry over, with adaptation, to privacy law, payment-card standards and financial record-keeping. That is a design hypothesis. It is not a claim that following the pattern satisfies any particular law.
The projected advantage of a layered approach is not that regulation gets lighter. It is that the work becomes predictable: concerns have homes, patterns repeat and checks run themselves. That is also the shape of ShopFlow's lessons, covered in ShopFlow: lessons learned, and the starting point for the healthcare case is in LVD for regulated systems.