source: WorldVistAEHR/trunk/r/SCHEDULING-SD-SC/SDVPT.m@ 1582

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

initial load of WorldVistAEHR

File size: 4.4 KB
RevLine 
[613]1SDVPT ;alb/mjk - SD Post-Init Driver ; 3/26/93
2 ;;5.3;Scheduling;**5**;Aug 13, 1993
3 ;
4EN ; -- main entry point
5 S XQABT4=$H
6 I '$D(DGVREL) D VERS^DGVPP G ENQ:'$D(DGVREL)
7 S DGVFLD=110 D TIME^DGVPR
8 ;
9 D LINE^DGVPP,EVTS ; protocols
10 D LINE^DGVPP,LIST ; list templates
11 D LINE^DGVPP,COMP ; list compiled templates
12 D LINE^DGVPP,SC ; add/inactivate stop codes
13 D EN^SDV53PT ; current version tasks
14 D LINE^DGVPP,TASKS ; restore queued times
15 S DGPACK="SD" D LINE^DGVPP,^DGVPT1 ; delete options
16 D LINE^DGVPP
17 ;
18 D TIME^SDUTL S DGTIME=SDTIME,DGVFLD=111 D TIME1^DGVPR
19 S $P(^DG(43,1,"SCLR"),U,5)=DGVNEW
20 S XQABT5=$H
21 S X="SDINITY" X ^%ZOSF("TEST") I $T D ^SDINITY
22 W !!,*7,">>> Initialization of Version ",DGVNEWVR," of SD Complete."
23ENQ G Q^SDVPP
24 ;
25EVTS ;Move SD Options to Protocol File
26 S X="" D ^SDONIT
27 Q
28 ;
29TASKS ; -- requeue tasked jobs
30 I $O(DGTJ(0))'="" W !!,">>> Restoring queued jobs to original state...",! S DGEDIT=1 D RES^DGVPR1 K DGTJ
31 K DA,DGI,DIC,DIE,DR,X,Y,DGEDIT
32 Q
33 ;
34COMP ; -- list templates to re-compile
35 W !!,">>> Remember to recompile the following templates on all CPU's..."
36 W !!?4,"Template",?30,"Routine",?45,"Type",?55,"Routine Used to Recompile",!?4,"--------",?30,"-------",?45,"----",?55,"-------------------------"
37 F I=1:1 S J=$P($T(TEMP+I),";;",2) Q:J="QUIT" W !?4,$P(J,";",1),?30,$P(J,";",2),?45,$S($P(J,";",3)="I":"INPUT",1:"PRINT"),?64,$S($P(J,";",3)="I":"DIEZ",1:"DIPZ")
38 W !!,"NOTE: To recompile all PIMS compiled templates and compiled ",!?7,"cross-references you can call ALL^DGUTL1."
39 Q
40 ;
41TEMP ;
42 ;;SDB;SDBT;I
43 ;;SDM1;SDM1T;I
44 ;;SDAMBT;SDXA;I
45 ;;SDXACSE;SDXACSE;I
46 ;;SD ENCOUNTER ENTRY;SDAMXOE;I
47 ;;SD-AMB-PROC-DISPLAY;SDXAMB;P
48 ;;SD-AMB-PROC-LIST;SDXLST;P
49 ;;SD-AMB-RAM-DISPLAY;SDXRAM;P
50 ;;SDAMVLD;SDAMXLD;P
51 ;;SDUL LIST TEMPLATE;SDULXP;P
52 ;;QUIT
53 ;
54LIST ; -- add list templates
55 W !!,">>> List Template installation..."
56 D ^SDVLT
57 Q
58 ;
59SC ; -- add/inactivate stop codes
60 W !!,">>> Adding new clinic stops to CLINIC STOP FILE (#40.7)..."
61 W !," [NOTE: These stop codes CANNOT be used UNTIL 10/1/93]",!
62 S DIC(0)="L",DIC="^DIC(40.7,"
63 F DGX=1:1 K DD,DO,DA S DGXX=$P($T(SCS+DGX),";;",2) Q:DGXX="QUIT" S DIC("DR")="1////"_$P(DGXX,"^",2)_$S('+$P(DGXX,U,5):"",1:";4////"_$P(DGXX,"^",5)),X=$P(DGXX,"^",1) I '$D(^DIC(40.7,"C",$P(DGXX,"^",2))) D FILE^DICN,MESS
64 K DIC,DGXX
65 ;
66INAC W !!,">>> Inactivating clinic stops in CLINIC STOP CODE FILE (#40.7)..."
67 W !," [NOTE: These stop codes CANNOT be used AFTER 9/30/93]",!
68 D NOW^%DTC S SDATE=X
69 F DGX=1:1 K DD,DO,DA S DGXX=$P($T(INA+DGX),";;",2) Q:DGXX="QUIT" S DGDA=+$O(^DIC(40.7,"C",DGXX,0)) I $D(^DIC(40.7,DGDA,0)) S DA=DGDA,DR="2////2931001",DIE="^DIC(40.7," D ^DIE,MESI
70 K %,%H,%I,DGX,DGDA,DR,DA,DIE,SDATE
71 ;
72CHANGE W !!,">>> Changing clinic stop names in CLINIC STOP CODE FILE (#40.7)..."
73 F DGX=1:1 K DD,DO,DA S DGXX=$P($T(CHNG+DGX),";;",2) Q:DGXX="QUIT" I '$O(^DIC(40.7,"B",$P(DGXX,U,3),0)) S DGDA=+$O(^DIC(40.7,"B",$P(DGXX,U),0)) I $D(^DIC(40.7,DGDA,0)) S DA=DGDA,DR=".01///"_$P(DGXX,U,3),DIE="^DIC(40.7," D ^DIE,MESC
74 K DGX,DGXX,DGDA,DIE,DR,DA Q
75 ;
76MESI W !?8,"...",$P(^DIC(40.7,DGDA,0),"^"),?40,"(",DGXX,") inactivated as of 10/1/93..."
77 Q
78 ;
79MESS W !?8,"...",X,?40,"(",$P(DGXX,"^",2),") added..."
80 Q
81 ;
82MESC W !?8,"...",$P(DGXX,U)_$P(DGXX,U,2),?44,"changed to ",!?11,$P(DGXX,U,3),"..."
83 Q
84 ;
85SCS ;STOP CODES TO BE ADDED TO FILE
86 ;;RADIONUCLIDE THERAPY^144^^^2612.00
87 ;;PHARM/PHYSIO NMP STUDIES^145^^^2612.00
88 ;;PET^146^^^2612.00
89 ;;SCI HOME CARE PROGRAM^215^^^5112.00
90 ;;GERIATRIC EVAL. & MGMT. (GEM)^319^^^2110.00
91 ;;ALZHEIMER'S/DEMENTIA CLINIC^320^^^2110.00
92 ;;GI ENDOSCOPY^321^^^2110.00
93 ;;WOMEN'S CLINIC^322^^^2110.00
94 ;;PROSTHETIC SERVICES^423^^^2614.00
95 ;;SEXUAL TRAUMA COUNSELING^524^^^2311.00
96 ;;INCENTIVE THERAPY^573^^^2310.00
97 ;;COMPENSATED WORK THERAPY^574^^^2310.00
98 ;;VOCATIONAL ASSISTANCE^575^^^2310.00
99 ;;DOMICILIARY OUTREACH SERVCIES^725^^^5115.00
100 ;;DOM AFTERCARE - COMMUNITY^726^^^5115.00
101 ;;DOMICILIARY AFTERCARE - VA^727^^^2750.00
102 ;;QUIT
103 ;
104INA ;STOP CODES TO BE INACTIVATED
105 ;;511
106 ;;559
107 ;;QUIT
108 ;
109CHNG ;STOP CODES THAT ARE CHANGED
110 ;;RECREATION SERVICE^ (202)^RECREATION THERAPY SERVICE
111 ;;INCENTIVE THERAPY^ (207)^RMS INCENTIVE THERAPY
112 ;;COMPENSATED WORK THERAPY^ (208)^RMS COMPENSATED WORK THERAPY
113 ;;VOCATIONAL ASSISTANCE^ (213)^RMS VOCATIONAL ASSISTANCE
114 ;;CORRECTIVE THERAPY^ (214)^KINESIOTHERAPY
115 ;;CWT/ILH INDIVIDUAL^ (515)^CWT/TR-HCMI
116 ;;CWT/ILH SUBSTANCE ABUSE^ (518)^CWT/TR-SUBSTANCE ABUSE
117 ;;QUIT
Note: See TracBrowser for help on using the repository browser.