Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: ORWDBA16

ORWDBA16.m

Go to the documentation of this file.
  1. ORWDBA16 ;SLC/GDU Billing Awareness - Phase I [10/18/04 10:26]
  1. ;;3.0;ORDER ENTRY/RESULTS REPORTING;**195**;Dec 17,1997
  1. ;
  1. ;Enable Billing Data Capture By Provider Parameter
  1. ;ORWDBA16 - Generates and prints parameter report
  1. ;
  1. ;Programs Called:
  1. ; $$GETS1^DIQ DBIA 2056
  1. ; ^DIR DBIA 10026
  1. ; $$FMTE^XLFDT DBIA 10103
  1. ; $$NOW^XLFDT DBIA 10103
  1. ; $$REPEAT^XLFSTR DBIA 10103
  1. ; ENVAL^XPAR DBIA 2263
  1. ;
  1. ;Variables Used:
  1. ; BAEE External value of the CIDC functionality parameter
  1. ; DIR Input array variable for ^DIR
  1. ; DTOUT Timeout indicator variable, output from ^DIR
  1. ; DUOUT Up Arrow '^' indicator variable, output from ^DIR
  1. ; ORERR Error message array variable, output from ENVAL^XPAR
  1. ; IEN Internal Entry Number
  1. ; LF Line Feed
  1. ; LFC Line Feed Count variable
  1. ; PAGE Page Counter variable
  1. ; RPDT Date the report is run, printed on hardcopy and terminal
  1. ; SEARCH Type of report being run. Passed from ORWDBA14
  1. ; STOP Report finished control variable, used by hardcopy report.
  1. ; U Delimiter variable, defaulted to "^"
  1. ; X Work variable
  1. ; X1 Work variable
  1. ; Y Processed user selection varaible, output from ^DIR
  1. ;
  1. ;Globals Uses:
  1. ; ^TMP("ORPAL"
  1. ; Temp global to store raw and processed output of ENVAL^PAR
  1. ; Raw output of ENVAL^PAR
  1. ; ^TMP("ORPAL",$J,"A")=# Records Returned
  1. ; ^TMP("ORPAL",$J,"A",Provider IEN_";VA(200,",1)=Parameter value
  1. ; Processed output of ENVAL^PAR
  1. ; ^TMP("ORPAL",$J,"B",Name|IEN)=Name^Section^Parameter value
  1. ;
  1. RPT ;Build and print parameter report
  1. N BAEE,DIR,DTOUT,DUOUT,ORERR,IEN,LF,LFC,PAGE,NAME,SEC,RPDT,STOP,X,X1,Y
  1. K ^TMP("ORPAL",$J)
  1. S RPDT=$$FMTE^XLFDT($$NOW^XLFDT),(IEN,X)="",U="^"
  1. D ENVAL^XPAR("^TMP(""ORPAL"",$J,""A"")","OR BILLING AWARENESS BY USER",1,.ORERR,1)
  1. F S X=$O(^TMP("ORPAL",$J,"A",X)) Q:X="" D
  1. . S IEN=$P(X,";")
  1. . S BAEE=$S(^TMP("ORPAL",$J,"A",X,1)=0:"No",1:"Yes")
  1. . S NAME=$$GET1^DIQ(200,IEN,.01)
  1. . S SEC=$$GET1^DIQ(200,IEN,29)
  1. . S:SEARCH="A" ^TMP("ORPAL",$J,"B",NAME_"|"_IEN)=NAME_U_SEC_U_BAEE
  1. . S:SEARCH="E"&(BAEE="Yes") ^TMP("ORPAL",$J,"B",NAME_"|"_IEN)=NAME_U_SEC_U_BAEE
  1. . S:SEARCH="D"&(BAEE="No") ^TMP("ORPAL",$J,"B",NAME_"|"_IEN)=NAME_U_SEC_U_BAEE
  1. S (X1,Y)="",PAGE=1,STOP=0
  1. D HDR
  1. F S X1=$O(^TMP("ORPAL",$J,"B",X1)) Q:X1=""!(STOP=1) D
  1. . W !,$P(^TMP("ORPAL",$J,"B",X1),U)
  1. . W ?40,$P(^TMP("ORPAL",$J,"B",X1),U,2)
  1. . W ?70,$P(^TMP("ORPAL",$J,"B",X1),U,3)
  1. . I $Y>(IOSL-4) D EOSP
  1. I STOP=0 S STOP=1
  1. I $E(IOST,1,2)'="C-" D FTR
  1. K ^TMP("ORPAL",$J)
  1. Q
  1. HDR ;Print report page header
  1. W:$E(IOST)="C"!(PAGE>2) @IOF
  1. W !,$P($T(RH),";",2)
  1. W !,RPDT,!!
  1. W:SEARCH="A" $P($T(HDRA),";",2),!
  1. W:SEARCH="E" $P($T(HDRE),";",2),!
  1. W:SEARCH="D" $P($T(HDRD),";",2),!
  1. W !,"Provider",?40,"Section",?70,"Enabled"
  1. W !,$$REPEAT^XLFSTR("-",IOM)
  1. Q
  1. EOSP ;End of Screen/Page
  1. S PAGE=PAGE+1
  1. I $E(IOST,1,2)="C-" D SFTR Q:STOP=1
  1. E D FTR
  1. D HDR
  1. Q
  1. ;
  1. SFTR ;Screen report footer
  1. S DIR(0)="E"
  1. D ^DIR K DIR
  1. I $D(DTOUT)!($D(DUOUT)) S STOP=1
  1. E S STOP=0
  1. Q
  1. ;
  1. FTR ;Print report page footer
  1. ;Used when output is directed to printer or spool device
  1. I STOP=1 D
  1. . S LFC=(IOSL-4)-$Y
  1. . F LF=1:1:LFC W !," "
  1. W:SEARCH="A" !,$P($T(FTRA),";",2)
  1. W:SEARCH="E" !,$P($T(FTRE),";",2)
  1. W:SEARCH="D" !,$P($T(FTRD),";",2)
  1. W ?60,"Page: ",PAGE
  1. Q
  1. ;Text used for building page/screen header/footer in HDR
  1. RH ;Clinical Indicator Data Capture By Provider Parameter Report
  1. HDRA ;All Providers With Clinical Indicator Data Capture Parameter
  1. HDRE ;Only Providers With Clinical Indicator Data Capture Enabled
  1. HDRD ;Only Providers With Clinical Indicator Data Capture Disabled
  1. ;Text used for building page footer in FTR
  1. PF ;Clinical Data Capture By Provider Parameter Report
  1. FTRA ;All With Parameter
  1. FTRE ;Only Clinical Indicator Data Capture Enabled
  1. FTRD ;Only Clinical Indicator Data Capture Disabled