Changeset 1586 for ccr/trunk/p/C0CRXN.m


Ignore:
Timestamp:
Oct 30, 2012, 1:11:02 PM (12 years ago)
Author:
Sam Habiel
Message:

Changed license to AGPL. Some clean-up for XINDEX

File:
1 edited

Legend:

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

    r1544 r1586  
    11C0CRXN    ; 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/>.
    1917        ;
    2018        W "This is the CCR RXNORM Utility Library ",!
     
    5351        . . ;D SETFDA("VUID",$$ZVALUE("VUID"))
    5452        . E  D SETFDA("VUID TEXT",$$ZVALUE("VUID TEXT"))
    55         . . ;ZWR C0CA
     53        . ;ZWR C0CA
    5654        . D GETN1^C0CRNF("C0CB",176.001,$$ZVALUE("VUID"),"VUID","ALL")
    5755        . I $$ZVALUE("RXCUI","C0CB")'="" D  ; RXNORM FOUND
     
    7472        . S C0CFDA(176.112,"+"_C0CZX_",",.01)=$$ZVALUE("VUID") ; NEW VUID RECORD
    7573        . D UPDATE^DIE("","C0CFDA")
    76         . I $D(^TMP("DIERR",$J)) U $P BREAK
     74        . I $D(^TMP("DIERR",$J)) S $EC=",U1,"
    7775        W "HAS RXN=",HASRXN,!
    7876        W "NO RXN=",NORXN,!
     
    150148        . S C0CFDA(176.113,"+"_C0CZX_",",.01)=C0CZX ; NEW VUID RECORD
    151149        . D UPDATE^DIE("","C0CFDA")
    152         . I $D(^TMP("DIERR",$J)) U $P BREAK
     150        . I $D(^TMP("DIERR",$J)) S $EC=",U1,"
    153151        W "VA MAPPING VUID COUNT: ",VAVCNT,!
    154152        W "VA MAPPING MISSING: ",VANO,!
     
    216214        Q
    217215        ;
     216        D
    218217        . I $$ZVALUE("MEDIATION CODE")="" D
    219218        . . S NORXN=NORXN+1 ;
     
    225224        . . ;D SETFDA("VUID",$$ZVALUE("VUID"))
    226225        . E  D SETFDA("VUID TEXT",$$ZVALUE("VUID TEXT"))
    227         . . ;ZWR C0CA
     226        . ;ZWR C0CA
    228227        . D GETN1^C0CRNF("C0CB",176.001,$$ZVALUE("VUID"),"VUID","ALL")
    229228        . I $$ZVALUE("RXCUI","C0CB")'="" D  ; RXNORM FOUND
     
    245244        . S C0CFDA(176.112,"+"_C0CZX_",",.01)=$$ZVALUE("VUID") ; NEW VUID RECORD
    246245        . D UPDATE^DIE("","C0CFDA")
    247         . I $D(^TMP("DIERR",$J)) U $P BREAK
     246        . I $D(^TMP("DIERR",$J)) S $EC=",U1,"
    248247        W "HAS RXN=",HASRXN,!
    249248        W "NO RXN=",NORXN,!
Note: See TracChangeset for help on using the changeset viewer.