Admin Activating Institutions - hmislk/hmis GitHub Wiki
Activating and Deactivating Institutions
Overview
Institutions can be deactivated (retired) to hide them from operational screens without deleting them. This is useful for seasonal collecting centres, closed branches, or institutions that need to be temporarily taken offline. The Activate Institutions screen allows administrators to find and re-activate any institution that has been retired.
When to Use
- Bringing a previously deactivated institution back into service
- Reviewing which institutions are currently inactive
- Correcting an accidental deactivation
Required Privilege
Reactivate
Navigating to Activate Institutions
- Click Administration → Manage Institutions
- In the institution management index, navigate to Activate Institutions
Re-activating an Institution
- Select the Institution Type filter (or leave as "All Types" to see all inactive institutions)
- Click Fill Institutions to load the list of retired institutions
- The table shows:
- No — row number
- ID — internal identifier
- Code — institution code
- Type — institution type
- Institution Name — the name
- Status — shown as "Inactive" badge (red)
- Inactive toggle — shows the current retired state
- Find the institution to re-activate
- Click Update (green button) in the Activate column
The institution is immediately restored to active status and will reappear in dropdowns and user login screens.
Deactivating an Institution
To deactivate (retire) an institution without deleting it, do so from the institution list or edit form:
- Open Administration → Manage Institutions → Institutions
- Select the institution
- Edit the record and use the deactivation/retire option
Note: Deactivating an institution does not delete any of its historical data, departments, bills, or user accounts. It simply hides it from active use.
Technical Notes (Admin/Developer)
The retired flag on the Institution entity controls visibility. The activate page queries Institution WHERE retired = true. The reactivateRetiredInstitution(ins) method sets ins.retired = false and persists. The Reactivate privilege gates the page.