Legal Policy & PDF Document Management
The Medzit NexHealth HMS platform provides Super Administrators with a centralized management interface to create, update, deactivate, and dynamically publish legal policies (such as Privacy Policies and Terms & Conditions) with PDF document attachments.
Key Features
-
PDF Document Attachment:
- Support for direct PDF file uploads (
pdf_file) stored on secure storage disk. - Auto-generated public access URLs (
pdf_file_url) served via optimized proxy endpoints.
- Support for direct PDF file uploads (
-
Strict Single-Active Enforcement:
- Activating a new version of a policy automatically deactivates prior versions of the same type.
- Prevents version ambiguity and ensures patients and staff always review the authoritative active agreement.
-
Strict Deactivation Behavior (Option 1):
- When an administrator deactivates all policy versions of a given type, public public endpoints (
/api/backend/privacy-policy&/api/backend/terms-conditions) return a404 Inactiveresponse. - Public web applications display an intuitive "Policy Under Review" notice banner until an active version is republished.
- When an administrator deactivates all policy versions of a given type, public public endpoints (
API Endpoints
| Endpoint | Method | Scope | Description |
|---|---|---|---|
/api/backend/privacy-policy | GET | Public | Returns the active Privacy Policy and PDF viewer URL. |
/api/backend/terms-conditions | GET | Public | Returns the active Terms & Conditions and PDF viewer URL. |
/api/backend/super-admin/settings/policies | GET | Super Admin | Fetches all policy records. |
/api/backend/super-admin/settings/policies | POST | Super Admin | Creates a new policy version with PDF attachment. |
/api/backend/super-admin/settings/policies/{id} | PUT | Super Admin | Updates existing policy title, version, or replaces PDF asset. |
/api/backend/super-admin/settings/policies/{id}/status | PATCH | Super Admin | Toggles active / inactive policy status. |
Admin Workflow
- Navigate to Super Admin Settings → Policies (
/super-admin/settings/policies). - Click Create Policy or Edit.
- Select Policy Type (Privacy Policy or Terms & Conditions).
- Enter Title and Version.
- Upload the PDF Document attachment.
- Toggle Activate Policy to make the version live immediately.