Changeset 347 for ccr/trunk/p/CCRMEDS3.m
- Timestamp:
- Jan 30, 2009, 1:07:28 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/CCRMEDS3.m
r322 r347 38 38 ; 39 39 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 41 42 D GETS^DIQ(55,DFN,"52.2*","IE","NVA") ; Output in NVA in FDA array format. 42 43 ; If NVA does not exist, then patient has no non-VA meds … … 90 91 . . ; 91 92 . . ; 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 93 94 . . ; $$GET1^DIQ. 94 95 . . ; 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 96 97 . . ; 176.003), by searching for "RXNORM", then get the data. 97 98 . . D NDF^PSS50(MEDIEN,,,,,"NDF") 98 99 . . N NDFDATA M NDFDATA=^TMP($J,"NDF",MEDIEN) 99 100 . . 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) 101 102 . . ; 102 103 . . ; NDFIEN is not necessarily defined; it won't be if the drug … … 130 131 . . ; These can be obtained using NDF^PSS50 (IEN,,,,,"SUBSCRIPT") 131 132 . . ; Documented in the same manual; executed above. 132 . . ; 133 . . ; 133 134 . . ; If a drug was not matched to NDF, then the NDFIEN is gonna be "" 134 135 . . ; and this will crash the call. So...
Note:
See TracChangeset
for help on using the changeset viewer.