1 | ECXP91PT ;ALB/ESD - PATCH ECX*3.0*47 Post-Init Rtn ; 03/16/06 1:00pm
|
---|
2 | ;;3.0;DSS EXTRACTS;**91**;Dec 22, 1997
|
---|
3 | ;
|
---|
4 | ;Post-init routine to add new entries to:
|
---|
5 | ;
|
---|
6 | ; NATIONAL CLINIC file (#728.441)
|
---|
7 | ;
|
---|
8 | ;
|
---|
9 | EN D POST1
|
---|
10 | Q
|
---|
11 | ;
|
---|
12 | ;
|
---|
13 | POST1 ;- Add new entry to file 728.441
|
---|
14 | ; ECXREC is in format: code^short description
|
---|
15 | ;
|
---|
16 | ;
|
---|
17 | N ECXFDA,ECXERR,ECXCODE,ECXREC,I
|
---|
18 | D BMES^XPDUTL(">>> Adding entry to the NATIONAL CLINIC (#728.441) file...")
|
---|
19 | ;
|
---|
20 | ;- Get NATIONAL CLINIC record
|
---|
21 | F I=1:1 S ECXREC=$P($T(NATCLIN+I),";;",2) Q:ECXREC="QUIT" D
|
---|
22 | .;
|
---|
23 | .;- National Clinic code
|
---|
24 | .S ECXCODE=$P(ECXREC,"^")
|
---|
25 | .;
|
---|
26 | .;- Quit w/error message if entry already exists in file #728.441
|
---|
27 | .I $$FIND1^DIC(728.441,"","X",ECXCODE) D Q
|
---|
28 | ..D BMES^XPDUTL(">>>...."_ECXCODE_" "_$P(ECXREC,U,2)_" not added, entry already exists.")
|
---|
29 | ..D BMES^XPDUTL(">>> Delete entries and reinstall patch if entries were not created by a")
|
---|
30 | ..D MES^XPDUTL(">>> previous installation of this patch.")
|
---|
31 | .;
|
---|
32 | .;- Setup field values of new entry
|
---|
33 | .S ECXFDA(728.441,"+1,",.01)=ECXCODE
|
---|
34 | .S ECXFDA(728.441,"+1,",1)=$P(ECXREC,"^",2)
|
---|
35 | .;
|
---|
36 | .;- Add new entry to file #728.441
|
---|
37 | .D UPDATE^DIE("E","ECXFDA","","ECXERR")
|
---|
38 | .;
|
---|
39 | .I '$D(ECXERR) D BMES^XPDUTL(">>>...."_ECXCODE_" "_$P(ECXREC,U,2)_" added to file.")
|
---|
40 | .I $D(ECXERR) D BMES^XPDUTL(">>>....Unable to add "_ECXCODE_" "_$P(ECXREC,U,2)_" to file.")
|
---|
41 | ;
|
---|
42 | Q
|
---|
43 | ;
|
---|
44 | NATCLIN ;- Contains the NATIONAL CLINIC entry to be added
|
---|
45 | ;;614L^PROV L V09 614 MEMPHIS TN
|
---|
46 | ;;614M^PROV M V09 614 MEMPHIS TN
|
---|
47 | ;;614N^PROV N V09 614 MEMPHIS TN
|
---|
48 | ;;614O^PROV O V09 614 MEMPHIS TN
|
---|
49 | ;;614P^PROV P V09 614 MEMPHIS TN
|
---|
50 | ;;614Q^PROV Q V09 614 MEMPHIS TN
|
---|
51 | ;;614R^PROV R V09 614 MEMPHIS TN
|
---|
52 | ;;614S^PROV S V09 614 MEMPHIS TN
|
---|
53 | ;;614T^PROV T V09 614 MEMPHIS TN
|
---|
54 | ;;POLY^POLYTRAUMA
|
---|
55 | ;;QUIT
|
---|