diff --git a/DISCHARGE_TEMPLATE_PLACEHOLDERS.md b/DISCHARGE_TEMPLATE_PLACEHOLDERS.md new file mode 100644 index 0000000..da15a33 --- /dev/null +++ b/DISCHARGE_TEMPLATE_PLACEHOLDERS.md @@ -0,0 +1,216 @@ +# IPD Discharge Template Placeholders + +This document lists all available placeholders that can be used in IPD discharge templates. + +## How to Use Placeholders + +Placeholders can be used in templates using double curly braces: `{{PLACEHOLDER_NAME}}` + +Example: +```html +
Patient: {{PATIENT_NAME}} ({{UHID}})
+{{CONTENT}} +{{SIGNATURE_BLOCK}} +``` + +--- + +## Hospital Information + +| Placeholder | Description | Example | +|------------|-------------|---------| +| `{{H_Name}}` or `{{HOSPITAL_NAME}}` | Hospital name | "City Hospital" | +| `{{H_address_1}}` | Hospital address line 1 | "123 Main Street" | +| `{{H_address_2}}` | Hospital address line 2 | "Medical District" | +| `{{H_phone_No}}` or `{{HOSPITAL_PHONE}}` | Hospital phone number | "+91-123-4567890" | +| `{{H_Email}}` or `{{HOSPITAL_EMAIL}}` | Hospital email | "info@hospital.com" | +| `{{H_logo}}` | Hospital logo filename | "logo.png" | +| `{{H_logo_abs}}` | Absolute path to logo | "/path/to/public/assets/images/logo.png" | +| `{{HOSPITAL_ADDRESS}}` | Combined address (line 1 + line 2) | "123 Main Street, Medical District" | + +--- + +## Patient Information + +| Placeholder | Description | Example | +|------------|-------------|---------| +| `{{PATIENT_NAME}}` | Patient full name | "John Doe" | +| `{{UHID}}` | Patient UHID/Registration number | "UHID123456" | +| `{{IPD_CODE}}` | IPD admission code | "IPD001234" | +| `{{AGE_GENDER}}` | Age and gender | "45 Years / Male" | +| `{{GUARDIAN}}` or `{{GUARDIAN_NAME}}` | Guardian/relative name | "S/o Ramesh Kumar" | +| `{{GUARDIAN_RELATION}}` | Guardian relation | "S/o" or "W/o" | +| `{{PATIENT_ADDRESS}}` | Patient full address | "456 Park Lane, City" | +| `{{PATIENT_PHONE}}` | Patient phone number | "+91-9876543210" | +| `{{INSURANCE_COMPANY}}` | Insurance company name | "HDFC Ergo" or "Direct" | +| `{{PATIENT_INFO_TABLE}}` | Auto-generated patient info table | (HTML table) | + +--- + +## Admission & Discharge Dates + +| Placeholder | Description | Example | +|------------|-------------|---------| +| `{{ADMIT_DATE}}` | Admission date | "05-06-2026" | +| `{{DISCHARGE_DATE}}` | Discharge date | "07-06-2026" | +| `{{ADMIT_DATE_ONLY}}` | Admission date (alternative) | "05-06-2026" | +| `{{DISCHARGE_DATE_ONLY}}` | Discharge date (alternative) | "07-06-2026" | +| `{{ADMISSION_TIME}}` | Admission time | "10:30 AM" | +| `{{DISCHARGE_TIME}}` | Discharge time | "04:15 PM" | +| `{{ADMIT_TIME}}` | Admission time (alternative) | "10:30 AM" | +| `{{CURRENT_DATE}}` | Current date (when PDF generated) | "07-06-2026" | +| `{{PRINT_TIME}}` | PDF generation timestamp | "07-06-2026 16:45:30" | + +--- + +## Medical Information + +| Placeholder | Description | Example | +|------------|-------------|---------| +| `{{DEPARTMENT}}` | Admission department | "General Medicine" | +| `{{DOCTOR_NAMES}}` or `{{DOCTOR_NAME}}` | Treating doctor(s) | "Dr. Sharma, Dr. Patel" | + +--- + +## Clinical Content Sections + +### Full Content +| Placeholder | Description | +|------------|-------------| +| `{{CONTENT}}` | **Complete discharge content** - includes all sections below | + +### Individual Sections +| Placeholder | Description | +|------------|-------------| +| `{{DISCHARGE_SUMMARY}}` | Discharge status header (e.g., "Discharged", "LAMA") | +| `{{PRESENTING_COMPLAINTS}}` | Presenting complaints and reason for admission | +| `{{PAIN_MEASUREMENT_SCALE}}` | Pain scale measurement (if recorded) | +| `{{GENERAL_EXAM_ADMISSION}}` | General examination findings on admission | +| `{{PERSONAL_HISTORY}}` | Personal history (smoking, alcohol, etc.) | +| `{{DRUG_ALLERGY_ADR}}` | Drug allergy status and ADR history | +| `{{CO_MORBIDITIES}}` | Co-morbidities | +| `{{CLINICAL_INVESTIGATION_REPORTS}}` | Lab reports, X-rays, CT/MRI results | +| `{{FINAL_DIAGNOSIS}}` | Final diagnosis | +| `{{COURSE_IN_HOSPITAL}}` | Course in the hospital / treatment details | +| `{{EXAMINATION_ON_DISCHARGE}}` | Physical examination on discharge | +| `{{SURGERY}}` | Surgical procedures performed | +| `{{PROCEDURE}}` | Other procedures performed | +| `{{DISCHARGE_MEDICATIONS}}` | Discharge medications table | + +### Discharge Instructions +| Placeholder | Description | +|------------|-------------| +| `{{DISCHARGE_INSTRUCTIONS}}` | **Full instruction section** (Dietary + Other + Discharge Summary) | +| `{{DIETARY_ADVICE}}` | Dietary advice (selected food items) | +| `{{OTHER_ADVICE}}` | Other Advice field only | +| `{{INSTRUCTION_REMARK}}` or `{{DISCHARGE_ADVICE}}` | Discharge Summary field only | + +**NEW FEATURE:** You can now use `{{OTHER_ADVICE}}` and `{{DISCHARGE_ADVICE}}` separately to control layout! + +Example: +```html +{{HOSPITAL_ADDRESS}}
+Phone: {{HOSPITAL_PHONE}} | Email: {{HOSPITAL_EMAIL}}
+| Patient Name: | +{{PATIENT_NAME}} | +UHID: | +{{UHID}} | +
| Age/Gender: | +{{AGE_GENDER}} | +IPD Code: | +{{IPD_CODE}} | +
| Admission Date: | +{{ADMIT_DATE}} {{ADMISSION_TIME}} | +Discharge Date: | +{{DISCHARGE_DATE}} {{DISCHARGE_TIME}} | +
| Department: | +{{DEPARTMENT}} | +Doctor: | +{{DOCTOR_NAMES}} | +