source: WorldVistAEHR/trunk/r/NURSING_SERVICE-NUR/NURACE8.m@ 1195

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

initial load of WorldVistAEHR

File size: 3.3 KB
Line 
1NURACE8 ;HIRMFO/RM,FT-PATIENT CLASSIFICATION FACTOR CHECKS ;1/9/97 13:53
2 ;;4.0;NURSING SERVICE;;Apr 25, 1997
3EN1 ;VALIDATE EXTENDED CARE FACTORS
4 I FACT["A" I ((FACT["B")!(FACT["C")) S NURS1SW=1
5 I FACT["B" I FACT["C" S NURS1SW=1
6 I FACT["D" I ((FACT["E")!(FACT["F")) S NURS4SW=1
7 I FACT["E" I FACT["F" S NURS4SW=1
8 I FACT["G" I ((FACT["H")!(FACT["I")) S NURS7SW=1
9 I FACT["H" I FACT["I" S NURS7SW=1
10 I FACT["J" I ((FACT["K")!(FACT["L")) S NURS10SW=1
11 I FACT["K" I FACT["L" S NURS10SW=1
12 I FACT["M" I ((FACT["N")!(FACT["O")) S NURS13SW=1
13 I FACT["N" I FACT["O" S NURS13SW=1
14 Q
15EN2 ;VALIDATE PSYCHIATRIC FACTORS
16 I FACT["A" I ((FACT["B")!(FACT["C")!(FACT["D")) S NURS1SW=1
17 I FACT["B" I ((FACT["C")!(FACT["D")) S NURS1SW=1
18 I FACT["C" I FACT["D" S NURS1SW=1
19 I FACT["E" I ((FACT["F")!(FACT["G")!(FACT["H")) S NURS5SW=1
20 I FACT["F" I ((FACT["G")!(FACT["H")) S NURS5SW=1
21 I FACT["G" I FACT["H" S NURS5SW=1
22 I ((PREV="A")!(PREV="F")) I ((FACT["I")!(FACT["K")) S NWFCTSW=1,FCK="I or K"
23 I PREV="B" I ((FACT["H")!(FACT["K")) S NWFCTSW=1,FCK="H, or K"
24 I PREV="D" I FACT["E" S NWFCTSW=1,FCK="E"
25 I PREV="E" I ((FACT["I")!(FACT["K")!(FACT["D")) S NWFCTSW=1,FCK="D,I or K"
26 I PREV="H" I FACT["A" S NWFCTSW=1,FCK="A"
27 I PREV="I" I ((FACT["E")!(FACT["F")) S NWFCTSW=1,FCK="E or F"
28 I PREV="K" I ((FACT["A")!(FACT["B")!(FACT["C")!(FACT["E")!(FACT["F")) S NWFCTSW=1,FCK="A,B,C,E or F"
29 Q
30EN3 ; ERROR MESSAGE THAT ACUITY ROUTINE NOT RUN
31 W !,*7
32 F J=1:1:3 D ASTER
33 F J=1:1:2 D ASTER1
34 W !,"*****",?$X+31,"WARNING",?$X+32,"*****"
35 ;D ASTER1
36 ;W !,"*****",?$X+21,"CLASSIFICATION CANNOT BE RUN",?$X+21,"*****"
37 F J=1:1:5 D ASTER1
38 W !,"*****",?$X+20,"NOTIFY NURSING ADP COORDINATOR",?$X+20,"*****"
39 D ASTER1
40 W !,"*****",?$X+8,"TaskMan DID NOT RUN ACUITY ROUTINE (AMIS 1106 UPDATE)",?$X+9,"*****"
41 D ASTER1
42 W !,"*****",?$X+18,"THIS CALL MUST BE MADE IMMEDIATELY",?$X+18,"*****"
43 F J=1:1:2 D ASTER1
44 F J=1:1:3 D ASTER
45 H 5
46 Q
47ASTER ;
48 W $$REPEAT^XLFSTR("*",80)
49 Q
50ASTER1 ;
51 W !,*7,"*****",?$X+70,"*****"
52 Q
53EN4 ; PROMPT PRINTED IF UP-ARROWED OUT OF CLASSIFICATION
54 W *7,*7,!,"THIS PATIENT'S CLASSIFICATION HAS NOT BEEN UPDATED."
55 Q
56EN5 ; PRINT INFO FOR ATEC PATIENTS
57 W !!,?8,"Current Classification: ",CLASSX W:CLASSX'="" " (USER)"
58 W !,?8,"Last user to classify: ",USERX
59 W !,?8,"Last date/time classified: "
60 I DATEX'="" S Y=DATEX D:+Y D^DIQ W Y
61 Q
62EN6 ; CLASSIFICATION OF ATEC PATIENTS
63 W !,"Enter Classification: " W:(CLASSX'="") CLASSX,"//"
64 R X:DTIME S:CLASSX'=""&(X="") X=CLASSX
65 I (X="^")!('$T) D EN4 S OUTSW=1 Q
66 I (X?1N)&(X>0)&(X<5) S CLASSX=X G Q
67 W !,*7,"ANSWER WITH A NUMBER BETWEEN 1 AND 4" G EN6
68Q D FINAL2^NURACE7 S OUTSW=1 Q
69EN7 ;VALIDATE EXTENDED CARE FACTORS
70 I FACT["A" I ((FACT["B")!(FACT["C")!(FACT["D")) S NURS1SW=1
71 I FACT["B" I ((FACT["C")!(FACT["D")) S NURS1SW=1
72 I FACT["C" I FACT["D" S NURS1SW=1
73 I FACT["E" I ((FACT["F")!(FACT["G")!(FACT["H")) S NURS4SW=1
74 I FACT["F" I ((FACT["G")!(FACT["H")) S NURS4SW=1
75 I FACT["G" I FACT["H" S NURS4SW=1
76 I FACT["I" I ((FACT["J")!(FACT["K")!(FACT["L")) S NURS7SW=1
77 I FACT["J" I ((FACT["K")!(FACT["L")) S NURS7SW=1
78 I FACT["K" I FACT["L" S NURS7SW=1
79 I FACT["M" I ((FACT["N")!(FACT["O")!(FACT["P")) S NURS10SW=1
80 I FACT["N" I ((FACT["O")!(FACT["P")) S NURS10SW=1
81 I FACT["O" I FACT["P" S NURS10SW=1
82 I FACT["Q" I ((FACT["R")!(FACT["S")!(FACT["T")) S NURS13SW=1
83 I FACT["R" I ((FACT["S")!(FACT["T")) S NURS13SW=1
84 I FACT["S" I FACT["T" S NURS13SW=1
85 Q
Note: See TracBrowser for help on using the repository browser.