DijitalPi
TREN
Contact
Home/ AI Solutions
Hospital pharmacy · Medicine stock tracked by batch

AI System for Monitoring Medicine Expiry Dates

We design a warehouse system that lists approaching expiry dates, demand and potential transfers without deciding whether a medicine should be used. The workflow checks product, batch, expiry date, quantity, demand and location data against their sources, then prepares a batch risk list. No record or operational process changes until a hospital pharmacist has completed the review.

Representative hospital pharmacy panel with a work queue, checks and an audit trail: batch and date review queue
Batch and date review queue Representative interface — contains no real data. Product codes are masked. This panel does not determine treatment suitability or medicine dosage.

The problem

In day-to-day operations, batch risks can be overlooked in a long list. When product, batch, expiry date, quantity, demand and location data are scattered across different screens, documents or team records, problems do not become visible in time.

Fragmented data delays preparation of the batch risk list and forces staff to search manually for supporting evidence again. Before making a decision, the hospital pharmacist has to complete missing fields and verify inconsistencies one by one.

A common exception is that a batch may have quarantine, return or special storage status. Incomplete or incorrect automation that overlooks this context could lead to an unsuitable product being allocated or valid stock being destroyed, so the output cannot be applied directly.

What we set out to improve

  • Number of batch alerts confirmed by the pharmacist
  • Rate of outputs corrected or rejected by the hospital pharmacist
  • Time between the source record and the review output

How the system works

  1. 01 Define the scope of the review and the authorised hospital pharmacist role
  2. 02 Collect the inputs: product, batch, expiry date, quantity, demand and location
  3. 03 Check source identity, date, version and data freshness
  4. 04 Sort batches by date and location
  5. 05 Match demand with potential transfers
  6. 06 Check the exception: a batch may have quarantine, return or special storage status
  7. 07 Place low-confidence or inconsistent records in a separate human review queue
  8. 08 Write the source identity, rule, output and time to the audit trail
  9. 09 Have the hospital pharmacist approve, correct, defer or reject the output

Methods we used

  • Batch-level checks of dates and stock movements
  • Source, format, version and required-field checks for product, batch, expiry date, quantity, demand and location data
  • A missing-data warning instead of an estimate when inputs are missing or inconsistent
  • Checking exceptions separately from the main rule
  • Storing the source identity, rule result, batch risk list and human decision together

Where people stay involved

The system stops after preparing the batch risk list. The hospital pharmacist reviews the sources and the exception, then approves, corrects or rejects the output. Direct application is disabled because it could lead to an unsuitable product being allocated or valid stock being destroyed; the system does not replace specialist judgement.

Data and security

Access to product, batch, expiry date, quantity, demand and location data is limited to the minimum permissions required for each role. Identifiers and sensitive fields are masked where possible, and only the necessary section is sent to the model rather than the entire raw file. Access, outputs and the hospital pharmacist's decision are recorded; the system does not enter production until the organisation has approved the retention period and data location.

Who this suits

A good fit

  • Warehouses that track stock by batch

Not a good fit

  • Warehouses without status records

Frequently asked questions

Which inputs are used?

The system uses product, batch, expiry date, quantity, demand and location data. If a required field is unavailable, it does not produce a definitive result and presents the missing source for review by the hospital pharmacist.

At what point does a person make the decision?

The workflow stops when the batch risk list is ready and waits for approval from the hospital pharmacist. The specialist may correct, defer or reject the output and record the reasons.

Can the output be audited?

The system is designed to store the source identity, applied rule, exception, output and human decision together. This makes it possible to review later how the source data led to a particular recommendation.

Project led by:DijitalPi

✦ PI ASSISTANT · ARTIFICIAL INTELLIGENCE

online

Ask the DijitalPi AI Assistant your question

No need to fill in a form and wait for a reply — write your question and let Pi, trained on DijitalPi's 20 years of know-how, answer within seconds.

  • Instant answers, 24/7
  • Service-specific context — no generic replies
  • Can connect you to a free consultation if you wish
Hi! 👋 I'm Pi — DijitalPi's AI assistant. Write whatever you'd like to know about AI System for Monitoring Medicine Expiry Dates and I'll answer right away.

Pi Assistant answers are for information purposes; for a proposal get in touch.

ASK AI ABOUT DIJITALPI

Let an AI explain what DijitalPi does.

Opens your chosen assistant with a ready research prompt. It reads the site live and answers.