{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Submission","description":"Tyro Health Docs","keywords":"redocly developer portal, api portal starter, api reference docs","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"submission","__idx":0},"children":["Submission"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"js","header":{"controls":{"copy":{}}},"source":"\nmedipassTransactionSDK.renderCreateTransaction({\n  funder:'dva',\n  providerNumber: string,\n  invoiceReference: string,\n\n  patient.refId: string,\n  // OR\n  patient: {\n    firstName: string,\n    lastName: string,\n    dob: string,\n    accountNumber: string,\n  },\n  \n\n  claimableItems: [{\n    itemCode: string,\n    serviceDateString: string,\n    price: string,\n  \n  }],\n\n  webhooks: [{\n    url: string,\n    event:\n      'healthFundPaidInvoice' |\n      'healthFundApprovedInvoice' |\n      'healthFundRejectedInvoice',\n    method: 'GET' | 'PUT' | 'POST' | 'DELETE',\n    headers: { [key: string]: string }\n  }],\n\n   funderData: {\n      lspn: string,\n      facilityId: string,\n      isInHospital: boolean,\n      treatmentLocation: 'V' | 'H' | 'R' | 'N' | 'C' | undefined\n      dva: {\n        referral: {\n          providerNumber: string,\n          providerName: string,\n          referrerType: 'gp' | 'specialist',\n          issueDateString: string,\n          period: 'standard' | 'non-standard' | 'indefinite'\n        },\n    nonReferral: {\n          reason: 'hospital' | 'lost' | 'emergency' | 'not-required' | 'remote-exemption',\n          description: string\n        }\n      }\n    }\n}, {\n  onSuccess: function (transaction) { /* ... */ },\n  onError: function (error) { /* ... */ },\n  onCancel: function () { /* ... */ }\n})\n\n\n","lang":"js"},"children":[]}]},"headings":[{"value":"Submission","id":"submission","depth":1}],"frontmatter":{"title":"Submission","seo":{"title":"Submission"}},"lastModified":"2022-11-01T21:53:13.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/developer-portal/dva/submission","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}