Medical Report ============== A patient medical report with structured sections for clinic branding, patient information, diagnosis, prescriptions, and physician signature. Template — ``medical_report.craft`` ------------------------------------ .. code-block:: xml ${clinic_name} Medical Report — ${patient_name}
${clinic_name} ${clinic_address}
MEDICAL REPORT Report Date: ${report_date} | Ref: ${report_ref} Patient Information Name: ${patient_name} DOB: ${patient_dob} ID: ${patient_id} Gender: ${patient_gender} Blood Type: ${blood_type} Allergies: ${allergies} Diagnosis ${diagnosis} Vital Signs ParameterValueReference
Prescriptions MedicationDosageFrequencyDuration
Clinical Notes ${clinical_notes} ${physician_name} ${physician_title}
Data — ``medical_report.json`` ------------------------------- .. code-block:: json { "clinic_name": "MedCenter Clinic", "clinic_address": "456 Health Blvd, Suite 200, Boston, MA 02101", "report_date": "2025-03-08", "report_ref": "MR-2025-1847", "patient_name": "Jane Doe", "patient_dob": "1985-06-15", "patient_id": "PAT-00482", "patient_gender": "Female", "blood_type": "A+", "allergies": "Penicillin", "diagnosis": "Acute bronchitis with mild dehydration. Patient presents with persistent cough for 5 days, low-grade fever, and fatigue. Chest X-ray shows no consolidation.", "vitals": [ ["Blood Pressure", "128/82 mmHg", "< 120/80 mmHg"], ["Heart Rate", "88 bpm", "60–100 bpm"], ["Temperature", "37.8 °C", "36.1–37.2 °C"], ["SpO2", "96%", "> 95%"], ["Respiratory Rate","20 /min", "12–20 /min"] ], "prescriptions": [ ["Amoxicillin", "500 mg", "3x daily", "7 days"], ["Guaifenesin", "200 mg", "Every 4h", "5 days"], ["Paracetamol", "500 mg", "As needed", "5 days"] ], "clinical_notes": "Follow-up in 7 days. Increase fluid intake to 2L/day. Rest recommended. Return immediately if fever exceeds 39 °C or breathing difficulty occurs.", "physician_name": "Dr. Sarah Mitchell", "physician_title": "Internal Medicine — Lic. #BOS-4821" } Usage ----- .. code-block:: bash docraft_tool medical_report.craft output/medical_report.pdf -d medical_report.json Output Example -------------- .. image:: ../_static/medical_report.png :alt: Medical Report Example Output :align: center :width: 600px