source: WorldVistAEHR/trunk/r/DSS_EXTRACTS-ECX/ECX3P87P.m@ 1042

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

initial load of WorldVistAEHR

File size: 2.0 KB
Line 
1ECX3P87P ;ALB/JAP - National Clinic Update ;July 06, 2005
2 ;;3.0;DSS EXTRACTS;**87**;Dec 22, 1997
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=13:1:31 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 ;;60;Bilirubin, Direct^B
65 ;;61;C Reactive Protein^B
66 ;;62;C Reactive Protein HS^B
67 ;;63;Calcium, Serum^B
68 ;;64;Carbon Dioxide^B
69 ;;65;Chloride^B
70 ;;66;Creatinine eGFR^B
71 ;;67;B Natriuretic Peptide^B
72 ;;68;O2 Saturation^B
73 ;;69;PO2^B
74 ;;70;PCO2^B
75 ;;71;Total Protein^B
76 ;;QUIT
Note: See TracBrowser for help on using the repository browser.