Query check tmp BedHeld: Difference between revisions

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