Query check tmp AHC: Difference between revisions
Ttenbergen (talk | contribs) |
Ttenbergen (talk | contribs) No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 19: | Line 19: | ||
*** nz(date, now()) + nz(time, .9999) must be after admission | *** nz(date, now()) + nz(time, .9999) must be after admission | ||
*** nz(date, date()) + nz(time, 0) must be before nz(dispo_dttm, now) | *** nz(date, date()) + nz(time, 0) must be before nz(dispo_dttm, now) | ||
** if item "not consulted" there must not be a date or time, and there must not be an AH_C_<the allied health team> | ** '''not yet done''' - if item "not consulted" there must not be a date or time, and there must not be an AH_C_<the allied health team> entry for consult received | ||
* at complete time | * at complete time | ||
** if there is a time there has to be a date | ** if there is a time there has to be a date | ||
** if item in ("referral received", "Late consult received") then it must have the checkbox checked ("no dttm") or a date | |||
{{DL| | |||
** item must not be "not entered" | ** item must not be "not entered" | ||
* | * I implemented this one and 40 records in my test data have a "not entered" in complete data. Did I misunderstand the instructions? | ||
}} | |||
{{DL| | {{DL| | ||
* if there is referral sent there must be a referral received entry and a consult dealt with entry[[User:Lkaita|Lisa Kaita]] 11:31, 7 August 2025 (CDT) | * if there is referral sent there must be a referral received entry and a consult dealt with entry[[User:Lkaita|Lisa Kaita]] 11:31, 7 August 2025 (CDT) | ||