Changeset 311 for ccr


Ignore:
Timestamp:
Dec 26, 2008, 7:35:54 PM (16 years ago)
Author:
Sam Habiel
Message:

more fixes on C0CRXNRD

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ccr/trunk/p/C0CRXNRD.m

    r310 r311  
    4040 Q
    4141 ;
    42 READNDC ; Open and read NDC/RxNorm/VANDF relationship file: RXNSAT.RRF
    43  N PATH S PATH="/home/sakura/Desktop/RxNorm/rrf/"
    44  N FILENAME S FILENAME="RXNSAB.RRF"
     42READNDC(PATH) ; Open and read NDC/RxNorm/VANDF relationship file: RXNSAT.RRF
     43 I PATH="" QUIT
     44 N FILENAME S FILENAME="RXNSAT.RRF"
    4545 D OPEN^%ZISH("FILE",PATH,FILENAME,"R")
    4646 IF POP W "Error reading file..., Please check...",! BREAK
    4747 F I=1:1 Q:$$STATUS^%ZISH  D
     48 . U IO
    4849 . N LINE R LINE
    4950 . IF $$STATUS^%ZISH QUIT
     
    5960 . N DIC,X,DA,DR
    6061 . K DO
    61  . S DIC="^C0CRXN(""RXN"",""NDC"",",DIC(0)="F",X=RXCUI
     62 . S DIC="^C0CRXN(176.002,",DIC(0)="F",X=RXCUI
    6263 . D FILE^DICN
    6364 . I Y<1 U $P W !,"THERE IS TROUBLE IN RIVER CITY",! BREAK
     
    6667 . D ^DIE
    6768 D CLOSE^%ZISH("FILE")
     69 U $P ; reset back to principle device
    6870
    6971
Note: See TracChangeset for help on using the changeset viewer.