source: ccr/trunk/p/CCRDPTT.m@ 23

Last change on this file since 23 was 23, checked in by Sam Habiel, 16 years ago

This update contains the completion of attempt 1 at extracting patient data from the patient file. It also contains a unit tester routine.

File size: 1.0 KB
Line 
1CCRDPTT; Unit Tester...
2
3 ; Get the functions in the routine using Rick's routine
4 ; STATS(0)="CCRDPT^3080626.190908^396^14094^6414499860"
5 ; STATS(1,0)="CCRDPT ;CCRCCD/SMH - Routines to Extract Patient Data for CCDCCR; 6/15/08"
6 ; STATS(2,0)=" ;;0.1;CCRCCD;;Jun 15, 2008;"
7 ; STATS(84,0)="INIT(DFN) ; Copy DFN global to a local variable; PUBLIC"
8 ; STATS(93,0)="DESTROY ; Kill local variable; PUBLIC"
9 ; STATS(99,0)="FAMILY() ; Family Name; PUBLIC; Extrinsic"
10 ; STATS(105,0)="GIVEN() ; Given Name; PUBLIC; Extrinsic"
11 ; STATS(111,0)="MIDDLE() ; Middle Name; PUBLIC; Extrinsic "
12 ; etc.
13
14 ; Load Routine Entry points; We get a sweeeeeet array
15 N OUT
16 D ANALYZE^ARJTXRD("CCRDPT",.OUT) ; Analyze a routine in the directory
17 ZWR OUT(,0)
18
19 N X,Y
20 ; Select Patient
21 S DIC=2,DIC(0)="AEMQ" D ^DIC
22
23 W "You have selected patient "_Y,!!
24 D INIT^CCRDPT($P(Y,"^"))
25 ZWR PT
26 N I S I=160 F S I=$O(OUT(I)) Q:I="" D
27 . W "OUT("_I_",0)"_" is "_$P(OUT(I,0)," ")_" "
28 . W "valued at "
29 . W @("$$"_$P(OUT(I,0),"()")_"^"_"CCRDPT"_"()")
30 . W !
31 Q
Note: See TracBrowser for help on using the repository browser.