source: FOIAVistA/trunk/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPTFMO1.m@ 1607

Last change on this file since 1607 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

File size: 1.3 KB
Line 
1DGPTFMO1 ;ALB/AS - DGPTF PRINT TEMPLATE (cont) ; 5 FEB 90 14:00
2 ;;5.3;Registration;**54**;Aug 13, 1993
3 ;
4PTF ; -- PTF inquiry
5 S FLDS="[DGPTF]"
6 S DIC("S")="I $P(^(0),U,11)=1,DG1'[(U_+Y_U)"
7 D INQ Q
8 ;
9CEN ; -- census inquiry
10 S FLDS="[DGPT CENSUS INQUIRY]"
11 S DIC("S")="N DGPTIFN S DGPTIFN=Y D SCR^DGPTFMO1"
12 D INQ Q
13INQ ;
14 K ^TMP("DGPT INQ",$J)
15 S DG1=U,(DIC,DI)="^DGPT(",DIC(0)="AEMQ",L=+$P(^DGPT(0),U,2)
16 F DGZZ=1:1 D ^DIC Q:Y'>0 S ^TMP("DGPT INQ",$J,DGZZ,+Y)="",DG1=DG1_+Y_U,DIC("A")="ANOTHER ONE: " Q:$L(DG1)>230
17 K DGZZ I '$D(^TMP("DGPT INQ",$J))!(X=U) G Q
18 S ZTSAVE("^TMP(""DGPT INQ"",$J,")="",DIOEND="K ^TMP(""DGPT INQ"",$J)"
19 S BY="#PATIENT",(FR,TO)="",BY(0)="^TMP(""DGPT INQ"",$J,",L=0,L(0)=2 D EN1^DIP
20 K ZTSAVE("^TMP(""DGPT INQ"",$J,")
21Q K DGPMCA,DGPMAN,DIC,DI,X,DFN,DG1,DGAD,DGADM,FLDS,L,Y,^TMP("DGPT INQ",$J) Q
22 ;
23SCR ; -- screen to find census recs or ptf needing census
24 ; input: DGPTIFN ifn of 45
25 ; output: $T
26 ;
27 N DGTEST,I,DGCUR,PTF,DGCI,D0,Y
28 I $P(^DGPT(DGPTIFN,0),U,11)=2 S DGTEST=1 G SCRQ
29 S DGTEST=0,DGCUR=$O(^DG(45.86,"AC",1,0))
30 I DGCUR F I=0:0 S I=$O(^DG(45.85,"PTF",DGPTIFN,I)) Q:'I I $D(^DG(45.85,I,0)),$P(^(0),"^",4)=DGCUR S DGTEST=1,D0=I D CREC^DGPTCO1 S:X DGTEST=0 Q
31SCRQ I DGTEST
32 Q
33 ;
34OPT ; -- screen for comp rpt ; NEW command doesn't pass DIM
35 Q:'$D(^DGPT(D0,0)) N DGPTIFN S DGPTIFN=D0 D SCR
36 Q
Note: See TracBrowser for help on using the repository browser.