OHDSI / Themis

Repository for OMOP CDM conventions as defined by THEMIS. These can be reference lists of concepts, pieces of standardized code for data generation or quality certification, and debates.
Apache License 2.0
28 stars 9 forks source link

How to populate days_supply when days supply is negative in the source #124

Closed burrowse closed 7 months ago

burrowse commented 7 months ago

How to populate days_supply when days supply is negative in the source

CDM or THEMIS convention?

Themis

Table or Field level?

Field

Is this a general convention?

No

Summary of issues

Summary of answer

Related links

clairblacketer commented 7 months ago

Issue # and location

Issue summary

How should drug exposure records with negative days supply be handled in the CDM?

Convention type

Table

CDM table

drug_exposure

CDM field

days_supply

Links to issue discussion

Provenance of data

General

The ratified convention

The CDM documentation states: Negative values are not allowed. If the source has negative days supply the record should be dropped as it is unknown if the patient actually took the drug.

Several actions are possible: 1) record is not trustworthy and we remove the record entirely. 2) we trust the record and leave days_supply empty or 3) record needs to be combined with other record (e.g. reversal of prescription). High values (>365 days) should be investigated. If considered an error in the source data (e.g. typo), the value needs to be excluded to prevent creation of unrealistic long eras.

Date of ratification/published

July 5, 2023

Downstream implications

No

Link to DQD check

Yes - plausibleValueLow (page under construction)

Related conventions/further information

NA

#Tags drug_exposure, days_supply