Task #49
openAdmin – Pre-Consultation Fields Management
0%
Description
Task Description:
Implement the Pre-Consultation Fields management feature in the Admin module.
This allows the admin to configure what medical fields reception staff must fill before doctor consultation, using the PreConsultField entity.
The admin should be able to create, view, update, activate/deactivate, and order pre-consultation fields for a hospital.
Navigation:
Admin Login → Masters → Pre-Consultation Fields
Required Fields:
id (PK, auto-generated)
hospitalId (linked hospital)
fieldKey (unique system key)
label (display name)
inputType (ENUM)
-NUMBER
-TEXT
-DROPDOWN
-BOOLEAN
unit (optional)
isActive (default: true)
sortOrder
createdAt (auto-generated)
Features to Implement:
Create a new pre-consultation field
Assign field to a hospital
Select input type (NUMBER / TEXT / DROPDOWN / BOOLEAN)
Add optional unit for NUMBER input type
View list of all pre-consultation fields
Display field label, key, input type, unit, status, and sort order
Edit existing pre-consultation field
Prevent editing of field key after creation
Activate or deactivate a field
Hide inactive fields from reception screen
Set and update sort order for display sequence
Ensure reception screen follows sort order
Show minimal success / error messages
Disable save button during API call