Proportion of Days Covered Calculator

Actual independently qualified medication coverage half open whole-day interval UNION PDC, overlaps not double counted and within actual reference period. Not proof ingestion or prescription eligibility; carryovers witching/hospital policy externally resolved.

Description

Proportion of days covered measures distinct covered days within a defined observation period.

Proportion of days covered measures distinct covered days within a defined observation period.1

This tool merges supplied half-open coverage intervals before calculating the fraction, so overlapping fills do not count a day twice.

When to use Proportion of Days Covered Calculator

This tool merges supplied half-open coverage intervals before calculating the fraction, so overlapping fills do not count a day twice.

How to use Proportion of Days Covered Calculator and how it works

  1. Prepare same medication possession day intervals, reference period days, using the input definitions and matching units below.
  2. Enter the required fields and run Proportion of Days Covered Calculator.
  3. Read result.observedUnionCoveredDays, result.observedPdcFraction using the units, signs and ordering explained below.
  4. Correct any rejected inputs and rerun; interpret the result within the stated model and its assumptions.
Input fieldMeaningValue typeRequirement
actualSameMedicationPossessionDayIntervalsNonempty [start,end] day-offset pairs within the reference period; start inclusive, end exclusive.array of array of numberRequired; other constraints below
actualReferencePeriodDaysExternally defined observation denominator in days, under the branch constraints below.numberRequired; integer 1–1000000; finite; other constraints below

Require reference-period days as an integer from 1 to 1000000 and a nonempty matrix of two-endpoint coverage intervals. Each endpoint is an integer from 0 to the period length, and end must not precede start. Treat each interval as start-inclusive and end-exclusive, sort them, merge overlapping or touching intervals, and divide total merged duration by period days. Zero-length intervals contribute zero. Return a fraction from 0 to 1; coverage is an inventory convention rather than proof of ingestion.

coverageFraction=sum(mergedEnd-mergedStart)/referencePeriodDays

Apply the input ordering, units and branch conditions stated above.

Output fieldMeaningValue type
resultObject containing the calculated or selected fields below.object
result.observedUnionCoveredDaysDistinct whole days represented by the merged half-open coverage intervals.number
result.observedPdcFractionUnion-covered days divided by reference-period days; dimensionless fraction.number
json
{
  "input": {
    "actualSameMedicationPossessionDayIntervals": [
      [
        0,
        3
      ],
      [
        2,
        5
      ]
    ],
    "actualReferencePeriodDays": 10
  },
  "output": {
    "result": {
      "observedUnionCoveredDays": 5,
      "observedPdcFraction": 0.5
    }
  }
}

Limitations and assumptions

Patient context, drug formulation, route, sampling time, assay units and applicable clinician-verified protocol must be independently established. The output supplies no dosing, titration, switching or administration instruction.

The calculation uses the supplied observations and model inputs. It does not collect measurements, select a reference population or coefficient, or establish that the model applies to the actual case. The stated branch conditions and output units remain part of the result.

All fields require explicit values. Unexpected fields, wrong types, nonfinite numbers and sparse arrays are rejected. Alignment, bounds and supported-token rules are explained above; extremely large inputs or nonfinite results can also fail. Input errors differ from successful false comparisons, unavailable-domain flags and empty match lists.

Alternative or Complementary methods

Use Pill Count Adherence Percentage Calculator for a complementary operation: A pill-count estimate reconciles dispensed and carried-in inventory against remaining inventory and known losses.

Use Medication Possession Ratio Calculator for a complementary operation: Medication possession ratio divides gross dispensed supply days by a defined observation period.

References

  1. Proportion of Days Covered Calculator — tool.io

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies