Changeset 1336 for ccr/trunk/p/C0CRXNRD.m
- Timestamp:
- Jan 4, 2012, 9:39:08 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/C0CRXNRD.m
r597 r1336 41 41 . I '(C0CCOUNT#1000) U $P W C0CCOUNT," of ",LINES," read ",! U IO ; update every 1000 42 42 . N RXCUI,RXAUI,SAB,TTY,CODE,STR ; Fileman fields numbers below 43 . S RXCUI=$P(LINE,"|",1) 44 . S RXAUI=$P(LINE,"|",8) 45 . S SAB=$P(LINE,"|",12) 43 . S RXCUI=$P(LINE,"|",1) ; .01 44 . S RXAUI=$P(LINE,"|",8) ; 1 45 . S SAB=$P(LINE,"|",12) ; 2 46 46 . ; If the source is a restricted source, decide what to do based on what's asked. 47 47 . N SRCIEN S SRCIEN=$$FIND1^DIC(176.003,"","QX",SAB,"B") ; SrcIEN in RXNORM SOURCES file … … 50 50 . ; If user didn't ask to include restricted sources, and the source is restricted, then quit 51 51 . I 'INCRES,RESTRIC QUIT 52 . S TTY=$P(LINE,"|",13) 53 . S CODE=$P(LINE,"|",14) 54 . S STR=$P(LINE,"|",15) 52 . S TTY=$P(LINE,"|",13) ; 3 53 . S CODE=$P(LINE,"|",14) ; 4 54 . S STR=$P(LINE,"|",15) ; 5 55 55 . ; Remove embedded "^" 56 56 . S STR=$TR(STR,"^") … … 88 88 . ; Otherwise, we are good to go 89 89 . N RXCUI,NDC ; Fileman fields below 90 . S RXCUI=$P(LINE,"|",1) 91 . S NDC=$P(LINE,"|",11) 90 . S RXCUI=$P(LINE,"|",1) ; .01 91 . S NDC=$P(LINE,"|",11) ; 2 92 92 . ; Using classic call to update. 93 93 . N DIC,X,DA,DR … … 117 117 . S SF=$P(LINE,"|",6) ; 6 118 118 . S SVER=$P(LINE,"|",7) ; 7 119 . S SRL=$P(LINE,"|",14) 119 . S SRL=$P(LINE,"|",14) ; 14 120 120 . S SCIT=$P(LINE,"|",25) ; 25 121 121 . ; Remove embedded "^"
Note:
See TracChangeset
for help on using the changeset viewer.