[613] | 1 | IBATLM0 ;LL/ELZ - TRANSFER PRICING PT LIST LIST MANAGER ; 29-JAN-1999
|
---|
| 2 | ;;2.0;INTEGRATED BILLING;**115**;21-MAR-94
|
---|
| 3 | ;;Per VHA Directive 10-93-142, this routine should not be modified.
|
---|
| 4 | ;
|
---|
| 5 | EN(IBINST) ; -- main entry point for IBAT PATIENT LIST
|
---|
| 6 | S $P(IBINST,"^",2)=$$GET1^DIQ(4,IBINST,.01)
|
---|
| 7 | D EN^VALM("IBAT PATIENT LIST")
|
---|
| 8 | Q
|
---|
| 9 | ;
|
---|
| 10 | HDR ; -- header code
|
---|
| 11 | S VALMHDR(1)="Patients with an Enrolled "_$S(IBINST["VISN":"VISN",1:"Facility")_" of "_$P(IBINST,"^",2)
|
---|
| 12 | Q
|
---|
| 13 | ;
|
---|
| 14 | INIT ; -- init variables and list array
|
---|
| 15 | K ^TMP("VALM DATA",$J),^TMP("VALMAR",$J),^TMP("IBAT0",$J)
|
---|
| 16 | N IBIEN,IBDAT,IBSTRNG,IBNAM,IBXREF,IBCNT
|
---|
| 17 | S IBXREF=$S($E($P(IBINST,"^",2),1,4)="VISN":"AC",1:"AD"),IBCNT=0
|
---|
| 18 | W !,"Building List"
|
---|
| 19 | S IBIEN=0 F S IBIEN=$O(^IBAT(351.6,IBXREF,+IBINST,IBIEN)) Q:IBIEN<1 S ^TMP("IBAT0",$J,$P(^DPT(IBIEN,0),"^"),IBIEN)="",IBCNT=IBCNT+1 W:'(IBCNT#100) "."
|
---|
| 20 | S VALMCNT=0,IBNAM=""
|
---|
| 21 | F S IBNAM=$O(^TMP("IBAT0",$J,IBNAM)) Q:IBNAM="" S IBIEN=0 F S IBIEN=$O(^(IBNAM,IBIEN)) Q:IBIEN<1 D
|
---|
| 22 | . S IBDAT=$G(^IBAT(351.6,IBIEN,0)) Q:IBDAT=""
|
---|
| 23 | . S IBSTRNG=""
|
---|
| 24 | . S IBSTRNG=$$ST(VALMCNT+1,IBSTRNG,"ITEM")
|
---|
| 25 | . S IBSTRNG=$$ST($P(^DPT(+IBDAT,0),"^"),IBSTRNG,"NAME")
|
---|
| 26 | . S IBSTRNG=$$ST($$EX^IBATUTL(351.6,.04,$P(IBDAT,"^",4)),IBSTRNG,"STATUS")
|
---|
| 27 | . S IBSTRNG=$$ST($P($P($$INST^IBATUTL($S($P(IBDAT,"^",10):$P(IBDAT,"^",10),1:$P(IBDAT,"^",3))),"^"),","),IBSTRNG,"FAC")
|
---|
| 28 | . S IBSTRNG=$$ST($$DAT1^IBOUTL($P(IBDAT,"^",5)),IBSTRNG,"INPT")
|
---|
| 29 | . S IBSTRNG=$$ST($$DAT1^IBOUTL($P(IBDAT,"^",6)),IBSTRNG,"OUT")
|
---|
| 30 | . S IBSTRNG=$$ST($$DAT1^IBOUTL($P(IBDAT,"^",7)),IBSTRNG,"RX")
|
---|
| 31 | . S IBSTRNG=$$ST($S($$INSURED^IBCNS1(+IBDAT):" Y",1:" N"),IBSTRNG,"INS")
|
---|
| 32 | . S VALMCNT=$$SETVALM^IBATUTL(VALMCNT,IBSTRNG,IBIEN)
|
---|
| 33 | . S IBCNT=IBCNT+1 W:'(IBCNT#100) "."
|
---|
| 34 | I 'VALMCNT D SET^VALM10(1," "),SET^VALM10(2,"No Patients found") S VALMCNT=2
|
---|
| 35 | K ^TMP("IBAT0",$J)
|
---|
| 36 | Q
|
---|
| 37 | ;
|
---|
| 38 | HELP ; -- help code
|
---|
| 39 | S X="?" D DISP^XQORM1 W !!
|
---|
| 40 | Q
|
---|
| 41 | ;
|
---|
| 42 | EXIT ; -- exit code
|
---|
| 43 | K ^TMP("VALM DATA",$J),^TMP("VALMAR",$J)
|
---|
| 44 | Q
|
---|
| 45 | ;
|
---|
| 46 | EXPND ; -- expand code
|
---|
| 47 | Q
|
---|
| 48 | ;
|
---|
| 49 | ST(A,B,C) ; -- calls VALM1 to set up string
|
---|
| 50 | Q $$SETFLD^VALM1($$LOWER^VALM1(A),B,C)
|
---|