Query check LAU collection readmission data: Difference between revisions

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 ==