IBINI02X ; ; 21-MAR-1994
;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
Q:'DIFQ(350.9) 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
Q Q
;;^DD(350.9,7.01,21,3,0)
;;=If the auto biller should run every night, enter 1.
;;^DD(350.9,7.01,21,4,0)
;;=
;;^DD(350.9,7.01,21,5,0)
;;=This will not effect the date range of the bills themselves, but will
;;^DD(350.9,7.01,21,6,0)
;;=only effect the date they are created.
;;^DD(350.9,7.01,21,7,0)
;;=
;;^DD(350.9,7.01,21,8,0)
;;=If this is left blank or zero then the auto biller will never run.
;;^DD(350.9,7.01,"DT")
;;=2931021
;;^DD(350.9,7.02,0)
;;=LAST AUTO BILLER DATE^D^^7;2^S %DT="EX" D ^%DT S X=Y K:Y<1 X
;;^DD(350.9,7.02,3)
;;=This is the last date on which the auto biller ran.
;;^DD(350.9,7.02,21,0)
;;=^^1^1^2931021^
;;^DD(350.9,7.02,21,1,0)
;;=This is generally set by the system.
;;^DD(350.9,7.02,"DT")
;;=2931021
;;^DD(350.9,7.03,0)
;;=INPATIENT STATUS (AB)^S^1:Closed;2:Released;3:Transmitted;^7;3^Q
;;^DD(350.9,7.03,3)
;;=Enter the Status that an Inpatients PTF record should have before the automated biller attempts to create a bill for that inpatient stay.
;;^DD(350.9,7.03,21,0)
;;=^^9^9^2940125^^^^
;;^DD(350.9,7.03,21,1,0)
;;=This is the status that a PTF record must be in before the automated biller
;;^DD(350.9,7.03,21,2,0)
;;=will attempt to create an inpatient bill.
;;^DD(350.9,7.03,21,3,0)
;;=
;;^DD(350.9,7.03,21,4,0)
;;=The auto biller will use the Frequency, Billing Cycle and Days Delay
;;^DD(350.9,7.03,21,5,0)
;;=parameters to decide when to try to create an inpatient bill. However,
;;^DD(350.9,7.03,21,6,0)
;;=the auto biller can not set up a bill until the PTF record is Closed.
;;^DD(350.9,7.03,21,7,0)
;;=Of the two dates, the date calculated from the site parameters or the date
;;^DD(350.9,7.03,21,8,0)
;;=that the PTF record meets the Status entered here, the bill will be created
;;^DD(350.9,7.03,21,9,0)
;;=on the later date.
;;^DD(350.9,7.03,23,0)
;;=^^12^12^2940125^^^^
;;^DD(350.9,7.03,23,1,0)
;;=This set of codes should exactly mirror the PTF Status (45,6) set of
;;^DD(350.9,7.03,23,2,0)
;;=codes, except for Open.
;;^DD(350.9,7.03,23,3,0)
;;=
;;^DD(350.9,7.03,23,4,0)
;;=Some sites want to wait until the PTF is closed before a bill is created
;;^DD(350.9,7.03,23,5,0)
;;=because they know it will be coded at that time. Others do not want to
;;^DD(350.9,7.03,23,6,0)
;;=bill until the PTF record has been transmitted and they know that it is
;;^DD(350.9,7.03,23,7,0)
;;=complete.
;;^DD(350.9,7.03,23,8,0)
;;=
;;^DD(350.9,7.03,23,9,0)
;;=After this had been added it was decided that an auto bill should not be
;;^DD(350.9,7.03,23,10,0)
;;=created for inpatients until after the PTF record has been closed.
;;^DD(350.9,7.03,23,11,0)
;;=So, the option of creating an auto bill when the PTF record was still open
;;^DD(350.9,7.03,23,12,0)
;;=was removed.
;;^DD(350.9,7.03,"DT")
;;=2940125
IBINI02X ; ; 21-MAR-1994
+1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
+2 IF 'DIFQ(350.9)
QUIT
FOR I=1:2
SET X=$TEXT(Q+I)
IF X=""
QUIT
SET Y=$EXTRACT($TEXT(Q+I+1),4,999)
SET X=$EXTRACT(X,4,999)
IF $ASCII(Y)=126
SET I=I+1
SET Y=$EXTRACT(Y,2,999)_$EXTRACT($TEXT(Q+I+1),5,99)
IF $ASCII(Y)=61
SET Y=$EXTRACT(Y,2,999)
XECUTE NO
IF '$TEST
SET @X=Y
Q QUIT
+1 ;;^DD(350.9,7.01,21,3,0)
+2 ;;=If the auto biller should run every night, enter 1.
+3 ;;^DD(350.9,7.01,21,4,0)
+4 ;;=
+5 ;;^DD(350.9,7.01,21,5,0)
+6 ;;=This will not effect the date range of the bills themselves, but will
+7 ;;^DD(350.9,7.01,21,6,0)
+8 ;;=only effect the date they are created.
+9 ;;^DD(350.9,7.01,21,7,0)
+10 ;;=
+11 ;;^DD(350.9,7.01,21,8,0)
+12 ;;=If this is left blank or zero then the auto biller will never run.
+13 ;;^DD(350.9,7.01,"DT")
+14 ;;=2931021
+15 ;;^DD(350.9,7.02,0)
+16 ;;=LAST AUTO BILLER DATE^D^^7;2^S %DT="EX" D ^%DT S X=Y K:Y<1 X
+17 ;;^DD(350.9,7.02,3)
+18 ;;=This is the last date on which the auto biller ran.
+19 ;;^DD(350.9,7.02,21,0)
+20 ;;=^^1^1^2931021^
+21 ;;^DD(350.9,7.02,21,1,0)
+22 ;;=This is generally set by the system.
+23 ;;^DD(350.9,7.02,"DT")
+24 ;;=2931021
+25 ;;^DD(350.9,7.03,0)
+26 ;;=INPATIENT STATUS (AB)^S^1:Closed;2:Released;3:Transmitted;^7;3^Q
+27 ;;^DD(350.9,7.03,3)
+28 ;;=Enter the Status that an Inpatients PTF record should have before the automated biller attempts to create a bill for that inpatient stay.
+29 ;;^DD(350.9,7.03,21,0)
+30 ;;=^^9^9^2940125^^^^
+31 ;;^DD(350.9,7.03,21,1,0)
+32 ;;=This is the status that a PTF record must be in before the automated biller
+33 ;;^DD(350.9,7.03,21,2,0)
+34 ;;=will attempt to create an inpatient bill.
+35 ;;^DD(350.9,7.03,21,3,0)
+36 ;;=
+37 ;;^DD(350.9,7.03,21,4,0)
+38 ;;=The auto biller will use the Frequency, Billing Cycle and Days Delay
+39 ;;^DD(350.9,7.03,21,5,0)
+40 ;;=parameters to decide when to try to create an inpatient bill. However,
+41 ;;^DD(350.9,7.03,21,6,0)
+42 ;;=the auto biller can not set up a bill until the PTF record is Closed.
+43 ;;^DD(350.9,7.03,21,7,0)
+44 ;;=Of the two dates, the date calculated from the site parameters or the date
+45 ;;^DD(350.9,7.03,21,8,0)
+46 ;;=that the PTF record meets the Status entered here, the bill will be created
+47 ;;^DD(350.9,7.03,21,9,0)
+48 ;;=on the later date.
+49 ;;^DD(350.9,7.03,23,0)
+50 ;;=^^12^12^2940125^^^^
+51 ;;^DD(350.9,7.03,23,1,0)
+52 ;;=This set of codes should exactly mirror the PTF Status (45,6) set of
+53 ;;^DD(350.9,7.03,23,2,0)
+54 ;;=codes, except for Open.
+55 ;;^DD(350.9,7.03,23,3,0)
+56 ;;=
+57 ;;^DD(350.9,7.03,23,4,0)
+58 ;;=Some sites want to wait until the PTF is closed before a bill is created
+59 ;;^DD(350.9,7.03,23,5,0)
+60 ;;=because they know it will be coded at that time. Others do not want to
+61 ;;^DD(350.9,7.03,23,6,0)
+62 ;;=bill until the PTF record has been transmitted and they know that it is
+63 ;;^DD(350.9,7.03,23,7,0)
+64 ;;=complete.
+65 ;;^DD(350.9,7.03,23,8,0)
+66 ;;=
+67 ;;^DD(350.9,7.03,23,9,0)
+68 ;;=After this had been added it was decided that an auto bill should not be
+69 ;;^DD(350.9,7.03,23,10,0)
+70 ;;=created for inpatients until after the PTF record has been closed.
+71 ;;^DD(350.9,7.03,23,11,0)
+72 ;;=So, the option of creating an auto bill when the PTF record was still open
+73 ;;^DD(350.9,7.03,23,12,0)
+74 ;;=was removed.
+75 ;;^DD(350.9,7.03,"DT")
+76 ;;=2940125