Skip to content
Last updated

Worksafe Victoria attributes and Sample Transaction

Creating a transaction

Use function: medipassTransactionSDK.renderCreateTransaction()

To process a Worksafe Victoria insurance claim, the following fields apply. Any required field not passed to the SDK will be prompted at the TyroHealth submission page.

Attributes table:

Required column values:

ValueDescription
MMandatory
OOptional
CConditional
FieldType/FormatRequiredDescriptionExample
funderStringMSet to wsv for Worksafe Vic claimswsv
providerNumberStringMPhysiotherapists and General Practitioners are registered with their medicare provider ID. Pharmacies will need to obtain a Worksafe Vic issued provider number linked to their ABN and last name.2429591L
funderData.wsv.referral.referrerTypeStringOValid values only
Standard or not-supplied
Defaults to "standard"
not-supplied
funderData.wsv.referral.providerNumberStringOReferring provider's number2429591K
funderData.wsv.referral.providerNameStringOName of the referring provider.Dr Dominic Reed
invoiceReferenceStringMProvider nominated unique transaction reference number, such as an invoice number from the practice management or accounting system. Used for reconciliation purposes.INV-20220315-001
patient {} object
patient.firstNameStringMInjured worker's first name as registered with wsv. Middle name is not supported.John
patient.lastNameStringMInjured worker's last name as registered with wsv.Curtain
patient.dobString
YYYY-MM-DD
MInjured worker's Date of Birth in 'YYYY-MM-DD' format.1967-11-02
patient.mobileStringOOptional mobile phone number of the injured worker. This can be used for patient searches in the Tyro Health Online portal International or national notation supported.+61411111111 or 0411111111
patient.accountNumberStringMFunder issued claim number which is unique to an injured worker and case.1372913
OR
patient.refIdStringOAn optional but recommended patient unique reference as set by you, such as a UUID. This value is used to uniquely identify a patient in Tyro Health Online. Omitting refId will cause duplicate patient records to be created and could make patient searches more difficult for providers who also use the Tyro Health Online portal to check on status of a claim and remittance. If supplied and valid, this value will pre-populate patient details from the patient record in the business as set in any prior claim. Any patient details sent for an existing patient record will update those values.5AD5E2AF-69D2-43D3-9321-428495205E5E
claimableItems [] array - Array of fund claimable items.
claimableItems[].serviceDateStringString
YYYY-MM-DD
MDate of the service in 'YYYY-MM-DD' format.2022-01-12
claimableItems[].serviceTimeString
HH:MM
OTime of service in 24 hour format: HH:MM.12:30
claimableItems[].itemCodeString
Up to 12 characters
MItem code - note item code must be valid for wsv, the provider registered profession and service date.AP001
claimableItems[].priceString
Currency notation
MNet (excluding GST) price each unit in $XX.XX format.$15.95
claimableItems[].quantityNumberMQuantity of the item or service relevant to the item's unit of Measure: Item based (consultations etc, quantity value must be 1)
Kilometres(Travel per KMs)
Minutes (Time based services)
Quantity Dispensed(Medications)
1
2
60
2
claimableItems[].descriptionString
Max length 128
ODescription of the item or service. Biller must provide own description where "Description Override" = TrueExamples of item codes where description is required:
Physio : AP001 Pharmacy : OTC01 - OTC09 , ND01 - ND09
claimableItems[].gstInclusiveFlagBooleanMSet to true if GST tax is applicable.true
Worksafe Victoria Additional attributes
claimableItems[].prescriberFirstNameString
Up to 48 Characters
C*First Name of the Prescribing Practitioner
Mandatory only for Pharmacy where Item Type = "Private"
John
claimableItems[].prescriberLastNameString
Up to 96 Characters
C*Surname of the Prescribing Practitioner Mandatory only for Pharmacy where Item Type = "Private"Harris
claimableItems[].prescriberNumberString
Up to 20 Characters
NNNNNNAA
C*The Prescriber Number of the Prescribing Practitioner as assigned by Services Australia. This is in addition to their Medicare Provider Numbers (Stem & Suffixes). Mandatory only for Pharmacy where Item Type ="Private"1234567AB
claimableItems[].scriptNumberString
Up to 20 Characters
NNNNNNAA
C*Unique number of the script issued by Prescribing Practitioner
Mandatory only for Pharmacy where Item Type = "Private"
9876543CD
claimableItems[].authorityNumberString
Up to 20 Characters
NNNNNNAA
OUnique authority number supplied to authorise the individual prescription. Only particular sub-sets of prescribed drugs require this additional authorisation number to be captured.
Optional for Pharmacy where Item Type = "Private"
1122334EF
claimableItems[].numberOfPatientsSeenNumber
Up to 3 Characters
NNNNNNNNNN
ONumber of patients attending same service Only where "MBS Attendance Item Flag" =True2

Sample Transaction

medipassTransactionSDK.renderCreateTransaction({
   funder: 'string',
   providerNumber: 'string',
   invoiceReference: 'string', 
   
   funderData: {
      wsv: {
         referral: {
            referrerType: 'string',
            providerNumber: 'string',
            providerName: 'string'
         },

    patient: {
      firstName: 'string',
      lastName: 'string',
      dob: 'string',
      mobile: '+string',
      accountNumber: 'string',
      refId: 'string'
    },
    claimableItems: [
      {
        itemCode: 'string',
        price: 'string'
      }
    ],
    webhooks: [
    {
      url: 'string',
      event: 'invoiceCancelled,healthFundApprovedInvoice,healthFundRejectedInvoice',
      method: 'POST',
      headers: { [Key: string] : your string }
    }],
}, {
  onSuccess: function (transaction) { /* ... */ },
  onError: function (error) { /* ... */ },
  onCancel: function () { /* ... */ }
})

Claim response attributes

When a transaction is processed, the SDK will pass through the transaction details to the first parameter of the onSuccess callback.

The response payload contains a number of attributes with a complete description of the transaction model in our online API documentation.

Key response attributes include

FieldType/FormatDescriptionExample
_id128 charactersTyro Health Online unique transaction reference5ce4d63cb0a38c005582b838
patient {} object
patient.firstNameUp to 40 charactersPatient names as validated with WorkSafe Victoria
Patient first / given name as registered with WorkSafe Victoria.
Willis
patient.lastNameUp to 40 charactersPatient last / family name as registered with WorkSafe Victoria.Alphine
patient.dobStringString
YYYY-MM-DD
Date of birth in YYYY-MM-DD format.1991-13-06
practice {} object
practice.idStringInternal practice ID61f7297f272329006343997e
practice.fullNameStringName of practiceMavis Medical Practice
claims {} object
claims.status256 charactersDescription of overall claim/quoteApproved
claims.statusDescriptionStringDescription of the statusPayment Approved
claims.gatewayCodeStringClaim item gateway response code00
claims.amountExpectedBenefitStringString
Currency notation
Total claim benefit amount in cents or (string) in currency notation WorkSafe Victoria is expected to pay.8000 / $80.00
claimItems.amountActualBenefitStringString
Currency notation
The amount WorkSafe Victoria has approved to pay in currency format. E.g. $119.95.$50.00
claims.amountGap/claims.amountGapStringString
Currency notation
Total claim gap (employee payable) amount in cents or (string) in currency notation.6000 / $60.00
claims.claimItems [] array - For each claimed item, a separate line level response as below.
claims.claimItems.status256 charactersDescription of the claim/quote item level statusApproved
claims.claimItems.gatewayCodeStringClaim gateway response code00
claims.claimItems.amountActualBenefit / claims.claimItems.amountActualBenefitStringString
Currency notation
Claim item benefit amount in cents or (string) in currency notation.4000 / $40.00
claims.claimItems.amountGap/ claims.claimItems.amountGapStringString
Currency notation
Claim item gap (member payable) amount in cents or (string) in currency notation.2500 / $25.00