[613] | 1 | DGPTFMO1 ;ALB/AS - DGPTF PRINT TEMPLATE (cont) ; 5 FEB 90 14:00
|
---|
| 2 | ;;5.3;Registration;**54**;Aug 13, 1993
|
---|
| 3 | ;
|
---|
| 4 | PTF ; -- 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 | ;
|
---|
| 9 | CEN ; -- census inquiry
|
---|
| 10 | S FLDS="[DGPT CENSUS INQUIRY]"
|
---|
| 11 | S DIC("S")="N DGPTIFN S DGPTIFN=Y D SCR^DGPTFMO1"
|
---|
| 12 | D INQ Q
|
---|
| 13 | INQ ;
|
---|
| 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,")
|
---|
| 21 | Q K DGPMCA,DGPMAN,DIC,DI,X,DFN,DG1,DGAD,DGADM,FLDS,L,Y,^TMP("DGPT INQ",$J) Q
|
---|
| 22 | ;
|
---|
| 23 | SCR ; -- 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
|
---|
| 31 | SCRQ I DGTEST
|
---|
| 32 | Q
|
---|
| 33 | ;
|
---|
| 34 | OPT ; -- 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
|
---|