source: WorldVistAEHR/trunk/r/AUTOMATED_INFO_COLLECTION_SYS-IBD/IBDFN10.m@ 762

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

initial load of WorldVistAEHR

File size: 2.4 KB
Line 
1IBDFN10 ;ALB/AAS - ENCOUNTER FORM - (selection routines - mostly for PCE files) ; 5-Jun-95
2 ;;3.0;AUTOMATED INFO COLLECTION SYS;**40**;APR 24, 1997
3 ;
4LOOK(DIC,SCREEN) ; -- Look up entry
5 I +$G(DIC)<1 Q
6 S DIC(0)="AEMQZ",DIC("S")=$G(SCREEN) D ^DIC K DIC
7 Q
8 ;
9EDTOP ; -- select Education Topics (from file 9999999.09)
10 N X,Y,SCREEN
11 I '$D(@IBARY@("SCREEN")) D EDSCRN
12 S SCREEN=$G(@IBARY@("SCREEN"))
13 D LOOK(9999999.09,SCREEN) I +Y<1 K @IBARY Q ;kill if nothing selected
14 S @IBARY=+Y_"^"_$P(Y(0),"^",1,2)
15 Q
16EDSCRN ;
17 S @IBARY@("SCREEN")="I '$P(^(0),U,3)"
18 Q
19 ;
20IMM ; -- select Immunizations (from file 9999999.14)
21 N X,Y,SCREEN
22 I '$D(@IBARY@("SCREEN")) D IMSCRN
23 S SCREEN=$G(@IBARY@("SCREEN"))
24 D LOOK(9999999.14,SCREEN) I +Y<1 K @IBARY Q ;kill if nothing selected
25 S @IBARY=+Y_"^"_$P(Y(0),"^",1,3)
26 Q
27IMSCRN ;
28 S @IBARY@("SCREEN")="I '$P(^(0),U,7)"
29 Q
30 ;
31EXAM ; -- select Exams (from file 9999999.15)
32 N X,Y,SCREEN
33 I '$D(@IBARY@("SCREEN")) D EXSCRN
34 S SCREEN=$G(@IBARY@("SCREEN"))
35 D LOOK(9999999.15,SCREEN) I +Y<1 K @IBARY Q ;kill if nothing selected
36 S @IBARY=+Y_"^"_$P(Y(0),"^",1,3)
37 Q
38EXSCRN ;
39 S @IBARY@("SCREEN")="I '$P(^(0),U,4)"
40 Q
41 ;
42TRTMNT ; -- select treatments (from file 9999999.17)
43 N X,Y,SCREEN
44 I '$D(@IBARY@("SCREEN")) D TRSCRN
45 S SCREEN=$G(@IBARY@("SCREEN"))
46 D LOOK(9999999.17,SCREEN) I +Y<1 K @IBARY Q ;kill if nothing selected
47 S @IBARY=+Y_"^"_$P(Y(0),"^",1,2)
48 Q
49TRSCRN ;
50 S @IBARY@("SCREEN")="I '$P(^(0),U,4)"
51 Q
52 ;
53SKINTST ; -- select Skin Tests (from file 9999999.28)
54 N X,Y,SCREEN
55 I '$D(@IBARY@("SCREEN")) D SKSCRN
56 S SCREEN=$G(@IBARY@("SCREEN"))
57 D LOOK(9999999.28,SCREEN) I +Y<1 K @IBARY Q ;kill if nothing selected
58 S @IBARY=+Y_"^"_$P(Y(0),"^",1,2)
59 Q
60SKSCRN ;
61 S @IBARY@("SCREEN")="I '$P(^(0),U,3)"
62 Q
63 ;
64HF ; -- select Health Factors (from file 9999999.64)
65 N X,Y,SCREEN
66 I '$D(@IBARY@("SCREEN")) D HFSCRN
67 S SCREEN=$G(@IBARY@("SCREEN"))
68 D LOOK(9999999.64,SCREEN) I +Y<1 K @IBARY Q ;kill if nothing selected
69 S @IBARY=+Y_"^"_$P(Y(0),"^",1,5)
70 Q
71HFSCRN ;
72 S @IBARY@("SCREEN")="I '$P(^(0),U,10),$P(^(0),U,10)=""F"",'$P(^(0),U,11)"
73 Q
74 ;
75CHECKOUT ;other visit dispositions than checkout
76 ;the PCE GDI does not accept this now,but it may in the future
77 K DIR S DIR(0)="SO^1:No-show;2:Cancel;3:Rescheduled"
78 S DIR("A")="APPOINTMENT DISPOSITION TYPE"
79 D ^DIR
80 I $D(DIRUT) K @IBARY Q ;kill if nothing selected
81 S @IBARY=+Y_"^"_$S(+Y=1:"No-show",+Y=2:"Cancel",+Y=3:"Rescheduled",1:"")
82 K DIR
83 Q
Note: See TracBrowser for help on using the repository browser.