Task #54
openAdmin – Investigation Master (CRUD)
0%
Description
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
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