source: WorldVistAEHR/trunk/r/DSS_EXTRACTS-ECX/ECX3P90P.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: 2.0 KB
RevLine 
[613]1ECX3P90P ;ALB/JAP - National Clinic Update ;DEC 06, 2005
2 ;;3.0;DSS EXTRACTS;**90**;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 CLEAN2
8 D MES^XPDUTL(" ")
9 D MES^XPDUTL(" ")
10 D MES^XPDUTL(" Adding entries to DSS LAB TESTS File (#727.2)...")
11 D MES^XPDUTL(" ")
12 S $P(^DD(727.21,.01,0),U,5)=""
13 F ECX=1:1 S ECXX=$P($T(NEW7272+ECX),";;",2) Q:ECXX="QUIT" D
14 .S ECXDA=$P(ECXX,";",1),ECXX=$P(ECXX,";",2)
15 .Q:'$D(^ECX(727.2,1))
16 .I $D(^ECX(727.2,1,1,0)),'$D(^ECX(727.2,1,1,ECXDA,0)) D
17 ..S TEST=$P(ECXX,U,1),SOURCE=$P(ECXX,U,2)
18 ..S DA(1)=1,DIC("P")=$P(^DD(727.2,1,0),U,2),DINUM=ECXDA
19 ..S X=TEST,DIC="^ECX(727.2,1,1,",DLAYGO=727.21,DIC(0)="LX",DIC("DR")="2///^S X=SOURCE"
20 ..K DD,DO D FILE^DICN K DLAYGO
21 ..D MESS
22 S $P(^DD(727.21,.01,0),U,5)="K X"
23 Q
24 ;
25MESS ;** Add message
26 N ECXADMSG
27 S ECXADMSG=" "_TEST
28 D MES^XPDUTL(ECXADMSG)
29 S ECXADMSG=" added as record #"_ECXDA_"."
30 D MES^XPDUTL(ECXADMSG)
31 D MES^XPDUTL(" ")
32 Q
33 ;
34MESS2 ;** Add message
35 N ECXADMSG
36 S ECXADMSG=" "_A1_" - "_A3
37 D MES^XPDUTL(ECXADMSG)
38 S ECXADMSG=" added as record #"_ECXDA_"."
39 D MES^XPDUTL(ECXADMSG)
40 D MES^XPDUTL(" ")
41 Q
42 ;
43CLEAN2 ;delete records added to file #727.2
44 N ECX,X,Y,DA,DIK,DIC,JJ,SS
45 D MES^XPDUTL(" ")
46 D MES^XPDUTL(" This subroutine will delete those entries in file #727.2,")
47 D MES^XPDUTL(" DSS LAB TESTS File, which were added by patch ECX*3.0*87.")
48 D MES^XPDUTL(" ")
49 ;I $E(IOST)="C" D Q:'Y
50 ;.S SS=22-$Y F JJ=1:1:SS W !
51 ;.K X,Y
52 ;.S DIR(0)="E" W ! D ^DIR K DIR
53 D MES^XPDUTL(" ")
54 D MES^XPDUTL(" Deleting...")
55 D MES^XPDUTL(" ")
56 F ECX=60:1:71 D
57 .S DA=ECX,DA(1)=1,DIK="^ECX(727.2,1,1,"
58 .D ^DIK
59 D MES^XPDUTL(" ")
60 D MES^XPDUTL(" Done.")
61 D MES^XPDUTL(" ")
62 Q
63 ;
64NEW7272 ;new records for file #727.2
65 ;;60;BILIRUBIN, DIRECT^B
66 ;;61;C REACTIVE PROTEIN^B
67 ;;62;C REACTIVE PROTEIN HS^B
68 ;;63;CALCIUM SERUM^B
69 ;;64;CARBON DIOXIDE^B
70 ;;65;CHLORIDE^B
71 ;;66;CREATININE EGFR^B
72 ;;67;B NATRIURETIC PEPTIDE^B
73 ;;68;O2 SATURATION^B
74 ;;69;PO2^B
75 ;;70;PCO2^B
76 ;;71;TOTAL PROTEIN^B
77 ;;QUIT
Note: See TracBrowser for help on using the repository browser.