Changeset 347 for ccr/trunk/p/CCRMEDS3.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/CCRMEDS3.m

    r322 r347  
    3838 ;
    3939 N MEDS,MAP
    40  K ^TMP($J),NVA
     40 K ^TMP($J,"CCDCCR") ; PLEASE DON'T KILL ALL OF ^TMP($J) HERE!!!!
     41 K NVA
    4142 D GETS^DIQ(55,DFN,"52.2*","IE","NVA") ; Output in NVA in FDA array format.
    4243 ; If NVA does not exist, then patient has no non-VA meds
     
    9091 . . ;
    9192 . . ; We use the VUID to look up the RxNorm in file 176.001; same idea.
    92  . . ; Get IEN first using $$FIND1^DIC, then get the RxNorm number by 
     93 . . ; Get IEN first using $$FIND1^DIC, then get the RxNorm number by
    9394 . . ; $$GET1^DIQ.
    9495 . . ;
    95  . . ; I get the RxNorm name and version from the RxNorm Sources (file 
     96 . . ; I get the RxNorm name and version from the RxNorm Sources (file
    9697 . . ; 176.003), by searching for "RXNORM", then get the data.
    9798 . . D NDF^PSS50(MEDIEN,,,,,"NDF")
    9899 . . N NDFDATA M NDFDATA=^TMP($J,"NDF",MEDIEN)
    99100 . . N NDFIEN S NDFIEN=$P(NDFDATA(20),U)
    100  . . N VAPROD S VAPROD=$P(NDFDATA(22),U) 
     101 . . N VAPROD S VAPROD=$P(NDFDATA(22),U)
    101102 . . ;
    102103 . . ; NDFIEN is not necessarily defined; it won't be if the drug
     
    130131 . . ; These can be obtained using NDF^PSS50 (IEN,,,,,"SUBSCRIPT")
    131132 . . ; Documented in the same manual; executed above.
    132  . . ; 
     133 . . ;
    133134 . . ; If a drug was not matched to NDF, then the NDFIEN is gonna be ""
    134135 . . ; and this will crash the call. So...
Note: See TracChangeset for help on using the changeset viewer.