[40] | 1 | CCRDPTT ; Unit Tester...
|
---|
[69] | 2 | ;
|
---|
| 3 | ;Copyright 2008 WorldVistA. Licensed under the terms of the GNU
|
---|
| 4 | ;General Public License See attached copy of the License.
|
---|
| 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 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.
|
---|
[40] | 19 | ; Get the functions in the routine using Rick's routine
|
---|
| 20 | ; STATS(0)="CCRDPT^3080626.190908^396^14094^6414499860"
|
---|
| 21 | ; STATS(1,0)="CCRDPT ;CCRCCD/SMH - Routines to Extract Patient Data for CCDCCR; 6/15/08"
|
---|
| 22 | ; STATS(2,0)=" ;;0.1;CCRCCD;;Jun 15, 2008;"
|
---|
| 23 | ; STATS(84,0)="INIT(DFN) ; Copy DFN global to a local variable; PUBLIC"
|
---|
| 24 | ; STATS(93,0)="DESTROY ; Kill local variable; PUBLIC"
|
---|
| 25 | ; STATS(99,0)="FAMILY() ; Family Name; PUBLIC; Extrinsic"
|
---|
| 26 | ; STATS(105,0)="GIVEN() ; Given Name; PUBLIC; Extrinsic"
|
---|
| 27 | ; STATS(111,0)="MIDDLE() ; Middle Name; PUBLIC; Extrinsic "
|
---|
| 28 | ; etc.
|
---|
[69] | 29 |
|
---|
[40] | 30 | ; Load Routine Entry points; We get a sweeeeeet array
|
---|
| 31 | D ANALYZE^ARJTXRD("CCRDPT",.OUT) ; Analyze a routine in the directory
|
---|
| 32 | N X,Y
|
---|
| 33 | ; Select Patient
|
---|
| 34 | S DIC=2,DIC(0)="AEMQ" D ^DIC
|
---|
[23] | 35 |
|
---|
[40] | 36 | W "You have selected patient "_Y,!!
|
---|
| 37 | D INIT^CCRDPT($P(Y,"^"))
|
---|
| 38 | ZWR PT
|
---|
| 39 | N I S I=165 F S I=$O(OUT(I)) Q:I="" D
|
---|
| 40 | . W "OUT("_I_",0)"_" is "_$P(OUT(I,0)," ")_" "
|
---|
| 41 | . W "valued at "
|
---|
| 42 | . W @("$$"_$P(OUT(I,0),"()")_"^"_"CCRDPT"_"()")
|
---|
| 43 | . W !
|
---|
| 44 | Q
|
---|