Query check tmp BedHeld: Difference between revisions

From CCMDB Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 12: Line 12:
* dttm entry is always required  
* dttm entry is always required  
* for item in ("'''AMA (AWOL)'''", "'''Procedure'''"), [[BedHeldEnd DtTm]] must always be after [[Dispo DtTm]]   
* for item in ("'''AMA (AWOL)'''", "'''Procedure'''"), [[BedHeldEnd DtTm]] must always be after [[Dispo DtTm]]   
* if [[BedHeldEnd DtTm]] = [[Dispo DtTm]] and [[Dispo]] = ''AMA'', should be "'''AMA protocol'''" and vice versa
* if [[BedHeldEnd DtTm]] = [[Dispo DtTm]] and [[Dispo]] = '''"AMA (left against medical advice)"''', should be "'''AMA protocol'''" and vice versa
* for item in ("'''AMA (AWOL)'''",  "'''AMA (Protocol)'''"), [[Dispo]] needs to be "AMA" and vice versa
* for item in ("'''AMA (AWOL)'''",  "'''AMA (Protocol)'''"), [[Dispo]] needs to be "AMA" and vice versa



Revision as of 13:09, 2023 May 3

Data Integrity Checks
Summary: Validates that the DtTm for the first Service tmp entry is the same as that for the first Boarding Loc entry
Related: BedHeldEnd DtTm, Dispo DtTm
Firmness: hard check
Timing: complete
App: CCMDB.accdb
Coding: query check_tmp_BedHeld
Uses L Problem table: not relevant for this app
Status: needs review
Implementation Date: not entered
Backlogged: No
  • Cargo


  • SMW


  • Categories: 
  • form:
  • dttm entry is always required
  • for item in ("AMA (AWOL)", "Procedure"), BedHeldEnd DtTm must always be after Dispo DtTm
  • if BedHeldEnd DtTm = Dispo DtTm and Dispo = "AMA (left against medical advice)", should be "AMA protocol" and vice versa
  • for item in ("AMA (AWOL)", "AMA (Protocol)"), Dispo needs to be "AMA" and vice versa

Log

  • 2023-05-02 - query defined and written but waiting to find out if this can be before complete or only after (emailed)
  • 2023-01-11 - Discussed at JALT and decided to not have a cross check for "procedure" against "Dispo"
  • 2023-01-10 - Julie identified needed checks

Related articles

Related articles: