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

IBINI03M.m

Go to the documentation of this file.
  1. IBINI03M ; ; 21-MAR-1994
  1. ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
  1. Q:'DIFQ(354) F I=1:2 S X=$T(Q+I) Q:X="" S Y=$E($T(Q+I+1),4,999),X=$E(X,4,999) S:$A(Y)=126 I=I+1,Y=$E(Y,2,999)_$E($T(Q+I+1),5,99) S:$A(Y)=61 Y=$E(Y,2,999) X NO E S @X=Y
  1. Q Q
  1. ;;^DIC(354,0,"GL")
  1. ;;=^IBA(354,
  1. ;;^DIC("B","BILLING PATIENT",354)
  1. ;;=
  1. ;;^DIC(354,"%D",0)
  1. ;;=^^21^21^2940307^^^^
  1. ;;^DIC(354,"%D",1,0)
  1. ;;=DO NOT EDIT THIS FILE.
  1. ;;^DIC(354,"%D",2,0)
  1. ;;=
  1. ;;^DIC(354,"%D",3,0)
  1. ;;=Under normal operation it is not necessary to edit the fields in this
  1. ;;^DIC(354,"%D",4,0)
  1. ;;=file directly. The option Manually Change Copay Exemption (Hardships) can
  1. ;;^DIC(354,"%D",5,0)
  1. ;;=be used to update and correct this entry by creating a new exemption.
  1. ;;^DIC(354,"%D",6,0)
  1. ;;=If many patient records have problems the option Print/Verify Patient
  1. ;;^DIC(354,"%D",7,0)
  1. ;;=Exemption Status can be used to correct the entries.
  1. ;;^DIC(354,"%D",8,0)
  1. ;;=
  1. ;;^DIC(354,"%D",9,0)
  1. ;;=The data in this file is updated each time a new (current) exemption
  1. ;;^DIC(354,"%D",10,0)
  1. ;;=is created for a patient. Exemptions are automatically created when
  1. ;;^DIC(354,"%D",11,0)
  1. ;;=changes in patient information change the exemption status or when
  1. ;;^DIC(354,"%D",12,0)
  1. ;;=an expired (older than 1 year) exemption is encountered when determining
  1. ;;^DIC(354,"%D",13,0)
  1. ;;=the exemption status for pharmacy.
  1. ;;^DIC(354,"%D",14,0)
  1. ;;=
  1. ;;^DIC(354,"%D",15,0)
  1. ;;=This file will contain specific information related to billing about
  1. ;;^DIC(354,"%D",16,0)
  1. ;;=individual patients. Current Status of the Medication Copayment Exemption
  1. ;;^DIC(354,"%D",17,0)
  1. ;;=will be kept in this file. Conceptually this is different than the
  1. ;;^DIC(354,"%D",18,0)
  1. ;;=BILLING EXEMPTIONS File which maintains the audit log and historical data
  1. ;;^DIC(354,"%D",19,0)
  1. ;;=related to billing exemptions.
  1. ;;^DIC(354,"%D",20,0)
  1. ;;=
  1. ;;^DIC(354,"%D",21,0)
  1. ;;=Per VHA Directive 10-93-142, this file definition should not be modified.
  1. ;;^DD(354,0)
  1. ;;=FIELD^^.05^4
  1. ;;^DD(354,0,"DDA")
  1. ;;=N
  1. ;;^DD(354,0,"DT")
  1. ;;=2930210
  1. ;;^DD(354,0,"ID",.04)
  1. ;;=W " ",@("$P($P($C(59)_$S($D(^DD(354,.04,0)):$P(^(0),U,3),1:0)_$E("_DIC_"Y,0),0),$C(59)_$P(^(0),U,4)_"":"",2),$C(59),1)")
  1. ;;^DD(354,0,"ID",.05)
  1. ;;=S %I=Y,Y=$S('$D(^(0)):"",$D(^IBE(354.2,+$P(^(0),U,5),0))#2:$P(^(0),U,1),1:""),C=$P(^DD(354.2,.01,0),U,2) D Y^DIQ:Y]"" W " ",Y,@("$E("_DIC_"%I,0),0)") S Y=%I K %I
  1. ;;^DD(354,0,"IX","AC",354,.05)
  1. ;;=
  1. ;;^DD(354,0,"IX","AD",354,.03)
  1. ;;=
  1. ;;^DD(354,0,"IX","AEX",354,.04)
  1. ;;=
  1. ;;^DD(354,0,"IX","B",354,.01)
  1. ;;=
  1. ;;^DD(354,0,"NM","BILLING PATIENT")
  1. ;;=
  1. ;;^DD(354,0,"PT",354.1,.02)
  1. ;;=
  1. ;;^DD(354,.01,0)
  1. ;;=PATIENT NAME^RP2'X^DPT(^0;1^S DINUM=X
  1. ;;^DD(354,.01,1,0)
  1. ;;=^.1
  1. ;;^DD(354,.01,1,1,0)
  1. ;;=354^B
  1. ;;^DD(354,.01,1,1,1)
  1. ;;=S ^IBA(354,"B",$E(X,1,30),DA)=""
  1. ;;^DD(354,.01,1,1,2)
  1. ;;=K ^IBA(354,"B",$E(X,1,30),DA)
  1. ;;^DD(354,.01,3)
  1. ;;=Enter the name of the patient as it appears in the patient file or enter the SSN or last four.
  1. ;;^DD(354,.01,21,0)
  1. ;;=^^1^1^2930121^^
  1. ;;^DD(354,.01,21,1,0)
  1. ;;=This is the name of the patient as it appears in the patient file.
  1. ;;^DD(354,.01,23,0)
  1. ;;=^^2^2^2930121^^
  1. ;;^DD(354,.01,23,1,0)
  1. ;;=This field is the pointer to the PATIENT file. It will use the same
  1. ;;^DD(354,.01,23,2,0)
  1. ;;=internal entry number in this file as in the PATIENT file.
  1. ;;^DD(354,.01,"DEL",1,0)
  1. ;;=I 1 W !,"Deleting entries not allowed"
  1. ;;^DD(354,.01,"DT")
  1. ;;=2930121
  1. ;;^DD(354,.03,0)
  1. ;;=COPAY EXEMPTION STATUS DATE^RDX^^0;3^S %DT="EX" D ^%DT S X=Y K:Y<1 X K:X'=$P(^IBA(354,DA,0),U,3) X
  1. ;;^DD(354,.03,.1)
  1. ;;=CURRENT RX COPAY INCOME EXEMPTION STATUS DATE
  1. ;;^DD(354,.03,1,0)
  1. ;;=^.1
  1. ;;^DD(354,.03,1,1,0)
  1. ;;=354^AD
  1. ;;^DD(354,.03,1,1,1)
  1. ;;=S ^IBA(354,"AD",$E(X,1,30),DA)=""
  1. ;;^DD(354,.03,1,1,2)
  1. ;;=K ^IBA(354,"AD",$E(X,1,30),DA)