|
|
0b838fd6b2
|
Add comprehensive HTML reference for all discharge placeholders
Created detailed documentation showing exact HTML structure for each discharge summary placeholder.
Document includes:
Section Placeholders:
- {{DISCHARGE_SUMMARY}} - Dynamic status-based header + department/doctor info
- {{PRESENTING_COMPLAINTS}} - Complaints list with remarks
- {{PAIN_MEASUREMENT_SCALE}} - Pain scale value
- {{GENERAL_EXAM_ADMISSION}} - Admission vitals and exam
- {{PERSONAL_HISTORY}} - Patient history flags (smoking, alcohol, etc.)
- {{DRUG_ALLERGY_ADR}} - Allergy and ADR information
- {{CO_MORBIDITIES}} - Comorbid conditions
- {{CLINICAL_INVESTIGATION_REPORTS}} - Lab reports table/list
- {{FINAL_DIAGNOSIS}} - Final diagnosis list
- {{COURSE_IN_HOSPITAL}} - Hospital course narrative
- {{EXAMINATION_ON_DISCHARGE}} - Discharge examination findings
- {{SURGERY}} - Surgery details table
- {{PROCEDURE}} - Procedure details table
- {{DISCHARGE_MEDICATIONS}} - Medicine table or list
- {{DIETARY_ADVICE}} - Dietary recommendations
- {{DISCHARGE_INSTRUCTIONS}} - Advice, instructions, review dates
- {{SIGNATURE_BLOCK}} - Signature table
Additional Tokens:
- {{PATIENT_INFO_TABLE}} - Patient demographics table
For each placeholder:
- Shows exact HTML structure with styling
- Includes CSS inline styles used
- Shows alternate formats when applicable
- Indicates when placeholder is empty/not shown
- Shows color codes (#475569 for remarks)
Style Guidelines:
- Heading margins: 16px top, 8px bottom
- List indentation: 20px left
- Remark color: #475569 (gray)
- Table borders: collapse style
- All user input escaped with esc()
Debug Endpoints:
- /Ipd_discharge/debug_discharge_html/{ipdId} - View full HTML
- /Ipd_discharge/debug_ipd_fields/{ipdId} - View field values
Usage:
- Reference for template designers
- Documentation for HTML structure
- Guide for placeholder customization
- Debug tool for spacing issues
File: DISCHARGE_PLACEHOLDER_HTML_REFERENCE.md
Location: Project root directory
|
2026-06-07 07:46:45 +05:30 |
|