source: WorldVistAEHR/trunk/r/INCOME_VERIFICATION_MATCH-IVM/IVMRTSR1.m@ 1604

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

initial load of WorldVistAEHR

File size: 3.4 KB
Line 
1IVMRTSR1 ;ALB/KCL - Report of IVM Transmissions ; 30 April 1993
2 ;;Version 2.0 ; INCOME VERIFICATION MATCH ;; 21-OCT-94
3 ;
4 ;
5EN ;entry point
6 ;
7 ; Convert FM dates to external date format
8 S Y=IVMBEG D DD^%DT S IVMBEG=Y
9 S Y=IVMEND D DD^%DT S IVMEND=Y
10 ;
11HDR ; Print header of report
12 D HEAD
13 ;
14SINGLE ; Check for a single date report
15 ; Print body of report for single transmission date
16 I IVMFLG=1 D
17 .I 'IVMCNT W !!!!!,?19,"No data found for the date: ",$E(IVMBEG,1,12),!!! Q
18 .W !!?10,"Transmission Date: ",$E(IVMBEG,1,12)
19 .W !?10,"Number of Transmissions: ",IVMCNT
20 .W !?21,"Without Status: ",+$G(IVMCNTS("NO"))
21 .W !?24,"Transmitted: ",+$G(IVMCNTS(0))
22 .W !?27,"Received: ",+$G(IVMCNTS(1))
23 .W !?27,"In Error: ",+$G(IVMCNTS(2))
24 .W !?21,"Re-transmitted: ",+$G(IVMCNTS(3))
25 .W !?10,"Multiple Transmissions: ",IVMCNT1," (of ",IVMCNT,")"
26 .W !!!,?10,"Category",?30,"With Insurance",?55,"Without Insurance"
27 .W !,?10,"-----------",?30,"--------------",?55,"-----------------"
28 .W !,?10,"Category A ",?30,$J(IVMIN,10),?55,$J(IVMNIN,10)
29 .W !,?10,"Category C ",?30,$J(IVMCIN,10),?55,$J(IVMCNIN,10)
30 ;
31IVMRNG ; Check for a date range report
32 ; Print body of report summary for a range of transmssion dates
33 I IVMFLG=2 D
34 .I 'IVMCNT W !!!!!,?7,"No data found for the date range: "_$E(IVMBEG,1,12)_" to "_$E(IVMEND,1,12),!!! Q
35 .W !!,?10,"Date range selected: "_$E(IVMBEG,1,12)_" to "_$E(IVMEND,1,12),!!
36 .W !,?10,"Total number of days: ",?49,$J(IVMRNG,10)
37 .W !,?10,"Total number of transmissions: ",?49,$J(IVMCNT,10)," (",$J(IVMCNT/IVMRNG,0,2),"/day)"
38 .W !!?12,"Without Status: ",+$G(IVMCNTS("NO")),?50,"In Error: ",+$G(IVMCNTS(3))
39 .W !?15,"Transmitted: ",+$G(IVMCNTS(0)),?44,"Re-transmitted: ",+$G(IVMCNTS(2))
40 .W !?18,"Received: ",+$G(IVMCNTS(1)),?36,"Multiple Transmissions: ",IVMCNT1," (of ",IVMCNT,")"
41 .W !!,?35,"With Insurance",?55,"Without Insurance"
42 .W !,?35,"--------------",?55,"-----------------"
43 .W !,?10,"Percentage Category A:",?38,$J(IVMPERA,6,2)_" %",?61,$J(IVMPERB,6,2)_" %"
44 .W !,?10,"Percentage Category C:",?38,$J(IVMPERC1,6,2)_" %",?61,$J(IVMPERC,6,2)_" %"
45 ;
46 D PAUSE^IVMRUTL I $G(IVMQUIT) G ENQ
47 ;
48MQRY ; Display Master Query Results
49 I $E(IOST,1,2)["C-" D HEAD
50 I $E(IOST,1,2)'["C-" W !
51 D HEAD1
52 I '$D(^IVM(301.9,1,10)) W !!?22,"-- No Master Queries Received --" G ENQ1
53 S IVM=0 F S IVM=$O(^IVM(301.9,1,10,IVM)) Q:'IVM S IVMD=$G(^(IVM,0)) D I $G(IVMQUIT) G ENQ
54 .Q:'IVMD
55 .I $Y>(IOSL-5) D PAUSE^IVMRUTL Q:$G(IVMQUIT) D HEAD,HEAD1
56 .W !?16,$E(+IVMD,1,3)+1700
57 .W ?30,$$DAT1^IVMUFNC4($P(IVMD,"^",2),1)
58 .W ?50,$$DAT1^IVMUFNC4($P(IVMD,"^",3),1)
59 ;
60ENQ1 D PAUSE^IVMRUTL
61 ;
62ENQ ; cleanup
63 K IVMCNIN,IVMCNT,IVMCNT1,IVMFLG,IVMIN,IVMNIN,IVMPERA,IVMPERB,IVMPERC,IVMRNG,Y,IVMQUIT,IVM,IVMD,IVMCIN,IVMPERC1
64 Q
65 ;
66HEAD ; Display header.
67 I $E(IOST,1,2)["C-" W @IOF ; init form feed to CRT, subsequent form feeds to all other devices
68 W !?5,"====================================================================="
69 W !?5,"|",?17,"INCOME VERIFICATION MATCH - TRANSMISSIONS REPORT",?73,"|"
70 W !?5,"|",?73,"|"
71 W !?5,"|-------------------------------------------------------------------|"
72 S Y=DT D DD^%DT W !?5,"|",?25,"DATE PRINTED: ",Y,?73,"|"
73 W !?5,"====================================================================="
74 Q
75 ;
76HEAD1 ; Display Master Query header.
77 W !!?16,"** M A S T E R Q U E R Y S U M M A R Y **"
78 W !!?10,"Query Income Year",?30,"Date Received",?50,"Date Responded"
79 W !?10,"-----------------",?30,"-----------------",?50,"-----------------"
80 Q
Note: See TracBrowser for help on using the repository browser.