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

    r1544 r1586  
    11C0CMED4         ; WV/CCDCCR/SMH - CCR/CCD PROCESSING FOR MEDICATIONS - Inpatient Meds/Unit Dose ;10/13/08 ; 5/10/12 2:38pm
    2         ;;1.2;C0C;;May 11, 2012;Build 47
    3         ; Copyright 2008 WorldVistA.  Licensed under the terms of the GNU
    4         ; General Public License See attached copy of the License.
     2        ;;1.2;CCD/CCR GENERATION UTILITIES;;Oct 30, 2012;Build 50
     3        ; Copyright 2008 WorldVistA. 
    54        ;
    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.
     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.
    109        ;
    1110        ; This program is distributed in the hope that it will be useful,
    1211        ; but WITHOUT ANY WARRANTY; without even the implied warranty of
    1312        ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    14         ; GNU General Public License for more details.
     13        ; GNU Affero General Public License for more details.
    1514        ;
    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.
     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 "NO ENTRY FROM TOP",!
     
    4947        ; Otherwise, we go on...
    5048        M MEDS=^TMP($J,"UD")
    51         I DEBUG ZWR MEDS
    52         S MEDMAP=$NA(^TMP("GPLCCR",$J,"MEDMAP")) 
     49        ; I DEBUG ZWR MEDS
     50        S MEDMAP=$NA(^TMP("GPLCCR",$J,"MEDMAP"))
    5351        N MEDCOUNT S MEDCOUNT=@MEDMAP@(0) ; We already have meds in the array
    54         N I S I=0 
     52        N I S I=0
    5553        F  S I=$O(MEDS("B",I)) Q:'I  D  ; For each medication in B index
    5654        . N MED M MED=MEDS(I)
     
    6159        . I DEBUG W "RXIEN IS ",RXIEN,!
    6260        . I DEBUG W "MAP= ",MAP,!
    63         . S @MAP@("MEDOBJECTID")="MED_INPATIENT_UD"_RXIEN 
     61        . S @MAP@("MEDOBJECTID")="MED_INPATIENT_UD"_RXIEN
    6462        . S @MAP@("MEDISSUEDATETXT")="Order Date"
    6563        . S @MAP@("MEDISSUEDATE")=$$FMDTOUTC^C0CUTIL($P(MED(27),U),"DT")
     
    7068        . S @MAP@("MEDTYPETEXT")="Medication"
    7169        . S @MAP@("MEDDETAILUNADORNED")=""  ; Leave blank, field has its uses
    72         . S @MAP@("MEDSTATUSTEXT")="ACTIVE" 
     70        . S @MAP@("MEDSTATUSTEXT")="ACTIVE"
    7371        . S @MAP@("MEDSOURCEACTORID")="ACTORPROVIDER_"_$P(MED(1),U)
    7472        . S @MAP@("MEDPRODUCTNAMETEXT")=MED("DDRUG",1,.01)
     
    114112        . . N QTYDATA M QTYDATA=^TMP($J,"QTY",MEDIEN)
    115113        . . S @MAP@("MEDQUANTITYUNIT")=QTYDATA(14.5)
    116           E  S @MAP@("MEDQUANTITYUNIT")=""
     114        . E  S @MAP@("MEDQUANTITYUNIT")=""
    117115        . ;
    118116        . ; --- START OF DIRECTIONS ---
     
    126124        . S @MAP@("M","DIRECTIONS",1,"MEDDOSEVALUE")=""
    127125        . S @MAP@("M","DIRECTIONS",1,"MEDDOSEUNIT")=""
    128         . S @MAP@("M","DIRECTIONS",1,"MEDRATEVALUE")="" 
    129         . S @MAP@("M","DIRECTIONS",1,"MEDRATEUNIT")="" 
    130         . S @MAP@("M","DIRECTIONS",1,"MEDVEHICLETEXT")="" 
     126        . S @MAP@("M","DIRECTIONS",1,"MEDRATEVALUE")=""
     127        . S @MAP@("M","DIRECTIONS",1,"MEDRATEUNIT")=""
     128        . S @MAP@("M","DIRECTIONS",1,"MEDVEHICLETEXT")=""
    131129        . S @MAP@("M","DIRECTIONS",1,"MEDDIRECTIONROUTETEXT")=""
    132130        . S @MAP@("M","DIRECTIONS",1,"MEDFREQUENCYVALUE")=""
     
    143141        . S @MAP@("M","DIRECTIONS",1,"MEDPROBLEMCODINGVERSION")=""
    144142        . S @MAP@("M","DIRECTIONS",1,"MEDPROBLEMSOURCEACTORID")=""
    145         . S @MAP@("M","DIRECTIONS",1,"MEDSTOPINDICATOR")="" 
     143        . S @MAP@("M","DIRECTIONS",1,"MEDSTOPINDICATOR")=""
    146144        . S @MAP@("M","DIRECTIONS",1,"MEDDIRSEQ")=""
    147145        . S @MAP@("M","DIRECTIONS",1,"MEDMULDIRMOD")=""
Note: See TracChangeset for help on using the changeset viewer.