source: FOIAVistA/trunk/r/INTEGRATED_BILLING-IB-PRQ--IBD--IBQ--PRQS/IBORAT1B.m@ 1671

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

initial load of FOIAVistA 6/30/08 version

File size: 999 bytes
Line 
1IBORAT1B ;ALB/RJS - DATE SETUP IBROUTINE - 3/02/92
2 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
3 ;CALLED BY IBORAT1A
4 ;THIS IBROUTINE PARSES A TMP FILE CONTAINING DATA FROM FILES
5 ;350.2 AND CALCULATES BEGINNING AND ENDING DATES
6 ;FOR BILLING RATES AND MEDICARE DEDUCTIBLES.
7 ;EG. IF RATE IS EFFECTIVE ON 1/1/87 AND IS SUPERSEDED BY A NEW RATE
8 ;ON 1/1/88 IT IS IN EFFECT FROM 1/1/87-12/31/87
9 ;THIS DATA IS STORED IN ^TMP($J,IBROUT,IBSPEC,IBEFFDAT)=IBCANCEL^AMOUNT
10 ;OUTPUT BY IBORAT4
11 ;
12START ;
13 S IBROUT="IBORAT1A",IBSPEC=""
14 F S IBSPEC=$O(^TMP($J,IBROUT,IBSPEC)) Q:IBSPEC="" D IBSPEC2
15END ;
16 K IBCANCEL,IBEFFDAT,IBROUT,IBSPEC,X,X1,X2
17 Q
18IBSPEC2 ;
19 S IBEFFDAT=-1
20 F S IBEFFDAT=$O(^TMP($J,IBROUT,IBSPEC,IBEFFDAT)) Q:IBEFFDAT="" D IBCANCEL
21 Q
22IBCANCEL ;
23 S IBCANCEL=$O(^TMP($J,IBROUT,IBSPEC,IBEFFDAT))
24 I IBCANCEL="" D CANDATE2 Q
25 S X1=IBCANCEL,X2=-1 D C^%DTC
26 S ^TMP($J,IBROUT,IBSPEC,IBEFFDAT)=X_"^"_^(IBEFFDAT)
27 Q
28CANDATE2 ;
29 S ^TMP($J,IBROUT,IBSPEC,IBEFFDAT)=9999999_"^"_^(IBEFFDAT)
30 Q
Note: See TracBrowser for help on using the repository browser.