Task #44
Updated by Varsha N about 2 months ago
Task Description: Implement the medical details section inside the Doctor Consultation Page, covering Chief Complaints, Diagnosis, Investigation, and Prescription. This module allows the doctor to record structured medical information for a selected patient visit. Navigation: Doctor Login → Today Queue → Open Token → Consultation Page --Chief Complaints: Use CKEditor TinyMCE Free-text input field Doctor enters patient’s primary complaints Data saved per consultation --Diagnosis Section: Multi-select diagnosis from Diagnosis Master Searchable dropdown or selectable list Allow selection of multiple diagnoses Selected diagnoses saved per consultation Required fields: id (PK) consultation_id (FK → consultations.id) diagnosis_id (FK → diagnosis_master.id) --Investigation Section: Multi-select investigations from Investigation Master Button-based selection (as per UI) Allow selecting multiple investigations Save selected investigations per consultation \\Divided into three categories: Investigation, Review and Plan(Refer the attached files) \\Select templates, save as new template and delete template for each category(for easy access to frequent items added) It would be editable after the entry Required fields: id (PK) consultation_id (FK → consultations.id) investigation_id (FK → investigation_master.id)[There by, category, description] --Prescription Section: Select medicines from Prescription Master Allow adding/removing prescription rows Required fields: Tablet Name Chemical Name Timing (e.g., 1-0-1) Duration (days) Course (Before Food / After Food / Any) Follow(To continue[default],Review After X Days, Stop After Completion, If Symptoms Persist) --Internal notes (Done in previous task) Features and validations: Load master data (diagnosis, investigation, prescription) Allow multiple selections Save data mapped to consultation *Fields must be editable after the entry Chief complaints is mandatory Consultation must exist before saving medical details Diagnosis selection should not be empty Prescription rows must have medicine selected Dosage required if medicine is selected Prevent duplicate save on button click Disable editing after consultation is completed Internal notes are only private notes for doctors