定制 flowrise-hms/pharmacy 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

flowrise-hms/pharmacy

Composer 安装命令:

composer require flowrise-hms/pharmacy

包简介

Lean pharmacy module for medication catalog, stock, ordering, and dispensing.

README 文档

README

In one sentence: The Pharmacy module manages medication catalog, stock, and dispensing so clinical orders can turn into safe, trackable medicine delivery.

Why this module exists

Hospitals need a clear answer to three questions:

  • What medicines do we have?
  • How much stock is available right now?
  • Who dispensed what, for which patient order?

This module keeps that workflow in one place and links it to patient and clinical context.

Where Pharmacy fits in FlowRise

  • Depends on Core for shared system foundations.
  • Depends on Patient and Clinical so medication work is tied to the right person and request item.
  • Integrates with clinical RequestItem records by attaching pharmacy Dispense relations.
flowchart LR
  Core[Core]
  Patient[Patient]
  Clinical[Clinical]
  Pharmacy[Pharmacy]
  Core --> Pharmacy
  Patient --> Pharmacy
  Clinical --> Pharmacy
Loading

What you can do with it

  • Maintain a medication catalog.
  • Track stock items and stock movement reasons.
  • Place and process medication orders.
  • Record dispensing events against clinical request items.
  • Run Pharmacy POS checkout for walk-in or OTC sales.
  • Enforce safety/business checks (for example insufficient stock exceptions).

How it works (simple)

  1. Clinical staff place medication-related requests in clinical workflows.
  2. Pharmacy services validate stock and medication details.
  3. Dispensing records are created and linked back to clinical request items.
  4. Stock levels and movement metadata are updated for traceability.

What is inside this folder

Path Purpose
app/Models/ Medication, stock, and dispense entities.
app/Classes/Services/ Stock, ordering, and dispense business logic.
app/Filament/ Pharmacy plugin/UI integration points.
app/Enums/ Controlled schedules, dosage forms, stock reasons.
app/Exceptions/ Domain-specific pharmacy errors.
app/Providers/ Module boot/register logic and route/event providers.
database/migrations/ Pharmacy schema changes.

Dependencies

  • flowrise-hms/core
  • flowrise-hms/clinical
  • flowrise-hms/patient

See module status for rollout state.

Further reading

For developers

  • Namespace: Modules\Pharmacy\...
  • Service provider: Modules\Pharmacy\Providers\PharmacyServiceProvider
  • Boot-time relation extension: RequestItem::resolveRelationUsing('dispenses', ...)
  • Stock abstraction is bound via StockProviderContract -> StockService.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-29