Skip to content

Main content

Medicine Refill Record Duplicate Date Tool

Find repeated active product/day refill records without inferring actual use.

Loading tool…

Description

Find repeated active product/fill-day records.

Pharmacy administration separates inventory, document identity, authorization, service timing and financial records from clinical decisions. Matching labels or a positive local predicate can reconcile supplied metadata without authenticating medicine, establishing lawful supply or determining appropriate care.

Find repeated active product/fill-day records.

When to use this tool

Use Medicine Refill Record Duplicate Date when checking the stated pharmacy record, inventory, timing, coverage or cost convention.

How to use the tool and how it works

  1. Enter productIds, fillDays, cancelled. Keep parallel arrays aligned. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read duplicateIndices, activeCount. Use the output convention below.

Find repeated active product/fill-day records. Require aligned productIds/fillDays/cancelled; ignore cancelled rows, count active rows and return zero-based indexes after the first matching product/day pair.1

Input fieldMeaning and unitsAccepted input
productIdsProduct IdsRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
fillDaysFill DaysRequired. Array of safe integer; maximum items 256.
cancelledCancelledRequired. Array of boolean; maximum items 256.
Output fieldInterpretationReturned shape
duplicateIndicesDuplicate IndicesRequired. Array of safe integer; maximum items 256.
activeCountActive CountRequired. Safe integer.
json
{
  "input": {
    "productIds": [
      "A",
      "A",
      "B",
      "A"
    ],
    "fillDays": [
      100,
      100,
      100,
      100
    ],
    "cancelled": [
      false,
      false,
      false,
      true
    ]
  },
  "output": {
    "duplicateIndices": [
      1
    ],
    "activeCount": 3
  }
}

Limitations and assumptions

  • Day labels and product identities are supplied; repeats are not proof of duplicate dispensing, fraud or an invalid prescription.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.

Alternative or Complementary methods

Use verified medicine/service records and applicable professional procedures; consult a qualified pharmacist or other appropriate professional for clinical, legal or safe-supply decisions.

References

  1. Calculation and input contract: community-pharmacy/medicine-refill-record-duplicate-date — tool.io

Similar or alternative tools