source: WorldVistAEHR/trunk/r/AUTOMATED_MED_INFO_EXCHANGE-DVBA-DVBC/DVBA125P.m@ 1361

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

initial load of WorldVistAEHR

File size: 1.8 KB
RevLine 
[613]1DVBA125P ;ALB/RLC - Post Init Exam file Update ; 14 Jun 2005
2 ;;2.7;AMIE;**125**;AUG 7,2003;Build 9
3 ;
4 ; This is the post-install for DVBA*2.7*125 to create a new entry in the
5 ; AMIE EXAM file (#396.6).
6 ;
7EN ;
8 D BMES^XPDUTL("DVBA*2.7*125 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 NEW
14 Q
15 ;
16NEW ;add new exam
17 N LINE,IEN,EXM,PNM,BDY,ROU,STAT,WKS,DIC,DIE,DR,DA,X,Y,DINUM,DVBAI
18 D BMES^XPDUTL("Adding new AMIE EXAM file entries...")
19 F DVBAI=1:1 S LINE=$P($T(TXTNEW+DVBAI),";;",2) Q:LINE="QUIT" D
20 .D GET K X,Y,DA
21 .D BMES^XPDUTL(" Attempting to add Entry #"_IEN_"...")
22 .I $D(^DVB(396.6,IEN,0)) D Q
23 ..D MES^XPDUTL(" You have an Entry #"_IEN_".")
24 ..D MES^XPDUTL(" Updating "_EXM_".")
25 ..S DIE="^DVB(396.6,",DA=IEN,DR=".01///"_EXM_";.07///"_WKS_";.5///"_STAT_";2///"_BDY_";6///"_PNM_";7///"_ROU
26 ..D ^DIE
27 .S DIC="^DVB(396.6,",DIC(0)="LZ",X=EXM,DINUM=IEN
28 .S DIC("DR")=".07///"_WKS_";.5///"_STAT_";2///"_BDY_";6///"_PNM_";7///"_ROU
29 .K DD,DO D FILE^DICN
30 .I +Y=IEN D Q
31 ..D MES^XPDUTL(" Successfully added Entry #"_IEN)
32 ..D MES^XPDUTL(" for exam "_EXM_".")
33 .I +Y=-1 D
34 ..D MES^XPDUTL(" *** Warning - Unable to add Entry #"_IEN)
35 ..D MES^XPDUTL(" for exam "_EXM_".")
36 Q
37GET ;get exam data
38 S (IEN,EXM,PNM,BDY,ROU,STAT,WKS)=""
39 S IEN=$P(LINE,";",1) ;ien
40 S EXM=$P(LINE,";",2) ;exam name
41 S PNM=$P(LINE,";",3) ;print name
42 S BDY=$P(LINE,";",4) ;body system
43 S ROU=$P(LINE,";",5) ;routine name
44 S STAT=$P(LINE,";",6) ;status
45 S WKS=$P(LINE,";",8) ;worksheet number
46 Q
47 ;
48 ; New exam to create and activate
49 ; format: ien;exam name;print name;body system;routine;status;;wks#
50TXTNEW ;
51 ;;223;TRAUMATIC BRAIN INJURY (TBI);TRAUMATIC BRAIN INJURY;13;DVBCTBI1;A; ;1225
52 ;;QUIT
Note: See TracBrowser for help on using the repository browser.