PLAN REVIEW 9 PROMPT
PLAN REVIEW: attack this plan BEFORE it's built. You are one of three independent senior reviewers (Fable / Astra / Carbon). Andrew Jones presents this proof of concept tomorrow at noon in an interview with Innovare: a 4-person healthcare team migrating Allscripts → Ottehr (open-source EHR front end on the Oystehr headless FHIR backend) → their own in-house EMR. The hiring manager is a data-first .NET/Azure person. It must be correct, honest and defensible.
Context, already built and verified (222/222 tests, tag demo-safe-3): - A .NET 10 API + EF Core (SQL Server/Sqlite) - A DuckDB lakehouse (bronze/silver/gold) and a Vue 3 + Vuetify UI - Aspire - A local HAPI FHIR server - An Oystehr adapter (env-gated) - Risk rules (A1c, BP, flu gap, ASCVD with never-impute), with Way 1 / Way 2 parity of 56 flags across 12 synthetic patients - Synthetic data only
THE PLAN UNDER REVIEW (docs/CODEX-TASK-9.md) follows verbatim below.
Answer concisely, with numbered findings. Each finding: severity (Critical/High/Medium/Low), the plan section, the problem, and the concrete fix. Cover: 1. Migration CORRECTNESS: FHIR as the canonical interchange; idempotency (PUT by id); version handling; references between resources (Patient refs, contained resources); ordering and dependencies; resumability via checkpoints; partial failure; duplicate and merge risks; ID mapping (source id → target id) and provenance. 2. RECONCILIATION: are counts + checksums + risk-flag parity sufficient proof? What would a real clinical migration also verify (referential integrity, code-system fidelity, effective dates/time zones, status semantics)? 3. "Does not migrate programmatically": is the list complete and honest (auth/users, audit logs, Zambdas, consent, documents/attachments, scheduling, billing)? 4. How EF migrations, cdktn and Aspire genuinely contribute vs. overclaiming. Anything a skeptical data-first hiring manager would poke holes in. 5. Scope risk for a ~1-2 hour build. What to CUT so the core path is bulletproof (fixtures → in-house EMR → reconcile → flags identical; idempotent; resumable). 6. Security/privacy: Oystehr writes stay dry-run by default; no secrets; synthetic only. End with a verdict: PROCEED / PROCEED-WITH-FIXES (list them) / STOP.