source: WorldVistAEHR/trunk/r/DSS_EXTRACTS-ECX/ECX3P114.m@ 1800

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

initial load of WorldVistAEHR

File size: 1.9 KB
RevLine 
[613]1ECX3P114 ;ALB/JAP - National Clinic Update ;June 25, 2008
2 ;;3.0;DSS EXTRACTS;**114**;Dec 22, 1997;Build 1
3 ;
4ADD7272 ;** Add entries to file #727.2
5 ;ECXX is in format: ien;test^source
6 N ECX,ECXX,DA,DIC,DIE,DR,DINUM,X,Y,TEST,SOURCE
7 D MES^XPDUTL(" ")
8 D MES^XPDUTL(" ")
9 D MES^XPDUTL(" Adding entries to DSS LAB TESTS File (#727.2)...")
10 D MES^XPDUTL(" ")
11 S $P(^DD(727.21,.01,0),U,5)=""
12 F ECX=1:1 S ECXX=$P($T(NEW7272+ECX),";;",2) Q:ECXX="QUIT" D
13 .S ECXDA=$P(ECXX,";",1),ECXX=$P(ECXX,";",2)
14 .Q:'$D(^ECX(727.2,1))
15 .I $D(^ECX(727.2,1,1,0)),'$D(^ECX(727.2,1,1,ECXDA,0)) D
16 ..S TEST=$P(ECXX,U,1),SOURCE=$P(ECXX,U,2)
17 ..S DA(1)=1,DIC("P")=$P(^DD(727.2,1,0),U,2),DINUM=ECXDA
18 ..S X=TEST,DIC="^ECX(727.2,1,1,",DLAYGO=727.21,DIC(0)="LX",DIC("DR")="2///^S X=SOURCE"
19 ..K DD,DO D FILE^DICN K DLAYGO
20 ..D MESS
21 S $P(^DD(727.21,.01,0),U,5)="K X"
22 Q
23 ;
24MESS ;** Add message
25 N ECXADMSG
26 S ECXADMSG=" "_TEST
27 D MES^XPDUTL(ECXADMSG)
28 S ECXADMSG=" added as record #"_ECXDA_"."
29 D MES^XPDUTL(ECXADMSG)
30 D MES^XPDUTL(" ")
31 Q
32 ;
33MESS2 ;** Add message
34 N ECXADMSG
35 S ECXADMSG=" "_A1_" - "_A3
36 D MES^XPDUTL(ECXADMSG)
37 S ECXADMSG=" added as record #"_ECXDA_"."
38 D MES^XPDUTL(ECXADMSG)
39 D MES^XPDUTL(" ")
40 Q
41 ;
42CLEAN2 ;delete records added to file #727.2
43 N ECX,X,Y,DA,DIK,DIC,JJ,SS
44 D MES^XPDUTL(" ")
45 D MES^XPDUTL(" This subroutine will delete those entries in file #727.2,")
46 D MES^XPDUTL(" DSS LAB TESTS File, which were added by patch ECX*3.0*8.")
47 D MES^XPDUTL(" ")
48 I $E(IOST)="C" D Q:'Y
49 .S SS=22-$Y F JJ=1:1:SS W !
50 .K X,Y
51 .S DIR(0)="E" W ! D ^DIR K DIR
52 D MES^XPDUTL(" ")
53 D MES^XPDUTL(" Deleting...")
54 D MES^XPDUTL(" ")
55 F ECX=60:1:71 D
56 .S DA=ECX,DA(1)=1,DIK="^ECX(727.2,1,1,"
57 .D ^DIK
58 D MES^XPDUTL(" ")
59 D MES^XPDUTL(" Done.")
60 D MES^XPDUTL(" ")
61 Q
62 ;
63NEW7272 ;new records for file #727.2
64 ;;72;PHOSPHATE (SERUM)^B
65 ;;73;CEA (SERUM)^B
66 ;;74;PRO B NATRIURETIC PEPTIDE^B
67 ;;75;PHOSPHATE (SERUM)_PRE DIAL^B
68 ;;76;PHOSPHATE (SERUM)_POST DIAL^B
69 ;;QUIT
Note: See TracBrowser for help on using the repository browser.