Function Dispo Chronological(): Difference between revisions
Jump to navigation
Jump to search
Ttenbergen (talk | contribs) m Template:CCMDB Data Integrity Checks change |
Ttenbergen (talk | contribs) mNo edit summary |
||
| Line 1: | Line 1: | ||
{{Data Integrity Check}} | |||
Function Dispo_Chronological checks that the times in [[:Category:2016 Time and Place changes]] are in a sensible chronological order. | |||
== {{CCMDB Data Integrity Checks|implemented}} == | == {{CCMDB Data Integrity Checks|implemented}} == | ||
Revision as of 11:21, 26 October 2018
| Data Integrity Checks | |
| Summary: | not entered |
| Related: | |
| Firmness: | not entered |
| Timing: | always |
| App: | not entered |
| Coding: | not entered |
| Uses L Problem table: | not relevant for this app |
| Status: | not entered |
| Implementation Date: | not entered |
| Backlogged: | true |
Function Dispo_Chronological checks that the times in Category:2016 Time and Place changes are in a sensible chronological order.
Template:CCMDB Data Integrity Checks
The check will run each time one of the times is edited, and will generate an error if:
- Visit Admit DtTm field - no checks since taken direct from EPR
- Arrive DtTm has to be before or equal to Accept DtTm
- Arrive DtTm has to be before or equal Transfer Ready DtTm
- Arrive DtTm has to be before Dispo DtTm
- Transfer Ready DtTm has to be before Dispo DtTm
- Dispo DtTm has to be before Now() / today
- Panelling or Discharge Planning - if Primary Admit Diagnosis is panelling then Arrive DtTm and Transfer Ready DtTm must be same
Transfer time rule
Will want to reconcile Transfer time rule