Check Sub PharmCheck
Data Integrity Checks | |
Summary: | checks that every CC pt has at least one pharmacy record (possibly all zeros), that patients don't have drug days than LOS, disallows complete check if Arrive DtTm or Dispo DtTm are missing because that would break max count check, |
Related: | Pharmacy collection |
Firmness: | hard check |
Timing: | complete |
App: | CCMDB.accdb |
Coding: | Sub PharmCheck |
Uses L Problem table: | not relevant for this app |
Status: | implemented |
Implementation Date: | 2012-01-01 |
Backlogged: | true |
- each patient has to have at least one line of no entries (implemented)
- maximum count for any drug must be < LOS+2 if calculated using admit date/time & discharge date/(time or 23:59 if unavailable)
- implemented as LOS = CLng(Nz(Form_View.R_DisDate) + nz(Form_View.R_DisTime, 1)) - Nz(Form_View.R_AdmDate, 0))
PharmCheck used to be used to do internal consistency checks on Pharmacy data. No longer used since change in Pharmacy data structure 2012-01-01. See Pharmacy_collection#Data_Integrity_Rules for data consistency checking in new paradigm.
Legacy data |
Public Sub PharmCheck provides for the consistency checks for pharmacy collection.
|