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

    r1544 r1586  
    11C0CMED  ; WV/CCDCCR/GPL/SMH - CCR/CCD Medications Driver; Mar 23 2009
    2         ;;1.2;C0C;;May 11, 2012;Build 47
     2        ;;1.2;CCD/CCR GENERATION UTILITIES;;Oct 30, 2012;Build 50
    33        ; Copyright 2008,2009 George Lilly, University of Minnesota and Sam Habiel.
    4         ; Licensed under the terms of the GNU General Public License.
    5         ; See attached copy of the License.
    6         ;
    7         ; This program is free software; you can redistribute it and/or modify
    8         ; it under the terms of the GNU General Public License as published by
    9         ; the Free Software Foundation; either version 2 of the License, or
    10         ; (at your option) any later version.
    11         ;
     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        ;
    1210        ; This program is distributed in the hope that it will be useful,
    1311        ; but WITHOUT ANY WARRANTY; without even the implied warranty of
    1412        ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    15         ; GNU General Public License for more details.
    16         ; 
    17         ; You should have received a copy of the GNU General Public License along
    18         ; with this program; if not, write to the Free Software Foundation, Inc.,
    19         ; 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
     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/>.
     17        ;
    2018        ;
    2119        ; --Revision History
     
    5351        I $$RPMS^C0CUTIL() D RPMS QUIT
    5452        I ($$VISTA^C0CUTIL())!($$WV^C0CUTIL())!($$OV^C0CUTIL()) D VISTA QUIT
    55 RPMS   
     53RPMS    ;
    5654        ;D EXTRACT^C0CMED6(MEDXML,DFN,MEDOUTXML,C0CMFLAG) QUIT
    5755        N MEDCOUNT S MEDCOUNT=0
     
    6260        D EXTRACT^C0CMED6(MEDXML,DFN,HIST,.MEDCOUNT,C0CMFLAG) ; Historical OP Meds
    6361        D:+C0CMFLAG EXTRACT^C0CMED3(MEDXML,DFN,NVA,.MEDCOUNT) ; non-VA Meds
    64         I @HIST@(0)>0 D 
     62        I @HIST@(0)>0 D
    6563        . D CP^C0CXPATH(HIST,MEDOUTXML)
    6664        . W:$G(DEBUG) "HAS ACTIVE OP MEDS",!
    67         I @NVA@(0)>0 D 
    68         . I @HIST@(0)>0 D INSINNER^C0CXPATH(MEDOUTXML,NVA) 
     65        I @NVA@(0)>0 D
     66        . I @HIST@(0)>0 D INSINNER^C0CXPATH(MEDOUTXML,NVA)
    6967        . ;E  D CP^C0CXPATH(NVA,MEDOUTXML)
    7068        . W:$G(DEBUG) "HAS NON-VA MEDS",!
    7169        Q
    72 VISTA   
     70VISTA   ;
    7371        N MEDCOUNT S MEDCOUNT=0
    7472        K ^TMP($J,"MED")
     
    8886        D EXTRACT^C0CMED3(MEDXML,DFN,NVA,.MEDCOUNT) ; non-VA Meds GPL
    8987        D EXTRACT^C0CNMED4(MEDXML,DFN,IPUD,.MEDCOUNT) ; inpatient gpl
    90         I @HIST@(0)>0 D 
     88        I @HIST@(0)>0 D
    9189        . D CP^C0CXPATH(HIST,MEDOUTXML)
    9290        . W:$G(DEBUG) "HAS ACTIVE OP MEDS",!
    93         I @PEND@(0)>0 D 
     91        I @PEND@(0)>0 D
    9492        . I @HIST@(0)>0 D INSINNER^C0CXPATH(MEDOUTXML,PEND) ;Add Pending to Historical
    9593        . E  D CP^C0CXPATH(PEND,MEDOUTXML) ; No historical, just copy
    9694        . W:$G(DEBUG) "HAS OP PENDING MEDS",!
    97         I @NVA@(0)>0 D 
    98         . I @HIST@(0)>0!(@PEND@(0)>0) D INSINNER^C0CXPATH(MEDOUTXML,NVA) 
    99         . E  D CP^C0CXPATH(NVA,MEDOUTXML) 
     95        I @NVA@(0)>0 D
     96        . I @HIST@(0)>0!(@PEND@(0)>0) D INSINNER^C0CXPATH(MEDOUTXML,NVA)
     97        . E  D CP^C0CXPATH(NVA,MEDOUTXML)
    10098        . W:$G(DEBUG) "HAS NON-VA MEDS",!
    101         I @IPUD@(0)>0 D 
    102         . I @HIST@(0)>0!(@PEND@(0)>0)!(@NVA@(0)>0) D INSINNER^C0CXPATH(MEDOUTXML,IPUD) 
    103         . E  D CP^C0CXPATH(IPUD,MEDOUTXML) 
     99        I @IPUD@(0)>0 D
     100        . I @HIST@(0)>0!(@PEND@(0)>0)!(@NVA@(0)>0) D INSINNER^C0CXPATH(MEDOUTXML,IPUD)
     101        . E  D CP^C0CXPATH(IPUD,MEDOUTXML)
    104102        . W:$G(DEBUG) "HAS INPATIENT MEDS",!
    105103        N ZI
     
    112110        K @IPUD
    113111        Q
    114        
Note: See TracChangeset for help on using the changeset viewer.