mrmehar229/virtual-patient ? reverse-engineered prompt
Reverse engineered prompt
Build me a web app for medical students to practice clinical reasoning with an AI patient.
I want the user to pick a specialty like cardiology, respiratory, gastroenterology, neurology, or get a random case, then start a new fictional patient encounter. The app should let them chat naturally with the patient, ask history questions, order a small set of common investigations, and then submit a final diagnosis with a short explanation of their thinking.
After that, the app should show an examiner style review that grades their process, not just the final answer. It should include a score, comments on the history taking, what differentials they considered or missed, whether they caught red flags, how appropriate the tests were, and a clear strengths and improvements summary.
Please also save past cases in the browser so the user can view their history later. Make it look clean and work well on mobile too. Use AI for the case generation, patient responses, and grading, and show proper loading and error states everywhere. If you need to check current docs while building it, go ahead.
Are you gonna build this?
make sure you review the code using coderabbit