Changed CCRSYS to C0CSYS
This commit is contained in:
parent
d4956f8cc3
commit
b4f64b1d3b
|
@ -147,8 +147,8 @@ SYSTEM(INXML,AIEN,AOID,OUTXML) ; PROCESS A SYSTEM ACTOR
|
||||||
S AMAP=$NA(^TMP($J,"AMAP"))
|
S AMAP=$NA(^TMP($J,"AMAP"))
|
||||||
K @AMAP
|
K @AMAP
|
||||||
S @AMAP@("ACTOROBJECTID")=AOID ;ACTOR OBJECT ID
|
S @AMAP@("ACTOROBJECTID")=AOID ;ACTOR OBJECT ID
|
||||||
S @AMAP@("ACTORINFOSYSNAME")=$$SYSNAME^CCRSYS
|
S @AMAP@("ACTORINFOSYSNAME")=$$SYSNAME^C0CSYS
|
||||||
S @AMAP@("ACTORINFOSYSVER")=$$SYSVER^CCRSYS
|
S @AMAP@("ACTORINFOSYSVER")=$$SYSVER^C0CSYS
|
||||||
S @AMAP@("ACTORINFOSYSSOURCEID")=AOID
|
S @AMAP@("ACTORINFOSYSSOURCEID")=AOID
|
||||||
D MAP^C0CXPATH(INXML,AMAP,OUTXML) ; MAP THE VARIABLE
|
D MAP^C0CXPATH(INXML,AMAP,OUTXML) ; MAP THE VARIABLE
|
||||||
Q
|
Q
|
||||||
|
|
|
@ -93,7 +93,7 @@ ANALYZE(BEGDFN,DFNCNT,APARMS) ; RIM COHERANCE ANALYSIS ROUTINE
|
||||||
. D CPUSH(.CATNAME,RIMBASE,"RIMTBL",RIMDFN,RATTR) ; ADD TO CATEGORY
|
. D CPUSH(.CATNAME,RIMBASE,"RIMTBL",RIMDFN,RATTR) ; ADD TO CATEGORY
|
||||||
. W "CATEGORY NAME: ",CATNAME,!
|
. W "CATEGORY NAME: ",CATNAME,!
|
||||||
. ;
|
. ;
|
||||||
. F S RIMDFN=$O(^DPT(RIMDFN)) Q:'$$PTST^CCRSYS(RIMDFN) ; NEXT PATIENT
|
. F S RIMDFN=$O(^DPT(RIMDFN)) Q:'$$PTST^C0CSYS(RIMDFN) ; NEXT PATIENT
|
||||||
. ; PTST TESTS TO SEE IF PATIENT WAS MERGED
|
. ; PTST TESTS TO SEE IF PATIENT WAS MERGED
|
||||||
. ; IF CCRTEST=0, PTST WILL CHECK TO SEE IF THIS IS A TEST PATIENT
|
. ; IF CCRTEST=0, PTST WILL CHECK TO SEE IF THIS IS A TEST PATIENT
|
||||||
. ; AND WE SKIP IT
|
. ; AND WE SKIP IT
|
||||||
|
|
|
@ -0,0 +1,59 @@
|
||||||
|
C0CSYS ;WV/C0C/SMH - Routine to Get EHR System Information;6JUL2008
|
||||||
|
;;0.1;C0C;;;
|
||||||
|
; Copyright 2008 WorldVistA. Licensed under the terms of the GNU
|
||||||
|
; General Public License See attached copy of the License.
|
||||||
|
;
|
||||||
|
; This program is free software; you can redistribute it and/or modify
|
||||||
|
; it under the terms of the GNU General Public License as published by
|
||||||
|
; the Free Software Foundation; either version 2 of the License, or
|
||||||
|
; (at your option) any later version.
|
||||||
|
;
|
||||||
|
; This program is distributed in the hope that it will be useful,
|
||||||
|
; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
; GNU General Public License for more details.
|
||||||
|
;
|
||||||
|
; You should have received a copy of the GNU General Public License along
|
||||||
|
; with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
; 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
;
|
||||||
|
W "Enter at appropriate points." Q
|
||||||
|
;
|
||||||
|
; Originally, I was going to use VEPERVER, but VEPERVER
|
||||||
|
; actually kills ^TMP($J), outputs it to the screen in a user-friendly
|
||||||
|
; manner (press any key to continue),
|
||||||
|
; and is really a very half finished routine
|
||||||
|
;
|
||||||
|
; So for now, I am hard-coding the values.
|
||||||
|
;
|
||||||
|
SYSNAME() ;Get EHR System Name; PUBLIC; Extrinsic
|
||||||
|
Q:$G(DUZ("AG"))="I" "RPMS"
|
||||||
|
Q "WorldVistA EHR/VOE"
|
||||||
|
;
|
||||||
|
SYSVER() ;Get EHR System Version; PUBLIC; Extrinsic
|
||||||
|
Q "1.0"
|
||||||
|
;
|
||||||
|
PTST(DFN) ;TEST TO SEE IF PATIENT MERGED OR A TEST PATIENT
|
||||||
|
; DFN = IEN of the Patient to be tested
|
||||||
|
; 1 = Merged or Test Patient
|
||||||
|
; 0 = Non-test Patient
|
||||||
|
;
|
||||||
|
I DFN="" Q 0 ; BAD DFN PASSED
|
||||||
|
I $D(^DPT(DFN,-9)) Q 1 ;This patient has been merged
|
||||||
|
I $G(^DPT(DFN,0))="" Q 1 ;Missing zeroth node <---add
|
||||||
|
;
|
||||||
|
I '$D(CCRTEST) S CCRTEST=1 ; DEFAULT IS THAT WE ARE TESTING
|
||||||
|
I CCRTEST Q 0 ; IF WE ARE TESTING, DON'T REJECT TEST PATIENTS
|
||||||
|
N DIERR,DATA
|
||||||
|
I $$TESTPAT^VADPT(DFN) Q 1 ; QUIT IF IT'S A VA TEST PATIENT
|
||||||
|
S DATA=+$$GET1^DIQ(2,DFN_",",.6,"I") ;Test Patient Indicator
|
||||||
|
; 1 = Test Patient
|
||||||
|
; 0 = Non-test Patient
|
||||||
|
I DATA Q DATA
|
||||||
|
S DATA=$$GET1^DIQ(2,DFN_",",.09,"I") ;SSN test
|
||||||
|
D CLEAN^DILF
|
||||||
|
I "Pp"[$E(DATA,$L(DATA),$L(DATA)) Q 0 ;Allow Pseudo SSN
|
||||||
|
I $E(DATA,1,3)="000" Q 1
|
||||||
|
I $E(DATA,1,3)="666" Q 1
|
||||||
|
Q 0
|
||||||
|
;
|
58
p/CCRSYS.m
58
p/CCRSYS.m
|
@ -1,58 +0,0 @@
|
||||||
CCRSYS ;CCDCCR/SMH - Routine to Get EHR System Information;6JUL2008
|
|
||||||
;;0.1;CCDCCR;;;
|
|
||||||
;Copyright 2008 WorldVistA. Licensed under the terms of the GNU
|
|
||||||
;General Public License See attached copy of the License.
|
|
||||||
;
|
|
||||||
;This program is free software; you can redistribute it and/or modify
|
|
||||||
;it under the terms of the GNU General Public License as published by
|
|
||||||
;the Free Software Foundation; either version 2 of the License, or
|
|
||||||
;(at your option) any later version.
|
|
||||||
;
|
|
||||||
;This program is distributed in the hope that it will be useful,
|
|
||||||
;but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
;GNU General Public License for more details.
|
|
||||||
;
|
|
||||||
;You should have received a copy of the GNU General Public License along
|
|
||||||
;with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
;51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
;
|
|
||||||
W "Enter at appropriate points." Q
|
|
||||||
;
|
|
||||||
; Originally, I was going to use VEPERVER, but VEPERVER
|
|
||||||
; actually kills ^TMP($J), outputs it to the screen in a user-friendly
|
|
||||||
; manner (press any key to continue),
|
|
||||||
; and is really a very half finished routine
|
|
||||||
;
|
|
||||||
; So for now, I am hard-coding the values.
|
|
||||||
;
|
|
||||||
SYSNAME() ;Get EHR System Name; PUBLIC; Extrinsic
|
|
||||||
Q "WorldVistA EHR/VOE"
|
|
||||||
;
|
|
||||||
SYSVER() ;Get EHR System Version; PUBLIC; Extrinsic
|
|
||||||
Q "1.0"
|
|
||||||
;
|
|
||||||
PTST(DFN) ;TEST TO SEE IF PATIENT MERGED OR A TEST PATIENT
|
|
||||||
; DFN = IEN of the Patient to be tested
|
|
||||||
; 1 = Merged or Test Patient
|
|
||||||
; 0 = Non-test Patient
|
|
||||||
;
|
|
||||||
I DFN="" Q 0 ; BAD DFN PASSED
|
|
||||||
I $D(^DPT(DFN,-9)) Q 1 ;This patient has been merged
|
|
||||||
I $G(^DPT(DFN,0))="" Q 1 ;Missing zeroth node <---add
|
|
||||||
;
|
|
||||||
I '$D(CCRTEST) S CCRTEST=1 ; DEFAULT IS THAT WE ARE TESTING
|
|
||||||
I CCRTEST Q 0 ; IF WE ARE TESTING, DON'T REJECT TEST PATIENTS
|
|
||||||
N DIERR,DATA
|
|
||||||
I $$TESTPAT^VADPT(DFN) Q 1 ; QUIT IF IT'S A VA TEST PATIENT
|
|
||||||
S DATA=+$$GET1^DIQ(2,DFN_",",.6,"I") ;Test Patient Indicator
|
|
||||||
; 1 = Test Patient
|
|
||||||
; 0 = Non-test Patient
|
|
||||||
I DATA Q DATA
|
|
||||||
S DATA=$$GET1^DIQ(2,DFN_",",.09,"I") ;SSN test
|
|
||||||
D CLEAN^DILF
|
|
||||||
I "Pp"[$E(DATA,$L(DATA),$L(DATA)) Q 0 ;Allow Pseudo SSN
|
|
||||||
I $E(DATA,1,3)="000" Q 1
|
|
||||||
I $E(DATA,1,3)="666" Q 1
|
|
||||||
Q 0
|
|
||||||
;
|
|
Loading…
Reference in New Issue