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

ABPAEEC1.m

Go to the documentation of this file.
  1. ABPAEEC1 ;ENTER/EDT/PVT INS CLAIMS - PART 2; [ 07/09/91 11:21 AM ]
  1. ;;1.4;AO PVT-INS TRACKING;*0*;IHS-OKC/KJR;JULY 25, 1991
  1. Q ;;NOT AN ENTRY POINT
  1. WRITE F ABPAJ=3:1 Q:$P(ABPATEXT,";",ABPAJ)="" D
  1. .S @("P"_ABPAJ)=$P(ABPATEXT,";",ABPAJ)
  1. W ! S DX=P5,DY=P6 S:IOST["QUME" DY=DY+1 X XY
  1. W P3,$J(P4,22) W:$D(ABPAEOL)=1 @(ABPAEOL)
  1. I $D(P7)=1 W " " W:$D(@P7)=1 @P7
  1. Q
  1. ;
  1. REVON S DX=0,DY=19 W ! X XY D EOP^ABPAMAIN W:IOST["QUME" !
  1. W:$D(ABPARON) @(ABPARON)
  1. Q
  1. ;
  1. SCREEN S ABPAHD1="ENTER/EDIT CLAIM DATA" D HEADER^ABPAMAIN
  1. F ABPAI=1:1 S ABPATEXT=$T(PROMPT+ABPAI) Q:ABPATEXT="" D WRITE
  1. W !,ABPALL
  1. Q
  1. ;
  1. EDIT D REVON W "Select FIELD NUMBER to edit (4 - 8)"
  1. W:$D(ABPARON)=1 @(ABPAROFF)
  1. R !,"FIELD NUMBER: ",ABPAI:DTIME I $T=0!(ABPAI["^")!(ABPAI="") G XIT
  1. I ABPAI["?" D G EDIT
  1. .W " -- ENTER A NUMBER BETWEEN 4 AND 8" H 3
  1. I +ABPAI>0&(+ABPAI<4) D G EDIT
  1. .W *7," -- SORRY, YOU ARE NOT ALLOWED TO CHANGE THIS FIELD" H 3
  1. I +ABPAI=0!(+ABPAI>8) D G EDIT
  1. .W *7," -- INVAILID SELECTION" H 3
  1. S LBL="FLD"_+ABPAI K DIC,DIE,DA,DR,X,Y D @LBL
  1. G EDIT
  1. ;
  1. FLD4 S DA(1)=+ABPATDFN,DA=+ABPACDFN,DIE="^ABPVAO("_DA(1)_",1,",DR=.01
  1. S DIE("NO^")="" D REVON W "Enter the DATE OF SERVICE being billed"
  1. W:$D(ABPARON)=1 @(ABPAROFF)
  1. D ^DIE K DIC S DIC="^ABPVAO("_DA(1)_",1,",DIC(0)="Z"
  1. W:$D(ABPARON)=1 @(ABPAROFF)
  1. D ^DIC S ABPADOS=Y(0,0)
  1. D:$Y>3 SCREEN S ABPATEXT=$T(PROMPT+4) D WRITE
  1. Q
  1. ;
  1. FLD5 S DA(1)=+ABPATDFN,DA=+ABPACDFN,DIE="^ABPVAO("_DA(1)_",1,",DR=.04
  1. S DIE("NO^")="" D REVON
  1. S ABPAMESS="VISIT TYPE - ""O"", ""I"", ""P"", or ""D""" W ABPAMESS
  1. W:$D(ABPARON)=1 @(ABPAROFF)
  1. D ^DIE S ABPATYPE=X
  1. I ABPATYPE="O" D
  1. .S ABPATYPE="OUTPATIENT",DR=".05////1" D ^DIE S ABPADV=1
  1. S:ABPATYPE="I" ABPATYPE="INPATIENT (HOSPITAL ONLY)"
  1. I ABPATYPE="P" D
  1. .S ABPATYPE="INPATIENT (PHYSICIAN ONLY)",DR=".05////0" D ^DIE
  1. .S ABPADV=0
  1. I ABPATYPE="D" D
  1. .S ABPATYPE="DENTAL",DR=".05////1" D ^DIE S ABPADV=1
  1. D:$Y>21 SCREEN S ABPATEXT=$T(PROMPT+5) D WRITE
  1. I ABPATYPE["HOSPITAL" G FLD6
  1. S ABPATEXT=$T(PROMPT+6) D WRITE
  1. Q
  1. ;
  1. FLD6 I ABPATYPE["PHYSICIAN" D Q
  1. .W *7," - Cannot edit in-patient physician workload " H 3
  1. I ABPATYPE["OUTPATIENT" D Q
  1. .W *7," - Cannot edit out-patient workload " H 3
  1. I ABPATYPE["DENTAL" D Q
  1. .W *7," - Cannot edit dental workload " H 3
  1. S DA(1)=+ABPATDFN,DA=+ABPACDFN,DIE="^ABPVAO("_DA(1)_",1,",DR=.05
  1. S DIE("NO^")="" D REVON
  1. W "Number of outpatient VISITS or inpatient DAYS (0 - 50)"
  1. W:$D(ABPARON) @(ABPAROFF)
  1. D ^DIE S ABPADV=X
  1. I ((ABPATYPE["INPATIENT")!(ABPATYPE["DENTAL"))&(+ABPADV'>0) D G FLD6
  1. .W *7," - Workload must be greater than zero " H 3
  1. D:$Y>21 SCREEN S ABPATEXT=$T(PROMPT+6) D WRITE
  1. Q
  1. ;
  1. FLD7 S DA(1)=+ABPATDFN,DA=+ABPACDFN,DIE="^ABPVAO("_DA(1)_",1,",DR=.06
  1. S DIE("NO^")="" D REVON
  1. W "Name of the INSURANCE COMPANY being billed"
  1. W:$D(ABPARON)=1 @(ABPAROFF)
  1. D ^DIE S ABPAINS=X,ABPAINS=$P(^AUTNINS(+ABPAINS,0),"^")
  1. S DR=.062 D ^DIE S ABPAPHNM=X
  1. S DR=.064 D ^DIE S ABPAPNUM=X
  1. D:$Y>3 SCREEN S ABPATEXT=$T(PROMPT+7) D WRITE
  1. Q
  1. ;
  1. FLD8 S DA(1)=+ABPATDFN,DA=+ABPACDFN,DIE="^ABPVAO("_DA(1)_",1,",DR=.07
  1. S DIE("NO^")="" D REVON
  1. W "Enter the dollar AMOUNT being claimed (0 - 99999)"
  1. W:$D(ABPARON)=1 @(ABPAROFF) D ^DIE
  1. S ABPAAMT="$"_$J(X,8,2) D:$Y>3 SCREEN S ABPATEXT=$T(PROMPT+8) D WRITE
  1. Q
  1. ;
  1. FLD9 S DA(1)=+ABPATDFN,DA=+ABPACDFN,DIE="^ABPVAO("_DA(1)_",1,",DR=".11R~T"
  1. S DIE("NO^")="" D REVON
  1. W "Enter the date of the BILL LOG where this bill can be found"
  1. W:$D(ABPARON)=1 @(ABPAROFF) D ^DIE S DR=".115///"_X D ^DIE
  1. Q
  1. ;
  1. XIT G START^ABPAEEC0
  1. ;
  1. PROMPT ;;FLD #;TITLE;X-POSITION;Y-POSITION;VARIABLE NAME
  1. ;;(1) ;Patient Name:;7;8;ABPAPNAM
  1. ;;(2) ;Facility:;7;9;ABPAFAC
  1. ;;(3) ;Health Record Number:;7;10;ABPAHRN
  1. ;;(4) ;Date of Service:;7;11;ABPADOS
  1. ;;(5) ;Visit Type:;7;12;ABPATYPE
  1. ;;(6) ;Days or Visits:;7;13;ABPADV
  1. ;;(7) ;Insurance Company:;7;14;ABPAINS
  1. ;; (a);Policy Holder Name:;7;15;ABPAPHNM
  1. ;; (b);Policy Number:;7;16;ABPAPNUM
  1. ;;(8) ;Claim Amount:;7;17;ABPAAMT