Changeset 347 for ccr/trunk/p/CCRMEDS2.m


Ignore:
Timestamp:
Jan 30, 2009, 1:07:28 PM (15 years ago)
Author:
George Lilly
Message:

update to support parameters .. XPATGPLCCR(1,"LABSTART:T^LABLIMIT:T-5000")

File:
1 edited

Legend:

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

    r322 r347  
    4141 ; So, most of the info is going to get pulled from 52.41.
    4242 N MEDS,MAP
    43  K ^TMP($J)
     43 K ^TMP($J,"CCDCCR") ; PLEASE DON'T KILL ALL OF ^TMP($J) HERE!!!!
    4444 D PEN^PSO5241(DFN,"CCDCCR")
    4545 M MEDS=^TMP($J,"CCDCCR",DFN)
     
    8080 . ; MED(11) piece 1 has the IEN of the drug (file 50)
    8181 . ; IEN is field 31 in the drug file.
    82  . ; 
     82 . ;
    8383 . ; MEDIEN (node 11 in the returned output) might not necessarily be defined
    8484 . ; It is not defined when a dose in not chosen in CPRS. There is a long
     
    9797 . . ;
    9898 . . ; We use the VUID to look up the RxNorm in file 176.001; same idea.
    99  . . ; Get IEN first using $$FIND1^DIC, then get the RxNorm number by 
     99 . . ; Get IEN first using $$FIND1^DIC, then get the RxNorm number by
    100100 . . ; $$GET1^DIQ.
    101101 . . ;
    102  . . ; I get the RxNorm name and version from the RxNorm Sources (file 
     102 . . ; I get the RxNorm name and version from the RxNorm Sources (file
    103103 . . ; 176.003), by searching for "RXNORM", then get the data.
    104104 . . D NDF^PSS50(MEDIEN,,,,,"NDF")
    105105 . . N NDFDATA M NDFDATA=^TMP($J,"NDF",MEDIEN)
    106106 . . N NDFIEN S NDFIEN=$P(NDFDATA(20),U)
    107  . . N VAPROD S VAPROD=$P(NDFDATA(22),U) 
     107 . . N VAPROD S VAPROD=$P(NDFDATA(22),U)
    108108 . . ;
    109109 . . ; NDFIEN is not necessarily defined; it won't be if the drug
Note: See TracChangeset for help on using the changeset viewer.