Submission

Copy
Copied
medipassTransactionSDK.renderCreateTransaction({
  funder:'Medicare',
  providerNumber: string,
  invoiceReference: string,
  benefitPayee: {
    providerNumber: string,
    providerFullName: string

  patient.refId: string,
  // OR
  patient: {
    firstName: string,
    lastName: string,
    mobile: string,
    dob: string,
    email: string,
    accountNumber: string,
    reference: string
  },

  claimableItems: [{
    itemCode: string,
    serviceDateString: string,
    price: string,
  
  }],

  webhooks: [{
    url: string,
    event:
      'healthFundPaidInvoice' |
      'healthFundApprovedInvoice' |
      'healthFundRejectedInvoice',
    method: 'GET' | 'PUT' | 'POST' | 'DELETE',
    headers: { [key: string]: string }
  }],

  funderData: {
    medicare: {
        claimType: 'bulkbill',
        lspNumber: string,
        facilityId: string,
        isInHospital: boolean,

        claimantPatientId: string,
        // OR
        claimant: {
          refId: string,
          firstName: string,
          lastName: string,
          mobile: string,
          dob: string,
          accountNumber: string,
          reference: string
        },

        referral: {
          providerNumber: string,
          providerName: string,
          referrerType: 'gp' | 'specialist',
          issueDateString: string,
          period: 'standard' | 'non-standard' | 'indefinite',
          periodDescription: number
        },
    nonReferral: {
          reason: 'hospital' | 'lost' | 'emergency' | 'not-required' | 'remote-exemption',
          description: string
        }
      }
  }
}, {
  onSuccess: function (transaction) { /* ... */ },
  onError: function (error) { /* ... */ },
  onCancel: function () { /* ... */ }
})

Tyro Health playground samples:

Tyro Health has a playground to allow you to test SDK transactions. You can access Playground by clicking on the below link:

https://playground.medipass.io/

  • You will need a API Key and APP ID to use Playground.
  • You will receive these credentials from your partnerships manager. If you haven’t yet received these, please contact healthpartnerships@tyro.com.

Sample transactions

Once you have inserted your API Key and APP ID click on the refresh token button and you will be able to view the the below transactions in playground:

Sample transactions 1: Example of config for Bulk billed:

Copy
Copied
medipassPartnerSDK.renderCreateTransaction({
  funder: "medicare",
  invoiceReference: "INV12350",
  providerNumber: "2409661B",
    benefitPayee: {
    providerNumber: "2409661B",
    providerFullName:"Dr Jane Smith"
  },
  funderData: {
    medicare: {
      claimType: "bulkbill",
      lspNumber: "01",
      isInHospital: false,
      facilityId: "9988770W",
      referral: {
        referrerType: "gp",
        providerNumber: "2054781W",
        providerName: "Dr. Jane Smith",
        issueDateString: "2020-07-23",
        period: "standard"
      }
    }
  },
  
  patient: {
    firstName: "FELICIA",
    lastName: "HENDRIX",
    dob: "1975-04-01",
    mobile: "0411111111"
    accountNumber: "6950507392",
    reference: "1"
  },
  claimableItems: [
    {
      itemCode: "23",
      serviceDateString: "2022-02-15",
      price: "$90",
      serviceText: "Not currently on Medication"
    }

Sample transactions 2: Example of config for transaction Patient claim

Copy
Copied
medipassPartnerSDK.renderCreateTransaction({
  invoiceReference: "INV12350",
  funder: "medicare",
  providerNumber: "2409661B"
  },
  funderData: {
    medicare: {
      claimType: "patientclaim",
      lspNumber: "01",
      isInHospital: false,
      facilityId: "9988770W",
      referral: {
        referrerType: "gp",
        providerNumber: "2054781W",
        providerName: "Dr. Jane Smith",
        issueDateString: "2020-07-23",
        period: "standard"
      }
    }
  },
  patient: {
    firstName: "FELICIA",
    lastName: "HENDRIX",
    dob: "1975-04-01",
    mobile: "0411111111"
    accountNumber: "6950507392",
    reference: "1"
  },
  claimableItems: [
    {
      itemCode: "93593",
      serviceDateString: "2022-02-15",
      price: "$90",
      serviceText: "Not currently on Medication"
    }
2024 Copyright © Tyro Health and Tyro Payments 2024. All right reserved.