Argumentation Network Analysis · ClinicalProof v1.0

Cleaned draft — corrections applied:

  • Duplicated citations removed throughout (e.g., "Kwan et al. (Kwan et al., 2013)" → "Kwan et al. (2013)")
  • Citation spacing and punctuation regularized (space before parenthesis; citation precedes period)
  • Grammatical errors corrected ("each case must present" → "each case presents"; "clinical picture (demographics" space fixed)
  • Hyphens added to all compound modifiers (model-agnostic, multiple-choice, out-of-distribution, LLM-based, machine-readable, schema-incomplete, schema-complete, top-level, per-field, few-shot, free-text, inter-rater, wall-clock)
  • Delphi paragraph rewritten for polish and accuracy (consenses/consisense → consensus; Delhi → Delphi; open ended → open-ended; AI generated → AI-generated)
  • "one or more deliberately planted discrepancies" → "a deliberately planted discrepancy" (consistent with EXACTLY ONE in prompt); clean-case qualification added
  • Two-layer description rewritten: "front facing case layer…" → clear two-layer definition
  • "medical resident's" → "a medical resident's"; "clinial" → "clinical"; "both those layers" → "both layers"
  • Table 4 updated to 7 categories; error_category schema in Section E updated to match
  • Schema tables (B–D) updated to use actual JSON field names (patient_age, patient_gender, weight_kg, medical_history, labs, admission_medications, current_medications, discharge_medications, severity_ncc_merp)
  • Prompt fields task_description, specialty, rubric_criteria, expected_actions, common_errors noted in schema appendix
  • "assess residents on medical discharge competency" → "assess residents' competency in discharge medication reconciliation"
  • Methods tense unified to past tense throughout
  • Duplicate "single frozen prompt template" removed from Case Generation paragraph
  • Mixed-tense sentence in Case Generation fixed ("is required … matched … was constrained" → past tense throughout)
  • "machine readable" → "machine-readable"; "top level" → "top-level"; "per field" → "per-field"
  • Table/Figure references standardized: "Figure 3" consistently (not "Fig 3")
  • Validation Rubric table number filled: "Table 12" (was "Table .")
  • Conclusion text preserved and corrected ("an clinical blueprint" → "a clinical blueprint")
  • References: title case → sentence case throughout; "Nurse Educ. Today" → "Nurse Education Today"; "Desai … & others" → "et al."
  • Yanagita: preprint source (medRxiv) added with DOI; verify publication status before submission
Cleaned draft v0.1Results pending validation study

CliniProof: A framework for generating and validating synthetic cases for medication reconciliation assessment

Pia Tripathi, Katie Oakes, Alex Sugerman

Tufts Institute of AI, Tufts Medical

Introduction

Medication reconciliation is the formal process of assembling the most complete and accurate list possible of a patient's current medications and comparing it against the medications ordered at each transition of care in order to identify and resolve unintended discrepancies (Barnsteiner, 2008; Joint Commission on Accreditation of Healthcare Organizations, 2006; Kwan et al., 2013). The Joint Commission specifies five steps: developing a list of current medications, developing a list of medications to be prescribed, comparing the two, making clinical decisions based on that comparison, and communicating the reconciled list to the patient and subsequent caregivers (Joint Commission on Accreditation of Healthcare Organizations, 2006). Failed reconciliation sends patients home with lists that may duplicate existing drugs or specify wrong doses. These drug discrepancies at the time of discharge affect a meaningful minority of patients. In a systematic review of 18 hospital-based reconciliation studies that required independent clinician adjudication of severity, Kwan et al. (2013) found that a median of 34% of unintended discrepancies were clinically significant and that 45% of patients had at least one such discrepancy. Coleman et al. (2005), who sent a geriatric nurse practitioner into the homes of 375 older adults within 72 hours of discharge to compare pre-hospital lists, discharge instructions, and the medications actually being taken, identified discrepancies in 14.1% of patients, attributed them almost equally to patient- and system-level factors, and observed that patients with a discrepancy were rehospitalized within 30 days at more than twice the rate of those without one (14.3% vs. 6.1%). Since 2005, the process has been a Joint Commission National Patient Safety Goal and is now required for hospital accreditation in both the United States and Canada (Barnsteiner, 2008; Joint Commission on Accreditation of Healthcare Organizations, 2006).

Residents and advanced practice providers (APPs) perform most discharge reconciliation yet receive little deliberate practice with feedback. In teaching hospitals, medication reconciliation on admission, transfer, and discharge is most often carried out by physicians-in-training, who nonetheless report little or no formal training in eliciting and reconciling a medication history, deriving most of their learning from an informal curriculum of on-the-job "walk-throughs" with a supervisor (Boockvar et al., 2011; Ramjaun et al., 2015). A systematic review of trainee-targeted education identified only seven eligible studies, none of which measured objective reconciliation accuracy, and the resident-focused interventions among them produced no measurable improvement in reconciliation skill despite gains in self-reported confidence (Ramjaun et al., 2015). Case-based simulation provides a natural mechanism for such deliberate practice because trainees can identify and resolve medication discrepancies in controlled, repeatable clinical scenarios while receiving structured feedback.

In the problem-based learning tradition, a clinical case presents a coherent patient encounter — demographics, history, physical findings, laboratory results, and clinical notes — structured to trigger clinical reasoning rather than to display isolated facts. Traditionally, such cases were generated by hand: faculty distilled real or hypothetical patient encounters into structured vignettes, an artisanal process that has remained largely unchanged for decades and that scales poorly to the volume and variety a modern competency-based curriculum demands (Thomas et al., 2015). Thus, constructing a library of such cases by hand is slow and costly. Additionally, one must ensure that each case presents a coherent clinical picture (demographics, comorbidities, three medication lists, notes, and labs) while concealing a deliberately planted discrepancy whose presence, category, and detectability are known in advance — with a separate clean-case variant carrying no planted discrepancy serving as a negative control. The effort scales poorly: a faculty author may produce only a handful of vetted cases per month, and the resulting library rarely spans the full taxonomy of reconciliation failures a resident should encounter. This supply bottleneck has limited the breadth and frequency of reconciliation training in residency programs. Generative AI offers a potential means of overcoming this case-supply bottleneck by enabling rapid production of larger and more diverse case libraries. However, generation alone is insufficient: synthetic cases cannot be assumed to be clinically coherent, educationally valid, or limited to the intended planted discrepancy. They therefore require systematic validation before use in training or assessment.

This paper presents a framework that addresses this gap in medical discharge reconciliation training through an AI-enabled precision medical education (Desai et al., 2024; Triola & Burk-Rafel, 2023) system. Specifically, the framework addresses both the case-generation bottleneck and the validation problem introduced by synthetic content. We propose a two-step framework for synthetic case validation. First, we develop a model-agnostic case schema that serves three functions at once: it specifies what the generator must produce and defines what validators must check for the cases to qualify. Each case carries a deliberately planted discrepancy of known category. In the second stage, each case is validated under a pre-specified protocol in which reviewers actively hunt for unintended discrepancies, error cue leakage, and internal inconsistency. We apply the pipeline to produce a synthetic medical discharge reconciliation assessment case library that can be used to assess residents' competency in discharge medication reconciliation.

Background and Related Work

Post-discharge medication safety and reconciliation systems

Despite the mandate, the period following discharge remains one of the least protected points in the medication-use process. In a systematic review of post-discharge medication safety across all patient populations, Alqenae et al. (2020) pooled 54 studies covering 20,895 discharges and found that a median of 53% of adult patients experienced at least one medication error and 50% at least one unintentional discrepancy after returning home, with 19% experiencing an adverse drug event. The drug classes most often implicated, such as cardiovascular agents, antidiabetics, antibiotics, and analgesics, overlap with those Coleman et al. (2005) identified fifteen years earlier, suggesting the problem has persisted through two decades of accreditation requirements.

There is increasing evidence that reconciliation systems and reviews may help. Bishop et al. (2015), studying a hospitalist service where residents and attendings performed discharge reconciliation, found that a single pharmacist's review identified discrepancies in 41% of patients (most often therapeutic duplication or omission) but required up to 45 minutes per patient. The authors identified scalability issues with this approach since hospital-wide coverage would demand either additional staff or automated EMR-based detection targeted at patients on eight or more medications. Killin et al. (2021), reviewing ten studies comparing basic discharge reconciliation with electronic or enhanced variants, found that electronic reconciliation reduced discrepancies and adverse drug events. Notably, the reconciliation studied in published trials is performed predominantly by pharmacists, whereas in routine practice the task often falls to physicians, including residents, whose competence in discharge reconciliation is rarely assessed directly (Kwan et al., 2013). This gap motivates the present work.

Review and feedback on trainee reconciliation

Faculty review of trainee reconciliation reasoning is labor-intensive, unstandardized, and rarely timely: residents and pharmacists alike describe reconciliation as a task displaced by competing clinical priorities, completed without anyone checking its quality, and therefore performed "for the sake of doing it," and they explicitly request that someone in addition to the author review each reconciliation and provide corrective feedback (Boockvar et al., 2011). Even a well-received case-based curriculum for internal medicine residents illustrates the gap: residents who received real-time group feedback reached 100% accuracy on a reconciliation task, whereas those completing it independently reached only 41%, and program evaluation depended on chief residents manually auditing a handful of charts a month later (McShane & Stark, 2018). At the system level, the interventions shown to reduce discrepancies and adverse drug events rely on intensive pharmacist involvement rather than on developing prescribers' own reconciliation competence, and the literature offers no scalable mechanism for reviewing and correcting trainee reasoning at the point of care (Mueller et al., 2012).

Case-based simulation and case-based learning

Case-based simulation is the established method for teaching medication reconciliation and the only one with evidence of improving actual performance rather than confidence alone. In this format trainees reconcile a patient's medications from conflicting sources (a brown bag, an outdated list, pharmacy fill data, an outside-facility record) and must query the patient, pharmacist, or prescriber to resolve discrepancies (Lindquist et al., 2008; Ramjaun et al., 2015). Case-based training is itself not new. It descends from the problem-based learning (PBL) tradition introduced at McMaster University in the late 1960s, in which faculty-authored paper vignettes anchored small-group tutorials and progressively shaped how clinical reasoning is taught (Barrows & Tamblyn, 1980). The psychological rationale for anchoring instruction in cases rather than isolated facts was articulated and reviewed over the following decades, establishing case-based learning as a pedagogic mainstay in medical education (Norman & Schmidt, 1992).

For medication reconciliation specifically, it works: in a randomized comparison, students who completed a lecture plus case workshop outscored lecture-only and control groups on a blinded standardized-patient reconciliation (Komperda & Lempicki, 2019), and internal medicine residents who worked a real deidentified case in the EHR training environment with facilitated debrief reached 100% accuracy versus 41% for those completing it unsupervised (McShane & Stark, 2018). The two conditions that separate effective from ineffective implementations are also clear. First, cases must be realistic and institution-specific: the resident-focused interventions that failed to move skill relied on generic standardized-patient encounters or unstructured follow-up rather than authentic multi-source reconciliation problems (Ramjaun et al., 2015). Second, trainees must receive feedback on their reasoning, which residents and pharmacists themselves identify as the missing element in current practice (Boockvar et al., 2011). Both conditions are resource-bound. A single well-constructed case takes faculty time to build and teaches only the discrepancy patterns it happens to contain.

AI-generated synthetic cases

One way to address this limitation is the use of artificial intelligence to generate synthetic cases for medical training. Synthetic data — that is, data generated by a model rather than collected from real patients — has been proposed across health care as a way to expand access to realistic material while limiting privacy exposure, with education and training identified as one of its principal use cases (Gonzales et al., 2023). Recent work demonstrates that large language models can produce clinical vignettes of sufficient quality for instructional use. Rao et al. (2025) generated vignettes and differential diagnosis explanations for twenty dermatologic conditions using GPT-4, and three attending physicians rated them highly for scientific accuracy, comprehensiveness, and overall quality, with low ratings for potential harm and bias. Emekli et al. (2026) extended this approach to assessment, generating twelve psychiatric case vignettes and sixty accompanying multiple-choice questions that expert psychiatrists judged to be clinically representative and, in most cases, to target clinical reasoning rather than rote recall.

Generation strategies differ in how tightly they are anchored to real clinical data. Cayres Ribeiro et al. (2026) conditioned GPT-4 on real patient questionnaires from a chest pain trial to produce locally relevant synthetic vignettes, an approach that preserves the texture of authentic patient narratives but requires screening for near replicas of the source records. Chung et al. (2023) took a different route, training an autoregressive language model on more than one million trauma registry cases encoded as sequences of diagnostic and procedural codes, and pairing it with an automated out-of-distribution filter that improved the proportion of generated scenarios a blinded clinician rated as realistic. Prompt design also matters substantially for the properties of the resulting cases. Bakkum et al. (2024) showed that decomposing case generation into a series of short, sequential prompts, and randomizing patient characteristics independently, produced sets of thirty diverse vignettes in approximately one hour while mitigating the stereotypical attribute combinations that arise when a single long prompt is used. Across these studies, the recurring caveat is that expert oversight remains necessary, since models comply only partially with constraints on ambiguity, disclosure, and representativeness, and no standard methodology yet exists for validating synthetic clinical content (Gonzales et al., 2023). In addition, synthetic clinical cases are prone to a set of errors characteristic of the way large language models (LLMs) and LLM-based agents operate (Gorenshtein et al., 2025; Zhang et al., 2025).

In recent years, AI-generated cases have been validated through various methods. The dominant approach has been a structured expert-review consensus methodology called the Delphi method. The Delphi method converts distributed expert judgment into a defensible consensus position on a question for which no definitive empirical answer exists (Arthur et al., 2012; Cumyn & Harris, 2012). In this context, the question is what components a simulation scenario must contain to be considered well-constructed. Because there is no external gold standard against which such components can be measured, the standard is established through systematic expert agreement, and the Delphi method is designed to make that agreement methodologically rigorous. Final agreement is evaluated statistically using a prescribed criterion (Nasa et al., 2021). One example of the use of the Delphi method is the Simulation Scenario Evaluation Tool (SSET) (Hernandez et al., 2020). SSET employs 20 items across six elements developed through a modified Delphi method. While the classical Delphi method relies on convergence of expert opinion on open-ended questions, a modified Delphi method, such as the one used for SSET, begins with a predefined set of candidate items rather than an entirely open-ended first round.

Study designs evaluating AI-generated clinical cases vary substantially in how cases are produced, sampled, and presented for review. Ruggiano et al. (2026), for example, generated 50 geriatric simulation cases using the same prompt across five generative AI platforms and evaluated them using the SSET, with each case independently reviewed by three evaluators and case-level scores averaged for analysis. Other studies have used curriculum-based sampling strategies. Takahashi et al. (2024) selected 18 diseases from the 191 fundamental diseases identified in Japan's national Model Core Curriculum for Medical Education and generated corresponding clinical vignettes using ChatGPT-4. Their national sample of general internal medicine and general medicine physicians evaluated cases on information quality, information accuracy, educational usefulness, clinical match, terminology accuracy, and diagnosis difficulty. Yanagita et al. (2024) used a broader curriculum-based approach, generating vignettes for 202 primary-care diseases using a standardized seven-component prompt, followed by evaluation of medical and linguistic accuracy by three physicians using predefined acceptability thresholds. Complementary approaches have focused on the generation process itself. Bakkum et al. (2024) developed an eight-step prompting workflow in which patient characteristics were generated incrementally and selectively randomized to increase demographic diversity while limiting implausible or stereotypical combinations. Collectively, these studies demonstrate a shift toward more systematic case generation and evaluation procedures, including standardized prompts, curriculum-based sampling, structured expert assessment, explicit acceptability criteria, and analysis of variation across cases and raters. This direction is consistent with the recent review by Abidi et al. (2026), which recommends systematic expert review, verification against evidence-based guidelines, and predefined acceptability thresholds before AI-generated clinical content is used educationally.

Taken together, the literature establishes three converging points. First, post-discharge medication reconciliation remains a persistent patient-safety problem, and existing approaches depend heavily on pharmacist review or other resource-intensive processes that do not scale easily. Second, case-based simulation can improve reconciliation performance, particularly when cases are clinically authentic and trainees receive timely feedback, but developing and reviewing such cases requires substantial faculty effort. Third, generative AI offers a practical mechanism for producing larger and more diverse sets of synthetic clinical cases, although current studies show that case quality depends strongly on prompt design, sampling strategy, expert review, and explicit validation criteria. Across the emerging literature, no single standard has yet been established for generating and validating AI-produced clinical cases, but there is increasing convergence around structured expert assessment, predefined acceptability thresholds, clinical verification, and systematic evaluation of realism, accuracy, and representativeness. These findings motivate an approach in which AI-generated medication-reconciliation cases are not treated as inherently valid educational materials, but are generated systematically and subjected to explicit clinical and educational validation before being incorporated into a scalable trainee assessment and feedback system.

Conceptual Framework

Synthetic cases as controlled assessment objects

A synthetic reconciliation case in this framework is not simply an AI-generated clinical vignette. It is a controlled assessment environment whose relevant properties are specified before the resident encounters it. Each case contains a coherent patient state, multiple medication information sources that must be reconciled, a deliberately planted discrepancy of known category (or no discrepancy for clean-case signal controls), the contextual clinical information necessary to interpret the discrepancy, and a recorded reference standard specifying the intended discrepancy, its category, the evidence required to identify it, and the acceptable resolution or response set.

Each case comprises two layers: a front-facing patient layer presented to the resident and a hidden assessment layer containing the answer key and assessment specifications. These two layers are stored in the system case database, but only the patient layer ever reaches the resident's screen. A vignette only needs to read plausibly (Layer 1). A case must additionally carry a pre-specified, recoverable, exclusive error (Layer 2) so it can be used to evaluate a medical resident's competency in discharge medication reconciliation. In short: Layer 1 is what the resident reasons over, Layer 2 is what the system scores against. Together, clinical reasoning is evaluated over both layers.

The patient layer (Table 1) contains the information visible to the resident, including demographics, diagnoses, laboratory results, clinical notes, medication history, and discharge context. This is what renders in the EHR workspace. It must be internally coherent and clinically accurate.

Table 1. Layer 1 — the patient layer (resident-visible)

Concept in the textSchema field(s) (JSON key)
Demographicspatient_name, patient_age, patient_gender, ethnicity, weight_kg, social_context
Diagnosesadmission_dx, medical_history, chief_complaint
Laboratory resultskey_labs (array), vitals_at_discharge
Clinical notesadmission_notes_hp (H&P), consult_notes, hospital_course
Medication history (multiple sources to reconcile)admission_medications (BPMH/home), current_medications (inpatient), discharge_medications
Discharge contextfollowup_plan, discharge_instructions
Table 1. The patient layer: concepts in the text mapped to the JSON field names rendered to the resident in the EHR workspace. This is what the resident sees and works from.

The central design principle is controlled error injection. The assessment layer (Table 2) contains information known to the assessment system but concealed from the resident, including the planted discrepancy, its error category, the evidence that makes it detectable, its designed difficulty characteristics, and its expected resolution. Separating these two layers distinguishes the generation of controlled assessment objects from the generation of clinical text. Rather than asking a generative model to produce a clinical case and subsequently examining whatever discrepancies happen to appear, the intended patient scenario and target reconciliation error are specified in advance. The generative model is then constrained to produce the case against this assessment specification. Generation is therefore driven by an assessment blueprint rather than by an open-ended prompt.

Table 2. Layer 2 — the assessment layer (concealed answer key)

Concept in the textSchema field(s) (JSON key)
The planted discrepancyerror_family ("1"/"2"/"none"), error_description
Its categoryerror_category (e.g., omission, commission, monitoring gap)
Evidence that makes it detectabletrigger_meds, detectability_location (which field ID reveals it)
Expected resolution / correct actioncorrect_action
Designed difficultydifficulty, difficulty_a_priori (easy/moderate/hard)
Clinical severityseverity_ncc_merp
Intentional (non-error) changesintentional_changes — distractors that are supposed to be there
Clean-case signal controlclean_case flag (no planted error — signal-detection control)
Table 2. The assessment layer: concepts in the text mapped to the JSON field names held as the concealed answer key, never rendered to the resident.

We created an explicit two-family taxonomy of medication reconciliation failures for use in case generation. Family 1 comprises medication reconciliation discrepancies adapted from the AHRQ MATCH toolkit (Gleason et al., 2012): medication omission, unintended commission, dose/route/frequency discrepancy, and different medication ordered or therapeutic substitution, with each classified as an error only when no documented clinical or formulary explanation supports the discrepancy. Family 2 comprises transition-of-care gaps derived from a targeted needs assessment and anchored in the transitions-of-care literature (Bajorek & McElroy, 2020; Forster et al., 2003). Seven gap categories were identified: omission of an indicated co-prescription, failure to arrange required outpatient monitoring, a held medication without a restart plan, an insufficient medication supply or duration to reach follow-up, continuation of a hospital-only medication after discharge, an inpatient therapeutic substitution not reverted at discharge, and failure to arrange follow-up for a pending therapeutic decision. A clean-case variant contains no planted discrepancy and serves as a negative control for signal-detection analysis. Each case record stores the error family, error category, trigger medication or medications, location of the evidence required for detection, expected action, NCC MERP harm category, intentional non-error medication changes, and a provisional difficulty rating. This structure ensures that the source, category, evidentiary basis, and expected resolution of every planted discrepancy are specified prospectively rather than inferred after generation.

Table 3. Family 1 error taxonomy — reconciliation discrepancies (AHRQ MATCH)

Error typeDescription
OmissionDrug indicated at discharge not prescribed
CommissionDrug prescribed at discharge with no indication
Dose / Route / FrequencyDiscrepancy with no clinical rationale
Therapeutic substitutionDifferent drug in same class, no clinical explanation

Reconciliation discrepancies adapted from the AHRQ MATCH toolkit. Each counts as an error only where no documented clinical or formulary explanation supports the discrepancy.

Table 3. Family 1 error taxonomy.

Table 4. Family 2 error taxonomy — transition-of-care gaps (needs assessment, nationally anchored)

Error typeDescription
Indicated co-prescription omittedA medication requiring a companion agent is prescribed without it. Steroids without PPI or PJP prophylaxis; opioids without a bowel regimen.
Monitoring not arrangedA medication requiring outpatient laboratory or physiological monitoring is prescribed without it being scheduled. ACE inhibitor or spironolactone without K⁺ and creatinine follow-up; corticosteroids without glucose monitoring.
Held medication, no restart planA home medication held during admission is discharged without resumption criteria or timing. Anticoagulant held for a procedure; antihypertensives held for in-hospital hypotension.
Insufficient supply / durationThe quantity or days' supply prescribed is too short to reach the scheduled follow-up. Opioid or antibiotic course ending before the next appointment.
Hospital-only drug continuedA medication started for an inpatient indication is continued at discharge without ongoing indication. DVT prophylaxis, stress-dose steroids, or ICU-initiated antipsychotics such as quetiapine.
Inpatient substitution not revertedA home therapy replaced during admission for formulary or protocol reasons is neither converted back nor explicitly re-decided at discharge. Home H2 blocker switched to a PPI; home 70/30 insulin managed on sliding scale.
Follow-up not arranged for a pending therapeutic decisionTreatment continues beyond discharge with its endpoint or duration undetermined and no visit scheduled to resolve it. Cellulitis in a patient with lymphoedema, where response at five days is uncertain.

Seven categories derived from a targeted needs assessment with the residency program. The error_category field in Section E encodes all seven values: missing co-prescription / monitoring not arranged / no restart plan / insufficient supply / hospital-only med continued / inpatient substitution not reverted / follow-up not arranged.

Table 4. Family 2 error taxonomy. Transition-of-care gaps derived from a targeted needs assessment and anchored in the transitions-of-care literature.

This design provides three properties that simple open-ended case generation cannot reliably guarantee. The first is controllability, meaning that the reconciliation error being assessed can be deliberately selected. The second is traceability, meaning that the source, category, evidentiary basis, and expected resolution of each planted discrepancy are recorded rather than inferred after generation. The third is coverage, meaning that cases can be generated systematically across the reconciliation-error taxonomy rather than clustering around error types that happen to be commonly represented or convenient for faculty authors to construct.

How CliniProof evaluates clinical reasoning across both layers

Within CliniProof, the resident encounters only the patient layer through a structured simulated electronic health record that presents the chart, the home medication list, the hospital medication list, and the clinical notes. The resident performs reconciliation by moving between these views for each medication, and navigation is non-linear by design so that the workspace mirrors real clinical workflow rather than guiding the resident toward the answer. As the resident works, the platform logs every navigation event, producing a timestamped process trace that records which information was consulted, in what order, and for how long. This process trace is itself a measure of reasoning, because systematic reconciliation requires deliberately comparing medication sources rather than passively reading a single list.

Alongside the process trace, CliniProof captures the resident's reasoning as a structured trace composed of the claims the resident makes while working through the case. Each claim is classified as an observation drawn from the documents, an inference that links observations to a clinical conclusion, an action proposed in response, or a justification that grounds an inference in evidence. These claims and the relations among them form an argumentation graph in which one claim may support, attack, qualify, or contradict another. The graph is therefore a representation of the resident's reasoning over Layer 1, not merely a record of the final answer.

Reasoning is then evaluated against both layers. Against Layer 2, the system scores whether the resident detected the planted discrepancy, classified it correctly against the taxonomy, and selected the recorded correct action; this is the deterministic accuracy component, and it depends entirely on the case carrying a pre-specified, exclusive error. Against the argumentation graph, the system evaluates the quality of the reasoning itself across five competency dimensions: clinical knowledge, reasoning coherence, safety awareness, evidence quality, and systematic approach. A resident may, for example, arrive at the correct action through a coherent, well-evidenced chain of inferences, or may reach the same action through a fragmented trace that omits key evidence or rests on an unjustified assumption; the two performances yield the same accuracy score against Layer 2 but different competency profiles from the graph. Evaluating reasoning over both layers thus separates getting the right answer from reasoning well to reach it.

The result is a multidimensional competency profile rather than a single aggregate score. Because each case carries a known discrepancy category, a known evidentiary structure, and specified difficulty characteristics, performance can be examined at the level of reasoning demand rather than only at the level of pass or fail. Patterns of successful and unsuccessful reasoning across controlled case types can then be used to identify where a resident reasons reliably and where reasoning breaks down, which in turn supports targeted feedback and the selection of additional cases for deliberate practice.

Validity requirements for synthetic assessment cases

For this framework, we define six requirements that a synthetic reconciliation case must satisfy before it can function as an assessment object (Table 5): clinical coherence, error fidelity, evidentiary sufficiency, error isolation, cue integrity, and educational appropriateness. These requirements form the conceptual basis of the validation protocol.

Table 5. Six validity requirements for synthetic assessment cases

RequirementDefinitionRationaleLLM-specific threat
Clinical coherenceThe patient's demographics, diagnoses, medications, laboratory findings, clinical notes, and discharge plan are mutually plausible and internally consistent.A resident who notices an inconsistency may reason about the artifact rather than the intended discrepancy, or dismiss a real finding as another generation error.Locally plausible but globally inconsistent content: a renal dose in normal renal function, a laboratory value contradicting the narrative, a discharge medication with no corresponding inpatient order, a consult note disagreeing with the H&P. Incoherence appears only on cross-document review.
Error fidelityThe reconciliation discrepancy the case was designed to contain is present and corresponds to the specified error category.Without fidelity the answer key and the case content disagree, and the resulting score reflects the wrong construct.Substitution of an easier or more salient error for the specified one; partial errors, such as a dose altered but not to the wrong value; drift across the family boundary, which is common because the two families share surface features.
Evidentiary sufficiencyThe information necessary to recognize, interpret, and resolve the intended discrepancy is available within the case documents.Failure to detect the error should reflect a reasoning deficit rather than missing data; otherwise detection becomes guessing.Family 2 errors are absences detectable only through a documented trigger. A generator may include the trigger while omitting the context that makes the missing companion action interpretable, leaving the gap ambiguous rather than assessable.
Error isolationThe case contains no unintended clinically meaningful discrepancies beyond the planted target.A resident may respond appropriately to an unintended discrepancy rather than to the assessment target, and the two performances are indistinguishable at scoring time.The defining contamination risk for multi-document generation. Prior work reports hallucination rates of 16% to 28% in simpler formats, and multi-document cases offer more surfaces: an extra dose mismatch, a duplicate therapy, a held medication without a restart plan. Each creates an additional defensible answer.
Cue integrityThe planted error is not inadvertently disclosed through artificial characteristics of the generated case.A cued case measures cue sensitivity rather than reconciliation skill, since the answer is available without the intended clinical reasoning.Atypical formatting of the target medication, repetition across notes disproportionate to other drugs, more elaborate phrasing of its indication, or stylistic tells such as hedges or inconsistent dose units. These tells surface only on careful reading.
Educational appropriatenessThe reasoning demanded by the case corresponds to the intended level of training.Mismatched difficulty produces scores reflecting training level rather than reconciliation skill.Errors whose resolution requires specialty knowledge, such as transplant immunosuppression or chemotherapy regimens, or difficulty calibrated to the generator's notion of a resident. Difficulty is further confounded by case length and information density.
Table 5. The six requirements a synthetic reconciliation case must satisfy to function as an assessment object, with the rationale for each and the generation failure mode it is intended to exclude.

Clinical coherence requires that the patient's demographics, diagnoses, medications, laboratory findings, clinical notes, and discharge plan are mutually plausible. The case should represent a patient state that could reasonably be encountered in clinical practice rather than a collection of individually plausible but mutually incompatible details.

Error fidelity requires that the reconciliation discrepancy the case was designed to contain is actually present and corresponds to the specified error category. A case designed to assess an omission, for example, must contain a genuine omission rather than a different medication problem that happens to produce a similar response.

Error isolation requires that the case contain no unintended clinically meaningful discrepancies that could generate additional defensible answers. An unplanned second medication problem compromises interpretation of performance because a resident may respond appropriately to an unintended discrepancy rather than to the assessment target.

Cue integrity requires that the planted error is not inadvertently disclosed through artificial characteristics of the generated case. Unnatural phrasing, inconsistent formatting, unexplained contradictions, unusual emphasis, or wording that draws attention to a particular medication can reveal the intended answer without requiring the clinical reasoning that the case is intended to assess.

Educational appropriateness requires that the reasoning demanded by the case corresponds to the intended level of training. A case may be clinically valid yet inappropriate for a resident assessment if resolving the discrepancy requires specialist knowledge or clinical experience substantially beyond the competency being evaluated.

These requirements establish an important distinction between clinical realism and assessment validity. A clinically realistic case is not necessarily a valid assessment case. A valid reconciliation assessment case must be clinically coherent while containing a known and detectable target discrepancy supported by sufficient evidence, without unintended competing discrepancies or artificial cues, and at an appropriate level of difficulty for the intended learner.

From validated cases to precision competency assessment

A validated synthetic case library has value beyond reducing the effort required to produce educational cases. Because each case contains a known discrepancy category, a known evidentiary structure, and specified difficulty characteristics, cases can be varied systematically along dimensions that influence the reasoning required from the resident. These dimensions can include discrepancy type, clinical domain, number of medication information sources, complexity of comorbid conditions, volume of clinically irrelevant information, degree of ambiguity, and the amount or distribution of evidence needed to resolve the case.

Controlled variation allows performance to be examined at a finer level than a single aggregate reconciliation score. Resident responses can be grouped according to discrepancy type and reasoning demand, allowing patterns of successful and unsuccessful performance to be identified. A resident may, for example, reliably detect medication omissions but struggle with discrepancies that require interpretation of renal function, recognition of contraindications, or integration of information across several clinical documents. In this way, the assessment produces a multidimensional competency profile rather than only a total score.

Such a profile could subsequently be used to select targeted cases, tailor feedback, or identify areas requiring additional deliberate practice. This provides a pathway from synthetic case generation to precision medical education, in which assessment content and educational feedback can be aligned with the specific pattern of strengths and weaknesses demonstrated by an individual learner.

The framework can therefore be summarized as a sequence from competency specification to competency inference. Medication reconciliation competency is first translated into an assessment blueprint. The blueprint specifies the patient characteristics, reconciliation error, and evidentiary requirements that constrain synthetic case generation. Generated cases then undergo validation before being presented to trainees. Validated cases elicit observable trainee performance, and patterns of performance across controlled case types provide the evidence used to infer competency. Within the generation and validation stage, a patient schema combined with a specified error from the reconciliation taxonomy produces a candidate assessment case. That candidate becomes a validated assessment case only after it satisfies all six requirements above.

The CliniProof Workflow and Dashboard

The CliniProof system is organized as an iterative loop that connects case generation, validation, resident administration, scoring, and feedback, with the output of each cycle feeding the next. The loop is deliberate: each completed cycle produces evidence that refines the case library, calibrates difficulty, and sharpens the feedback residents receive. The dashboard is the surface through which the resident enters the loop, and its design determines what reasoning evidence the system can collect. This section describes the loop first, then the dashboard the resident works in.

The iterative workflow

The workflow proceeds in five stages, and the final stage returns to the first, so that the library improves with use rather than being fixed at deployment.

Stage 1 — Generation. A case is generated against the schema described in the next section. The generation form fixes the error family, the error category, the clinical focus, the provisional difficulty, and the demographic constraint; the model fills the patient layer and the assessment layer in a single JSON object. The output is checked against the response schema, and any schema-incomplete case is regenerated before it enters the validation pool. Provenance — model string, prompt version, generation date, attempt count, and any manual edit — is recorded in Section A so that every case is traceable to the configuration that produced it.

Stage 2 — Validation. Two primary raters independently rate the case against the five-criterion rubric, and a naive rater independently rates plausibility. A case that passes all hard gates enters the library with its answer key locked. A case that fails a fixable criterion is revised and re-rated for one cycle. A case that fails a hard gate, or that the adjudicator discards, is retired and a replacement is generated, returning the workflow to Stage 1. The attrition profile — how many cases survive, and on which criteria the rest fail — is itself a primary result, because it is the most direct measure of how reliably the constrained pipeline produces usable assessment objects.

Stage 3 — Administration. A validated case is assigned to a resident through the dashboard. Case order is counterbalanced so that sequence effects do not confound the difficulty estimate, and clean cases are interspersed so that signal-detection accuracy can be measured alongside detection of planted errors. The resident works the case in the dashboard, and the platform records two streams of evidence in parallel: a timestamped navigation trace and a structured reasoning trace.

Stage 4 — Scoring and feedback. The resident's response is scored against the locked answer key on two levels. Against the assessment layer, the system records whether the planted discrepancy was detected, correctly classified, and resolved with the recorded correct action; this is the deterministic accuracy component. Against the reasoning trace, the system evaluates the argumentation graph across the five competency dimensions. The resident then receives structured feedback: the correct action, the evidence that supported it, and a competency profile that distinguishes reaching the right answer from reasoning well to reach it. Feedback is delivered after each case rather than only at the end of a session, because the literature is consistent that feedback timeliness is the condition that separates effective case-based training from ineffective practice.

Stage 5 — Calibration and library refinement. After administration, each case accumulates item statistics in Section F: empirical difficulty, discrimination, false-positive rate, and mean completion time. These statistics calibrate the provisional difficulty rating that was assigned at generation, retire cases that fail to discriminate, and identify gaps in taxonomy coverage that trigger new generation in Stage 1. The loop therefore closes: the library that residents encounter in the next cycle is better calibrated than the one they encountered in the last. This refinement is the mechanism by which the system moves from a collection of validated cases toward a calibrated assessment instrument, and it is the reason the framework treats difficulty as provisional until item analysis can establish it empirically.

The loop is bounded by two design choices that keep it honest. First, the answer key is locked at validation and is never edited after a resident has been scored against it; if the key is found to be wrong, the case is retired and the affected scores are flagged rather than silently corrected. Second, regeneration is triggered only by schema failure at generation or by a hard-gate failure at validation, never by a judgment that a case is too hard or too easy after administration; post-hoc difficulty is handled by calibration and retirement, not by rewriting the key.

The resident dashboard

The dashboard is the simulated electronic health record in which the resident performs reconciliation. Its design follows a single principle: the resident should have to navigate to find the evidence, because systematic reconciliation is a navigation behavior, not a reading behavior. A resident who detects a discrepancy only after deliberately comparing the home list, the inpatient orders, and the discharge list has demonstrated a different competency from one who notices it while reading a single note, and the dashboard is built so that the two performances are distinguishable.

The dashboard presents the patient layer across a set of views that mirror the structure of a real discharge chart. A chart review view holds the demographics, the problem list, the past medical history, the allergies, and the admission diagnosis. A notes view holds the admission history and physical, the hospital course, and the consult notes. A results view holds the laboratory values and the discharge vitals. An orders view holds the inpatient medications. A discharge view holds the discharge medication list, the follow-up plan, and the discharge instructions. The three medication lists — the best possible medication history, the inpatient medications, and the discharge medications — are the core of the reconciliation task, and they are distributed across the orders and discharge views rather than consolidated on a single screen, so that the resident must move between views to compare them.

Navigation is non-linear by design. The resident moves between views for each medication, and the order in which views are visited is not prescribed. This mirrors real clinical workflow, in which a clinician reconciling a discharge moves between the chart, the results, and the discharge instructions as questions arise, rather than following a fixed path. It also prevents the dashboard from cueing the answer: a fixed navigation order would tell the resident where to look, and the assessment would measure compliance with the interface rather than reconciliation reasoning.

Every navigation event is logged. The platform records which view was opened, when, for how long, and in what sequence, producing a timestamped process trace that runs alongside the resident's reasoning. The trace is itself a measure of reasoning, because systematic reconciliation requires deliberately comparing medication sources rather than passively reading a single list. A resident who opens the discharge view, then the orders view, then returns to the discharge view for a specific medication has demonstrated a comparison behavior that a single-pass reader has not, and the trace preserves that distinction.

Alongside the navigation trace, the dashboard captures the resident's reasoning as a structured trace. As the resident works, the platform prompts for the claims being made: observations drawn from the documents, inferences that link observations to a clinical conclusion, actions proposed in response, and justifications that ground an inference in evidence. These claims and the relations among them form an argumentation graph in which one claim may support, attack, qualify, or contradict another. The graph is a representation of the resident's reasoning over the patient layer, not merely a record of the final answer, and it is the evidence that lets the system separate getting the right answer from reasoning well to reach it.

After the resident submits, the dashboard reveals the answer key and the structured feedback. The resident sees the planted discrepancy, its category, the correct action, and the evidence that supported it, alongside the competency profile drawn from the argumentation graph. This after-each-case feedback is the point at which the dashboard stops being an assessment instrument and becomes a learning one: the resident receives corrective feedback while the reasoning is still present, which is the condition the literature identifies as necessary for case-based training to improve performance rather than confidence alone.

The dashboard therefore serves three roles within the workflow loop. It is the administration surface through which a validated case reaches a resident. It is the measurement instrument that collects the navigation trace and the reasoning trace from which competency is inferred. And it is the feedback surface through which the results of scoring are returned to the resident. The same artifact that presents the patient layer for reconciliation also captures the evidence used to evaluate the reconciliation, which is what makes the dashboard the connective tissue of the iterative loop rather than a separate front end bolted onto the pipeline.

Case Generation

The case schema is the single artifact from which the generation prompt, the validation spec sheet, and the scoring answer key are all derived, and it is therefore described first. The schema is organized into six sections that partition the case by visibility and by the pipeline stage that consumes each field. Section A holds administration and provenance, recording the model string, the prompt version, the generation date, the number of generation attempts, and any manual edits, so that every case is traceable to the configuration that produced it. Sections B through D hold the patient layer: section B holds the demographics, section C holds the clinical context comprising the admission diagnosis, comorbidities, the hospital course, the admission history and physical, consult notes, laboratory results, and discharge vitals, and section D holds the three medication lists together with the follow-up plan and discharge instructions. Section E holds the assessment layer, which is the hidden answer key: the error family and category, the error description, the trigger medications, the detectability location, the correct action, the severity per NCC MERP, the intentional non-error changes, and the provisional difficulty. Section F holds the post-hoc item statistics gathered after the resident pilot. Sections B through D are resident-visible; section E is never rendered to the resident; sections A and F are administrative.

The schema is built before any case is generated, and it is built to serve three roles at once. As a generation specification, it tells the model exactly which fields to produce and constrains its output to a JSON object whose properties match the field list, so that generation fills the schema rather than producing free text. As a validation spec sheet, it gives the raters a fixed checklist against which to confirm that the intended error is present, correctly classified, detectable from the documents alone, and free of unintended companions. As a scoring answer key, it records the planted error, its category, and the correct action, so that a resident's response can be scored deterministically against the case rather than against a rater's judgment. Because the same artifact serves all three roles, the generation, validation, and scoring stages can never drift apart: the prompt asks for the fields the rubric checks, and the rubric checks the fields the scorer uses.

Schema field-name alignment: The schema tables (Sections B–E) now use the actual JSON keys from the generation prompt and response schema (e.g., patient_age, patient_gender, weight_kg, medical_history, labs, admission_medications, current_medications, discharge_medications, severity_ncc_merp). Fields present in the response schema that are not assigned to Sections A–F — task_description, specialty, rubric_criteria, expected_actions, and common_errors — are scoring-support fields; they should be added to Section F or a new Section G before submission to close this gap.

The schema is used to construct the prompt in three steps. First, the template tokens drawn from the generation form, which correspond to fields in sections A and E, are substituted into the frozen prompt template, fixing the specialty, the difficulty, the error family and category, the clinical focus, and the demographics for that case. Second, the model is instructed to fill the remaining schema fields, producing the patient layer from sections B through D and the assessment layer from section E in a single JSON object. Third, the model's output is validated against the response schema, which enforces the field list and top-level types, so that any schema-incomplete output is rejected and regenerated before it enters the validation pool. The schema therefore does not merely describe the case; it drives the prompt, constrains the output, and anchors the downstream validation and scoring, which is why it is specified in full below before the prompt itself.

IDJSON keyDescriptionFormat / valuesConsumed by
Section A — Administration and provenance (not rendered to resident)
A1case_idUnique case identifierCP-### (e.g. CP-007)All processes; provenance log
A2case_statusWhere the case sits in the pipelinedraft / generated / in-rating / revise / regenerate / PASSED / retiredPipeline tracking
A3clean_caseWhether this is a no-error (clean) caseyes / noGeneration; scoring; signal-detection
A4generation_sourceOrigin of the caseseed-expert / syntheticAnalysis; attrition figure
A5model_stringExact LLM model ID as invokedverbatim model stringReproducibility (TRIPOD-LLM / METRICS)
A6prompt_versionVersion of the frozen prompt usedsemver + dateReproducibility
A7generation_dateDate of the generation runYYYY-MM-DDReproducibility
A8generation_attemptsAttempts before a schema-complete case was producedintegerAttrition (Figure 3)
A9manual_editsAny human edit between generation and ratingnone / description of editReproducibility
A10rubric_versionRubric version the case was validated underv#.# + dateProvenance log; methods
A11rater_outcomesRater 1 / Rater 2 / naive-rater results; adjudicationpass / fail-by-criterion / adjudicated: pass | revise-rereview | discard-regenerateResults; agreement analysis
IDJSON keyDescriptionFormat / valuesConsumed by
Section B — Patient demographics (resident-visible)
B1patient_agePatient ageinteger, yearsDashboard; plausibility rating
B2patient_genderSex or gender as chartedtextDashboard
B3weight_kgWeight (dosing-relevant)number, kgDashboard; dose-error cases
B4allergiesAllergy list with reactionsdrug, reaction; or NKDADashboard; allergy-conflict checks
B5social_contextDischarge-relevant social factorsfree textDashboard; Family 2 realism
B6ethnicitySelf-identified ethnicity or racefree text or structured categoryDashboard; diversity reporting
IDJSON keyDescriptionFormat / valuesConsumed by
Section C — Clinical context (resident-visible)
C1admission_dxReason for admission or principal diagnosisfree textDashboard
C2medical_historyPast medical history and comorbidity listlistDashboard; plausibility
C3hospital_courseDischarge-summary narrative; where intentional changes are, or are not, explainedfree textDashboard; detectability (criterion 3)
C4key_labsLabs relevant to medication decisions (Cr/eGFR, K, glucose, INR as applicable)name: value (date)Dashboard; monitoring-gap cases
C5vitals_at_dischargeVital signs at discharge, including BP for held-medication casesstandard vitalsDashboard
C6admission_notes_hpAdmission H&P narrative; where home medications are contextualisedfree text, H&P registerDashboard; plausibility; admission-med indication checks
C7consult_notesSpecialty consult notes relevant to medication decisionsfree text, one block per consultDashboard; plausibility; detectability
IDJSON keyDescriptionFormat / valuesConsumed by
Section D — Medication lists and discharge disposition (resident-visible)
D1admission_medicationsBest possible medication history (BPMH/home): drug, dose, route, frequency, indicationarray of objectsDashboard; reconciliation target
D2current_medicationsMedications administered during the stay (MAR extract). Conditionally required when error_family = 1array of objectsDashboard
D3discharge_medicationsDischarge medications: drug, dose, route, frequency, quantity or day-supply, refillsarray of objectsDashboard; reconciliation target
D4followup_planAppointments, pending labs, monitoring arrangements as writtenfree text / listDashboard; Family 2 detectability
D5discharge_instructionsPatient-facing instructionsfree textDashboard
IDJSON keyDescriptionFormat / valuesConsumed by
Section E — Concealed answer key (never rendered to resident)
E1error_familyWhich error family, or none for clean cases1 = reconciliation discrepancy / 2 = transition gap / noneValidation (criterion 2); scoring
E2error_categorySpecific category within the familyF1: omission / commission / dose-route-frequency / therapeutic substitution. F2: missing co-prescription / monitoring not arranged / no restart plan / insufficient supply / hospital-only med continued / inpatient substitution not reverted / follow-up not arranged. Or: noneValidation; scoring; Table 4 coverage
E3error_descriptionExactly what the error is, in one or two sentencesfree textValidation; scoring key
E4trigger_medsMedication or medications carrying the error; for Family 2, the trigger whose companion action is missingdrug name(s)Validation (criterion 3); scoring
E5detectability_locationWhich documents contain the evidence needed to find the errorfield IDs (e.g. D1 vs D3; C3; C4; C6)Validation (criterion 3)
E6correct_actionWhat the resident should do about itfree text (restart X; add Y; arrange Z; stop Q)Scoring (action credit)
E7severity_ncc_merpPotential-harm severity of the error if uncorrectedNCC MERP category A to ISeverity-weighted scoring
E8intentional_changesDocumented, clinically explained changes that are NOT errors; the discrimination content residents must correctly leave alonelist: change + where explained (usually C3 or C6)Validation (criterion 4 boundary); specificity scoring
E9difficulty_a_prioriExpert difficulty estimate; provisional until item analysiseasy / moderate / hardRubric criterion 5; calibrated by F1 after pilot
IDJSON keyDescriptionFormat / valuesConsumed by
Section F — Pilot item statistics (populated after resident administration)
F1empirical_difficultyProportion of residents detecting the planted error0.00 to 1.00Item analysis; case retirement; calibrates E9
F2discriminationItem-total correlation-1.00 to 1.00Item analysis
F3false_positive_rateProportion flagging a non-error; for clean cases, any flag0.00 to 1.00Signal-detection analysis
F4mean_timeMean completion timeminutesSession planning; process analysis
Scoring-support fields present in the response schema but not yet assigned to Sections A–F: task_description, specialty, rubric_criteria, expected_actions, common_errors. These should be assigned explicitly (e.g., a new Section G: Scoring support) before final submission.

Case generation was driven by a single frozen prompt template, written in a schema-completion style, into which a small set of template tokens were substituted from a generation form before the prompt was sent to the model. The template, the token set, the model and sampling configuration, and the response schema are specified here in full so that generation can be reproduced exactly. Together these records allow any case to be regenerated and any discrepancy between runs to be attributed to model stochasticity, prompt drift, or manual intervention. The model was required to return a JSON object whose properties matched the Clinical Case schema, and the response format was constrained by a response schema rather than specified through instructional text alone. Constraining the response had two effects that matter for validity. It guaranteed that the assessment layer was emitted as discrete machine-readable fields rather than embedded in narrative prose, and it made downstream validation and scoring mechanical rather than interpretive. The properties of each case were therefore declared before any text was produced. The error family, the error category, the clinical focus, the intended difficulty, and the demographic constraint were all specified as inputs, and the model constructed a patient encounter that realized that specification. This ordering is a precondition for assessing error fidelity, because fidelity can only be evaluated against an intention that was recorded in advance.

Figure 1. Frozen prompt template (verbatim)

You are a clinical medical education expert designing a realistic
medication reconciliation ASSESSMENT case for internal medicine residents,
following the CliniProof Case Schema v1.1.

Generate a complete case with these specifications:
- Specialty: {specialty}
- Difficulty: {difficulty}
- Planted error: {error_family_label}
- Clinical focus: {focus}
- {demographics}

THE CASE HAS TWO LAYERS:
1. PATIENT LAYER (resident-visible): demographics, admission dx, medical
   history, hospital course, admission H&P, consult notes, labs, vitals at
   discharge, three medication lists (home/BPMH, inpatient, discharge),
   follow-up plan, discharge instructions.
2. ASSESSMENT LAYER (hidden answer key — never shown to the resident): error
   family, error category, error description, trigger meds, detectability
   location, correct action, severity (NCC MERP), intentional non-error
   changes, provisional difficulty.

DESIGN RULES:
- Plant EXACTLY ONE error matching the specified family and category
  (or none for a clean case).
- The error must be recoverable from the resident-visible documents ALONE
  — no withheld information.
- Include 1–2 intentional (non-error) changes as distractors, each clinically
  explained in the hospital course or H&P.
- Ensure clinical coherence: no unintended errors beyond the planted one.
- Family 1 = mismatch between medication lists.
  Family 2 = an absence (a trigger drug present without its required
  companion action).
- Make labs internally consistent with the narrative.

Output a JSON object with EXACTLY these fields:
{
  "case_id": "CP-###",
  "clean_case": {clean_case},
  "specialty": "{specialty}",
  "difficulty": "{difficulty}",
  "title": "short case title",
  "patient_name": "fictional name",
  "patient_age": integer,
  "patient_gender": "Male|Female|Non-binary",
  "ethnicity": "specific ethnicity",
  "weight_kg": number,
  "social_context": "discharge-relevant social factors",
  "allergies": ["drug — reaction"],
  "admission_dx": "principal diagnosis",
  "medical_history": ["condition 1", "condition 2"],
  "chief_complaint": "one-line chief complaint",
  "hospital_course": "discharge-summary narrative",
  "admission_notes_hp": "admission H&P narrative",
  "consult_notes": ["consult note 1"],
  "key_labs": [{"test":"","value":"","unit":"","flag":"","day":""}],
  "vitals_at_discharge": "standard vitals",
  "admission_medications": [{"name":"","dose":"","route":"",
    "frequency":"","indication":"","home_medication":true,
    "critical":false}],
  "current_medications": [{"name":"","dose":"","route":"",
    "frequency":"","indication":"","added_in_hospital":false,
    "critical":false}],
  "discharge_medications": [{"name":"","dose":"","route":"",
    "frequency":"","indication":"","quantity":"","day_supply":0,
    "refills":0,"critical":false}],
  "followup_plan": "appointments, pending labs, monitoring",
  "discharge_instructions": "patient-facing instructions",
  "task_description": "what the learner must do",
  "error_family": "{error_family}",
  "error_category": "{error_category}",
  "error_description": "exactly what the error is",
  "trigger_meds": ["med carrying the error"],
  "detectability_location": "field IDs (e.g. D1 vs D3; C3; C4)",
  "correct_action": "what the resident should do",
  "severity_ncc_merp": "NCC MERP category A–I",
  "intentional_changes": ["change + where explained"],
  "difficulty_a_priori": "easy|moderate|hard",
  "rubric_criteria": [{"criterion":"","weight":0.2,"description":""}],
  "expected_actions": ["action 1"],
  "common_errors": ["error 1"]
}

Generation was one shot per case. Regeneration at the generation stage was triggered only by schema-incomplete output or format failure, and never by a judgment about case quality, which was reserved for the validation stage. The number of attempts required before a schema-complete case was produced was logged per case in schema field A8. No manual editing occurred between generation and rating. Any edit that did occur was logged per case in schema field A9, with its type recorded, so that a discrepancy between two runs could be attributed to model stochasticity, prompt drift, or manual intervention rather than to an unrecorded intervention.

The Validation Rubric

Validation used a five-criterion rubric (Table 12). The criteria assessed clinical plausibility, presence and correct classification of the intended error, detectability from the provided documents, absence of unintended errors, and difficulty for the target learner. The criteria were not equally weighted in their consequences, and the gate hierarchy is stated explicitly. Criteria 2 through 4 were hard gates: a case failing any of them could not be scored against its answer key and was discarded or regenerated. Criterion 1 was fixable: an implausible case could be revised and re-rated, provided the implausibility did not mask the planted error. Criterion 5 was advisory and provisional. Difficulty is an empirical property established by item analysis after learner administration, and expert judgment of difficulty is the least dependable element of the rubric. Expert difficulty ratings therefore served only to flag outliers for adjudicator review and did not by themselves reject a case.

Criterion 4 specified an active hunt rather than passive notice. Raters searched for discrepancies beyond the planted error rather than recording those they happened to observe, and every unintended error found was logged by type and by severity using the NCC MERP categories. This design choice follows from contamination rates reported in prior work on generated clinical content, and the resulting counts were reported as a primary result rather than as a quality control note.

Table 12. Validation rubric version 1.0

Five criteria; gate hierarchy: C2–C4 hard gates; C1 fixable; C5 advisory and provisional.

CriterionStandard appliedGate
C1. Clinical plausibilityThe presentation, medications, laboratory values, and notes are internally consistent and plausible for the stated diagnosis and care setting.Fixable
C2. Intended error present and correctly classifiedThe planted error matches the hidden answer key exactly: it is present and correctly categorized against the MATCH-anchored taxonomy.Hard gate
C3. Detectability from documents aloneThe error is neither ambiguous nor given away, and is recoverable only from the documents provided. For Family 2, the trigger is present and unambiguous.Hard gate
C4. Absence of unintended errorsNo additional discrepancy or transition-of-care gap is present beyond the specification. Assessed by active hunt, not passive notice.Hard gate
C5. Difficulty for target learnerExpert judgment only, and provisional. Calibrated difficulty awaits item analysis after resident administration. Outliers are flagged for adjudicator review.Advisory

Two primary raters independently rated all five criteria and were blinded to each other's ratings. A third rater, naive to the seed authorship and to the prompt design, independently rated criterion 1 only. The naive rating controlled a circularity risk specific to few-shot generation: raters who know the exemplar style may judge conformity to the prompt rather than clinical authenticity, and a rater blind to that style cannot make this substitution. Free-text comments were mandatory for every rating. Comments were analyzed thematically alongside the numerical ratings, because failure modes that the rubric does not encode are recoverable only from free text. Inter-rater agreement between the two primary raters was reported for each criterion, and agreement between the primary raters and the naive rater was reported for criterion 1. Agreement was reported rather than assumed, because expert raters do not necessarily converge on the constructs being rated, and an aggregate score built on unreported disagreement cannot be interpreted.

Proposed Analysis

Case attrition is reported in a flow diagram (Figure 3), following the conventions of a study flow diagram. The diagram records the number of cases generated, the number excluded before rating with reasons, the number entering rating, the number failing by criterion, the number revised and re-rated, the number regenerated, and the size of the final library. Per-criterion failure counts and adjudication outcomes are reported separately rather than pooled.

The attrition profile is treated as a primary result rather than as housekeeping. The proportion of generated cases that survive validation, and the criteria on which the remainder fail, is the most direct available measure of how reliably a constrained generation pipeline produces usable assessment objects, and it is the figure most relevant to any group considering the same approach.

In addition, we report the number of generation runs, wall-clock time for generation, approximate token and API cost, and validator burden expressed as rater hours per accepted case. These are reported together so that the cost of the pipeline can be compared with the cost of expert case authorship, which is the alternative the method is intended to displace.

Conclusion

This paper has set out a framework for producing medication reconciliation assessment cases at scale. The argument rests on a distinction that generation of a clinically realistic case is not the same object as a valid assessment case that can be reliably used for clinical competency assessment — that is, feasibility is not the same as validity. The framework addresses this by building the case schema from which generation, validation, and scoring all derive. Generation is therefore constrained by a clinical blueprint rather than driven by an open-ended prompt. Validation applies a five-criterion rubric with an explicit gate hierarchy, in which raters actively search for unintended discrepancies rather than waiting to notice them, and difficulty is treated as provisional until item analysis can establish it empirically.

Several limitations follow from the stage of the work. The framework is specified but not yet evaluated at scale, and the attrition profile of the pipeline — the rate at which generated cases survive validation, and the criteria on which they most often fail — remains to be reported. Expert rating establishes content evidence for the scoring inference, but it cannot establish that the cases discriminate between residents of differing competence; that evidence requires administration and item analysis. Difficulty ratings, the representativeness of the case library, and the relationship between performance on synthetic cases and reconciliation performance in practice are all open questions. The framework is also specific to discharge medication reconciliation, and although the two-layer structure and the validity requirements are stated in general terms, their transfer to other competencies has not been tested.

What the framework offers now is a specification that other groups can adopt, criticize, or refute. The generation prompt, the case schema, the error taxonomy, and the validation rubric are reported in full, and each case is traceable to the configuration that produced it. If synthetic cases are to be used for assessment rather than for illustration, this level of specification is the minimum that makes the resulting scores interpretable. The immediate next step is the resident pilot, which will supply the empirical difficulty and discrimination statistics the framework currently holds open, and will allow the validated library to be examined as an assessment instrument rather than as a collection of cases.

  1. 1.
    Abidi, S. H., Almazan, J., Fabiyi, O., Zehra, F., & Tariq, M. (2026). AI-supported case-based learning in medical education: A comprehensive scoping review. Frontiers in Medicine, 13, 1798097.doi
  2. 2.
    Alqenae, F. A., Steinke, D., & Keers, R. N. (2020). Prevalence and nature of medication errors and medication-related harm following discharge from hospital to community settings: A systematic review. Drug Safety, 43, 517–537.doi
  3. 3.
    Arthur, C., Levett-Jones, T., & Kable, A. (2012). Quality indicators for design and implementation of simulation experiences: A Delphi study. Nurse Education Today, 33, 1357–1361.
  4. 4.
    Bajorek, S. A., & McElroy, V. (2020). Discharge planning and transitions of care. Agency for Healthcare Research and Quality, U.S. Department of Health and Human Services.
  5. 5.
    Bakkum, M. J., Hartjes, M. G., Piët, J. D., et al. (2024). Using artificial intelligence to create diverse and inclusive medical case vignettes for education. British Journal of Clinical Pharmacology, 90(3), 640–648.doi
  6. 6.
    Barnsteiner, J. H. (2008). Medication reconciliation. In R. G. Hughes (Ed.), Patient safety and quality: An evidence-based handbook for nurses. Agency for Healthcare Research and Quality (US).
  7. 7.
    Barrows, H. S., & Tamblyn, R. M. (1980). Problem-based learning: An approach to medical education. Springer Publishing Company.
  8. 8.
    Bishop, M. A., Cohen, B. A., Billings, L. K., & Thomas, E. V. (2015). Reducing errors through discharge medication reconciliation by pharmacy services. American Journal of Health-System Pharmacy, 72(17 Suppl 2), S120–S126.doi
  9. 9.
    Boockvar, K. S., Santos, S. L., Kushniruk, A., Johnson, C., & Nebeker, J. R. (2011). Medication reconciliation: Barriers and facilitators from the perspectives of resident physicians and pharmacists. Journal of Hospital Medicine, 6(6), 329–337.doi
  10. 10.
    Cayres Ribeiro, L. M., Sidorenkov, G., El-Baz, N., et al. (2026). Generating synthetic patient vignettes from real medical texts for the teaching of clinical reasoning. Medical Teacher, 48(6), 945–948.doi
  11. 11.
    Chung, P., Boodoo, M., & Doboli, S. (2023). Case scenario generators for trauma surgery simulation utilizing autoregressive language models. Artificial Intelligence in Medicine, 144, 102635.doi
  12. 12.
    Coleman, E., Smith, J., Raha, D., & Min, S. (2005). Posthospital medication discrepancies: Prevalence and contributing factors. Archives of Internal Medicine, 165, 1842–1847.doi
  13. 13.
    Cumyn, A., & Harris, I. B. (2012). A comprehensive process of content validation of curriculum consensus guidelines for a medical specialty. Medical Teacher, 34(8), e566–e572.doi
  14. 14.
    Desai, S. V., Burk-Rafel, J., Lomis, K. D., et al. (2024). Precision education: The future of lifelong learning in medicine. Academic Medicine, 99(4S Suppl 1), S14–S20.doi

    ⚠ 'Desai ... & others' replaced with 'et al.' per APA convention.

  15. 15.
    Emekli, E., Emekli, E., & Özel, B. (2026). Artificial intelligence-assisted generation of case scenarios and multiple-choice questions in psychiatry: A pilot study. Academic Psychiatry, 50(4), 391–397.doi
  16. 16.
    Forster, A. J., Murff, H. J., Peterson, J. F., Gandhi, T. K., & Bates, D. W. (2003). The incidence and severity of adverse events affecting patients after discharge from the hospital. Annals of Internal Medicine, 138(3), 161–167.doi
  17. 17.
    Gleason, K. M., Brake, H., Agramonte, V., & Perfetti, C. (2012). Medications at transitions and clinical handoffs (MATCH) toolkit for medication reconciliation (AHRQ Publication No. 11(12)-0059). Agency for Healthcare Research and Quality.
  18. 18.
    Gonzales, A., Guruswamy, G., & Smith, S. R. (2023). Synthetic data in health care: A narrative review. PLOS Digital Health, 2(1), e0000082.doi
  19. 19.
    Gorenshtein, A., Omar, M., Glicksberg, B. S., Nadkarni, G. N., & Klang, E. (2025). AI agents in clinical medicine: A systematic review. medRxiv, 2025.08.22.25334232.doi
  20. 20.
    Hernandez, J., Frallicciardi, A., Nadir, N. A., Gothard, M. D., & Ahmed, R. A. (2020). Development of a Simulation Scenario Evaluation Tool (SSET): Modified Delphi study. BMJ Simulation & Technology Enhanced Learning, 6(6), 344–350.doi
  21. 21.
    Joint Commission on Accreditation of Healthcare Organizations. (2006). Using medication reconciliation to prevent errors. Sentinel Event Alert, (35), 1–4.
  22. 22.
    Killin, L., Hezam, A., Anderson, K. K., & Welk, B. (2021). Advanced medication reconciliation: A systematic review of the impact on medication errors and adverse drug events associated with transitions of care. The Joint Commission Journal on Quality and Patient Safety, 47(7), 438–451.doi
  23. 23.
    Kwan, J. L., Lo, L., Sampson, M., & Shojania, K. G. (2013). Medication reconciliation during transitions of care as a patient safety strategy: A systematic review. Annals of Internal Medicine, 158(5), 397–403.doi
  24. 24.
    Lindquist, L. A., Gleason, K. M., McDaniel, M. R., Doeksen, A., & Liss, D. (2008). Teaching medication reconciliation through simulation: A patient safety initiative for second year medical students. Journal of General Internal Medicine, 23(7), 998–1001.doi
  25. 25.
    McShane, M., & Stark, R. (2018). Medication reconciliation in the hospital: An interactive case-based session for internal medicine residents. MedEdPORTAL, 14, 10770.doi
  26. 26.
    Mueller, S. K., Sponsler, K. C., Kripalani, S., & Schnipper, J. L. (2012). Hospital-based medication reconciliation practices: A systematic review. Archives of Internal Medicine, 172(14), 1057–1069.doi
  27. 27.
    Nasa, P., Jain, R., & Juneja, D. (2021). Delphi methodology in healthcare research: How to decide its appropriateness. World Journal of Methodology, 11(4), 116–129.doi
  28. 28.
    National Coordinating Council for Medication Error Reporting and Prevention. (2026). About medication errors. https://www.nccmerp.org/about-medication-errors
  29. 29.
    Norman, G. R., & Schmidt, H. G. (1992). The psychological basis of problem-based learning: A review of the evidence. Academic Medicine, 67(9), 557–565.doi
  30. 30.
    Ramjaun, A., Sudarshan, M., Patakfalvi, L., Tamblyn, R., & Meguerditchian, A. N. (2015). Educating medical trainees on medication reconciliation: A systematic review. BMC Medical Education, 15, 33.doi
  31. 31.
    Rao, A. S., Kim, J., Mu, A., et al. (2025). Synthetic medical education in dermatology leveraging generative artificial intelligence. npj Digital Medicine, 8(1), 247.doi
  32. 32.
    Ruggiano, N., Sahoo, S., Brashear, A., et al. (2026). Evaluating AI-generated geriatric case studies for interprofessional education: Systematic analysis across 5 platforms. JMIR Medical Education, 12, e83085.doi
  33. 33.
    Takahashi, H., Shikino, K., Kondo, T., et al. (2024). Educational utility of clinical vignettes generated in Japanese by ChatGPT-4: Mixed methods study. JMIR Medical Education, 10, e59133.doi
  34. 34.
    Thomas, P. A., Kern, D. E., Hughes, M. T., & Chen, B. Y. (2015). Curriculum development for medical education: A six-step approach (3rd ed.). Johns Hopkins University Press.
  35. 35.
    Triola, M. M., & Burk-Rafel, J. (2023). Precision medical education. Academic Medicine, 98(7), 775–781.doi
  36. 36.
    Yanagita, Y., Yokokawa, D., Uchida, S., Li, Y., Uehara, T., & Ikusaka, M. (2024). Can AI-generated clinical vignettes in Japanese be used medically and linguistically? medRxiv.doi

    ⚠ Preprint; no journal source yet. Verify publication status before submission.

  37. 37.
    Zhang, Q., Huang, Z., Huang, Y., et al. (2025). Generative AI in medical education: Feasibility and educational value of LLM-generated clinical cases with MCQs. BMC Medical Education, 25(1), 1502.doi
Open issues before submission (delete before submitting)

Schema field-name alignment (critical): The prose now correctly uses the JSON key names (patient_age, etc.). Verify that the schema tables used for the paper exactly match the live ClinicalCase entity schema in the database — any rename must be reflected in both the tables and the generation prompt before submission.

Family 2 taxonomy (7 categories): Table 4 now contains all 7 categories, and E2 enumerates all 7. Confirm with the research team which 5 were in the original needs assessment and which 2 (inpatient substitution not reverted; follow-up not arranged) were added — the prose should describe how they were derived.

Table/Figure numbering: "Table 1a" reference in earlier version removed; tables are now numbered 1–5 in text. "Figure 3" used consistently throughout (not "Fig 3"). Table 12 number is filled. Renumber all tables in sequence at final formatting.

Scoring-support fields: task_description, specialty, rubric_criteria, expected_actions, common_errors are in the response schema but not assigned to sections A–F. Add a Section G or assign them to F before submission.

Yanagita 2024: Listed as medRxiv preprint with DOI. Verify whether published in a journal; if so, update the reference.

References needing attention: Komperda & Lempicki (2019) cited in text but missing from reference list — add before submission. Desai et al. (2024) "& others" replaced with "et al." — confirm all co-authors or leave as et al. per APA. "Nurse Educ. Today" → "Nurse Education Today" corrected. All reference titles are now in sentence case.