source: FOIAVistA/trunk/r/OCCURRENCE_SCREEN-QAO/QAOC109.m@ 1094

Last change on this file since 1094 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

File size: 1.0 KB
Line 
1QAOC109 ;HISC/DAD-OCCURRENCE SCREEN AUTO ENROLLMENT ;5/13/93 09:05
2 ;;3.0;Occurrence Screen;;09/14/1993
3 ;SCREEN 109 -- DEATH
4 Q:$$INACTIVE^QAOC0(109)
5 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
6 Q
7LOOP1 ;
8 S QAOSZERO=$G(^DGPM(QAOSD0,0)) Q:QAOSZERO=""
9 S QAOSDFN=$P(QAOSZERO,"^",3),OUTYPE=$P(QAOSZERO,"^",18)
10 S OUTYPE=$P($G(^DG(405.2,+OUTYPE,0)),"^",8) Q:OUTYPE<6
11 D VADPT^QAOC0(QAOSDFN,QAOSD0)
12 S QAOVISIT=$P($G(^DGPM(+VAIP(13),0)),"^")
13 S ^UTILITY($J,"QAM CONDITION",QAMD1,QAOSDFN,QAMTODAY)=""
14 S WARDCLIN=+VAIP(5)_"^"
15 S ^UTILITY($J,"QAM FALL OUT",QAMD0,QAOSDFN,QAMTODAY,"WARD")=WARDCLIN
16 S ^UTILITY($J,"QAM FALL OUT",QAMD0,QAOSDFN,QAMTODAY,"TXSP")=+VAIP(8)
17 S ^UTILITY($J,"QAM FALL OUT",QAMD0,QAOSDFN,QAMTODAY,"MVDT")=QAOVISIT
18 S ^UTILITY($J,"QAM FALL OUT",QAMD0,QAOSDFN,QAMTODAY,"DIAG")=VAIP(9)
19 S ^UTILITY($J,"QAM FALL OUT",QAMD0,QAOSDFN,QAMTODAY,"AADM")=VAIP(13)
20 Q
Note: See TracBrowser for help on using the repository browser.