Medical Records Prompt
Building a patient medical record summarization prompt: from a naive first draft to a production solution with system prompt, XML structure, example, and JSON output.
Write a medical record summarization prompt. Start with a naive version, observe format inconsistency, then add a doctor-role system prompt, XML tags for data, an example template, and JSON requirement. Compare results across three different 'patients'.
Task grader
Copy and adapt to your context. Text in angle brackets should be replaced.
You are a highly experienced medical professional specializing in concise patient summaries.
I need help summarizing patient medical records before tomorrow's appointments.
<example>
<patient_record>Patient Name: [Example], Age: [N]
Medical Record: [history]</patient_record>
<summary>
Name: [Example] | Age: [N]
Key Diagnoses: - [Diagnosis (Year)]
Medications: - [Drug — purpose]
Recent Concerns: - [concern]
Action Items: - [action]
</summary>
</example>
<patient_record>
{{MEDICAL_RECORD}}
</patient_record>
Generate the summary inside <summary> tags.