Task #54
Updated by Varsha N about 1 month ago
Task Description: Implement CRUD (Create, Read, Update, Activate/Deactivate) functionality for the Investigation Master in the Admin module. This allows the admin to manage the list of medical investigations/tests that doctors can select during consultation. Navigation: Admin Login → Masters → Investigation Master Required Fields (Investigation Master): id (PK, auto-generated) hospitalId (linked hospital) name (unique, investigation name)VARCHAR category (– e.g., Investigation, Review, Plan)VARCHAR Lab, Radiology)VARCHAR description (detailed test description) isActive (default: true)BOOL createdAt (system-generated)DATE-TIME Features to Implement: Create a new investigation Assign investigation to logged-in admin’s hospital View list of all investigations Display name, category, description, and status Edit investigation details Activate or deactivate an investigation Hide inactive investigations from doctor selection Load hospital-specific investigations only Show success message on create/update(minimal) Show error message on failure Disable save button during API call Basic Validations: Prevent duplicate submission Status must be Active or Inactive Description is optional but length-limited Trim leading/trailing spaces in name Inactive investigations must not appear in doctor consultation