General editorial guide prepared with AI assistance. Examples are hypothetical; implementation depends on project requirements and qualified review.
Decision and problem
Clinics may consume supplies during a service, while pharmacies purchase and sell items in different units. Define units, conversions, batches and expiry where relevant; distinguish physical balance from available quantity.
Designing the solution
Record receipts, issues, returns and adjustments as reviewable movements; link consumption to services when needed. Do not edit balances without a reasoned movement. Batch selection and expiry rules follow approved operational and legal policy.
Practical acceptance test
Test receiving a package of multiple units, issuing some and returning some, then reconcile against a count. Test an expired batch and prevent unauthorized handling under the agreed policy.
