Changeset 1586 for ccr/trunk/p/C0CRXN.m
- Timestamp:
- Oct 30, 2012, 1:11:02 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/C0CRXN.m
r1544 r1586 1 1 C0CRXN ; CCDCCR/GPL - CCR RXN utilities; 12/6/08 2 ;;1.2;C0C;;May 11, 2012;Build 47 3 ;Copyright 2009 George Lilly. Licensed under the terms of the GNU 4 ;General Public License See attached copy of the License. 5 ; 6 ;This program is free software; you can redistribute it and/or modify 7 ;it under the terms of the GNU General Public License as published by 8 ;the Free Software Foundation; either version 2 of the License, or 9 ;(at your option) any later version. 10 ; 11 ;This program is distributed in the hope that it will be useful, 12 ;but WITHOUT ANY WARRANTY; without even the implied warranty of 13 ;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 ;GNU General Public License for more details. 15 ; 16 ;You should have received a copy of the GNU General Public License along 17 ;with this program; if not, write to the Free Software Foundation, Inc., 18 ;51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 2 ;;1.2;CCD/CCR GENERATION UTILITIES;;Oct 30, 2012;Build 50 3 ;Copyright 2009 George Lilly. 4 ; 5 ; This program is free software: you can redistribute it and/or modify 6 ; it under the terms of the GNU Affero General Public License as 7 ; published by the Free Software Foundation, either version 3 of the 8 ; License, or (at your option) any later version. 9 ; 10 ; This program is distributed in the hope that it will be useful, 11 ; but WITHOUT ANY WARRANTY; without even the implied warranty of 12 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 ; GNU Affero General Public License for more details. 14 ; 15 ; You should have received a copy of the GNU Affero General Public License 16 ; along with this program. If not, see <http://www.gnu.org/licenses/>. 19 17 ; 20 18 W "This is the CCR RXNORM Utility Library ",! … … 53 51 . . ;D SETFDA("VUID",$$ZVALUE("VUID")) 54 52 . E D SETFDA("VUID TEXT",$$ZVALUE("VUID TEXT")) 55 . .;ZWR C0CA53 . ;ZWR C0CA 56 54 . D GETN1^C0CRNF("C0CB",176.001,$$ZVALUE("VUID"),"VUID","ALL") 57 55 . I $$ZVALUE("RXCUI","C0CB")'="" D ; RXNORM FOUND … … 74 72 . S C0CFDA(176.112,"+"_C0CZX_",",.01)=$$ZVALUE("VUID") ; NEW VUID RECORD 75 73 . D UPDATE^DIE("","C0CFDA") 76 . I $D(^TMP("DIERR",$J)) U $P BREAK74 . I $D(^TMP("DIERR",$J)) S $EC=",U1," 77 75 W "HAS RXN=",HASRXN,! 78 76 W "NO RXN=",NORXN,! … … 150 148 . S C0CFDA(176.113,"+"_C0CZX_",",.01)=C0CZX ; NEW VUID RECORD 151 149 . D UPDATE^DIE("","C0CFDA") 152 . I $D(^TMP("DIERR",$J)) U $P BREAK150 . I $D(^TMP("DIERR",$J)) S $EC=",U1," 153 151 W "VA MAPPING VUID COUNT: ",VAVCNT,! 154 152 W "VA MAPPING MISSING: ",VANO,! … … 216 214 Q 217 215 ; 216 D 218 217 . I $$ZVALUE("MEDIATION CODE")="" D 219 218 . . S NORXN=NORXN+1 ; … … 225 224 . . ;D SETFDA("VUID",$$ZVALUE("VUID")) 226 225 . E D SETFDA("VUID TEXT",$$ZVALUE("VUID TEXT")) 227 . .;ZWR C0CA226 . ;ZWR C0CA 228 227 . D GETN1^C0CRNF("C0CB",176.001,$$ZVALUE("VUID"),"VUID","ALL") 229 228 . I $$ZVALUE("RXCUI","C0CB")'="" D ; RXNORM FOUND … … 245 244 . S C0CFDA(176.112,"+"_C0CZX_",",.01)=$$ZVALUE("VUID") ; NEW VUID RECORD 246 245 . D UPDATE^DIE("","C0CFDA") 247 . I $D(^TMP("DIERR",$J)) U $P BREAK246 . I $D(^TMP("DIERR",$J)) S $EC=",U1," 248 247 W "HAS RXN=",HASRXN,! 249 248 W "NO RXN=",NORXN,!
Note:
See TracChangeset
for help on using the changeset viewer.