Customer - Transactions
/
Y
N
0.0
0.0
1000
1
1
N
Y
5000
Y
admin
2007/04/09 10:47:12.000
RxWorks
MSACCESS
ODBC
RxWorks
-1
Encrypted
EXTRA_OPTION_MYSQL.defaultFetchSize
500
EXTRA_OPTION_MYSQL.useCursorFetch
true
IS_CLUSTERED
N
MAXIMUM_POOL_SIZE
10
PORT_NUMBER
-1
STREAM_RESULTS
Y
USE_POOLING
N
Select Transaction FieldsTransform FieldsY Transform FieldsFilter InvoicesY Filter InvoicesInvoice OutputY Filter CreditsFilter PaymentsY Filter CreditsCredit OutputY Filter PaymentsPayment OutputY Filter PaymentsFilter RefundsY Filter RefundsRefund OutputY Filter RefundsFilter DebitY Filter DebitDebit OutputY Filter DebitFilter CreditY Filter CreditCredit Adj OutputY Filter CreditFilter InitY Filter InitFilter BadY Filter BadBad OutputY Table inputSelect Transaction FieldsY Filter BadDummy (do nothing)Y Filter InitInit OutputY Filter InvoicesFilter Counter SalesY Filter Counter SalesFilter CreditsY Filter Counter SalesCounter SalesY
Bad Output
OpenVPMSLoaderPlugin
Y
1
none
openvpmsTRANSID<act.customerAccountBadDebt>startTimetruefalse<act.customerAccountBadDebt>statustruefalse<act.customerAccountBadDebt>amounttruefalse<act.customerAccountBadDebt>taxtruefalse<act.customerAccountBadDebt>referencetruefalse<act.customerAccountDebitAdjust>notesfalsefalse<act.customerAccountBadDebt>customer[0]<participation.customer>entitytrue<party.customerperson>$valuefalse<act.customerAccountBadDebt>customer[0]<participation.customer>acttrue<act.customerAccountBadDebt>$valuefalsetruetrue1000
764
627
Y
Counter Sales
OpenVPMSLoaderPlugin
Y
1
none
openvpmsTRANSID<act.customerAccountChargesCounter>startTimetruefalse<act.customerAccountChargesCounter>statustruefalse<act.customerAccountChargesCounter>amounttruefalse<act.customerAccountChargesCounter>taxtruefalse<act.customerAccountChargesCounter>customer[0]<participation.customer>entitytrue<party.customerperson>$valuefalse<act.customerAccountChargesCounter>customer[0]<participation.customer>acttrue<act.customerAccountChargesCounter>$valuefalsetruetrue1000
753
122
Y
Credit Adj Output
OpenVPMSLoaderPlugin
Y
1
none
openvpmsTRANSID<act.customerAccountCreditAdjust>startTimetruefalse<act.customerAccountCreditAdjust>statustruefalse<act.customerAccountCreditAdjust>amounttruefalse<act.customerAccountCreditAdjust>taxtruefalse<act.customerAccountCreditAdjust>referencetruefalse<act.customerAccountDebitAdjust>notesfalsefalse<act.customerAccountCreditAdjust>customer[0]<participation.customer>entitytrue<party.customerperson>$valuefalse<act.customerAccountCreditAdjust>customer[0]<participation.customer>acttrue<act.customerAccountCreditAdjust>$valuefalsetruetrue1000
763
482
Y
Credit Output
OpenVPMSLoaderPlugin
Y
1
none
openvpmsTRANSID<act.customerAccountChargesCredit>startTimetruefalse<act.customerAccountChargesCredit>statustruefalse<act.customerAccountChargesCredit>amounttruefalse<act.customerAccountChargesCredit>taxtruefalse<act.customerAccountChargesCredit>referencetruefalse<act.customerAccountChargesCredit>notestruefalse<act.customerAccountChargesCredit>customer[0]<participation.customer>entitytrue<party.customerperson>$valuefalse<act.customerAccountChargesCredit>customer[0]<participation.customer>acttrue<act.customerAccountChargesCredit>$valuefalsetruetrue1000
755
189
Y
Debit Output
OpenVPMSLoaderPlugin
Y
1
none
openvpmsTRANSID<act.customerAccountDebitAdjust>startTimetruefalse<act.customerAccountDebitAdjust>statustruefalse<act.customerAccountDebitAdjust>amounttruefalse<act.customerAccountDebitAdjust>taxtruefalse<act.customerAccountDebitAdjust>referencetruefalse<act.customerAccountDebitAdjust>notesfalsefalse<act.customerAccountDebitAdjust>customer[0]<participation.customer>entitytrue<party.customerperson>$valuefalse<act.customerAccountDebitAdjust>customer[0]<participation.customer>acttrue<act.customerAccountDebitAdjust>$valuefalsetruetrue1000
760
414
Y
Dummy (do nothing)
Dummy
Y
1
none
467
721
Y
Filter Bad
FilterRows
Y
1
none
Bad Output
Dummy (do nothing)
N
TYPE
=
constantInteger 6-10N
469
624
Y
Filter Counter Sales
FilterRows
N
1
none
Counter Sales
Filter Credits
N
N
TYPE
>=
constantInteger 100-10N
N
AND
OLDAMOUNT
>=
constantBigNumber0-1-1N
N
AND
PATIENTID
=
constantInteger-1-10N
469
122
Y
Filter Credit
FilterRows
Y
1
none
Credit Adj Output
Filter Init
N
N
OLDAMOUNT
<
constantNumber0.0-1-1N
N
AND
N
TYPE
=
constantInteger 12-10N
N
OR
TYPE
=
constantInteger 13-10N
N
OR
TYPE
=
constantInteger 14-10N
N
OR
TYPE
=
constantInteger 15-10N
N
OR
TYPE
=
constantInteger 16-10N
469
483
Y
Filter Credits
FilterRows
Y
1
none
Credit Output
Filter Payments
N
N
TYPE
>=
constantInteger 100-10N
N
AND
OLDAMOUNT
<
constantBigNumber0.00-1-1N
468
190
Y
Filter Debit
FilterRows
Y
1
none
Debit Output
Filter Credit
N
N
OLDAMOUNT
>=
constantNumber0.0-1-1N
N
AND
N
TYPE
=
constantInteger 12-10N
N
OR
TYPE
=
constantInteger 13-10N
N
OR
TYPE
=
constantInteger 14-10N
N
OR
TYPE
=
constantInteger 15-10N
N
OR
TYPE
=
constantInteger 16-10N
469
415
Y
Filter Init
FilterRows
Y
1
none
Init Output
Filter Bad
N
N
AND
TYPE
=
constantInteger 11-10N
469
552
Y
Filter Invoices
FilterRows
Y
1
none
Invoice Output
Filter Counter Sales
N
N
TYPE
>=
constantInteger 100-10N
N
AND
OLDAMOUNT
>=
constantBigNumber0-1-1N
N
AND
PATIENTID
<>
constantInteger-1-10N
467
57
Y
Filter Payments
FilterRows
Y
1
none
Payment Output
Filter Refunds
N
N
OLDAMOUNT
>=
constantNumber0.0-1-1N
N
AND
N
TYPE
=
constantInteger 7-10N
N
OR
TYPE
=
constantInteger 8-10N
N
OR
TYPE
=
constantInteger 9-10N
N
OR
TYPE
=
constantInteger 10-10N
N
OR
TYPE
=
constantInteger 1-10N
N
OR
TYPE
=
constantInteger 5-10N
467
258
Y
Filter Refunds
FilterRows
Y
1
none
Refund Output
Filter Debit
N
N
OLDAMOUNT
<
constantNumber0.0-1-1N
N
AND
N
TYPE
=
constantInteger 7-10N
N
OR
TYPE
=
constantInteger 8-10N
N
OR
TYPE
=
constantInteger 9-10N
N
OR
TYPE
=
constantInteger 10-10N
N
OR
TYPE
=
constantInteger 1-10N
N
OR
TYPE
=
constantInteger 5-10N
467
336
Y
Init Output
OpenVPMSLoaderPlugin
Y
1
none
openvpmsTRANSID<act.customerAccountInitialBalance>startTimetruefalse<act.customerAccountInitialBalance>statustruefalse<act.customerAccountInitialBalance>amounttruefalse<act.customerAccountInitialBalance>referencetruefalse<act.customerAccountInitialBalance>credittruefalse<act.customerAccountInitialBalance>customer[0]<participation.customer>entitytrue<party.customerperson>$valuefalse<act.customerAccountInitialBalance>customer[0]<participation.customer>acttrue<act.customerAccountInitialBalance>$valuefalsetruetrue1000
767
553
Y
Invoice Output
OpenVPMSLoaderPlugin
Y
1
none
openvpmsTRANSID<act.customerAccountChargesInvoice>startTimetruefalse<act.customerAccountChargesInvoice>statustruefalse<act.customerAccountChargesInvoice>amounttruefalse<act.customerAccountChargesInvoice>taxtruefalse<act.customerAccountChargesInvoice>referencetruefalse<act.customerAccountChargesInvoice>notestruefalse<act.customerAccountChargesInvoice>customer[0]<participation.customer>entitytrue<party.customerperson>$valuefalse<act.customerAccountChargesInvoice>customer[0]<participation.customer>acttrue<act.customerAccountChargesInvoice>$valuefalsetruetrue1000
750
56
Y
Payment Output
OpenVPMSLoaderPlugin
Y
1
none
openvpmsTRANSID<act.customerAccountPayment>startTimetruefalse<act.customerAccountPayment>statustruefalse<act.customerAccountPayment>amounttruefalse<act.customerAccountPayment>referencetruefalse<act.customerAccountPayment>customer[0]<participation.customer>entitytrue<party.customerperson>$valuefalse<act.customerAccountPayment>customer[0]<participation.customer>acttrue<act.customerAccountPayment>$valuefalse<act.customerAccountPayment>till[0]<participation.till>entitytrue<party.organisationTill>$valuefalse<act.customerAccountPayment>till[0]<participation.till>acttrue<act.customerAccountPayment>$valuefalsetruetrue1000
757
259
Y
Refund Output
OpenVPMSLoaderPlugin
Y
1
none
openvpmsTRANSID<act.customerAccountRefund>startTimetruefalse<act.customerAccountRefund>statustruefalse<act.customerAccountRefund>amounttruefalse<act.customerAccountRefund>referencetruefalse<act.customerAccountRefund>customer[0]<participation.customer>entitytrue<party.customerperson>$valuefalse<act.customerAccountRefund>customer[0]<participation.customer>acttrue<act.customerAccountRefund>$valuefalse<act.customerAccountRefund>till[0]<participation.till>entitytrue<party.organisationTill>$valuefalse<act.customerAccountRefund>till[0]<participation.till>acttrue<act.customerAccountRefund>$valuefalsetruetrue1000
762
333
Y
Select Transaction Fields
SelectValues
Y
1
none
Transaction Number
TRANSID
-2
-2
Client Number
CLIENTID
-2
-2
Transaction Date
DATE
-2
-2
Transaction Amount
AMOUNT
-2
-2
Transaction Type
TYPE
-2
-2
Transaction Text
DESCRIPTION
-2
-2
Transaction Tax
TAXAMT
-2
-2
Reference No
REFERENCE
-2
-2
Type Name
TYPENAME
-2
-2
Patient Number
PATIENTID
-2
-2
Incomplete Status
STATUS
-2
-2
Special Instructions
INSTRUCTIONS
-2
-2
Clinic Code
CLINIC
-2
-2
214
55
Y
Table input
TableInput
Y
1
none
RxWorks
SELECT *
FROM ([Transaction] LEFT JOIN [Visit] ON Visit.[Visit Number] = Transaction.[Visit Number]) INNER JOIN [Transaction Type] ON Transaction.[Transaction Type] = [Transaction Type].[Type Code];
0
N
N
66
59
Y
Transform Fields
ScriptValueMod
Y
1
none
0
Script 1
//Script here
var TRANSTAT = "POSTED"
var OLDAMOUNT = AMOUNT.getNumber()
// If Settlement Discount make negate old amount
if (TYPE.getInt() == 5)
OLDAMOUNT = - OLDAMOUNT
// If Balance Transfer set Credit flag according to amount
var CREDIT = false
if (TYPE.getNumber() == 11 && AMOUNT.getNumber() < 0)
CREDIT = true
// Make amounst absolute
AMOUNT.setNumber(abs(AMOUNT.getNumber()))
TAXAMT.setNumber(abs(TAXAMT.getNumber()))
if (DESCRIPTION.getString() == null)
DESCRIPTION.setString(TYPENAME.getString())
else
DESCRIPTION.setString(TYPENAME.getString() + '-' + DESCRIPTION.getString())
if (INSTRUCTIONS.getString() != null)
DESCRIPTION.setString(DESCRIPTION.getString() + '\n' + INSTRUCTIONS.getString())
TRANSTAT
TRANSTAT
String
-1
-1
OLDAMOUNT
OLDAMOUNT
Number
16
2
CREDIT
CREDIT
Boolean
-1
-1
340
57
Y