Query check LAU collection readmission data: Difference between revisions

From CCMDB Wiki
Jump to navigation Jump to search
No edit summary
Line 3: Line 3:
| DIC_related_concepts = Admit date and time; Dispo_DtTm; LAU collection readmission data
| DIC_related_concepts = Admit date and time; Dispo_DtTm; LAU collection readmission data
| DIC_firmness = hard check
| DIC_firmness = hard check
| DIC_timing = always
| DIC_timing = complete
| DIC_app = CCMDB.accdb
| DIC_app = CCMDB.accdb
| DIC_coding =  query ''check_LAU_collection_readmission_data''
| DIC_coding =  query ''check_LAU_collection_readmission_data''
Line 13: Line 13:


Check:
Check:
* ([[L_TmpV2 table]] date_var, time_var) must not be null
* check these only when RecordStatus = complete
* if a readmission, ([[L_TmpV2 table]] date_var, time_var) must not be null
* for item = "has previous", ([[L_TmpV2 table]] date_var + time_var) must be before the [[Admit date and time]]
* for item = "has previous", ([[L_TmpV2 table]] date_var + time_var) must be before the [[Admit date and time]]
* for item = "has later", ([[L_TmpV2 table]] date_var + time_var) must be after [[Dispo DtTm field]]
* for item = "has later", ([[L_TmpV2 table]] date_var + time_var) must be after [[Dispo DtTm field]]
* don't need to limit this to only LAU collection records since no other records should have this; if a record has the entry it should meet these conditions.  
* don't need to limit this to only LAU collection records since no other records should have this; if a record has the entry it should meet these conditions.  
* check these always, if a record was added it should be complete
* if item indicates no admission then date_var and time_var must be null
* there must not be a line with  "later not entered"/"previous not entered"
* there must be a line with "previous" and a line with "later" for each record in [[LAU Collection Project]]


== Log ==
== Log ==

Revision as of 12:42, 9 March 2025

Data Integrity Checks
Summary: dates must make sense
Related: Admit date and time, Dispo_DtTm, LAU collection readmission data
Firmness: hard check
Timing: complete
App: CCMDB.accdb
Coding: query check_LAU_collection_readmission_data
Uses L Problem table: not relevant for this app
Status: implemented
Implementation Date: implemented
Backlogged: true
  • Cargo


  • SMW


  • Categories:  
  • form:

This check is or a temporary entry collected for the LAU Collection Project.

Check:

  • check these only when RecordStatus = complete
  • if a readmission, (L_TmpV2 table date_var, time_var) must not be null
  • for item = "has previous", (L_TmpV2 table date_var + time_var) must be before the Admit date and time
  • for item = "has later", (L_TmpV2 table date_var + time_var) must be after Dispo DtTm field
  • don't need to limit this to only LAU collection records since no other records should have this; if a record has the entry it should meet these conditions.
  • if item indicates no admission then date_var and time_var must be null
  • there must not be a line with "later not entered"/"previous not entered"
  • there must be a line with "previous" and a line with "later" for each record in LAU Collection Project

Log

  • 2025-03-09 - updated check to account for "no readmission" items
  • 2025-03-06 - implemented
  • 2025-03-05 - cross check defined

Related Articles

Related articles: