source: WorldVistAEHR/trunk/r/WOMENS_HEALTH-WV/WVRPSCR.m@ 1800

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

initial load of WorldVistAEHR

File size: 2.9 KB
RevLine 
[613]1WVRPSCR ;HCIOFO/FT,JR IHS/ANMC/MWR - Display Compliance Rates ;12/9/98 13:39
2 ;;1.0;WOMEN'S HEALTH;**3**;Sep 30, 1998
3 ;;* MICHAEL REMILLARD, DDS * ALASKA NATIVE MEDICAL CENTER *
4 ;; THIS REPORT WILL DISPLAY COMPLIANCE RATES FOR PAPS & MAMS.
5 ;
6PRINT ;EP
7 ;
8 N I,J,M,N,P,Q
9 D SETUP
10 D TITLE^WVUTL5("COMPLIANCE RATES FOR PAPS AND MAMS")
11 D TEXT1,DIRZ^WVUTL3 G:WVPOP EXIT
12 D DATES G:WVPOP EXIT
13 D AGERNG G:WVPOP EXIT
14 D DEVICE G:WVPOP EXIT
15 D DATA^WVRPSCR1,EN^WVRPSCR2
16 D DISPLAY
17 I WVCRT&('$D(IO("S")))&('$G(WVPOP)) D DIRZ^WVUTL3 W @IOF
18 ;
19EXIT ;EP
20 D KILLALL^WVUTL8
21 Q
22 ;
23SETUP ;EP
24 D SETVARS^WVUTL5
25 Q
26 ;
27DATES ;EP
28 ;---> ASK DATE RANGE. RETURN DATES IN WVBEGDT AND WVENDDT.
29 D ASKDATES^WVUTL3(.WVBEGDT,.WVENDDT,.WVPOP)
30 Q
31 ;
32AGERNG ;EP
33 ;---> ASK AGE RANGE.
34 ;---> RETURN AGE RANGE IN WVAGRG.
35 D AGERNG^WVRPSCR1(.WVAGRG,.WVPOP)
36 Q
37 ;
38DEVICE ;EP
39 ;---> GET DEVICE AND POSSIBLY QUEUE TO TASKMAN.
40 S ZTRTN="DEQUEUE^WVRPSCR"
41 F WVSV="AGRG","BEGDT","ENDDT" D
42 .I $D(@("WV"_WVSV)) S ZTSAVE("WV"_WVSV)=""
43 ;---> SAVE ATTRIBUTES ARRAY. NOTE: SUBSTITUTE LOCAL ARRAY FOR WVATT.
44 I $D(WVCC) N N S N=0 F S N=$O(WVCC(N)) Q:N="" D
45 .S ZTSAVE("WVCC("""_N_""")")=""
46 D ZIS^WVUTL2(.WVPOP,1,"HOME")
47 Q
48 ;
49 ;
50DISPLAY ;EP
51 U IO
52 S WVTITLE="* WOMEN'S HEALTH: COMPLIANCE RATES FOR PAPS AND MAMS *"
53 D CENTERT^WVUTL5(.WVTITLE)
54 D TOPHEAD^WVUTL7
55 S WVPAGE=1,WVPOP=0
56 S WVSUB="W !?3,""For Age Range: "",$S(WVAGRG=1:""ALL"",1:WVAGRG)"
57 ;
58 S (WVPOP,N,Z)=0
59 W:WVCRT @IOF D HEADER8^WVUTL7
60 F S N=$O(^TMP("WV",$J,N)) Q:'N!(WVPOP) D
61 .I N=16.001!(N=7.001) W ! D HDR^WVRPSCR2
62 .I $Y+3>IOSL D:WVCRT DIRZ^WVUTL3 Q:WVPOP I $O(^TMP("WV",$J,N))'="" W @IOF D HEADER8^WVUTL7 D:'WVCRT HDR^WVRPSCR2
63 .W !,^TMP("WV",$J,N,0)
64 D ^%ZISC
65 Q
66 ;
67DEQUEUE ;EP
68 ;---> CALLED BY TASKMAN
69 D SETUP,DATA^WVRPSCR1,EN^WVRPSCR2,DISPLAY,EXIT
70 Q
71 ;
72TEXT1 ;
73 ;;This report is designed to serve as an indicator of compliance
74 ;;rates for PAPs and MAMs. The report will display the percentages
75 ;;of women who received PAPs and MAMs for compliance purposes only,
76 ;;within the selected date range.
77 ;;
78 ;;Only patients who have had normal results for procedures in the
79 ;;specified date range are counted; the intent is to exclude
80 ;;any procedures that would involve abnormal results, diagnostic
81 ;;and follow-up procedures, etc. Due to the complexities
82 ;;involved in the treatment of individual cases that involve
83 ;;abnormal results, those patients will not be included, even
84 ;;though some of them may have received screening PAPs or MAMs.
85 ;;
86 ;;This report, therefore, serves ONLY AS AN INDICATOR (NOT as an exact
87 ;;count of compliance rates) for gauging the success rates of annual
88 ;;screening programs. It can be run for several different time frames
89 ;;in order to examine trends. Assuming a screening cycle of one year,
90 ;;a minimum date range spanning 15 months is recommended.
91 S WVTAB=5,WVLINL="TEXT1" D PRINTX
92 Q
93 ;
94PRINTX ;EP
95 N I,T,X S T=$$REPEAT^XLFSTR(" ",WVTAB)
96 F I=1:1 S X=$T(@WVLINL+I) Q:X'[";;" W !,T,$P(X,";;",2)
97 Q
Note: See TracBrowser for help on using the repository browser.