21 lines
1.0 KiB
Mathematica
21 lines
1.0 KiB
Mathematica
QAOC109 ;HISC/DAD-OCCURRENCE SCREEN AUTO ENROLLMENT ;5/13/93 09:05
|
|
;;3.0;Occurrence Screen;;09/14/1993
|
|
;SCREEN 109 -- DEATH
|
|
Q:$$INACTIVE^QAOC0(109)
|
|
F QAOSDOD=(QAMTODAY-.0000001):0 S QAOSDOD=$O(^DGPM("ATT3",QAOSDOD)) Q:(QAOSDOD'>0)!(QAOSDOD>(QAMTODAY+.24))!(QAOSDOD\1'?7N) F QAOSD0=0:0 S QAOSD0=$O(^DGPM("ATT3",QAOSDOD,QAOSD0)) Q:QAOSD0'>0 D LOOP1
|
|
Q
|
|
LOOP1 ;
|
|
S QAOSZERO=$G(^DGPM(QAOSD0,0)) Q:QAOSZERO=""
|
|
S QAOSDFN=$P(QAOSZERO,"^",3),OUTYPE=$P(QAOSZERO,"^",18)
|
|
S OUTYPE=$P($G(^DG(405.2,+OUTYPE,0)),"^",8) Q:OUTYPE<6
|
|
D VADPT^QAOC0(QAOSDFN,QAOSD0)
|
|
S QAOVISIT=$P($G(^DGPM(+VAIP(13),0)),"^")
|
|
S ^UTILITY($J,"QAM CONDITION",QAMD1,QAOSDFN,QAMTODAY)=""
|
|
S WARDCLIN=+VAIP(5)_"^"
|
|
S ^UTILITY($J,"QAM FALL OUT",QAMD0,QAOSDFN,QAMTODAY,"WARD")=WARDCLIN
|
|
S ^UTILITY($J,"QAM FALL OUT",QAMD0,QAOSDFN,QAMTODAY,"TXSP")=+VAIP(8)
|
|
S ^UTILITY($J,"QAM FALL OUT",QAMD0,QAOSDFN,QAMTODAY,"MVDT")=QAOVISIT
|
|
S ^UTILITY($J,"QAM FALL OUT",QAMD0,QAOSDFN,QAMTODAY,"DIAG")=VAIP(9)
|
|
S ^UTILITY($J,"QAM FALL OUT",QAMD0,QAOSDFN,QAMTODAY,"AADM")=VAIP(13)
|
|
Q
|