Changeset 347 for ccr/trunk/p/CCRMEDS2.m
- Timestamp:
- Jan 30, 2009, 1:07:28 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/CCRMEDS2.m
r322 r347 41 41 ; So, most of the info is going to get pulled from 52.41. 42 42 N MEDS,MAP 43 K ^TMP($J )43 K ^TMP($J,"CCDCCR") ; PLEASE DON'T KILL ALL OF ^TMP($J) HERE!!!! 44 44 D PEN^PSO5241(DFN,"CCDCCR") 45 45 M MEDS=^TMP($J,"CCDCCR",DFN) … … 80 80 . ; MED(11) piece 1 has the IEN of the drug (file 50) 81 81 . ; IEN is field 31 in the drug file. 82 . ; 82 . ; 83 83 . ; MEDIEN (node 11 in the returned output) might not necessarily be defined 84 84 . ; It is not defined when a dose in not chosen in CPRS. There is a long … … 97 97 . . ; 98 98 . . ; 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 100 100 . . ; $$GET1^DIQ. 101 101 . . ; 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 103 103 . . ; 176.003), by searching for "RXNORM", then get the data. 104 104 . . D NDF^PSS50(MEDIEN,,,,,"NDF") 105 105 . . N NDFDATA M NDFDATA=^TMP($J,"NDF",MEDIEN) 106 106 . . 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) 108 108 . . ; 109 109 . . ; NDFIEN is not necessarily defined; it won't be if the drug
Note:
See TracChangeset
for help on using the changeset viewer.