source: WorldVistAEHR/trunk/r/SURGERY-SR/SRSCPT.m@ 1009

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

initial load of WorldVistAEHR

File size: 2.7 KB
Line 
1SRSCPT ;B'HAM ISC/MAM - CASES MISSING CPT CODES ; [ 09/22/98 11:36 AM ]
2 ;;3.0; Surgery ;**77,50**;24 Jun 93
3 S (SRFLG,SRSOUT)=0,SRSPEC=""
4ASK W @IOF,!,"Print list of Completed Cases Missing CPT Codes for",!!,"1. O.R. Surgical Procedures",!,"2. Non-O.R. Procedures",!,"3. Both O.R. Surgical Procedures and Non-O.R. Procedures (All Specialties)"
5 W !!,"Select Number: 1// " R X:DTIME I '$T!(X["^") G END
6 S:X="" X=1 I X>3!(X<1)!(X'?.N) D HELP G:SRSOUT END G ASK
7 S SRFLG=X I SRFLG=1 D SPEC G:SRSOUT END
8 I SRFLG=2 D MSP G:SRSOUT END
9DATE D DATE^SROUTL(.SDATE,.EDATE,.SRSOUT) G:SRSOUT END
10 S SRINST=SRSITE("SITE")
11 W ! K %ZIS,IOP,IO("Q"),POP S %ZIS("A")="Print the List of Cases Missing CPT codes to which Printer ? ",%ZIS="Q" D ^%ZIS I POP S SRSOUT=1 G END
12 I $D(IO("Q")) K IO("Q") S ZTDESC="CASES MISSING CPT CODES",(ZTSAVE("EDATE"),ZTSAVE("SDATE"),ZTSAVE("SRINST"),ZTSAVE("SRSPEC*"),ZTSAVE("SRFLG"),ZTSAVE("SRSITE*"))="",ZTRTN="EN^SRSCPT" D ^%ZTLOAD S SRSOUT=1 G END
13EN U IO N SRFRTO S Y=SDATE X ^DD("DD") S SRFRTO="From: "_Y_" To: ",Y=EDATE X ^DD("DD") S SRFRTO=SRFRTO_Y
14 K ^TMP("SR",$J) S SRSDT=SDATE-.0001,SRSEDT=EDATE+.9999
15 I SRSPEC D ^SRSCPT1 G END
16 D ^SRSCPT2
17END W:$E(IOST)="P" @IOF I $D(ZTQUEUED) K ^TMP("SR",$J) Q:$G(ZTSTOP) S ZTREQ="@" Q
18 I 'SRSOUT,$E(IOST)'="P" W !!,"Press RETURN to continue " R X:DTIME
19 D ^%ZISC K SRTN D ^SRSKILL W @IOF
20 Q
21HELP W !!,"Enter '1' or press <RET> to print the list for surgical procedures performed",!,"in the OR. Enter '2' to print the list for non-OR procedures. Enter '3' to"
22 W !,"print the list for both OR surgical procedures and non-OR procedures."
23 W !!,"Press <RET> to continue, or '^' to quit. " R X:DTIME I '$T!(X["^") S SRSOUT=1
24 Q
25SPEC W @IOF,!,"Do you want the list for all Surgical Specialties ? YES// " R SRYN:DTIME I '$T!(SRYN["^") S SRSOUT=1 Q
26 S SRYN=$E(SRYN) S:SRYN="" SRYN="Y"
27 I "YyNn"'[SRYN W !!,"Enter RETURN if you would like to list completed cases missing CPT codes for",!,"all Surgical Specialties, or 'NO' to select a specific specialty.",!!,"Press RETURN to continue " R X:DTIME G SPEC
28 I "Yy"'[SRYN W ! K DIC S DIC=137.45,DIC(0)="QEAMZ",DIC("A")="Select Surgical Specialty: ",DIC("S")="I '$P(^(0),""^"",3)" D ^DIC K DIC S:Y<0 SRSOUT=1 Q:Y<0 S SRSPEC=+Y,SRSPECN=$P(Y(0),"^")
29 Q
30MSP W @IOF,!,"Do you want the list for all Specialties ? YES// " R SRYN:DTIME I '$T!(SRYN["^") S SRSOUT=1 Q
31 S SRYN=$E(SRYN) S:SRYN="" SRYN="Y"
32 I "YyNn"'[SRYN W !!,"Enter RETURN if you would like to list completed cases missing CPT codes for",!,"all Specialties, or 'NO' to select a specific specialty.",!!,"Press RETURN to continue " R X:DTIME G SPEC
33 I "Yy"'[SRYN W ! K DIC S DIC=723,DIC(0)="QEAMZ",DIC("A")="Select Specialty: " D ^DIC K DIC S:Y<0 SRSOUT=1 Q:Y<0 S SRSPEC=+Y,SRSPECN=$P(Y(0),"^")
34 Q
Note: See TracBrowser for help on using the repository browser.