Changeset 636 for FOIAVistA/tag/r/CLINICAL_REMINDERS-PXRM/PXRMETX.m
- Timestamp:
- Dec 4, 2009, 8:26:01 PM (14 years ago)
- 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 1 PXRMETX ; 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 3 19 ; 4 20 AUTO(ID,PURGE) ;Called from option scheduling (#19.2) … … 18 34 ;Purge Patient Lists 19 35 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")) 20 38 Q 21 39 ; … … 53 71 Q 54 72 ; 73 ACAD ;Auto CAD entry point 74 D AUTO("VOE DOQ-IT CAD EXTRACTION") 75 Q 76 ; 77 ADM ;Auto DM entry point 78 D AUTO("VOE DOQ-IT DM EXTRACTION") 79 Q 80 ; 81 AHF ;Auto HF entry point 82 D AUTO("VOE DOQ-IT HF EXTRACTION") 83 Q 84 ; 85 AHTN ;Auto HTN entry point 86 D AUTO("VOE DOQ-IT HTN EXTRACTION") 87 Q 88 ; 89 APC ;Auto PC entry point 90 D AUTO("VOE DOQ-IT PC EXTRACTION") 91 Q 92 ; 55 93 RUN(IEN,NEXT,MODE,PURGE) ;Process extract parameter 56 94 ; IEN is ien of Extract Parameter … … 62 100 ; 63 101 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 66 103 ;Initialise 67 104 K ^TMP("PXRMETX",$J),^TMP("PXRMETX1",$J) … … 83 120 ;Determine output name for patient list and extract summary 84 121 S XNAME=NAME_" "_YEAR_" "_PERIOD 85 S NAME=$$GETNAME(XNAME)86 S ITER=$P(NAME,"/",2)87 122 ;Process (single) Denominator rule into patient list 88 123 N SEQ,SUB … … 98 133 .S INTP=+$P(DATA,U,5) 99 134 .;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 102 136 .; 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) 104 138 .;Clear ^TMP lists created for rule 105 139 .D CLEAR^PXRMRULE(PXRMRULE,PXRMNODE) 106 140 .;Process reminders and finding rules 107 .;If include deceased patients is true then set the flag so reminders108 .;will be evaluated for deceased patients.109 .S PXRMIDOD=$S(INDP:1,1:0)110 141 .D REM^PXRMETXR(SUB,PXRMLIST,PXRMSTRT,PXRMSTOP,PARTYPE) 111 142 ; 112 143 ;Get the name 113 ;S NAME=$$GETNAME(XNAME)144 S NAME=$$GETNAME(XNAME) 114 145 ;Create extract summary entry 115 146 S FDA(810.3,"+1,",.01)=NAME … … 133 164 ;Transmit results 134 165 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) 135 168 ; 136 169 ;Update extract parameters
Note:
See TracChangeset
for help on using the changeset viewer.