Ignore:
Timestamp:
Dec 4, 2009, 8:26:01 PM (14 years ago)
Author:
George Lilly
Message:

WorldVistAEHR overlayed on FOIAVistA

Location:
FOIAVistA/tag/r
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • FOIAVistA/tag/r/CLINICAL_REMINDERS-PXRM/PXRMETX.m

    r628 r636  
    1 PXRMETX ; SLC/PJH - Run Extract for QUERI ;07/10/2007
    2  ;;2.0;CLINICAL REMINDERS;**4,6**;Feb 04, 2005;Build 123
     1PXRMETX ; SLC/PJH - Run Extract for QUERI ;1/22/07  21:25
     2 ;;2.0;CLINICAL REMINDERS;**4,7**;Feb 04, 2005;Build 14
     3 ; Modified from FOIA VISTA,
     4 ; Copyright (C) 2007 WorldVistA
     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
     17 ; along with this program; if not, write to the Free Software
     18 ; Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
    319 ;
    420AUTO(ID,PURGE) ;Called from option scheduling (#19.2)
     
    1834 ;Purge Patient Lists
    1935 D PRGPL^PXRMETXU
     36 ;Call the DOQ-IT HL7 generating routine
     37 ;D EXTRACT^VEPER7EX(VDATA(810.2,IEN_",",3,"I"),VDATA(810.2,IEN_",",5,"I"))
    2038 Q
    2139 ;
     
    5371 Q
    5472 ;
     73ACAD ;Auto CAD entry point
     74 D AUTO("VOE DOQ-IT CAD EXTRACTION")
     75 Q
     76 ;
     77ADM ;Auto DM entry point
     78 D AUTO("VOE DOQ-IT DM EXTRACTION")
     79 Q
     80 ;
     81AHF ;Auto HF entry point
     82 D AUTO("VOE DOQ-IT HF EXTRACTION")
     83 Q
     84 ;
     85AHTN ;Auto HTN entry point
     86 D AUTO("VOE DOQ-IT HTN EXTRACTION")
     87 Q
     88 ;
     89APC ;Auto PC entry point
     90 D AUTO("VOE DOQ-IT PC EXTRACTION")
     91 Q
     92 ;
    5593RUN(IEN,NEXT,MODE,PURGE) ;Process extract parameter
    5694 ; IEN is ien of Extract Parameter
     
    62100 ;
    63101 N CLASS,FDA,FDAIEN,MSG
    64  N PXRMIDOD,PXRMLIST,PXRMNODE,PXRMRULE,PXRMSTRT,PXRMXIEN,PATCREAT,XNAME
    65  N ITER
     102 N PXRMLIST,PXRMNODE,PXRMRULE,PXRMSTRT,PXRMXIEN,PATCREAT,XNAME
    66103 ;Initialise
    67104 K ^TMP("PXRMETX",$J),^TMP("PXRMETX1",$J)
     
    83120 ;Determine output name for patient list and extract summary
    84121 S XNAME=NAME_" "_YEAR_" "_PERIOD
    85  S NAME=$$GETNAME(XNAME)
    86  S ITER=$P(NAME,"/",2)
    87122 ;Process (single) Denominator rule into patient list
    88123 N SEQ,SUB
     
    98133 .S INTP=+$P(DATA,U,5)
    99134 .;Create new patient list
    100  .I ITER'="" S LIST=LIST_"/"_ITER
    101  .S PATCREAT="Y",PXRMLIST=$$CRLST^PXRMRUL1(LIST,CLASS) Q:'PXRMLIST
     135 .S PATCREAT="Y",PXRMLIST=$$CRLST^PXRMRULE(LIST,CLASS) Q:'PXRMLIST
    102136 .;
    103  .D START^PXRMRULE(PXRMRULE,PXRMLIST,PXRMNODE,PXRMSTRT,PXRMSTOP,IEN,YEAR,PERIOD,INDP,INTP,ITER)
     137 .D START^PXRMRULE(PXRMRULE,PXRMLIST,PXRMNODE,PXRMSTRT,PXRMSTOP,IEN,YEAR,PERIOD,INDP,INTP)
    104138 .;Clear ^TMP lists created for rule
    105139 .D CLEAR^PXRMRULE(PXRMRULE,PXRMNODE)
    106140 .;Process reminders and finding rules
    107  .;If include deceased patients is true then set the flag so reminders
    108  .;will be evaluated for deceased patients.
    109  .S PXRMIDOD=$S(INDP:1,1:0)
    110141 .D REM^PXRMETXR(SUB,PXRMLIST,PXRMSTRT,PXRMSTOP,PARTYPE)
    111142 ;
    112143 ;Get the name
    113  ;S NAME=$$GETNAME(XNAME)
     144 S NAME=$$GETNAME(XNAME)
    114145 ;Create extract summary entry
    115146 S FDA(810.3,"+1,",.01)=NAME
     
    133164 ;Transmit results
    134165 I (MODE=0)!(MODE=2) D TRANS(FDAIEN(1))
     166 ;
     167 I $$GET^XPAR("SYS","DOQ-IT")="YES" D EXTRACT^VEPER7EX(VDATA(810.2,IEN_",",3,"I"),VDATA(810.2,IEN_",",5,"I"),PXRMLIST)
    135168 ;
    136169 ;Update extract parameters
Note: See TracChangeset for help on using the changeset viewer.