Check Sub PharmCheck
|Data Integrity Checks|
|Summary:||Every CC record has to have at least one pharmacy record (possibly all zeros), and the number of drug days can't be GT LOS,|
|Related:||Pharmacy collection, LOS|
|Uses L Problem table:||not relevant for this app|
- each patient has to have at least one line of no entries (implemented)
uses function LOS() to calculate the LOS
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.
Public Sub PharmCheck provides for the consistency checks for pharmacy collection.
- 2022-03-31 - updated no longer check for starting time since that is now checked from minimal data set query