\Update documentation - {{DISCHARGE_SUMMARY}} now header only

Updated DISCHARGE_PLACEHOLDER_HTML_REFERENCE.md to reflect that:

- {{DISCHARGE_SUMMARY}} now contains ONLY the status header
- Removed department/doctor/date info from example
- Added note about using separate tokens for additional info:
  - {{DEPARTMENT}}
  - {{DOCTOR_NAMES}}
  - {{ADMIT_DATE_ONLY}}
  - {{DISCHARGE_DATE_ONLY}}
  - {{ADMISSION_TIME}}
  - {{DISCHARGE_TIME}}

Example updated to show clean header only:
<h4 class='discharge-section-heading'>Discharge Summary</h4>
OR
<h4 class='discharge-section-heading'>Leave Against Medical Advice</h4>

Documentation now matches actual implementation."
This commit is contained in:
DevSoftTech Server 2026-06-07 08:12:36 +05:30
parent d096585df6
commit aa7ed25a50

View File

@ -6,19 +6,17 @@ This document shows the exact HTML structure used for each discharge summary pla
## {{DISCHARGE_SUMMARY}}
**Source:** Auto-generated from IPD data
**Source:** `getDischargeStatusText()` - Status from `ipd_discharge_status` table
**Join:** `ipd_master.ipd_status = ipd_discharge_status.id`
**HTML Structure:**
```html
<h4 style="margin:16px 0 8px 0;">Discharge Summary</h4>
<h4 class="discharge-section-heading">Discharge Summary</h4>
<!-- OR dynamic header based on ipd_status -->
<h4 style="margin:16px 0 8px 0;">Leave Against Medical Advice</h4>
<div>
<b>Department:</b> General Surgery<br>
<b>Treating Doctor(s):</b> Dr. Name [Specialization]<br>
<b>Date of Admission:</b> 04-06-2026
</div>
<h4 class="discharge-section-heading">Leave Against Medical Advice</h4>
```
**Note:** This placeholder contains **ONLY** the status header text. No additional information like department, doctor, or dates.
**Status-based headers:**
- ipd_status = 0 → "Discharge Summary"
- ipd_status = 1 → "Discharge Summary" (from DB)
@ -27,6 +25,14 @@ This document shows the exact HTML structure used for each discharge summary pla
- ipd_status = 5 → "Dead Summary"
- ipd_status = 7 → "Discharge on Request"
**For additional info, use separate tokens:**
- `{{DEPARTMENT}}` - Department name
- `{{DOCTOR_NAMES}}` - Treating doctor(s)
- `{{ADMIT_DATE_ONLY}}` - Admission date
- `{{DISCHARGE_DATE_ONLY}}` - Discharge date
- `{{ADMISSION_TIME}}` - Admission time
- `{{DISCHARGE_TIME}}` - Discharge time
---
## {{PRESENTING_COMPLAINTS}}