Agent skill
pharmacy-dev
Pharmacy module development guide for the HMIS project. Use when working on pharmacy features including GRN, purchase orders, stock transfers, disbursements, retail sales, pharmacy reports, stock management, item substitution, or pharmacy billing workflows.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/pharmacy-dev
SKILL.md
Pharmacy Module Development Guide
Key Documentation
For detailed pharmacy development, refer to these files:
- Pharmaceutical Management API - REST API for managing VTM, ATM, VMP, AMP, VMPP, AMPP, categories, dosage forms, and measurement units
- GRN Fixes - GRN completion patterns
- Multi-Window Sales - Multi-window handling
- Cost Accounting Signs - Sign normalization
- Disbursement Signs - Disbursement conventions
- Quantity Decimals - Decimal validation
- Transfer Disbursement - Transfer workflow
- Purchase Order Workflow - PO workflow
Configuration Options
Pharmacy uses configOptionApplicationController.getBooleanValueByKey() for feature toggles. Key patterns:
Pharmacy Transfer is by Purchase Rate/Cost Rate/Retail RateDisplay Colours for Stock Autocomplete ItemsPharmacy Disbursement Reports - Display *(various column visibility)
Common Patterns
Stock Queries
- Always include
s.retired = falseands.itemBatch.item.retired = false - Filter inactive items with
s.itemBatch.item.inactive = false - Use DTOs for display, entities for business logic
Transfer Workflow
- Transfer Request -> Transfer Issue -> Transfer Receive
- Each step creates a Bill with appropriate BillType
- Sign conventions matter for cost accounting
Retail Sale
- Use StockDTO for autocomplete performance
- Cache autocomplete results for converter
- Defer expensive discount calculations
Backward Compatibility
- Never "fix"
purcahseRatespelling - it's a database column name - Never rename composite components without checking ALL usage
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?