1 | DVBA128P ;ALB/RLC - Post Init Exam file Update ; 14 Jun 2005
|
---|
2 | ;;2.7;AMIE;**128**;AUG 7,2003;Build 5
|
---|
3 | ;
|
---|
4 | ; This is the post-install for DVBA*2.7*128 to inactivate the old
|
---|
5 | ; entries and create new entries in the AMIE EXAM file (#396.6).
|
---|
6 | ;
|
---|
7 | EN ;
|
---|
8 | D BMES^XPDUTL("DVBA*2.7*128 Post Installation --")
|
---|
9 | D MES^XPDUTL(" Update to AMIE EXAM file (#396.6).")
|
---|
10 | D MES^XPDUTL(" ")
|
---|
11 | I '$D(^DVB(396.6)) D BMES^XPDUTL("Missing AMIE EXAM (#396.6) file") Q
|
---|
12 | I $D(^DVB(396.6)) D
|
---|
13 | .D INACT
|
---|
14 | .D NEW
|
---|
15 | Q
|
---|
16 | ;
|
---|
17 | INACT ;inactivate exams
|
---|
18 | N LINE,IEN,EXM,PNM,BDY,ROU,STAT,WKS,DIE,DR,DA,X,Y,DVBAI
|
---|
19 | D BMES^XPDUTL("Inactivating AMIE EXAM file entries..")
|
---|
20 | F DVBAI=1:1 S LINE=$P($T(TXTOLD+DVBAI),";;",2) Q:LINE="QUIT" D
|
---|
21 | .D GET K X,Y,DA
|
---|
22 | .I $P($G(^DVB(396.6,IEN,0)),"^",1)'=EXM D Q
|
---|
23 | ..D BMES^XPDUTL(" *** Warning - Entry #"_IEN)
|
---|
24 | ..D MES^XPDUTL(" for exam "_EXM)
|
---|
25 | ..D MES^XPDUTL(" could not be inactivated.")
|
---|
26 | .S DIE="^DVB(396.6,",DA=IEN,DR=".5///I" D ^DIE
|
---|
27 | .D BMES^XPDUTL(" Entry #"_IEN_" for exam "_EXM)
|
---|
28 | .D MES^XPDUTL(" successfully inactivated.")
|
---|
29 | D MES^XPDUTL(" ")
|
---|
30 | Q
|
---|
31 | ;
|
---|
32 | NEW ;add new exam
|
---|
33 | N LINE,IEN,EXM,PNM,BDY,ROU,STAT,WKS,DIC,DIE,DR,DA,X,Y,DINUM,DVBAI
|
---|
34 | D BMES^XPDUTL("Adding new AMIE EXAM file entries...")
|
---|
35 | F DVBAI=1:1 S LINE=$P($T(TXTNEW+DVBAI),";;",2) Q:LINE="QUIT" D
|
---|
36 | .D GET K X,Y,DA
|
---|
37 | .D BMES^XPDUTL(" Attempting to add Entry #"_IEN_"...")
|
---|
38 | .I $D(^DVB(396.6,IEN,0)) D Q
|
---|
39 | ..D MES^XPDUTL(" You have an Entry #"_IEN_".")
|
---|
40 | ..D MES^XPDUTL(" Updating "_EXM_".")
|
---|
41 | ..S DIE="^DVB(396.6,",DA=IEN,DR=".01///"_EXM_";.07///"_WKS_";.5///"_STAT_";2///"_BDY_";6///"_PNM_";7///"_ROU
|
---|
42 | ..D ^DIE
|
---|
43 | .S DIC="^DVB(396.6,",DIC(0)="LZ",X=EXM,DINUM=IEN
|
---|
44 | .S DIC("DR")=".07///"_WKS_";.5///"_STAT_";2///"_BDY_";6///"_PNM_";7///"_ROU
|
---|
45 | .K DD,DO D FILE^DICN
|
---|
46 | .I +Y=IEN D Q
|
---|
47 | ..D MES^XPDUTL(" Successfully added Entry #"_IEN)
|
---|
48 | ..D MES^XPDUTL(" for exam "_EXM_".")
|
---|
49 | .I +Y=-1 D
|
---|
50 | ..D MES^XPDUTL(" *** Warning - Unable to add Entry #"_IEN)
|
---|
51 | ..D MES^XPDUTL(" for exam "_EXM_".")
|
---|
52 | Q
|
---|
53 | GET ;get exam data
|
---|
54 | S (IEN,EXM,PNM,BDY,ROU,STAT,WKS)=""
|
---|
55 | S IEN=$P(LINE,";",1) ;ien
|
---|
56 | S EXM=$P(LINE,";",2) ;exam name
|
---|
57 | S PNM=$P(LINE,";",3) ;print name
|
---|
58 | S BDY=$P(LINE,";",4) ;body system
|
---|
59 | S ROU=$P(LINE,";",5) ;routine name
|
---|
60 | S STAT=$P(LINE,";",6) ;status
|
---|
61 | S WKS=$P(LINE,";",8) ;worksheet number
|
---|
62 | Q
|
---|
63 | ;
|
---|
64 | ; Entries to be inactivated.
|
---|
65 | ; format: ien;exam name;;;routine;status;;wks#
|
---|
66 | TXTOLD ;
|
---|
67 | ;;194;GENITOURINARY EXAMINATION;GU EXAMS;8;DVBCWGE2;I; ;0605
|
---|
68 | ;;202;AUDIO;AUDIO;3;DVBCWAU4;I; ;1305
|
---|
69 | ;;QUIT
|
---|
70 | ;
|
---|
71 | ;
|
---|
72 | ; New exam to activate
|
---|
73 | ; format: ien;exam name;print name;body system;routine;status;;wks#
|
---|
74 | TXTNEW ;
|
---|
75 | ;;224;GENITOURINARY EXAMINATION;GU EXAMS;8;DVBCWGE4;A; ;0605
|
---|
76 | ;;225;AUDIO;AUDIO;3;DVBCWAU6;A; ;1305
|
---|
77 | ;;QUIT
|
---|