flowrise-hms/patient
Composer 安装命令:
composer require flowrise-hms/patient
包简介
Patient management module for FlowRise HMS providing comprehensive patient registration, identification, demographics management, and emergency contact handling. Implements MRN auto-generation, UUID-based identifiers for interoperability, and PII encryption for data protection.
README 文档
README
In one sentence: The Patient module is where the hospital creates and maintains who the patient is—legal name, demographics, contact details, official IDs (including MRN, Medical Record Number, and a global UUID), emergency contacts, and related records—so every other part of the system can point at one trusted person.
Why this module exists
Before anyone can document a visit, order a test, or schedule an appointment, the facility must answer: “Which human being is this?” That sounds obvious, but in real hospitals patients arrive with many IDs (national ID, insurance number, passport), may share similar names, and need privacy for phone and email. This module is the single place that registers the patient and keeps identifiers consistent.
Where Patient fits in FlowRise
- Depends on Core for organization and branch context (where the patient is registered) and shared platform services.
- Clinical, Appointment, Billing, and Insurance features all assume a
Patientrecord exists when they record encounters, bookings, charges, or policies.
flowchart LR Core[Core] Patient[Patient] Clinical[Clinical] Appointment[Appointment] Billing[Billing] Insurance[Insurance] Core --> Patient Patient --> Clinical Patient --> Appointment Patient --> Billing Patient --> InsuranceLoading
What you can do with it (everyday language)
- Register a new patient with demographics and contact information.
- Assign and manage identifiers (MRN, NHIS or other insurance numbers, national ID, passport, custom IDs).
- Maintain emergency contacts (next of kin) for when the care team must reach someone quickly.
- Search and open a patient dossier from reception or clinical workflows.
- Protect sensitive fields (the system encrypts many personally identifiable fields at rest—think phone, email, and similar data).
Exact screens and click paths are described for staff in the User guide: Patient management.
How it works (simple)
- Staff use the admin web app (Filament) to open the patient area.
- They fill registration or edit forms; validation runs so duplicate or invalid IDs are caught early.
- The module’s service layer applies business rules (for example, how an MRN is generated or validated) instead of scattering logic across random screens.
- Data is saved to the patients and related tables; other modules only reference the patient by stable IDs.
What is inside this folder (high level)
| Path | Purpose |
|---|---|
app/Models/ |
Patient, identifiers, emergency contacts, schools, etc. |
app/Classes/Services/ |
Registration, search, identifiers, schools—the place business rules live. |
app/Filament/ |
Patient cluster, resources, forms, tables, and pages staff interact with. |
app/Policies/ |
Fine-grained access (who may create or view a patient). |
app/Events/, app/Observers/ |
Hooks when patients are created or updated (for integrations and side effects). |
database/migrations/ |
Schema for patient-related tables. |
Dependencies
- Core (
flowrise-hms/coreincomposer.json/module.jsonrequires).
Rollout status for all modules: Module status.
Further reading
- Implementation plan (technical depth): docs/implementation-plan.md
- Staff-facing patient guide: Patient management
For developers
- Namespace:
Modules\Patient\... - Service provider:
Modules\Patient\Providers\PatientServiceProvider - Prefer services over ad hoc
Model::create()in new code so rules stay consistent with existing patterns. - Tests: under
tests/; run from repo root with paths pointing atModules/Patient/testsas needed.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-06-23