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

ABMDEOPT.m

Go to the documentation of this file.
  1. ABMDEOPT ; IHS/ASDST/DMJ - EDIT PAGE OPTIONS ;
  1. ;;2.6;IHS 3P BILLING SYSTEM;**11,14**;NOV 12, 2009;Build 238
  1. ;
  1. ; IHS/SD/SDR,TPF - v2.5 p8 - added code for pending status (12)
  1. ;IHS/SD/SDR - 2.6*14 - ICD10 Added refresh and Ind (Indicator) options for page 5A
  1. ;
  1. SEL ;EP for Page Commands, Desired Action Controller
  1. I $D(ABMP("DDL")),$D(ABMP("QUIT")) S Y="Q" G XIT
  1. I $D(ABMP("DDL")) S Y="N" G XIT
  1. I $E("IOST")'="C",IOST'="",IO'="",IO'=IO(0) S Y="N" G XIT
  1. S:'$D(ABMP("DFLT")) ABMP("DFLT")=""
  1. K %P,DIR S DIR(0)="F^1:9"
  1. S (DIR("B"),ABMO("DFLT"))=$S(ABMP("DFLT")]"":ABMP("DFLT"),ABMP("OPT")'["N":"B",1:"N")
  1. S DIR("A")="Desired ACTION ("
  1. S DIR("?",1)=" Choose from one of the following actions:"
  1. S DIR("?",2)=" "
  1. F ABMO("CTR")=3:1 S ABMO("TXT")=$E(ABMP("OPT"),ABMO("CTR")-2) Q:ABMO("TXT")="" D
  1. .I $D(ABMP("VIEWMODE")),"NVBJQ"'[ABMO("TXT") Q
  1. .S DIR("?",ABMO("CTR"))=$P($T(@ABMO("TXT")),";;",2),DIR("A")=DIR("A")_$P($T(@ABMO("TXT")),";;",3)_"/"
  1. S DIR("?",ABMO("CTR"))=" "
  1. S DIR("?")=" Enter First Character of the Desired Action."
  1. S DIR("A")=$P(DIR("A"),"/",1,$L(DIR("A"),"/")-1)_")"
  1. D ^DIR K DIR
  1. G XIT:$D(DTOUT)!$D(DUOUT)!$D(DIROUT)
  1. S:X="" Y=ABMO("DFLT")
  1. S Y=$$UPC^ABMERUTL(Y)
  1. I $D(ABMP("VIEWMODE")),"NBVJQ"'[$E(Y) W *7 G SEL
  1. I $E(X)="?" D ^ABMDEHLP G SEL
  1. I '+$E(Y),'+$E(Y,2),$E(Y,2)'=0 S Y=$E(Y)
  1. I ABMP("SCRN")=0,"Aa"[Y S (X,Y)="C"
  1. I "Pp"[Y,(ABMZ("PG")=0) S (X,Y)="F"
  1. I $A(Y,1)>96&($A(Y,1)<123) S Y=$C($A(Y,1)-32)_$E(Y,2,99)
  1. I ABMP("OPT")[$E(Y) K ABMP("DFLT") G XIT
  1. I +Y,$D(ABMZ("NUM")),Y<(ABMZ("NUM")+1) K ABMP("DFLT") S Y="E"_+Y G XIT
  1. W *7 G SEL
  1. ;
  1. N ;; Next - Go on to the Next Edit Screen;;Next
  1. A ;; Add - Add a New Entry;;Add
  1. D ;; Del - Delete an Existing Entry;;Del
  1. S ;; Seq - Modify the Prioity Sequence;;Seq
  1. P ;; Pick - Pick Insurer to Bill;;Pick
  1. E ;; Edit - Edit Information in the Current Screen;;Edit
  1. V ;; View - Display Detailed Information;;View
  1. C ;; Appr - Approve Claim for Billing;;Appr
  1. J ;; Jump - Jump to a desired Edit Screen;;Jump
  1. B ;; Back - Backup to the previous Edit Screen;;Back
  1. Q ;; Quit - Stop Editing the Data of this Claim;;Quit
  1. M ;; Mode - Change mode of export for this page;;Mode
  1. F ;; Pend - Pend the claim and enter Pend Status;;Pend
  1. R ;; Rfsh - For page 5A when ICD9 and ICD10 present;;Rfsh
  1. I ;; Ind - Acts as override for ICD9 or ICD10 coding on claim;;Ind
  1. ;
  1. FLDS ;EP for Field Edit Controller
  1. S ABMO("Y")=+$E(Y,2,3) I ABMO("Y")>0&(ABMO("Y")<(ABMP("FLDS")+1)) S Y=ABMO("Y") G EJ
  1. W ! S DIR(0)="LO^1:"_ABMP("FLDS"),DIR("A")="Desired FIELDS",DIR("B")="1-"_ABMP("FLDS") D ^DIR K DIR
  1. G XIT:$D(DTOUT)!$D(DUOUT)!$D(DIROUT)
  1. EJ S ABMP("FLDS")=Y
  1. G XIT
  1. ;
  1. XIT K ABMO,ABMP("OPT")
  1. Q
  1. ;
  1. JUMP S ABM("EX")=$E(X,3)_$E(X,2) I $T(@ABM("EX"))]"" S ABMP("SCRN")=$E(X,2),ABM("EX")=$P($T(@ABM("EX")),$E(X,3)_$E(X,2)_" ",2),X=$E(X,2,3) X ABM("EX") Q