{"_id":"5621497cc412c31900ee2796","category":"5621497bc412c31900ee2794","link_external":false,"version":"5621497bc412c31900ee2793","api":{"settings":"","url":"","auth":"required","params":[],"results":{"codes":[{"name":"","status":200,"language":"json","code":"{}"},{"language":"json","code":"{}","name":"","status":400}]}},"body":"[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"API Authentication & Configuration\"\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"How to get an API Token\",\n  \"body\": \"If you have API access, you can find your API token by navigating to [DaisyBill](http://go.daisybill.com), clicking on your username found on the right side of the top nav-bar, and clicking ```Edit User```.\\n\\nYou can request a new token by clicking the ```Generate Token``` button.\"\n}\n[/block]\nYour API token can be set as follows:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"DaisybillApi.configuration.api_token = \\\"123456789abcdef\\\"\\n# => \\\"123456789abcdef\\\"\",\n      \"language\": \"ruby\",\n      \"name\": \"Token configuration\"\n    }\n  ]\n}\n[/block]\n\n```host``` and ```port``` are set by default:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"DaisybillApi.configuration.host\\n# => \\\"go.daisybill.com\\\"\\n\\nDaisybillApi.configuration.port\\n# => 443\",\n      \"language\": \"ruby\",\n      \"name\": \"Default configuration\"\n    }\n  ]\n}\n[/block]\nSee the [daisybill_api gem docs](http://www.rubydoc.info/github/daisybill/daisybill_api) for more information\n\n## Examples\n- [Five steps to submit a bill](page:examples)","excerpt":"This page will help you get started with the DaisyBill API. You'll be up and running in a jiffy!","project":"5621497ac412c31900ee2790","sync_unique":"","updates":["5c13ecb2ad38f508f9700b66"],"user":"562148f56e20d40d007310fc","__v":47,"createdAt":"2015-10-16T19:01:16.613Z","isReference":false,"parentDoc":null,"slug":"getting-started","type":"basic","githubsync":"","hidden":false,"link_url":"","next":{"description":"","pages":[]},"order":0,"title":"Getting Started with DaisyBill API","childrenPages":[]}

Getting Started with DaisyBill API

This page will help you get started with the DaisyBill API. You'll be up and running in a jiffy!

[block:api-header] { "type": "basic", "title": "API Authentication & Configuration" } [/block] [block:callout] { "type": "info", "title": "How to get an API Token", "body": "If you have API access, you can find your API token by navigating to [DaisyBill](http://go.daisybill.com), clicking on your username found on the right side of the top nav-bar, and clicking ```Edit User```.\n\nYou can request a new token by clicking the ```Generate Token``` button." } [/block] Your API token can be set as follows: [block:code] { "codes": [ { "code": "DaisybillApi.configuration.api_token = \"123456789abcdef\"\n# => \"123456789abcdef\"", "language": "ruby", "name": "Token configuration" } ] } [/block] ```host``` and ```port``` are set by default: [block:code] { "codes": [ { "code": "DaisybillApi.configuration.host\n# => \"go.daisybill.com\"\n\nDaisybillApi.configuration.port\n# => 443", "language": "ruby", "name": "Default configuration" } ] } [/block] See the [daisybill_api gem docs](http://www.rubydoc.info/github/daisybill/daisybill_api) for more information ## Examples - [Five steps to submit a bill](page:examples)
View all 84 endpoints
[block:api-header] { "type": "basic", "title": "API Authentication & Configuration" } [/block] [block:callout] { "type": "info", "title": "How to get an API Token", "body": "If you have API access, you can find your API token by navigating to [DaisyBill](http://go.daisybill.com), clicking on your username found on the right side of the top nav-bar, and clicking ```Edit User```.\n\nYou can request a new token by clicking the ```Generate Token``` button." } [/block] Your API token can be set as follows: [block:code] { "codes": [ { "code": "DaisybillApi.configuration.api_token = \"123456789abcdef\"\n# => \"123456789abcdef\"", "language": "ruby", "name": "Token configuration" } ] } [/block] ```host``` and ```port``` are set by default: [block:code] { "codes": [ { "code": "DaisybillApi.configuration.host\n# => \"go.daisybill.com\"\n\nDaisybillApi.configuration.port\n# => 443", "language": "ruby", "name": "Default configuration" } ] } [/block] See the [daisybill_api gem docs](http://www.rubydoc.info/github/daisybill/daisybill_api) for more information ## Examples - [Five steps to submit a bill](page:examples)
{"_id":"596cd4fa8ce87f003d39cc54","project":"5621497ac412c31900ee2790","version":"5621497bc412c31900ee2793","category":"596cd4aa7485f2001a09cd0d","user":"5928300b3ddea50f00aec401","updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-07-17T15:17:14.650Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[{"status":200,"language":"json","code":"{}","name":""},{"status":400,"language":"json","code":"{}","name":""}]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":0,"body":"[block:callout]\n{\n  \"type\": \"info\",\n  \"body\": \"Index endpoints return records in a paginated fashion to make sure responses are easier to handle. The number of records returned per page can be set using the `per_page` query parameter. By default the maximum number of records to be returned `per_page` is 25, however the maximum is 100 for the Claims Administrator and Payer index endpoints. See the query params listed under each index endpoint for more options.\",\n  \"title\": \"Pagination\"\n}\n[/block]\nEach paginated response from DaisyBill includes corresponding headers, including the next page, offset, current page, number of records per page, total number of records, and total number of pages. See below:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"X-Next-Page: 2\\nX-Offset: 0\\nX-Page: 1\\nX-Per-Page 25\\nX-Total: 2999\\nX-Total-Pages: 120\",\n      \"language\": \"text\",\n      \"name\": \"Pagination Headers\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"pagination","type":"basic","title":"Paginated Responses","__v":0,"parentDoc":null,"childrenPages":[]}

Paginated Responses


[block:callout] { "type": "info", "body": "Index endpoints return records in a paginated fashion to make sure responses are easier to handle. The number of records returned per page can be set using the `per_page` query parameter. By default the maximum number of records to be returned `per_page` is 25, however the maximum is 100 for the Claims Administrator and Payer index endpoints. See the query params listed under each index endpoint for more options.", "title": "Pagination" } [/block] Each paginated response from DaisyBill includes corresponding headers, including the next page, offset, current page, number of records per page, total number of records, and total number of pages. See below: [block:code] { "codes": [ { "code": "X-Next-Page: 2\nX-Offset: 0\nX-Page: 1\nX-Per-Page 25\nX-Total: 2999\nX-Total-Pages: 120", "language": "text", "name": "Pagination Headers" } ] } [/block]
[block:callout] { "type": "info", "body": "Index endpoints return records in a paginated fashion to make sure responses are easier to handle. The number of records returned per page can be set using the `per_page` query parameter. By default the maximum number of records to be returned `per_page` is 25, however the maximum is 100 for the Claims Administrator and Payer index endpoints. See the query params listed under each index endpoint for more options.", "title": "Pagination" } [/block] Each paginated response from DaisyBill includes corresponding headers, including the next page, offset, current page, number of records per page, total number of records, and total number of pages. See below: [block:code] { "codes": [ { "code": "X-Next-Page: 2\nX-Offset: 0\nX-Page: 1\nX-Per-Page 25\nX-Total: 2999\nX-Total-Pages: 120", "language": "text", "name": "Pagination Headers" } ] } [/block]
{"_id":"562e3b2be01a430d00c2c956","link_external":false,"parentDoc":null,"sync_unique":"","user":"562148f56e20d40d007310fc","title":"400 Bad Request","type":"basic","version":"5621497bc412c31900ee2793","category":"562e3846d38b650d00444803","createdAt":"2015-10-26T14:39:39.632Z","link_url":"","slug":"bad-requests","order":0,"updates":[],"__v":5,"api":{"auth":"required","params":[],"results":{"codes":[{"status":200,"language":"json","code":"{}","name":""},{"status":400,"language":"json","code":"{}","name":""}]},"settings":"","url":""},"githubsync":"","hidden":false,"project":"5621497ac412c31900ee2790","body":"[block:api-header]\n{\n  \"type\": \"post\",\n  \"title\": \"Create Rendering Provider\"\n}\n[/block]\nMany DaisyBill models use validators to ensure that valid data is persisted when a record is created or updated. Consider the following request and its response:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"rendering_provider = DaisybillApi::Models::RenderingProvider.create(\\n  billing_provider_id: 25,\\n  first_name: \\\"Cecile\\\",\\n  last_name: \\\"Romaguera\\\",\\n  npi: \\\"3\\\",\\n  state_license_number: \\\"251229\\\",\\n  taxonomy_code: \\\"\\\",\\n  type_of_specialty: \\\"Basketball-player\\\"\\n)\",\n      \"language\": \"ruby\",\n      \"name\": \"Invalid Request\"\n    }\n  ]\n}\n[/block]\nValidation errors are included in the response, showing the attributes corresponding to invalid inputs and their respective errors:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{  \\n  \\\"errors\\\":{  \\n    \\\"taxonomy\\\":[\\\"can't be blank\\\"],\\n    \\\"npi\\\":[\\\"is the wrong length (should be 10 characters)\\\"],\\n    \\\"type_of_specialty\\\":[\\\"is not included in the list\\\"]\\n  }\\n}\",\n      \"language\": \"json\",\n      \"name\": \"Response to bad request (400)\"\n    }\n  ]\n}\n[/block]","excerpt":"","isReference":false,"childrenPages":[]}

400 Bad Request


[block:api-header] { "type": "post", "title": "Create Rendering Provider" } [/block] Many DaisyBill models use validators to ensure that valid data is persisted when a record is created or updated. Consider the following request and its response: [block:code] { "codes": [ { "code": "rendering_provider = DaisybillApi::Models::RenderingProvider.create(\n billing_provider_id: 25,\n first_name: \"Cecile\",\n last_name: \"Romaguera\",\n npi: \"3\",\n state_license_number: \"251229\",\n taxonomy_code: \"\",\n type_of_specialty: \"Basketball-player\"\n)", "language": "ruby", "name": "Invalid Request" } ] } [/block] Validation errors are included in the response, showing the attributes corresponding to invalid inputs and their respective errors: [block:code] { "codes": [ { "code": "{ \n \"errors\":{ \n \"taxonomy\":[\"can't be blank\"],\n \"npi\":[\"is the wrong length (should be 10 characters)\"],\n \"type_of_specialty\":[\"is not included in the list\"]\n }\n}", "language": "json", "name": "Response to bad request (400)" } ] } [/block]
[block:api-header] { "type": "post", "title": "Create Rendering Provider" } [/block] Many DaisyBill models use validators to ensure that valid data is persisted when a record is created or updated. Consider the following request and its response: [block:code] { "codes": [ { "code": "rendering_provider = DaisybillApi::Models::RenderingProvider.create(\n billing_provider_id: 25,\n first_name: \"Cecile\",\n last_name: \"Romaguera\",\n npi: \"3\",\n state_license_number: \"251229\",\n taxonomy_code: \"\",\n type_of_specialty: \"Basketball-player\"\n)", "language": "ruby", "name": "Invalid Request" } ] } [/block] Validation errors are included in the response, showing the attributes corresponding to invalid inputs and their respective errors: [block:code] { "codes": [ { "code": "{ \n \"errors\":{ \n \"taxonomy\":[\"can't be blank\"],\n \"npi\":[\"is the wrong length (should be 10 characters)\"],\n \"type_of_specialty\":[\"is not included in the list\"]\n }\n}", "language": "json", "name": "Response to bad request (400)" } ] } [/block]
{"_id":"562e3d014376430d006f179a","hidden":false,"isReference":false,"updates":[],"createdAt":"2015-10-26T14:47:29.546Z","githubsync":"","parentDoc":null,"type":"basic","version":"5621497bc412c31900ee2793","__v":5,"excerpt":"","link_url":"","slug":"404-not-found","project":"5621497ac412c31900ee2790","sync_unique":"","title":"404 Not Found","api":{"auth":"required","params":[],"results":{"codes":[{"name":"","status":200,"language":"json","code":"{}"},{"language":"json","code":"{}","name":"","status":400}]},"settings":"","url":""},"body":"Requesting a non-existent record will produce a `404 Not Found` error:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"billing_provider = DaisybillApi::Models::BillingProvider.find(0)\",\n      \"language\": \"ruby\",\n      \"name\": \"Request for non-existent Billing Provider\"\n    }\n  ]\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{  \\n  \\\"error\\\":\\\"404 not found\\\"\\n}\",\n      \"language\": \"json\",\n      \"name\": \"404 Not Found\"\n    }\n  ]\n}\n[/block]","category":"562e3846d38b650d00444803","link_external":false,"order":1,"user":"562148f56e20d40d007310fc","childrenPages":[]}

404 Not Found


Requesting a non-existent record will produce a `404 Not Found` error: [block:code] { "codes": [ { "code": "billing_provider = DaisybillApi::Models::BillingProvider.find(0)", "language": "ruby", "name": "Request for non-existent Billing Provider" } ] } [/block] [block:code] { "codes": [ { "code": "{ \n \"error\":\"404 not found\"\n}", "language": "json", "name": "404 Not Found" } ] } [/block]
Requesting a non-existent record will produce a `404 Not Found` error: [block:code] { "codes": [ { "code": "billing_provider = DaisybillApi::Models::BillingProvider.find(0)", "language": "ruby", "name": "Request for non-existent Billing Provider" } ] } [/block] [block:code] { "codes": [ { "code": "{ \n \"error\":\"404 not found\"\n}", "language": "json", "name": "404 Not Found" } ] } [/block]
{"_id":"562e4e174376430d006f17b3","excerpt":"","slug":"401-unauthorized","parentDoc":null,"updates":[],"version":"5621497bc412c31900ee2793","body":"You may receive a 401 Unauthorized response if you do not have API access or use an invalid `api_token`:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"DaisybillApi.configuration.api_token = \\\"123abc\\\"\\n\\nDaisybillApi::Models::BillingProvider.find(3)\",\n      \"language\": \"ruby\",\n      \"name\": \"Invalid Token\"\n    }\n  ]\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{  \\n  \\\"error\\\":\\\"Your user is not active.\\\"\\n}\",\n      \"language\": \"json\",\n      \"name\": \"401 Unauthorized\"\n    }\n  ]\n}\n[/block]","category":"562e3846d38b650d00444803","hidden":false,"isReference":false,"__v":0,"githubsync":"","link_external":false,"order":2,"project":"5621497ac412c31900ee2790","type":"basic","user":"562148f56e20d40d007310fc","api":{"results":{"codes":[{"status":200,"language":"json","code":"{}","name":""},{"code":"{}","name":"","status":400,"language":"json"}]},"settings":"","auth":"required","params":[],"url":""},"createdAt":"2015-10-26T16:00:23.493Z","link_url":"","sync_unique":"","title":"401 Unauthorized","childrenPages":[]}

401 Unauthorized


You may receive a 401 Unauthorized response if you do not have API access or use an invalid `api_token`: [block:code] { "codes": [ { "code": "DaisybillApi.configuration.api_token = \"123abc\"\n\nDaisybillApi::Models::BillingProvider.find(3)", "language": "ruby", "name": "Invalid Token" } ] } [/block] [block:code] { "codes": [ { "code": "{ \n \"error\":\"Your user is not active.\"\n}", "language": "json", "name": "401 Unauthorized" } ] } [/block]
You may receive a 401 Unauthorized response if you do not have API access or use an invalid `api_token`: [block:code] { "codes": [ { "code": "DaisybillApi.configuration.api_token = \"123abc\"\n\nDaisybillApi::Models::BillingProvider.find(3)", "language": "ruby", "name": "Invalid Token" } ] } [/block] [block:code] { "codes": [ { "code": "{ \n \"error\":\"Your user is not active.\"\n}", "language": "json", "name": "401 Unauthorized" } ] } [/block]
{"_id":"58ee5f0604a99a3700eb0191","slug":"429-too-many-requests-rate-limiting","title":"429 Too Many Requests (Rate Limiting)","user":"562148f56e20d40d007310fc","body":"If you make requests too quickly you will receive a 429 Too Many Requests error. Each response from DaisyBill includes headers pertaining to your rate limit, including the limit, the remaining number of requests, and the time at which the limit will reset. See below:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"X-Rate-Limit-Limit:100\\nX-Rate-Limit-Remaining:99\\nX-Rate-Limit-Reset:2017-04-12 10:01:00 -0700\",\n      \"language\": \"text\",\n      \"name\": \"Rate Limit Headers\"\n    }\n  ]\n}\n[/block]","category":"562e3846d38b650d00444803","isReference":false,"order":3,"version":"5621497bc412c31900ee2793","type":"basic","updates":[],"__v":0,"api":{"results":{"codes":[{"status":200,"language":"json","code":"{}","name":""},{"status":400,"language":"json","code":"{}","name":""}]},"settings":"","auth":"required","params":[],"url":""},"excerpt":"","githubsync":"","parentDoc":null,"project":"5621497ac412c31900ee2790","createdAt":"2017-04-12T17:08:22.154Z","hidden":false,"link_external":false,"link_url":"","next":{"pages":[],"description":""},"sync_unique":"","childrenPages":[]}

429 Too Many Requests (Rate Limiting)


If you make requests too quickly you will receive a 429 Too Many Requests error. Each response from DaisyBill includes headers pertaining to your rate limit, including the limit, the remaining number of requests, and the time at which the limit will reset. See below: [block:code] { "codes": [ { "code": "X-Rate-Limit-Limit:100\nX-Rate-Limit-Remaining:99\nX-Rate-Limit-Reset:2017-04-12 10:01:00 -0700", "language": "text", "name": "Rate Limit Headers" } ] } [/block]
If you make requests too quickly you will receive a 429 Too Many Requests error. Each response from DaisyBill includes headers pertaining to your rate limit, including the limit, the remaining number of requests, and the time at which the limit will reset. See below: [block:code] { "codes": [ { "code": "X-Rate-Limit-Limit:100\nX-Rate-Limit-Remaining:99\nX-Rate-Limit-Reset:2017-04-12 10:01:00 -0700", "language": "text", "name": "Rate Limit Headers" } ] } [/block]
{"_id":"562e3d77e01a430d00c2c960","excerpt":"","link_url":"","next":{"description":"","pages":[]},"order":4,"slug":"reviewable-models","sync_unique":"","title":"Reviewable Models","user":"562148f56e20d40d007310fc","link_external":false,"githubsync":"","parentDoc":null,"__v":10,"body":"Some DaisyBill models undergo a review process after being created or updated. Objects can fail review if certain attributes are empty or contain invalid input, but can still be successfully created and updated as long as the hard requirements are met. \n\nLet's take a look at this process by creating a patient:\n[block:api-header]\n{\n  \"type\": \"post\",\n  \"title\": \"Create Patient\"\n}\n[/block]\nAll fields required for creating a patient are met:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"DaisybillApi::Models::Patient.create(\\n  billing_provider_id: 25,\\n  first_name: \\\"Beatrice\\\",\\n  last_name: \\\"Kiddo\\\"\\n)\",\n      \"language\": \"ruby\",\n      \"name\": \"Create Patient\"\n    }\n  ]\n}\n[/block]\nsubsequent response:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{  \\n  \\\"created_at\\\":\\\"2015-10-21T14:40:06.637-07:00\\\",\\n  \\\"updated_at\\\":\\\"2015-10-21T14:40:06.637-07:00\\\",\\n  \\\"review_status\\\":\\\"pending\\\",\\n  \\\"review_errors\\\":[],\\n  \\\"review_warnings\\\":[],\\n  \\\"id\\\":48,\\n  \\\"first_name\\\":\\\"Beatrice\\\",\\n  \\\"last_name\\\":\\\"Kiddo\\\",\\n  \\\"links\\\":[  \\n    {  \\n      \\\"rel\\\":\\\"billing_provider\\\",\\n      \\\"href\\\":\\\"/api/v1/billing_providers/25\\\"\\n    }\\n  ]\\n}\",\n      \"language\": \"json\",\n      \"name\": \"201 Created\"\n    }\n  ]\n}\n[/block]\nNotice how in the response above, `review_status` is pending, and `review_errors` is empty. This patient is currently being reviewed. Now let's retrieve this patient to see if the review has completed.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"patient = DaisybillApi::Models::Patient.find(48)\",\n      \"language\": \"ruby\",\n      \"name\": \"Get Patient\"\n    }\n  ]\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{  \\n  \\\"created_at\\\":\\\"2015-10-21T14:40:06.637-07:00\\\",\\n  \\\"updated_at\\\":\\\"2015-10-21T14:40:06.637-07:00\\\",\\n  \\\"review_status\\\":\\\"failed\\\",\\n  \\\"review_errors\\\":[  \\n    \\\"Address can't be blank\\\",\\n    \\\"Gender can't be blank\\\",\\n    \\\"Date of birth can't be blank\\\",\\n    \\\"SSN can't be blank\\\"\\n  ],\\n  \\\"review_warnings\\\":[],\\n  \\\"id\\\":48,\\n  \\\"first_name\\\":\\\"Beatrice\\\",\\n  \\\"last_name\\\":\\\"Kiddo\\\",\\n  \\\"links\\\":[  \\n    {  \\n      \\\"rel\\\":\\\"billing_provider\\\",\\n      \\\"href\\\":\\\"/api/v1/billing_providers/25\\\"\\n    }\\n  ]\\n}\",\n      \"language\": \"json\",\n      \"name\": \"200 OK\"\n    }\n  ]\n}\n[/block]\nThe review process for this patient is complete. The `review_status` has changed from `pending` to `failed`, and `review_errors` shows why the patient failed review. `review_warnings` is empty here, but this is used to convey warnings that do not need to be addressed in order for the record to be valid.\n\nLet's update this patient so it will pass review: \n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"address = DaisybillApi::Models::Address.new(\\n  address_1: \\\"123 Moen Dale Rd\\\",\\n  city: \\\"Santa Monica\\\",\\n  state: \\\"CA\\\",\\n  zip_code: \\\"900019988\\\"\\n)\\n\\npatient.address = address\\npatient.gender = \\\"Female\\\"\\npatient.date_of_birth = \\\"1976-05-24\\\"\\npatient.ssn = \\\"123456789\\\"\\n\\npatient.save\",\n      \"language\": \"ruby\",\n      \"name\": \"Update Patient\"\n    }\n  ]\n}\n[/block]\nAfter waiting for the patient to get reviewed, we may request it again to view any errors:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"DaisybillApi::Models::Patient.find(48)\",\n      \"language\": \"ruby\",\n      \"name\": \"Get Patient\"\n    }\n  ]\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{  \\n  \\\"created_at\\\":\\\"2015-10-21T14:40:06.637-07:00\\\",\\n  \\\"updated_at\\\":\\\"2015-10-21T14:40:06.637-07:00\\\",\\n  \\\"review_status\\\":\\\"passed\\\",\\n  \\\"review_errors\\\":[],\\n  \\\"review_warnings\\\":[],\\n  \\\"id\\\":48,\\n  \\\"first_name\\\":\\\"Beatrice\\\",\\n  \\\"last_name\\\":\\\"Kiddo\\\",\\n  \\\"ssn\\\":\\\"123456789\\\",\\n  \\\"gender\\\": \\\"Female\\\",\\n  \\\"date_of_birth\\\": \\\"1976-05-24\\\",\\n  \\\"links\\\":[  \\n    {  \\n      \\\"rel\\\":\\\"billing_provider\\\",\\n      \\\"href\\\":\\\"/api/v1/billing_providers/25\\\"\\n    }\\n  ]\\n}\",\n      \"language\": \"json\",\n      \"name\": \"200 OK\"\n    }\n  ]\n}\n[/block]\nThe patient has passed review, and `review_errors` is empty.","category":"562e3846d38b650d00444803","createdAt":"2015-10-26T14:49:27.254Z","hidden":false,"isReference":false,"project":"5621497ac412c31900ee2790","type":"basic","api":{"auth":"required","params":[],"results":{"codes":[{"status":200,"language":"json","code":"{}","name":""},{"status":400,"language":"json","code":"{}","name":""}]},"settings":"","url":""},"version":"5621497bc412c31900ee2793","updates":[],"childrenPages":[]}

Reviewable Models


Some DaisyBill models undergo a review process after being created or updated. Objects can fail review if certain attributes are empty or contain invalid input, but can still be successfully created and updated as long as the hard requirements are met. Let's take a look at this process by creating a patient: [block:api-header] { "type": "post", "title": "Create Patient" } [/block] All fields required for creating a patient are met: [block:code] { "codes": [ { "code": "DaisybillApi::Models::Patient.create(\n billing_provider_id: 25,\n first_name: \"Beatrice\",\n last_name: \"Kiddo\"\n)", "language": "ruby", "name": "Create Patient" } ] } [/block] subsequent response: [block:code] { "codes": [ { "code": "{ \n \"created_at\":\"2015-10-21T14:40:06.637-07:00\",\n \"updated_at\":\"2015-10-21T14:40:06.637-07:00\",\n \"review_status\":\"pending\",\n \"review_errors\":[],\n \"review_warnings\":[],\n \"id\":48,\n \"first_name\":\"Beatrice\",\n \"last_name\":\"Kiddo\",\n \"links\":[ \n { \n \"rel\":\"billing_provider\",\n \"href\":\"/api/v1/billing_providers/25\"\n }\n ]\n}", "language": "json", "name": "201 Created" } ] } [/block] Notice how in the response above, `review_status` is pending, and `review_errors` is empty. This patient is currently being reviewed. Now let's retrieve this patient to see if the review has completed. [block:code] { "codes": [ { "code": "patient = DaisybillApi::Models::Patient.find(48)", "language": "ruby", "name": "Get Patient" } ] } [/block] [block:code] { "codes": [ { "code": "{ \n \"created_at\":\"2015-10-21T14:40:06.637-07:00\",\n \"updated_at\":\"2015-10-21T14:40:06.637-07:00\",\n \"review_status\":\"failed\",\n \"review_errors\":[ \n \"Address can't be blank\",\n \"Gender can't be blank\",\n \"Date of birth can't be blank\",\n \"SSN can't be blank\"\n ],\n \"review_warnings\":[],\n \"id\":48,\n \"first_name\":\"Beatrice\",\n \"last_name\":\"Kiddo\",\n \"links\":[ \n { \n \"rel\":\"billing_provider\",\n \"href\":\"/api/v1/billing_providers/25\"\n }\n ]\n}", "language": "json", "name": "200 OK" } ] } [/block] The review process for this patient is complete. The `review_status` has changed from `pending` to `failed`, and `review_errors` shows why the patient failed review. `review_warnings` is empty here, but this is used to convey warnings that do not need to be addressed in order for the record to be valid. Let's update this patient so it will pass review: [block:code] { "codes": [ { "code": "address = DaisybillApi::Models::Address.new(\n address_1: \"123 Moen Dale Rd\",\n city: \"Santa Monica\",\n state: \"CA\",\n zip_code: \"900019988\"\n)\n\npatient.address = address\npatient.gender = \"Female\"\npatient.date_of_birth = \"1976-05-24\"\npatient.ssn = \"123456789\"\n\npatient.save", "language": "ruby", "name": "Update Patient" } ] } [/block] After waiting for the patient to get reviewed, we may request it again to view any errors: [block:code] { "codes": [ { "code": "DaisybillApi::Models::Patient.find(48)", "language": "ruby", "name": "Get Patient" } ] } [/block] [block:code] { "codes": [ { "code": "{ \n \"created_at\":\"2015-10-21T14:40:06.637-07:00\",\n \"updated_at\":\"2015-10-21T14:40:06.637-07:00\",\n \"review_status\":\"passed\",\n \"review_errors\":[],\n \"review_warnings\":[],\n \"id\":48,\n \"first_name\":\"Beatrice\",\n \"last_name\":\"Kiddo\",\n \"ssn\":\"123456789\",\n \"gender\": \"Female\",\n \"date_of_birth\": \"1976-05-24\",\n \"links\":[ \n { \n \"rel\":\"billing_provider\",\n \"href\":\"/api/v1/billing_providers/25\"\n }\n ]\n}", "language": "json", "name": "200 OK" } ] } [/block] The patient has passed review, and `review_errors` is empty.
Some DaisyBill models undergo a review process after being created or updated. Objects can fail review if certain attributes are empty or contain invalid input, but can still be successfully created and updated as long as the hard requirements are met. Let's take a look at this process by creating a patient: [block:api-header] { "type": "post", "title": "Create Patient" } [/block] All fields required for creating a patient are met: [block:code] { "codes": [ { "code": "DaisybillApi::Models::Patient.create(\n billing_provider_id: 25,\n first_name: \"Beatrice\",\n last_name: \"Kiddo\"\n)", "language": "ruby", "name": "Create Patient" } ] } [/block] subsequent response: [block:code] { "codes": [ { "code": "{ \n \"created_at\":\"2015-10-21T14:40:06.637-07:00\",\n \"updated_at\":\"2015-10-21T14:40:06.637-07:00\",\n \"review_status\":\"pending\",\n \"review_errors\":[],\n \"review_warnings\":[],\n \"id\":48,\n \"first_name\":\"Beatrice\",\n \"last_name\":\"Kiddo\",\n \"links\":[ \n { \n \"rel\":\"billing_provider\",\n \"href\":\"/api/v1/billing_providers/25\"\n }\n ]\n}", "language": "json", "name": "201 Created" } ] } [/block] Notice how in the response above, `review_status` is pending, and `review_errors` is empty. This patient is currently being reviewed. Now let's retrieve this patient to see if the review has completed. [block:code] { "codes": [ { "code": "patient = DaisybillApi::Models::Patient.find(48)", "language": "ruby", "name": "Get Patient" } ] } [/block] [block:code] { "codes": [ { "code": "{ \n \"created_at\":\"2015-10-21T14:40:06.637-07:00\",\n \"updated_at\":\"2015-10-21T14:40:06.637-07:00\",\n \"review_status\":\"failed\",\n \"review_errors\":[ \n \"Address can't be blank\",\n \"Gender can't be blank\",\n \"Date of birth can't be blank\",\n \"SSN can't be blank\"\n ],\n \"review_warnings\":[],\n \"id\":48,\n \"first_name\":\"Beatrice\",\n \"last_name\":\"Kiddo\",\n \"links\":[ \n { \n \"rel\":\"billing_provider\",\n \"href\":\"/api/v1/billing_providers/25\"\n }\n ]\n}", "language": "json", "name": "200 OK" } ] } [/block] The review process for this patient is complete. The `review_status` has changed from `pending` to `failed`, and `review_errors` shows why the patient failed review. `review_warnings` is empty here, but this is used to convey warnings that do not need to be addressed in order for the record to be valid. Let's update this patient so it will pass review: [block:code] { "codes": [ { "code": "address = DaisybillApi::Models::Address.new(\n address_1: \"123 Moen Dale Rd\",\n city: \"Santa Monica\",\n state: \"CA\",\n zip_code: \"900019988\"\n)\n\npatient.address = address\npatient.gender = \"Female\"\npatient.date_of_birth = \"1976-05-24\"\npatient.ssn = \"123456789\"\n\npatient.save", "language": "ruby", "name": "Update Patient" } ] } [/block] After waiting for the patient to get reviewed, we may request it again to view any errors: [block:code] { "codes": [ { "code": "DaisybillApi::Models::Patient.find(48)", "language": "ruby", "name": "Get Patient" } ] } [/block] [block:code] { "codes": [ { "code": "{ \n \"created_at\":\"2015-10-21T14:40:06.637-07:00\",\n \"updated_at\":\"2015-10-21T14:40:06.637-07:00\",\n \"review_status\":\"passed\",\n \"review_errors\":[],\n \"review_warnings\":[],\n \"id\":48,\n \"first_name\":\"Beatrice\",\n \"last_name\":\"Kiddo\",\n \"ssn\":\"123456789\",\n \"gender\": \"Female\",\n \"date_of_birth\": \"1976-05-24\",\n \"links\":[ \n { \n \"rel\":\"billing_provider\",\n \"href\":\"/api/v1/billing_providers/25\"\n }\n ]\n}", "language": "json", "name": "200 OK" } ] } [/block] The patient has passed review, and `review_errors` is empty.
{"_id":"585c2dfeef3e943900cfe048","createdAt":"2016-12-22T19:48:14.791Z","next":{"description":"","pages":[]},"type":"basic","api":{"auth":"required","params":[],"url":"","results":{"codes":[{"status":200,"language":"json","code":"{}","name":""},{"name":"","status":400,"language":"json","code":"{}"}]},"settings":""},"excerpt":"","isReference":false,"project":"5621497ac412c31900ee2790","title":"Filtering Records","__v":0,"category":"585c2dd4906b9a1900db426a","hidden":false,"link_url":"","order":0,"updates":[],"user":"562148f56e20d40d007310fc","version":"5621497bc412c31900ee2793","body":"Certain endpoints allow you to filter your records according to certain attributes. Let's take a look at this process.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"# Filtering injuries by created_at date\\n\\ncurl \\\\\\n  https://go.daisybill.com/api/v1/patients/288941/injuries\\\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\\\\n  -s \\\\\\n  -G \\\\\\n -d created_at[gt]=12/15/2016 \\\\\\n -d created_at[lt]=12/23/2016\",\n      \"language\": \"curl\"\n    }\n  ]\n}\n[/block]\nThe above code will retrieve injuries that have a `created_at` date greater than (after) 12/15/2016 and less than (before) 12/23/2016. Other date filtering options are below:\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Date Filtering Operators\",\n    \"0-0\": \"eq\",\n    \"h-1\": \"Meaning\",\n    \"0-1\": \"\\\"equal to\\\"\",\n    \"1-0\": \"gt\",\n    \"1-1\": \"\\\"greater than\\\"\",\n    \"2-0\": \"lt\",\n    \"2-1\": \"\\\"less than\\\"\",\n    \"3-0\": \"gteq\",\n    \"3-1\": \"\\\"greater than or equal to\\\"\",\n    \"4-0\": \"lteq\",\n    \"4-1\": \"\\\"less than or equal to\\\"\"\n  },\n  \"cols\": 2,\n  \"rows\": 5\n}\n[/block]\nThese date filtering operators can be combined like in the example above, to provide more flexible queries. Only several endpoints allow this type of filtering at the moment. However check back soon, as this list is expected to increase. Please refer to the table below for endpoints that currently allow filtering:\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Filterable endpoint URI\",\n    \"h-1\": \"Description\",\n    \"h-2\": \"Filterable Attributes\",\n    \"0-0\": \"/billing_providers/:id/injuries\",\n    \"0-1\": \"List Injuries for Billing Provider\",\n    \"0-2\": \"claim_number, created_at, updated_at\",\n    \"2-0\": \"/patients/:id/injuries\",\n    \"2-1\": \"List Injuries for Patient\",\n    \"2-2\": \"claim_number, created_at, updated_at\",\n    \"1-0\": \"/billing_providers/:id/remittances\",\n    \"1-1\": \"List Remittances for Billing Provider\",\n    \"1-2\": \"created_at, effective_date, deposited_on\",\n    \"3-0\": \"/billing_providers/:id/bills\",\n    \"3-1\": \"List Bills for Billing Provider\",\n    \"3-2\": \"created_at, updated_at, date_of_service\",\n    \"4-0\": \"/billing_providers/:id/pharmacy_bills\",\n    \"4-1\": \"List Pharmacy Bills for Billing Provider\",\n    \"4-2\": \"created_at, updated_at, date_of_service\",\n    \"5-0\": \"/billing_providers/:id/tasks\",\n    \"5-1\": \"List Tasks for Billing Provider\",\n    \"5-2\": \"completed, created_at, updated_at, due_date\"\n  },\n  \"cols\": 3,\n  \"rows\": 6\n}\n[/block]","githubsync":"","link_external":false,"parentDoc":null,"slug":"filterable-records","sync_unique":"","childrenPages":[]}

Filtering Records


Certain endpoints allow you to filter your records according to certain attributes. Let's take a look at this process. [block:code] { "codes": [ { "code": "# Filtering injuries by created_at date\n\ncurl \\\n https://go.daisybill.com/api/v1/patients/288941/injuries\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n -s \\\n -G \\\n -d created_at[gt]=12/15/2016 \\\n -d created_at[lt]=12/23/2016", "language": "curl" } ] } [/block] The above code will retrieve injuries that have a `created_at` date greater than (after) 12/15/2016 and less than (before) 12/23/2016. Other date filtering options are below: [block:parameters] { "data": { "h-0": "Date Filtering Operators", "0-0": "eq", "h-1": "Meaning", "0-1": "\"equal to\"", "1-0": "gt", "1-1": "\"greater than\"", "2-0": "lt", "2-1": "\"less than\"", "3-0": "gteq", "3-1": "\"greater than or equal to\"", "4-0": "lteq", "4-1": "\"less than or equal to\"" }, "cols": 2, "rows": 5 } [/block] These date filtering operators can be combined like in the example above, to provide more flexible queries. Only several endpoints allow this type of filtering at the moment. However check back soon, as this list is expected to increase. Please refer to the table below for endpoints that currently allow filtering: [block:parameters] { "data": { "h-0": "Filterable endpoint URI", "h-1": "Description", "h-2": "Filterable Attributes", "0-0": "/billing_providers/:id/injuries", "0-1": "List Injuries for Billing Provider", "0-2": "claim_number, created_at, updated_at", "2-0": "/patients/:id/injuries", "2-1": "List Injuries for Patient", "2-2": "claim_number, created_at, updated_at", "1-0": "/billing_providers/:id/remittances", "1-1": "List Remittances for Billing Provider", "1-2": "created_at, effective_date, deposited_on", "3-0": "/billing_providers/:id/bills", "3-1": "List Bills for Billing Provider", "3-2": "created_at, updated_at, date_of_service", "4-0": "/billing_providers/:id/pharmacy_bills", "4-1": "List Pharmacy Bills for Billing Provider", "4-2": "created_at, updated_at, date_of_service", "5-0": "/billing_providers/:id/tasks", "5-1": "List Tasks for Billing Provider", "5-2": "completed, created_at, updated_at, due_date" }, "cols": 3, "rows": 6 } [/block]
Certain endpoints allow you to filter your records according to certain attributes. Let's take a look at this process. [block:code] { "codes": [ { "code": "# Filtering injuries by created_at date\n\ncurl \\\n https://go.daisybill.com/api/v1/patients/288941/injuries\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n -s \\\n -G \\\n -d created_at[gt]=12/15/2016 \\\n -d created_at[lt]=12/23/2016", "language": "curl" } ] } [/block] The above code will retrieve injuries that have a `created_at` date greater than (after) 12/15/2016 and less than (before) 12/23/2016. Other date filtering options are below: [block:parameters] { "data": { "h-0": "Date Filtering Operators", "0-0": "eq", "h-1": "Meaning", "0-1": "\"equal to\"", "1-0": "gt", "1-1": "\"greater than\"", "2-0": "lt", "2-1": "\"less than\"", "3-0": "gteq", "3-1": "\"greater than or equal to\"", "4-0": "lteq", "4-1": "\"less than or equal to\"" }, "cols": 2, "rows": 5 } [/block] These date filtering operators can be combined like in the example above, to provide more flexible queries. Only several endpoints allow this type of filtering at the moment. However check back soon, as this list is expected to increase. Please refer to the table below for endpoints that currently allow filtering: [block:parameters] { "data": { "h-0": "Filterable endpoint URI", "h-1": "Description", "h-2": "Filterable Attributes", "0-0": "/billing_providers/:id/injuries", "0-1": "List Injuries for Billing Provider", "0-2": "claim_number, created_at, updated_at", "2-0": "/patients/:id/injuries", "2-1": "List Injuries for Patient", "2-2": "claim_number, created_at, updated_at", "1-0": "/billing_providers/:id/remittances", "1-1": "List Remittances for Billing Provider", "1-2": "created_at, effective_date, deposited_on", "3-0": "/billing_providers/:id/bills", "3-1": "List Bills for Billing Provider", "3-2": "created_at, updated_at, date_of_service", "4-0": "/billing_providers/:id/pharmacy_bills", "4-1": "List Pharmacy Bills for Billing Provider", "4-2": "created_at, updated_at, date_of_service", "5-0": "/billing_providers/:id/tasks", "5-1": "List Tasks for Billing Provider", "5-2": "completed, created_at, updated_at, due_date" }, "cols": 3, "rows": 6 } [/block]
{"_id":"562164f8f4e0352100cbf299","createdAt":"2015-10-16T20:58:32.557Z","parentDoc":null,"slug":"list-attachments","user":"562148f56e20d40d007310fc","__v":3,"editedParams2":true,"githubsync":"","hidden":false,"link_external":false,"title":"List Attachments","editedParams":true,"excerpt":"","isReference":true,"link_url":"","project":"5621497ac412c31900ee2790","type":"get","updates":[],"version":"5621497bc412c31900ee2793","api":{"method":"get","params":[{"in":"path","name":"bill_id","ref":"","required":true,"type":"int","_id":"562a5bf8007ab40d007cb43a","default":"","desc":"ID of Bill"},{"required":false,"type":"int","_id":"562a67b624205f0d00ef4e4d","default":"1","desc":"Page offset to fetch","in":"query","name":"page","ref":""},{"in":"query","name":"per_page","ref":"","required":false,"type":"string","_id":"562a67b624205f0d00ef4e4c","default":"25","desc":"Number of results to return per page"},{"default":"","desc":"Pad a number of results","in":"query","name":"offset","ref":"","required":false,"type":"string","_id":"562a67b624205f0d00ef4e4b"}],"results":{"codes":[{"name":"","code":"{  \n  \"attachments\":[  \n    {  \n      \"created_at\":\"2015-10-23T09:49:03.364-07:00\",\n      \"updated_at\":\"2015-10-23T09:49:03.364-07:00\",\n      \"review_status\":\"passed\",\n      \"review_errors\":[],\n      \"review_warnings\":[],\n      \"id\":1488,\n      \"document_file_name\":\"xray_images.pdf\",\n      \"document_content_type\":\"application/pdf\",\n      \"document_file_size\":386672,\n      \"inactive\":false,\n      \"document_url\":\"https://daisybill-staging.s3.amazonaws.com/supporting_documents/xray_images.pdf?AWSAccessKeyId=AKIAJ4LZU7YC4MUC5X5P&Expires=1445623250&Signature=LduWOn6YeJ8vLBwMwpQcNV2fd9k%3D\",\n      \"report_type\":\"OZ:J1\",\n      \"links\":[  \n        {  \n          \"rel\":\"bill\",\n          \"href\":\"/api/v1/bills/544\"\n        }\n      ]\n    }\n  ]\n}","language":"json","status":200}]},"settings":"","url":"/bills/:bill_id/attachments","auth":"required","examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/bills/544/attachments\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\"","name":"cURL"},{"language":"ruby","code":"bill = DaisybillApi::Models::Bill.find(544)\nbill.attachments"}]}},"body":"","category":"562164dcf761a4170068ecfa","next":{"description":"","pages":[]},"order":0,"sync_unique":"","childrenPages":[]}

getList Attachments


Path Params

bill_id:
required
integer
ID of Bill

Query Params

page:
integer1
Page offset to fetch
per_page:
string25
Number of results to return per page
offset:
string
Pad a number of results

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"562165056e20d40d00731131","api":{"examples":{"codes":[{"name":"cURL","language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/attachments/1488\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\""},{"language":"ruby","code":"attachment = DaisybillApi::Models::Attachment.find(1488)"}]},"method":"get","params":[{"required":true,"type":"int","_id":"562a697a61ade50d0028333b","default":"","desc":"ID of Attachment","in":"path","name":"id","ref":""}],"results":{"codes":[{"language":"json","code":"{  \n  \"created_at\":\"2015-10-23T09:49:03.364-07:00\",\n  \"updated_at\":\"2015-10-23T09:49:03.364-07:00\",\n  \"review_status\":\"passed\",\n  \"review_errors\":[],\n  \"review_warnings\":[],\n  \"id\":1488,\n  \"document_file_name\":\"xray_images.pdf\",\n  \"document_content_type\":\"application/pdf\",\n  \"document_file_size\":386672,\n  \"inactive\":false,\n  \"document_url\":\"https://daisybill-staging.s3.amazonaws.com/supporting_documents/xray_images.pdf?AWSAccessKeyId=AKIAJ4LZU7YC4MUC5X5P&Expires=1445623250&Signature=LduWOn6YeJ8vLBwMwpQcNV2fd9k%3D\",\n  \"report_type\":\"OZ:J1\",\n  \"links\":[  \n    {  \n      \"rel\":\"bill\",\n      \"href\":\"/api/v1/bills/544\"\n    }\n  ]\n}","name":"","status":200}]},"settings":"","url":"/attachments/:id","auth":"required"},"editedParams":true,"isReference":true,"link_external":false,"link_url":"","type":"get","user":"562148f56e20d40d007310fc","createdAt":"2015-10-16T20:58:45.690Z","excerpt":"","githubsync":"","hidden":false,"editedParams2":true,"next":{"description":"","pages":[]},"slug":"get-attachment","updates":[],"order":1,"parentDoc":null,"project":"5621497ac412c31900ee2790","sync_unique":"","__v":2,"body":"","category":"562164dcf761a4170068ecfa","title":"Get Attachment","version":"5621497bc412c31900ee2793","childrenPages":[]}

getGet Attachment


Path Params

id:
required
integer
ID of Attachment

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"5621655bb244890d001869b0","excerpt":"","githubsync":"","hidden":false,"order":2,"__v":7,"category":"562164dcf761a4170068ecfa","editedParams2":true,"isReference":true,"link_external":false,"link_url":"","next":{"pages":[],"description":""},"slug":"create-attachment","api":{"method":"post","params":[{"_id":"562a6aa98437010d00c43caa","ref":"","in":"path","required":true,"desc":"ID of Bill","default":"","type":"int","name":"bill_id"},{"_id":"562a6b236049f20d00325232","ref":"","in":"body","required":true,"desc":"Document to attach","default":"","type":"file","name":"attachment[document]"},{"_id":"562a6b236049f20d00325231","ref":"","in":"body","required":true,"desc":"Report Type.  Please see [this list of report type codes](http://dev.daisybill.com/v1/page/report-type-codes) for possible values.","default":"","type":"string","name":"attachment[report_type]"}],"results":{"codes":[{"code":"{  \n  \"created_at\":\"2015-10-23T09:49:03.364-07:00\",\n  \"updated_at\":\"2015-10-23T09:49:03.364-07:00\",\n  \"review_status\":\"passed\",\n  \"review_errors\":[],\n  \"review_warnings\":[],\n  \"id\":1488,\n  \"document_file_name\":\"some_prescription.pdf\",\n  \"document_content_type\":\"application/pdf\",\n  \"document_file_size\":298185,\n  \"inactive\":false,\n  \"document_url\":\"https://daisybill-staging.s3.amazonaws.com/supporting_documents/some_prescription.pdf?AWSAccessKeyId=123&Expires=1445623250&Signature=abc\",\n  \"report_type\":\"09\",\n  \"links\":[  \n    {  \n      \"rel\":\"bill\",\n      \"href\":\"/api/v1/bills/544\"\n    }\n  ]\n}","language":"json","status":201}]},"settings":"","url":"/bills/:bill_id/attachments","auth":"required","examples":{"codes":[{"code":"curl \\\n  https://go.daisybill.com/api/v1/bills/544/attachments\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X POST \\\n  -F \"attachment[document]=@some_prescription;type=application/pdf\" \\\n -F \"attachment[report_type]=09\"","name":"cURL","language":"curl"},{"code":"doc = File.open(\"some_prescription.pdf\")\n\nDaisybillApi::Models::Attachment.create(\n  bill_id: 544,\n  document: doc,\n  report_type: \"09\"\n)","language":"ruby"}]}},"body":"**Note**: This endpoint requires the POST request to be submitted as a multipart form.\n\nPlease see the following stackoverflow examples for submitting this type of request:\n- [cURL](https://stackoverflow.com/questions/12667797/using-curl-to-upload-post-data-with-files/12667839#12667839)\n- [Ruby with RestClient](https://stackoverflow.com/a/11394031/4321030)\n- [Java with HttpClient](https://stackoverflow.com/a/1379002/4321030)","title":"Create Attachment","type":"post","createdAt":"2015-10-16T21:00:11.583Z","updates":[],"version":"5621497bc412c31900ee2793","sync_unique":"","user":"562148f56e20d40d007310fc","editedParams":true,"parentDoc":null,"project":"5621497ac412c31900ee2790","childrenPages":[]}

postCreate Attachment


Path Params

bill_id:
required
integer
ID of Bill

Body Params

attachment[document]:
required
file
Document to attach
attachment[report_type]:
required
string
Report Type. Please see [this list of report type codes](http://dev.daisybill.com/v1/page/report-type-codes) for possible values.
**Note**: This endpoint requires the POST request to be submitted as a multipart form. Please see the following stackoverflow examples for submitting this type of request: - [cURL](https://stackoverflow.com/questions/12667797/using-curl-to-upload-post-data-with-files/12667839#12667839) - [Ruby with RestClient](https://stackoverflow.com/a/11394031/4321030) - [Java with HttpClient](https://stackoverflow.com/a/1379002/4321030)

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



**Note**: This endpoint requires the POST request to be submitted as a multipart form. Please see the following stackoverflow examples for submitting this type of request: - [cURL](https://stackoverflow.com/questions/12667797/using-curl-to-upload-post-data-with-files/12667839#12667839) - [Ruby with RestClient](https://stackoverflow.com/a/11394031/4321030) - [Java with HttpClient](https://stackoverflow.com/a/1379002/4321030)
{"_id":"5c0e7c466bad03021a65a71e","project":"5621497ac412c31900ee2790","version":"5621497bc412c31900ee2793","category":"562164dcf761a4170068ecfa","user":"552d6de93e1c280d00f76426","updates":[],"next":{"pages":[],"description":""},"createdAt":"2018-12-10T14:46:30.744Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"code":"RestClient.post(\n  \"https://go.daisybill.com/api/v1/bills/1/attachments?api_token=abcdefghijklmnopqrstuvwxyz123456\",\n  {\n    attachment: {\n      report_type: \"09\",\n      document_file_content: Base64.encode64(File.read(\"/Users/benliscio/Desktop/document.pdf\")),\n      document_file_name: \"progress_report.pdf\"\n    }\n  }.to_json,\n  { \"CONTENT_TYPE\" => \"application/json\" }\n)","language":"ruby"}]},"settings":"","results":{"codes":[{"code":"{  \n  \"created_at\":\"2015-10-23T09:49:03.364-07:00\",\n  \"updated_at\":\"2015-10-23T09:49:03.364-07:00\",\n  \"review_status\":\"passed\",\n  \"review_errors\":[],\n  \"review_warnings\":[],\n  \"id\":1488,\n  \"document_file_name\":\"progress_report.pdf\",\n  \"document_content_type\":\"application/pdf\",\n  \"document_file_size\":298185,\n  \"inactive\":false,\n  \"document_url\":\"https://daisybill-staging.s3.amazonaws.com/supporting_documents/some_prescription.pdf?AWSAccessKeyId=123&Expires=1445623250&Signature=abc\",\n  \"report_type\":\"09\",\n  \"links\":[  \n    {  \n      \"rel\":\"bill\",\n      \"href\":\"/api/v1/bills/544\"\n    }\n  ]\n}","language":"json","status":201}]},"method":"post","auth":"required","params":[{"_id":"562a6aa98437010d00c43caa","ref":"","in":"path","required":true,"desc":"ID of Bill","default":"","type":"int","name":"bill_id"},{"_id":"5c0e80dde0934300411499a1","ref":"","in":"body","required":true,"desc":"Name of Document.","default":"","type":"string","name":"attachment[document_file_name]"},{"_id":"562a6b236049f20d00325232","ref":"","in":"body","required":true,"desc":"PDF file content base 64 encoded","default":"","type":"string","name":"attachment[document_file_name]"},{"_id":"562a6b236049f20d00325231","ref":"","in":"body","required":true,"desc":"Report Type.  Please see [this list of report type codes](http://dev.daisybill.com/v1/page/report-type-codes) for possible values.","default":"","type":"string","name":"attachment[report_type]"},{"_id":"5c0e82edabd13f0132b28056","ref":"","in":"header","required":false,"desc":"\"application/json\" must be sent","default":"","type":"string","name":"CONTENT_TYPE"}],"url":"/bills/:bill_id/attachments"},"isReference":true,"order":3,"body":"This is an alternative to making a multipart form request to create attachments.\n\nPlease note that content type header must be sent with value of \"application/json\"","excerpt":"","slug":"create-attachment-base-64","type":"post","title":"Create Attachment (Base 64)","__v":5,"parentDoc":null,"childrenPages":[]}

postCreate Attachment (Base 64)


Path Params

bill_id:
required
integer
ID of Bill

Body Params

attachment[document_file_name]:
required
string
Name of Document.
attachment[document_file_name]:
required
string
PDF file content base 64 encoded
attachment[report_type]:
required
string
Report Type. Please see [this list of report type codes](http://dev.daisybill.com/v1/page/report-type-codes) for possible values.

Headers

CONTENT_TYPE:
string
"application/json" must be sent
This is an alternative to making a multipart form request to create attachments. Please note that content type header must be sent with value of "application/json"

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



This is an alternative to making a multipart form request to create attachments. Please note that content type header must be sent with value of "application/json"
{"_id":"5621669af761a4170068ecfe","type":"patch","user":"562148f56e20d40d007310fc","version":"5621497bc412c31900ee2793","api":{"method":"patch","params":[{"in":"path","name":"id","ref":"","required":true,"type":"int","_id":"562a788d24205f0d00ef4e57","default":"","desc":"ID of Attachment"},{"default":"","desc":"Report Type","in":"body","name":"attachment[report_type]","ref":"","required":false,"type":"string","_id":"562a793e96b5f40d0026eb1d"}],"results":{"codes":[{"status":200,"name":"","code":"{  \n  \"created_at\":\"2015-10-23T09:49:03.364-07:00\",\n  \"updated_at\":\"2015-10-23T11:17:46.230-07:00\",\n  \"review_status\":\"pending\",\n  \"review_errors\":[],\n  \"review_warnings\":[],\n  \"id\":1488,\n  \"document_file_name\":\"xray_images.pdf\",\n  \"document_content_type\":\"application/pdf\",\n  \"document_file_size\":386672,\n  \"inactive\":false,\n  \"document_url\":\"https://daisybill-staging.s3.amazonaws.com/supporting_documents/xray_images.pdf?AWSAccessKeyId=AKIAJ4LZU7YC4MUC5X5P&Expires=1445623250&Signature=LduWOn6YeJ8vLBwMwpQcNV2fd9k%3D\",\n  \"report_type\":\"OZ:B3\",\n  \"links\":[  \n    {  \n      \"rel\":\"bill\",\n      \"href\":\"/api/v1/bills/544\"\n    }\n  ]\n}","language":"json"}]},"settings":"","url":"/attachments/:id","auth":"required","examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/attachments/1488\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X PATCH \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"attachment\": {\n    \"report_type\": \"OZ:B3\"\n  }\n}'","name":"cURL"},{"language":"ruby","code":"attachment = DaisybillApi::Models::Attachment.find(1488)\nattachment.report_type = \"OZ:B3\"\nattachment.save"}]}},"category":"562164dcf761a4170068ecfa","excerpt":"","next":{"description":"","pages":[]},"sync_unique":"","editedParams":true,"order":4,"parentDoc":null,"updates":[],"__v":6,"createdAt":"2015-10-16T21:05:30.819Z","hidden":false,"isReference":true,"link_url":"","slug":"update-attachment","title":"Update Attachment","body":"","editedParams2":true,"githubsync":"","link_external":false,"project":"5621497ac412c31900ee2790","childrenPages":[]}

patchUpdate Attachment


Path Params

id:
required
integer
ID of Attachment

Body Params

attachment[report_type]:
string
Report Type

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"562166ceb244890d001869b4","parentDoc":null,"title":"Delete Attachment","link_external":false,"next":{"description":"","pages":[]},"order":5,"sync_unique":"","__v":2,"body":"[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"Attachments are not destroyed if their Bill has been submitted\",\n  \"body\": \"If an attachment belongs to a Bill that has already been submitted, attempting to destroy the attachment will only mark it as inactive. In order to fully destroy an attachment once a Bill has been submitted, the associated Bill must be destroyed.\"\n}\n[/block]","createdAt":"2015-10-16T21:06:22.817Z","updates":[],"user":"562148f56e20d40d007310fc","version":"5621497bc412c31900ee2793","editedParams":true,"isReference":true,"slug":"delete-attachment","editedParams2":true,"excerpt":"","githubsync":"","hidden":false,"link_url":"","api":{"url":"/attachments/:id","auth":"required","examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/attachments/1488\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X DELETE \\\n  -H \"Content-Type: application/json\"","name":"cURL"},{"language":"ruby","code":"attachment = DaisybillApi::Models::Attachment.find(1488)\nattachment.destroy"}]},"method":"delete","params":[{"in":"path","name":"id","ref":"","required":true,"type":"int","_id":"562a8037191a280d008762ed","default":"","desc":"ID of Attachment"}],"results":{"codes":[{"status":200,"name":"","code":"{  \n  \"created_at\":\"2015-10-23T09:49:03.364-07:00\",\n  \"updated_at\":\"2015-10-23T11:17:46.230-07:00\",\n  \"review_status\":\"pending\",\n  \"review_errors\":[],\n  \"review_warnings\":[],\n  \"id\":1488,\n  \"inactive\":false,\n  \"document_url\":\"/documents/missing.jpg\",\n  \"report_type\":\"OZ:B4\",\n  \"links\":[  \n    {  \n      \"rel\":\"bill\",\n      \"href\":\"/api/v1/bills/544\"\n    }\n  ]\n}","language":"json"}]},"settings":""},"category":"562164dcf761a4170068ecfa","project":"5621497ac412c31900ee2790","type":"delete","childrenPages":[]}

deleteDelete Attachment


Path Params

id:
required
integer
ID of Attachment
[block:callout] { "type": "warning", "title": "Attachments are not destroyed if their Bill has been submitted", "body": "If an attachment belongs to a Bill that has already been submitted, attempting to destroy the attachment will only mark it as inactive. In order to fully destroy an attachment once a Bill has been submitted, the associated Bill must be destroyed." } [/block]

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



[block:callout] { "type": "warning", "title": "Attachments are not destroyed if their Bill has been submitted", "body": "If an attachment belongs to a Bill that has already been submitted, attempting to destroy the attachment will only mark it as inactive. In order to fully destroy an attachment once a Bill has been submitted, the associated Bill must be destroyed." } [/block]
{"_id":"5935c9aa86e994000f9e500f","project":"5621497ac412c31900ee2790","version":"5621497bc412c31900ee2793","category":"5935c977a19d03000f8f46b3","user":"5928300b3ddea50f00aec401","updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-06-05T21:14:18.579Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[{"status":200,"language":"json","code":"{\n  \"bill_mailing_addresses\": [\n    {\n      \"created_at\": \"2017-03-10T11:45:23.783-08:00\",\n      \"updated_at\": \"2017-03-10T11:46:09.811-08:00\",\n      \"name\": \"\",\n      \"submission_type\": \"all\",\n      \"company\": \"\",\n      \"bill_treatment_types\": [\n        \"interpreter\",\n        \"med_legal\"\n      ],\n      \"address\": {\n        \"created_at\": \"2017-03-10T11:45:23.768-08:00\",\n        \"updated_at\": \"2017-03-10T11:45:23.768-08:00\",\n        \"id\": 395581,\n        \"address_1\": \"1657 Riverside Drive\",\n        \"address_2\": \"\",\n        \"city\": \"Redding\",\n        \"state\": \"CA\",\n        \"zip_code\": \"96001\"\n      }\n    }\n  ]\n}","name":""}]},"settings":"","auth":"required","params":[{"_id":"5935ca3886e994000f9e5011","ref":"","in":"path","required":true,"desc":"Id of Payer","default":"","type":"int","name":"id"}],"url":"/payers/:id/bill_mailing_addresses","examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1//payers/38/bill_mailing_addresses\\?\t\t\t       \napi_token=abcdefghijklmnopqrstuvwxyz123456 \\\n\t-s \\\n\t-X GET \\\n\t-H \"Content-Type: application/json\""},{"language":"ruby","code":"payer = DaisybillApi::Models::Payer.find(38)\npayer.bill_mailing_addressess"}]},"method":"get"},"isReference":false,"order":0,"body":"","excerpt":"","slug":"get-bill-mailing-addresses-for-claims-administrator","type":"get","title":"List Bill Mailing Addresses for Payer","__v":1,"parentDoc":null,"childrenPages":[]}

getList Bill Mailing Addresses for Payer


Path Params

id:
required
integer
Id of Payer

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"5935ca96b940120025b85a16","project":"5621497ac412c31900ee2790","version":"5621497bc412c31900ee2793","category":"5935c977a19d03000f8f46b3","user":"5928300b3ddea50f00aec401","updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-06-05T21:18:14.386Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[{"name":"","code":"{\n  \"bill_mailing_addresses\": [\n    {\n      \"created_at\": \"2017-06-05T14:22:08.735-07:00\",\n      \"updated_at\": \"2017-06-05T14:22:08.735-07:00\",\n      \"name\": \"\",\n      \"submission_type\": \"all\",\n      \"company\": \"\",\n      \"bill_treatment_types\": [\n        \"copy_service\",\n        \"interpreter\",\n        \"med_legal\",\n        \"medical_treatment\",\n        \"pharmacy\",\n        \"transportation\"\n      ],\n      \"address\": {\n        \"created_at\": \"2017-06-05T14:22:08.722-07:00\",\n        \"updated_at\": \"2017-06-05T14:22:08.722-07:00\",\n        \"id\": 396612,\n        \"address_1\": \"3737 Main St\",\n        \"address_2\": \"#300\",\n        \"city\": \"Riverside\",\n        \"state\": \"CA\",\n        \"zip_code\": \"92501\"\n      }\n    }\n  ]\n}","language":"json","status":200}]},"settings":"","auth":"required","params":[{"_id":"5935cc0ccfb17f0025c2e3c8","ref":"","in":"path","required":true,"desc":"Id of Claims Administrator","default":"","type":"int","name":"id"}],"url":"/claims_administrators/:id/bill_mailing_addresses","examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/claims_administrators/381/bill_mailing_addresses\\?\napi_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\""},{"language":"ruby","code":"claims_administrator = DaisybillApi::Models::ClaimsAdministrator.find(381)\nclaims_administrator.bill_mailing_addressess"}]},"method":"get"},"isReference":false,"order":1,"body":"","excerpt":"","slug":"list-bill-mailing-addresses-for-payer","type":"get","title":"List Bill Mailing Addresses for Claims Administrator","__v":1,"parentDoc":null,"childrenPages":[]}

getList Bill Mailing Addresses for Claims Administrator


Path Params

id:
required
integer
Id of Claims Administrator

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"562a5b2d61ade50d00283332","githubsync":"","hidden":false,"isReference":true,"link_url":"","parentDoc":null,"sync_unique":"","version":"5621497bc412c31900ee2793","__v":3,"category":"562a5b2261ade50d00283331","editedParams":true,"link_external":false,"type":"get","updates":[],"user":"562148f56e20d40d007310fc","body":"","editedParams2":true,"project":"5621497ac412c31900ee2790","api":{"results":{"codes":[{"status":200,"language":"json","code":"{\n  \"bill_payments\":[\n    {\n      \"created_at\":\"2017-06-01T07:11:27.585-07:00\",\n      \"updated_at\":\"2017-06-01T07:11:27.585-07:00\",\n      \"id\":822566,\n      \"payment_amount_cents\":864,\n      \"check_amount\":864,\n      \"check_number\":\"1234532134\",\n      \"check_effective_date\":\"2017-06-01\",\n      \"payment_source\":\"manual_posting\",\n      \"claim_adjustment_reasons\":[],\n      \"service_line_item_payments\":[\n        {\n          \"created_at\":\"2017-06-01T07:11:28.045-07:00\",\n          \"updated_at\":\"2017-06-01T07:11:28.045-07:00\",\n          \"service_line_item_id\":3609312,\n          \"procedure_code\":\"99070\",\n          \"units\":32.0,\n          \"payment_amount_cents\":0,\n          \"claim_adjustment_reasons\":[]\n        },\n        {\n          \"created_at\":\"2017-06-01T07:11:27.782-07:00\",\n          \"updated_at\":\"2017-06-01T07:11:27.782-07:00\",\n          \"service_line_item_id\":3609272,\n          \"procedure_code\":\"99070\",\n          \"units\":1.0,\n          \"payment_amount_cents\":0,\n          \"claim_adjustment_reasons\":[]\n        }\n      ],\n      \"links\":[\n        {\n          \"rel\":\"bill\",\n          \"href\":\"/api/v1/bills/1002142\"\n        },\n        {\n          \"rel\":\"bill_submission\",\n          \"href\":\"/api/v1/bill_submissions/1258605\"\n        },\n        {\n          \"rel\":\"remittance\",\n          \"href\":\"/api/v1/remittances/724471\"\n        }\n      ]\n    }\n  ]\n}","name":""}]},"settings":"","url":"/bills/:bill_id/bill_payments","auth":"required","examples":{"codes":[{"name":"cURL","language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/bills/685/bill_payments\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\""},{"language":"ruby","code":"bill = DaisybillApi::Models::Bill.find(685)\nbill_payments = bill.bill_payments"}]},"method":"get","params":[{"type":"int","_id":"562e2b7f8c6e5a0d00d6edee","default":"","desc":"ID of Bill","in":"path","name":"bill_id","ref":"","required":true},{"default":"1","desc":"Page offset to fetch","in":"query","name":"page","ref":"","required":false,"type":"int","_id":"562e8485e01a430d00c2ca26"},{"desc":"Number of results to return per page","in":"query","name":"per_page","ref":"","required":false,"type":"int","_id":"562e8485e01a430d00c2ca25","default":"25"},{"name":"offset","ref":"","required":false,"type":"int","_id":"562e8485e01a430d00c2ca24","default":"","desc":"Pad a number of results","in":"query"}]},"excerpt":"","next":{"description":"","pages":[]},"order":0,"slug":"list-bill-payments-1","title":"List Bill Payments","createdAt":"2015-10-23T16:07:09.569Z","childrenPages":[]}

getList Bill Payments


Path Params

bill_id:
required
integer
ID of Bill

Query Params

page:
integer1
Page offset to fetch
per_page:
integer25
Number of results to return per page
offset:
integer
Pad a number of results

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"5935ab5ccfb17f0025c2d619","project":"5621497ac412c31900ee2790","version":"5621497bc412c31900ee2793","category":"562a5b2261ade50d00283331","user":"5928300b3ddea50f00aec401","updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-06-05T19:05:00.795Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[{"status":200,"language":"json","code":"{\n  \"created_at\":\"2017-06-01T07:11:27.585-07:00\",\n  \"updated_at\":\"2017-06-01T07:11:27.585-07:00\",\n  \"id\":822566,\n  \"payment_amount_cents\":864,\n  \"check_amount\":864,\n  \"check_number\":\"1234532134\",\n  \"check_effective_date\":\"2017-06-01\",\n  \"payment_source\":\"manual_posting\",\n  \"claim_adjustment_reasons\":[],\n  \"service_line_item_payments\":[\n    {\n      \"created_at\":\"2017-06-01T07:11:28.045-07:00\",\n      \"updated_at\":\"2017-06-01T07:11:28.045-07:00\",\n      \"service_line_item_id\":3609312,\n      \"procedure_code\":\"99070\",\n      \"units\":32.0,\n      \"payment_amount_cents\":0,\n      \"claim_adjustment_reasons\":[]\n    },\n    {\n      \"created_at\":\"2017-06-01T07:11:27.782-07:00\",\n      \"updated_at\":\"2017-06-01T07:11:27.782-07:00\",\n      \"service_line_item_id\":3609272,\n      \"procedure_code\":\"99070\",\n      \"units\":1.0,\n      \"payment_amount_cents\":0,\n      \"claim_adjustment_reasons\":[]\n    }\n  ],\n  \"links\":[\n    {\n      \"rel\":\"bill\",\n      \"href\":\"/api/v1/bills/1002142\"\n    },\n    {\n      \"rel\":\"bill_submission\",\n      \"href\":\"/api/v1/bill_submissions/1258605\"\n    },\n    {\n      \"rel\":\"remittance\",\n      \"href\":\"/api/v1/remittances/724471\"\n    }\n  ]\n}","name":""}]},"settings":"","auth":"required","params":[{"_id":"5935ac4a86e994000f9e4489","ref":"","in":"path","required":true,"desc":"ID of Bill Payment","default":"","type":"int","name":"id"}],"url":"/bill_payments/:id","examples":{"codes":[{"name":"cURL","language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/bill_payments/822566\\?\napi_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\""},{"code":"DaisybillApi::Models::BillPayment.find(822566)","language":"ruby","name":"Ruby"}]},"method":"get"},"isReference":true,"order":1,"body":"","excerpt":"","slug":"get-bill-payment","type":"get","title":"Get Bill Payment","__v":1,"parentDoc":null,"childrenPages":[]}

getGet Bill Payment


Path Params

id:
required
integer
ID of Bill Payment

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"5621648b6e20d40d0073112c","category":"56215e74f761a4170068ece3","editedParams":true,"excerpt":"","isReference":true,"next":{"description":"","pages":[]},"parentDoc":null,"updates":[],"version":"5621497bc412c31900ee2793","__v":2,"api":{"params":[{"required":true,"type":"int","_id":"562a9911c50ab20d003ef084","default":"","desc":"ID of Bill","in":"path","name":"bill_id","ref":""},{"name":"page","ref":"","required":false,"type":"int","_id":"562a9911c50ab20d003ef083","default":"1","desc":"Page offset to fetch","in":"query"},{"_id":"562a9911c50ab20d003ef082","default":"25","desc":"Number of results to return per page","in":"query","name":"per_page","ref":"","required":false,"type":"int"},{"_id":"562a9911c50ab20d003ef081","default":"","desc":"Pad a number of results","in":"query","name":"offset","ref":"","required":false,"type":"int"}],"results":{"codes":[{"name":"","code":"{  \n  \"bill_submissions\":[  \n    {  \n      \"created_at\":\"2015-10-07T18:28:53.479-07:00\",\n      \"updated_at\":\"2015-010-07T18:29:00.617-07:00\",\n      \"id\":685,\n      \"type\":\"OriginalSubmission\",\n      \"mode\":\"ftp\",\n      \"claims_administrator\":{  \n        \"created_at\":\"2015-01-04T10:18:57.549-08:00\",\n        \"updated_at\":\"2015-09-03T05:18:47.966-07:00\",\n        \"name\":\"Mohr-Turcotte Mgmt\",\n        \"id\":45\n      },\n      \"links\":[  \n        {  \n          \"rel\":\"bill\",\n          \"href\":\"/api/v1/bills/544\"\n        }\n      ]\n    }\n  ]\n}","language":"json","status":200}]},"settings":"","url":"/bills/:bill_id/bill_submissions","auth":"required","examples":{"codes":[{"code":"curl \\\n  https://go.daisybill.com/api/v1/bills/544/bill_submissions\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\"","name":null,"language":"curl"},{"language":"ruby","code":"bill = DaisybillApi::Models::Bill.find(544)\nbill.bill_submissions"}]},"method":"get"},"sync_unique":"","type":"get","createdAt":"2015-10-16T20:56:43.378Z","githubsync":"","link_external":false,"project":"5621497ac412c31900ee2790","title":"List Bill Submissions","user":"562148f56e20d40d007310fc","body":"","editedParams2":true,"hidden":false,"link_url":"","order":0,"slug":"list-bill-submissions","childrenPages":[]}

getList Bill Submissions


Path Params

bill_id:
required
integer
ID of Bill

Query Params

page:
integer1
Page offset to fetch
per_page:
integer25
Number of results to return per page
offset:
integer
Pad a number of results

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"562164b5c6648b1900cb1589","editedParams":true,"hidden":false,"slug":"get-bill-submission","title":"Get Bill Submission","updates":[],"api":{"url":"/bill_submissions/:id","auth":"required","examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/bill_submissions/685\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\"","name":"cURL"},{"language":"ruby","code":"bill_submission = DaisybillApi::Models::BillSubmission.find(685)"}]},"method":"get","params":[{"type":"int","_id":"562a9a10191a280d00876321","default":"","desc":"ID of Bill Submission","in":"path","name":"id","ref":"","required":true}],"results":{"codes":[{"status":200,"language":"json","code":"{  \n  \"created_at\":\"2015-07-14T18:28:53.479-07:00\",\n  \"updated_at\":\"2015-08-07T18:29:00.617-07:00\",\n  \"id\":685,\n  \"type\":\"OriginalSubmission\",\n  \"mode\":\"ftp\",\n  \"claims_administrator\":{  \n    \"created_at\":\"2015-01-04T10:18:57.549-08:00\",\n    \"updated_at\":\"2015-09-03T05:18:47.966-07:00\",\n    \"name\":\"Mohr-Turcotte Mgmt\",\n    \"id\":45\n  },\n  \"links\":[  \n    {  \n      \"rel\":\"bill\",\n      \"href\":\"/api/v1/bills/544\"\n    }\n  ]\n}","name":""}]},"settings":""},"body":"","isReference":true,"link_url":"","next":{"description":"","pages":[]},"parentDoc":null,"sync_unique":"","version":"5621497bc412c31900ee2793","createdAt":"2015-10-16T20:57:25.391Z","editedParams2":true,"link_external":false,"order":1,"project":"5621497ac412c31900ee2790","type":"get","excerpt":"","githubsync":"","category":"56215e74f761a4170068ece3","user":"562148f56e20d40d007310fc","__v":2,"childrenPages":[]}

getGet Bill Submission


Path Params

id:
required
integer
ID of Bill Submission

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"562164c7bc7b320d007ddce8","__v":3,"category":"56215e74f761a4170068ece3","createdAt":"2015-10-16T20:57:43.233Z","excerpt":"","next":{"description":"","pages":[]},"order":2,"parentDoc":null,"type":"post","updates":[],"user":"562148f56e20d40d007310fc","version":"5621497bc412c31900ee2793","api":{"results":{"codes":[{"code":"{  \n  \"created_at\":\"2015-10-23T14:11:53.773-07:00\",\n  \"updated_at\":\"2015-10-23T14:11:53.773-07:00\",\n  \"id\":686,\n  \"type\":\"DuplicateSubmission\",\n  \"mode\":\"ftp\",\n  \"claims_administrator\":{  \n    \"created_at\":\"2015-01-04T10:18:57.549-08:00\",\n    \"updated_at\":\"2015-09-03T05:18:47.966-07:00\",\n    \"name\":\"Cassin Inc\",\n    \"id\":49\n  },\n  \"links\":[  \n    {  \n      \"rel\":\"bill\",\n      \"href\":\"/api/v1/bills/545\"\n    }\n  ]\n}","language":"json","status":201,"name":""}]},"settings":"","url":"/bills/:bill_id/bill_submissions","auth":"required","examples":{"codes":[{"name":"cURL","code":"curl \\\n  https://go.daisybill.com/api/v1/bills/545/bill_submissions\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X POST \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"comment\": \"Second submission\",\n  \"supporting_document_ids\": [123]\n}'","language":"curl"},{"language":"ruby","code":"DaisybillApi::Models::BillSubmission.create(\n  bill_id: 545,\n  comment: \"Second submission\",\n  supporting_document_ids: [123]\n)"}]},"method":"post","params":[{"ref":"","in":"path","required":true,"desc":"ID of Bill","default":"","type":"int","name":"bill_id","_id":"562aa1ce96b5f40d0026eb71"},{"in":"path","required":false,"desc":"Required unless submission type is Original or Second Review","default":"","type":"string","name":"comment","_id":"588fbf313a96f12500b031fb","ref":""},{"required":false,"desc":"Required for Second Review Submissions if attachments are to be resubmitted","default":"","type":"array_int","name":"supporting_document_ids","_id":"588fbf313a96f12500b031fa","ref":"","in":"path"}]},"githubsync":"","editedParams2":true,"body":"","editedParams":true,"hidden":false,"isReference":true,"link_external":false,"link_url":"","project":"5621497ac412c31900ee2790","slug":"create-bill-submission","sync_unique":"","title":"Create Bill Submission","childrenPages":[]}

postCreate Bill Submission


Path Params

bill_id:
required
integer
ID of Bill
comment:
string
Required unless submission type is Original or Second Review
supporting_document_ids:
array of integers
Required for Second Review Submissions if attachments are to be resubmitted

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"5621609ac412c31900ee27bb","user":"562148f56e20d40d007310fc","category":"56215dbdf761a4170068ece2","githubsync":"","link_external":false,"next":{"description":"","pages":[]},"type":"get","updates":[],"link_url":"","project":"5621497ac412c31900ee2790","api":{"examples":{"codes":[{"name":"cURL","code":"curl \\\n  https://go.daisybill.com/api/v1/billing_providers\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\"","language":"curl"},{"code":"DaisybillApi::Models::BillingProvider.all","language":"ruby"}]},"method":"get","params":[{"ref":"","required":false,"type":"int","_id":"562666da88749417009f6be4","default":"1","desc":"Page offset to fetch","in":"query","name":"page"},{"ref":"","required":false,"type":"int","_id":"562666da88749417009f6be3","default":"25","desc":"Number of results to return per page","in":"query","name":"per_page"},{"ref":"","required":false,"type":"int","_id":"562666f1db1eda0d001c3d95","default":"","desc":"Pad a number of results","in":"query","name":"offset"}],"results":{"codes":[{"status":200,"language":"json","code":"{  \n  \"billing_providers\":[  \n    {  \n      \"created_at\":\"2015-01-14T12:48:15.620-07:00\",\n      \"updated_at\":\"2015-10-14T08:07:59.764-07:00\",\n      \"id\":3,\n      \"name\":\"McKenzie, Weber and Gleichner Group\",\n      \"fein\":\"916398831\",\n      \"npi\":\"0205677163\",\n      \"telephone\":\"2133646855\",\n      \"fax_number\":\"2139751105\",\n      \"physical_address\":{  \n        \"created_at\":\"2015-01-14T12:48:15.622-07:00\",\n        \"updated_at\":\"2015-10-14T08:07:59.715-07:00\",\n        \"id\":7,\n        \"address_1\":\"445 Tremblay Prairie\",\n        \"address_2\":\"\",\n        \"city\":\"Port Ally\",\n        \"state\":\"CA\",\n        \"zip_code\":\"493756533\"\n      }\n    },\n    {  \n      \"created_at\":\"2015-01-14T12:49:15.620-07:00\",\n      \"updated_at\":\"2015-10-14T08:07:59.764-07:00\",\n      \"id\":4,\n      \"name\":\"Blick, Mertz and O'Kon Inc\",\n      \"fein\":\"502176656\",\n      \"npi\":\"0508857579\",\n      \"telephone\":\"2138370777\",\n      \"fax_number\":\"2135422926\",\n      \"physical_address\":{  \n        \"created_at\":\"2015-01-14T12:49:15.622-07:00\",\n        \"updated_at\":\"2015-10-14T08:07:59.715-07:00\",\n        \"id\":8,\n        \"address_1\":\"524 Michaela Trail\",\n        \"address_2\":\"\",\n        \"city\":\"Norbertoville\",\n        \"state\":\"CA\",\n        \"zip_code\":\"536277604\"\n      }\n    }\n  ]\n}","name":""}]},"settings":"","url":"/billing_providers","auth":"required"},"body":"","createdAt":"2015-10-16T20:39:54.352Z","editedParams":true,"excerpt":"","sync_unique":"","__v":8,"slug":"billingproviders1","title":"List Billing Providers","version":"5621497bc412c31900ee2793","editedParams2":true,"hidden":false,"isReference":true,"order":0,"parentDoc":null,"childrenPages":[]}

getList Billing Providers


Query Params

page:
integer1
Page offset to fetch
per_page:
integer25
Number of results to return per page
offset:
integer
Pad a number of results

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"56216148c6648b1900cb1578","link_url":"","title":"Get Billing Provider","excerpt":"Retrieve a specific Billing Provider","parentDoc":null,"project":"5621497ac412c31900ee2790","createdAt":"2015-10-16T20:42:48.252Z","editedParams":true,"isReference":true,"link_external":false,"order":1,"type":"get","body":"","api":{"settings":"","url":"/billing_providers/:id","auth":"required","examples":{"codes":[{"language":"curl","name":"cURL","code":"curl \\\n  https://go.daisybill.com/api/v1/billing_providers/16\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\""},{"language":"ruby","code":"DaisybillApi::Models::BillingProvider.find(16)"}]},"method":"get","params":[{"type":"int","_id":"56216c12bc7b320d007ddcf3","default":"","desc":"ID of Billing Provider","in":"path","name":"id","ref":"","required":true}],"results":{"codes":[{"status":200,"name":"","code":"{  \n  \"created_at\":\"2015-06-01T13:09:33.874-07:00\",\n  \"updated_at\":\"2015-09-03T05:19:11.701-07:00\",\n  \"id\":16,\n  \"name\":\"Dickens, Beatty and Douglas LLC\",\n  \"fein\":\"282984218\",\n  \"npi\":\"4576959221\",\n  \"telephone\":\"2138521092\",\n  \"fax_number\":\"2139844218\",\n  \"physical_address\":{  \n    \"created_at\":\"2012-10-03T07:00:57.160-07:00\",\n    \"updated_at\":\"2012-10-03T07:00:57.160-07:00\",\n    \"id\":37,\n    \"address_1\":\"893 Jones Mountain\",\n    \"city\":\"Careyland\",\n    \"state\":\"CA\",\n    \"zip_code\":\"900011347\"\n  }\n}","language":"json"}]}},"category":"56215dbdf761a4170068ece2","editedParams2":true,"githubsync":"","hidden":false,"next":{"description":"","pages":[]},"slug":"get-billing-provider","__v":5,"updates":[],"user":"562148f56e20d40d007310fc","version":"5621497bc412c31900ee2793","sync_unique":"","childrenPages":[]}

getGet Billing Provider

Retrieve a specific Billing Provider

Path Params

id:
required
integer
ID of Billing Provider

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"584840cb9b31af2d000624a7","hidden":false,"slug":"list-billing-provider-attachments","version":"5621497bc412c31900ee2793","api":{"params":[{"ref":"","in":"path","required":true,"desc":"ID of Billing Provider","default":"","type":"int","name":"id","_id":"584840cb9b31af2d000624a8"}],"results":{"codes":[{"status":200,"language":"json","code":"{\n  \"billing_provider_attachments\": [\n    {\n      \"created_at\": \"2014-01-15T11:18:25.650-08:00\",\n      \"updated_at\": \"2014-01-15T11:18:25.650-08:00\",\n      \"review_status\": \"passed\",\n      \"review_errors\": [],\n      \"review_warnings\": [],\n      \"id\": 65,\n      \"document_file_name\": \"attachment_65402.pdf\",\n      \"document_content_type\": \"application/pdf\",\n      \"document_file_size\": 459893,\n      \"inactive\": false,\n      \"document_url\": \"https://daisybill-development.s3.amazonaws.com/supporting_documents/attachment_65402.pdf?AWSAccessKeyId=123&Signature=sqKPLb%abc%3D\",\n      \"report_type\": \"OZ:J1\",\n      \"links\": [\n        {\n          \"rel\": \"bill\",\n          \"href\": \"/api/v1/bills/29419\"\n        }\n      ]\n    },\n    {\n      \"created_at\": \"2014-01-15T20:39:46.386-08:00\",\n      \"updated_at\": \"2014-01-15T20:39:46.386-08:00\",\n      \"review_status\": \"passed\",\n      \"review_errors\": [],\n      \"review_warnings\": [],\n      \"id\": 66579,\n      \"document_file_name\": \"attachment_66579.pdf\",\n      \"document_content_type\": \"application/pdf\",\n      \"document_file_size\": 31110,\n      \"inactive\": false,\n      \"document_url\": \"https://daisybill-development.s3.amazonaws.com/supporting_documents/attachment_66579.pdf?AWSAccessKeyId=123&Expires=1481133491&Signature=abc\",\n      \"report_type\": \"OZ:J2\",\n      \"links\": [\n        {\n          \"rel\": \"bill\",\n          \"href\": \"/api/v1/bills/29643\"\n        }\n      ]\n    }\n  ]\n}\n","name":""}]},"settings":"","url":"/billing_providers/:id/attachments","auth":"required","examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/billing_providers/222/attachments\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\""},{"language":"ruby","code":"billing_provider = DaisybillApi::Models::BillingProvider.find(22)\nbilling_provider.attachments"}]},"method":"get"},"body":"","link_external":false,"next":{"pages":[],"description":""},"excerpt":"","isReference":true,"link_url":"","order":0,"sync_unique":"","user":"562148f56e20d40d007310fc","__v":0,"githubsync":"","parentDoc":null,"project":"5621497ac412c31900ee2790","title":"List Billing Provider Attachments","type":"get","updates":[],"category":"5848401b4352c62d0040f458","createdAt":"2016-12-07T17:03:07.622Z","childrenPages":[]}

getList Billing Provider Attachments


Path Params

id:
required
integer
ID of Billing Provider

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"56216415c6648b1900cb1582","createdAt":"2015-10-16T20:54:45.121Z","editedParams2":true,"githubsync":"","next":{"description":"","pages":[]},"parentDoc":null,"title":"List Bills","updates":[],"api":{"examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/injuries/28/bills\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\"","name":"cURL"},{"language":"ruby","code":"DaisybillApi::Models::Injury.find(28).bills"}]},"method":"get","params":[{"_id":"562907a12c0fd9190067da24","ref":"","in":"path","required":true,"desc":"ID of Injury","default":"","type":"int","name":"injury_id"},{"_id":"56290e670653060d00a2f843","ref":"","in":"query","required":false,"desc":"Page offset to fetch","default":"1","type":"int","name":"page"},{"_id":"56290e670653060d00a2f842","ref":"","in":"query","required":false,"desc":"Number of results to return per page","default":"25","type":"int","name":"per_page"},{"_id":"56290e670653060d00a2f841","ref":"","in":"query","required":false,"desc":"Pad a number of results","default":"","type":"int","name":"offset"},{"_id":"5c12e1df788f9900185032a4","ref":"","in":"query","required":false,"desc":"Filterable","default":"","type":"yyyy-mm-dd","name":"bill_status_updated_at"},{"_id":"5b23c06a51c21300032792df","ref":"","in":"query","required":false,"desc":"Filter bill by status. Allowed values:  incomplete, sent, accepted, rejected, processed, lien, closed","default":"","type":"string","name":"status"},{"_id":"5bc60bac187f6a0020319795","ref":"","in":"query","required":false,"desc":"Filter bills by practice_bill_id","default":"","type":"string","name":"practice_bill_id"},{"_id":"5c12e1df788f9900185032a3","ref":"","in":"query","required":false,"desc":"Filterable","default":"","type":"yyyy-mm-dd","name":"created_at"},{"_id":"5c12e1df788f9900185032a2","ref":"","in":"query","required":false,"desc":"Filterable","default":"","type":"yyyy-mm-dd","name":"updated_at"}],"results":{"codes":[{"name":"","code":"{  \n  \"bills\":[  \n    {  \n      \"created_at\":\"2015-08-07T16:31:39.490-07:00\",\n      \"updated_at\":\"2015-08-07T16:31:39.490-07:00\",\n      \"review_status\":\"passed\",\n      \"review_errors\":[],\n      \"review_warnings\":[],\n      \"id\":544,\n      \"date_of_service\":\"2015-08-04\",\n      \"diagnosis_type\":\"Icd9\",\n      \"authorization_number\":\"\",\n      \"practice_bill_id\":\"\",\n      \"additional_information\":\"\",\n      \"status\":\"incomplete\",\n      \"charge_cents\":8981,\n      \"expected_payment_cents\":8981,\n      \"allowed_cents\":0,\n      \"balance_due_cents\":8981,\n      \"write_off_cents\":0,\n      \"diagnosis_codes\":[  \n        \"7400\"\n      ],\n      \"service_line_items\":[  \n        {  \n          \"created_at\":\"2015-08-07T16:31:39.560-07:00\",\n          \"updated_at\":\"2015-08-07T16:31:39.560-07:00\",\n          \"id\":1858,\n          \"procedure_code\":\"99213\",\n          \"units\":1,\n          \"diagnosis_code_1\":\"7400\",\n          \"diagnosis_code_2\":\"\",\n          \"diagnosis_code_3\":\"\",\n          \"diagnosis_code_4\":\"\",\n          \"charge_cents\":8981,\n          \"expected_payment_cents\":8981,\n          \"modifier_codes\":[],\n          \"allowed_cents\":0,\n          \"balance_due_cents\":8981,\n          \"write_off_cents\":0\n        }\n      ],\n      \"links\":[  \n        {  \n          \"rel\":\"injury\",\n          \"href\":\"/api/v1/injuries/28\"\n        },\n        {  \n          \"rel\":\"place_of_service\",\n          \"href\":\"/api/v1/places_of_service/248\"\n        },\n        {  \n          \"rel\":\"rendering_provider\",\n          \"href\":\"/api/v1/rendering_providers/206\"\n        },\n        {  \n          \"rel\":\"referring_provider\",\n          \"href\":\"/api/v1/referring_providers/\"\n        },\n        {  \n          \"rel\":\"supervising_provider\",\n          \"href\":\"/api/v1/rendering_providers/\"\n        }\n      ]\n    }\n  ]\n}","language":"json","status":200}]},"settings":"","url":"/injuries/:injury_id/bills","auth":"required"},"version":"5621497bc412c31900ee2793","user":"562148f56e20d40d007310fc","isReference":true,"order":0,"project":"5621497ac412c31900ee2790","slug":"list-bills","sync_unique":"","body":"","hidden":false,"type":"get","editedParams":true,"category":"56215e66c412c31900ee27b1","excerpt":"","link_external":false,"link_url":"","__v":8,"childrenPages":[]}

getList Bills


Path Params

injury_id:
required
integer
ID of Injury

Query Params

page:
integer1
Page offset to fetch
per_page:
integer25
Number of results to return per page
offset:
integer
Pad a number of results
bill_status_updated_at:
yyyy-mm-dd
Filterable
status:
string
Filter bill by status. Allowed values: incomplete, sent, accepted, rejected, processed, lien, closed
practice_bill_id:
string
Filter bills by practice_bill_id
created_at:
yyyy-mm-dd
Filterable
updated_at:
yyyy-mm-dd
Filterable

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"5621641dbc7b320d007ddce5","__v":2,"editedParams2":true,"link_url":"","slug":"get-bill","title":"Get Bill","version":"5621497bc412c31900ee2793","order":1,"project":"5621497ac412c31900ee2790","api":{"auth":"required","examples":{"codes":[{"name":"cURL","code":"curl \\\n  https://go.daisybill.com/api/v1/bills/544\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\"","language":"curl"},{"language":"ruby","code":"bill = DaisybillApi::Models::Bill.find(544)"}]},"method":"get","params":[{"required":true,"type":"int","_id":"56290ea90f90450d0061b0e9","default":"","desc":"ID of Bill","in":"path","name":"id","ref":""}],"results":{"codes":[{"name":"","code":"{  \n  \"created_at\":\"2015-08-07T16:31:39.490-07:00\",\n  \"updated_at\":\"2015-08-07T16:31:39.490-07:00\",\n  \"review_status\":\"passed\",\n  \"review_errors\":[],\n  \"review_warnings\":[],\n  \"id\":544,\n  \"date_of_service\":\"2015-08-04\",\n  \"diagnosis_type\":\"Icd9\",\n  \"authorization_number\":\"\",\n  \"practice_bill_id\":\"\",\n  \"additional_information\":\"\",\n  \"status\":\"incomplete\",\n  \"charge_cents\":8981,\n  \"expected_payment_cents\":8981,\n  \"allowed_cents\":0,\n  \"balance_due_cents\":8981,\n  \"write_off_cents\":0,\n  \"diagnosis_codes\":[  \n    \"7400\"\n  ],\n  \"service_line_items\":[  \n    {  \n      \"created_at\":\"2015-08-07T16:31:39.560-07:00\",\n      \"updated_at\":\"2015-08-07T16:31:39.560-07:00\",\n      \"id\":1858,\n      \"procedure_code\":\"99213\",\n      \"units\":1,\n      \"diagnosis_code_1\":\"7400\",\n      \"diagnosis_code_2\":\"\",\n      \"diagnosis_code_3\":\"\",\n      \"diagnosis_code_4\":\"\",\n      \"charge_cents\":8981,\n      \"expected_payment_cents\":8981,\n      \"modifier_codes\":[],\n      \"allowed_cents\":0,\n      \"balance_due_cents\":8981,\n      \"write_off_cents\":0\n    }\n  ],\n  \"links\":[  \n    {  \n      \"rel\":\"injury\",\n      \"href\":\"/api/v1/injuries/28\"\n    },\n    {  \n      \"rel\":\"place_of_service\",\n      \"href\":\"/api/v1/places_of_service/248\"\n    },\n    {  \n      \"rel\":\"rendering_provider\",\n      \"href\":\"/api/v1/rendering_providers/206\"\n    },\n    {  \n      \"rel\":\"referring_provider\",\n      \"href\":\"/api/v1/referring_providers/\"\n    },\n    {  \n      \"rel\":\"supervising_provider\",\n      \"href\":\"/api/v1/rendering_providers/\"\n    }\n  ]\n}","language":"json","status":200}]},"settings":"","url":"/bills/:id"},"createdAt":"2015-10-16T20:54:53.176Z","editedParams":true,"isReference":true,"link_external":false,"next":{"description":"","pages":[]},"sync_unique":"","updates":[],"user":"562148f56e20d40d007310fc","body":"","excerpt":"","parentDoc":null,"category":"56215e66c412c31900ee27b1","githubsync":"","hidden":false,"type":"get","childrenPages":[]}

getGet Bill


Path Params

id:
required
integer
ID of Bill

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"5621642af4e0352100cbf294","version":"5621497bc412c31900ee2793","body":"","editedParams2":true,"excerpt":"","updates":[],"parentDoc":null,"slug":"create-bill","api":{"url":"/injuries/:injury_id/bills","auth":"required","examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/injuries/189/bills\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X POST \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"bill\": {\n    \"date_of_service\": \"2015-01-01\",\n    \"place_of_service_id\": 4668,\n    \"diagnosis_codes\": [\n      \"A200\"\n    ],\n    \"service_line_items_attributes\": [\n      {\n        \"procedure_code\": \"99215\",\n        \"units\": \"1\",\n        \"diagnosis_code_1\": \"A200\"\n      }\n    ]\n  }\n}'","name":"cURL"},{"language":"ruby","code":"sli = DaisybillApi::Models::ServiceLineItem.new(\n  procedure_code: \"99214\",\n  units: \"1\",\n  diagnosis_code_1: \"7400\"\n)\n\nDaisybillApi::Models::Bill.create(\n  injury_id: 189,\n  date_of_service: \"2015-02-14\",\n  place_of_service_id: 202,\n  diagnosis_codes: [\"12345\"],\n  diagnosis_type: \"Icd9\",\n  service_line_items: [sli]\n)"}]},"method":"post","params":[{"_id":"562910cde3b5f5230084fd8a","ref":"","in":"path","required":true,"desc":"ID of Injury","default":"","type":"int","name":"injury_id"},{"_id":"562910cde3b5f5230084fd89","ref":"","in":"body","required":true,"desc":"Bill - Date of Service","default":"","type":"string","name":"bill[date_of_service]"},{"_id":"562912173398070d002f30ec","ref":"","in":"body","required":true,"desc":"Bill - Diagnosis Type.  Must be either \"Icd9\" or \"Icd10\"","default":"","type":"string","name":"bill[diagnosis_type]"},{"_id":"562911003398070d002f30e7","ref":"","in":"body","required":true,"desc":"ID of Place of Service","default":"","type":"int","name":"bill[place_of_service_id]"},{"_id":"562964b90f90450d0061b14e","ref":"","in":"body","required":true,"desc":"Array of Diagnosis Codes (without decimal points)","default":"","type":"array_string","name":"bill[diagnosis_codes]"},{"_id":"5629113348742a0d004745e1","ref":"","in":"body","required":false,"desc":"ID of Rendering Provider","default":"nil","type":"int","name":"bill[rendering_provider_id]"},{"_id":"5629113348742a0d004745e0","ref":"","in":"body","required":false,"desc":"ID of Referring Provider","default":"nil","type":"int","name":"bill[referring_provider_id]"},{"_id":"5629115fe3b5f5230084fd8e","ref":"","in":"body","required":false,"desc":"ID of Supervising Provider","default":"nil","type":"int","name":"bill[supervising_provider_id]"},{"_id":"5629118a0653060d00a2f84c","ref":"","in":"body","required":false,"desc":"Bill - Date of Service End","default":"nil","type":"string","name":"bill[date_of_service_end]"},{"_id":"5629115fe3b5f5230084fd8d","ref":"","in":"body","required":false,"desc":"Bill - Authorization Number","default":"nil","type":"string","name":"bill[authorization_number]"},{"_id":"5629118a0653060d00a2f84d","ref":"","in":"body","required":false,"desc":"Bill - Admission Date","default":"nil","type":"string","name":"bill[admission_date]"},{"_id":"562912173398070d002f30eb","ref":"","in":"body","required":false,"desc":"Bill - Additional Information","default":"nil","type":"string","name":"bill[additional_information]"},{"_id":"562912173398070d002f30ea","ref":"","in":"body","required":false,"desc":"Bill - Practice Bill ID","default":"nil","type":"int","name":"bill[practice_bill_id]"},{"_id":"562912525cfea90d00ddc6e6","ref":"","in":"body","required":true,"desc":"Service Line Item - Procedure Code","default":"","type":"string","name":"bill[service_line_items_attributes][][procedure_code]"},{"_id":"562912525cfea90d00ddc6e5","ref":"","in":"body","required":true,"desc":"Service Line Item - Units","default":"","type":"string","name":"bill[service_line_items_attributes][][units]"},{"_id":"56291279e3b5f5230084fd90","ref":"","in":"body","required":true,"desc":"Service Line Item - Diagnosis Code 1 (without decimal point)","default":"","type":"string","name":"bill[service_line_items_attributes][][diagnosis_code_1]"},{"_id":"562912882c0fd9190067da42","ref":"","in":"body","required":false,"desc":"Service Line Item - Diagnosis Code 2  (without decimal point)","default":"nil","type":"string","name":"bill[service_line_items_attributes][diagnosis_code_2]"},{"_id":"562913002c0fd9190067da46","ref":"","in":"body","required":false,"desc":"Service Line Item - Diagnosis Code 3  (without decimal point)","default":"nil","type":"string","name":"bill[service_line_items_attributes][diagnosis_code_3]"},{"_id":"562913002c0fd9190067da45","ref":"","in":"body","required":false,"desc":"Service Line Item - Diagnosis Code 4 (without decimal point)","default":"nil","type":"string","name":"bill[service_line_items_attributes][diagnosis_code_4]"},{"_id":"56291279e3b5f5230084fd91","ref":"","in":"body","required":false,"desc":"Service Line Item - Supplemental Data","default":"nil","type":"string","name":"bill[service_line_items_attributes][supplemental_data]"},{"_id":"5629131ae3b5f5230084fd94","ref":"","in":"body","required":false,"desc":"Service Line Item - Custom Unit Charge Cents","default":"nil","type":"string","name":"bill[service_line_items_attributes][custom_unit_charge_cents]"},{"_id":"5be5b518d33a4602152fb14c","ref":"","in":"body","required":false,"desc":"Service Line Item - Modifier Codes","default":"","type":"array_string","name":"bill[service_line_items_attributes][modifier_codes]"}],"results":{"codes":[{"name":"","code":"{  \n  \"created_at\":\"2015-02-16T07:43:26.185-07:00\",\n  \"updated_at\":\"2015-02-16T07:43:26.185-07:00\",\n  \"review_status\":\"pending\",\n  \"review_errors\":[],\n  \"review_warnings\":[],\n  \"id\":1401,\n  \"date_of_service\":\"2015-02-14\",\n  \"diagnosis_type\":\"Icd9\",\n  \"status\":\"incomplete\",\n  \"charge_cents\":0,\n  \"expected_payment_cents\":0,\n  \"allowed_cents\":0,\n  \"balance_due_cents\":0,\n  \"write_off_cents\":0,\n  \"diagnosis_codes\":[  \n    \"12345\"\n  ],\n  \"service_line_items\":[  \n\t\t{  \n      \"created_at\":\"2015-02-14T16:31:39.560-07:00\",\n      \"updated_at\":\"2015-02-14T16:31:39.560-07:00\",\n      \"id\":1858,\n      \"procedure_code\":\"99214\",\n      \"units\":1,\n      \"diagnosis_code_1\":\"7400\",\n      \"diagnosis_code_2\":\"\",\n      \"diagnosis_code_3\":\"\",\n      \"diagnosis_code_4\":\"\",\n      \"charge_cents\":0,\n      \"expected_payment_cents\":0,\n      \"modifier_codes\":[],\n      \"allowed_cents\":0,\n      \"balance_due_cents\":0,\n      \"write_off_cents\":0\n    }\n  ],\n  \"links\":[  \n    {  \n      \"rel\":\"injury\",\n      \"href\":\"/api/v1/injuries/189\"\n    },\n    {  \n      \"rel\":\"place_of_service\",\n      \"href\":\"/api/v1/places_of_service/202\"\n    },\n    {  \n      \"rel\":\"rendering_provider\",\n      \"href\":\"/api/v1/rendering_providers/\"\n    },\n    {  \n      \"rel\":\"referring_provider\",\n      \"href\":\"/api/v1/referring_providers/\"\n    },\n    {  \n      \"rel\":\"supervising_provider\",\n      \"href\":\"/api/v1/rendering_providers/\"\n    }\n  ]\n}","language":"json","status":201}]},"settings":""},"category":"56215e66c412c31900ee27b1","editedParams":true,"isReference":true,"title":"Create Bill","user":"562148f56e20d40d007310fc","hidden":false,"link_external":false,"next":{"description":"","pages":[]},"order":2,"link_url":"","project":"5621497ac412c31900ee2790","sync_unique":"","type":"post","__v":35,"createdAt":"2015-10-16T20:55:06.331Z","githubsync":"","childrenPages":[]}

postCreate Bill


Path Params

injury_id:
required
integer
ID of Injury

Body Params

bill[date_of_service]:
required
string
Bill - Date of Service
bill[diagnosis_type]:
required
string
Bill - Diagnosis Type. Must be either "Icd9" or "Icd10"
bill[place_of_service_id]:
required
integer
ID of Place of Service
bill[diagnosis_codes]:
required
array of strings
Array of Diagnosis Codes (without decimal points)
bill[rendering_provider_id]:
integernil
ID of Rendering Provider
bill[referring_provider_id]:
integernil
ID of Referring Provider
bill[supervising_provider_id]:
integernil
ID of Supervising Provider
bill[date_of_service_end]:
stringnil
Bill - Date of Service End
bill[authorization_number]:
stringnil
Bill - Authorization Number
bill[admission_date]:
stringnil
Bill - Admission Date
bill[additional_information]:
stringnil
Bill - Additional Information
bill[practice_bill_id]:
integernil
Bill - Practice Bill ID
bill[service_line_items_attributes][][procedure_code]:
required
string
Service Line Item - Procedure Code
bill[service_line_items_attributes][][units]:
required
string
Service Line Item - Units
bill[service_line_items_attributes][][diagnosis_code_1]:
required
string
Service Line Item - Diagnosis Code 1 (without decimal point)
bill[service_line_items_attributes][diagnosis_code_2]:
stringnil
Service Line Item - Diagnosis Code 2 (without decimal point)
bill[service_line_items_attributes][diagnosis_code_3]:
stringnil
Service Line Item - Diagnosis Code 3 (without decimal point)
bill[service_line_items_attributes][diagnosis_code_4]:
stringnil
Service Line Item - Diagnosis Code 4 (without decimal point)
bill[service_line_items_attributes][supplemental_data]:
stringnil
Service Line Item - Supplemental Data
bill[service_line_items_attributes][custom_unit_charge_cents]:
stringnil
Service Line Item - Custom Unit Charge Cents
bill[service_line_items_attributes][modifier_codes]:
array of strings
Service Line Item - Modifier Codes

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"5621644cb244890d001869a8","type":"patch","user":"562148f56e20d40d007310fc","body":"","category":"56215e66c412c31900ee27b1","editedParams":true,"editedParams2":true,"title":"Update Bill","parentDoc":null,"project":"5621497ac412c31900ee2790","slug":"update-bill","excerpt":"","link_external":false,"next":{"description":"","pages":[]},"order":3,"version":"5621497bc412c31900ee2793","isReference":true,"sync_unique":"","updates":[],"__v":17,"api":{"auth":"required","examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/bills/1401\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X PATCH \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"bill\": {\n    \"date_of_service\": \"2016-02-03\"\n  }\n}'","name":"cURL"},{"language":"ruby","code":"bill = DaisybillApi::Models::Bill.find(1401)\nbill.place_of_service_id = 26\nbill.save"}]},"method":"patch","params":[{"_id":"562a4ccc8437010d00c43c8f","ref":"","in":"path","required":true,"desc":"ID of Bill","default":"","type":"int","name":"id"},{"_id":"562a4ccc8437010d00c43c8e","ref":"","in":"body","required":false,"desc":"Bill - Date of Service","default":"","type":"string","name":"bill[date_of_service]"},{"_id":"562a569326057f0d00a65ad7","ref":"","in":"body","required":false,"desc":"Bill - Diagnosis Type","default":"","type":"string","name":"bill[diagnosis_type]"},{"_id":"562a569326057f0d00a65ad6","ref":"","in":"body","required":false,"desc":"ID of Place of Service","default":"","type":"int","name":"bill[place_of_service_id]"},{"_id":"562a569326057f0d00a65ad5","ref":"","in":"body","required":false,"desc":"Array of Diagnosis Codes","default":"","type":"array_string","name":"bill[diagnosis_codes]"},{"_id":"562ff1fb1a693d0d007d25d7","ref":"","in":"body","required":false,"desc":"ID of Rendering Provider","default":"","type":"int","name":"bill[rendering_provider_id]"},{"_id":"562a569326057f0d00a65ad4","ref":"","in":"body","required":false,"desc":"ID of Referring Provider","default":"","type":"int","name":"bill[rendering_provider_id]"},{"_id":"562a569326057f0d00a65ad3","ref":"","in":"body","required":false,"desc":"ID of Supervising Provider","default":"","type":"int","name":"bill[supervising_provider_id]"},{"_id":"562a569326057f0d00a65ad2","ref":"","in":"body","required":false,"desc":"Bill - Date of Service End","default":"","type":"string","name":"bill[date_of_service_end]"},{"_id":"562a569326057f0d00a65ad1","ref":"","in":"body","required":false,"desc":"Bill - Authorization Number","default":"","type":"string","name":"bill[authorization_number]"},{"_id":"562a569326057f0d00a65ad0","ref":"","in":"body","required":false,"desc":"Bill - Admission Date","default":"","type":"string","name":"bill[admission_date]"},{"_id":"562a569326057f0d00a65acf","ref":"","in":"body","required":false,"desc":"Bill - Additional Information","default":"","type":"string","name":"bill[additional_information]"},{"_id":"562a569326057f0d00a65ace","ref":"","in":"body","required":false,"desc":"Bill - Practice Bill ID","default":"","type":"int","name":"bill[practice_bill_id]"},{"_id":"562a576d61ade50d0028332f","ref":"","in":"body","required":false,"desc":"Service Line Item - Procedure Code","default":"","type":"string","name":"bill[service_line_items_attributes][][procedure_code]"},{"_id":"562a576d61ade50d0028332e","ref":"","in":"body","required":false,"desc":"Service Line Item - Units","default":"","type":"string","name":"bill[service_line_items_attributes][][units]"},{"_id":"562a576d61ade50d0028332d","ref":"","in":"body","required":false,"desc":"Service Line Item - Diagnosis Code 1","default":"","type":"string","name":"bill[service_line_items_attributes][][diagnosis_code_1]"},{"_id":"562a576d61ade50d0028332c","ref":"","in":"body","required":false,"desc":"Service Line Item - Diagnosis Code 2","default":"","type":"string","name":"bill[service_line_items_attributes][][diagnosis_code_2]"},{"_id":"562a576d61ade50d0028332b","ref":"","in":"body","required":false,"desc":"Service Line Item - Diagnosis Code 3","default":"","type":"string","name":"bill[service_line_items_attributes][][diagnosis_code_3]"},{"_id":"562a576d61ade50d0028332a","ref":"","in":"body","required":false,"desc":"Service Line Item - Diagnosis Code 4","default":"","type":"string","name":"bill[service_line_items_attributes][][diagnosis_code_4]"},{"_id":"562a576d61ade50d00283329","ref":"","in":"body","required":false,"desc":"Service Line Item - Supplemental Data","default":"","type":"string","name":"bill[service_line_items_attributes][][supplemental_data]"},{"_id":"562a576d61ade50d00283328","ref":"","in":"body","required":false,"desc":"Service Line Item - Custom Unit Charge Cents","default":"","type":"string","name":"bill[service_line_items_attributes][][custom_unit_charge_cents]"},{"_id":"5be5b52ad37d5c0029ef127a","ref":"","in":"body","required":false,"desc":"Service Line Item - Modifier Codes","default":"","type":"array_string","name":"bill[service_line_items_attributes][modifier_codes]"}],"results":{"codes":[{"name":"","code":"{  \n  \"created_at\":\"2015-02-16T07:43:26.185-07:00\",\n  \"updated_at\":\"2015-02-16T07:48:19.185-07:00\",\n  \"review_status\":\"pending\",\n  \"review_errors\":[],\n  \"review_warnings\":[],\n  \"id\":1401,\n  \"date_of_service\":\"2015-02-14\",\n  \"diagnosis_type\":\"Icd9\",\n  \"status\":\"incomplete\",\n  \"charge_cents\":0,\n  \"expected_payment_cents\":0,\n  \"allowed_cents\":0,\n  \"balance_due_cents\":0,\n  \"write_off_cents\":0,\n  \"diagnosis_codes\":[  \n    \"12345\"\n  ],\n  \"service_line_items\":[  \n\t\t{  \n      \"created_at\":\"2015-02-14T16:31:39.560-07:00\",\n      \"updated_at\":\"2015-02-14T16:31:39.560-07:00\",\n      \"id\":1858,\n      \"procedure_code\":\"99214\",\n      \"units\":1,\n      \"diagnosis_code_1\":\"7400\",\n      \"diagnosis_code_2\":\"\",\n      \"diagnosis_code_3\":\"\",\n      \"diagnosis_code_4\":\"\",\n      \"charge_cents\":0,\n      \"expected_payment_cents\":0,\n      \"modifier_codes\":[],\n      \"allowed_cents\":0,\n      \"balance_due_cents\":0,\n      \"write_off_cents\":0\n    }\n  ],\n  \"links\":[  \n    {  \n      \"rel\":\"injury\",\n      \"href\":\"/api/v1/injuries/189\"\n    },\n    {  \n      \"rel\":\"place_of_service\",\n      \"href\":\"/api/v1/places_of_service/26\"\n    },\n    {  \n      \"rel\":\"rendering_provider\",\n      \"href\":\"/api/v1/rendering_providers/\"\n    },\n    {  \n      \"rel\":\"referring_provider\",\n      \"href\":\"/api/v1/referring_providers/\"\n    },\n    {  \n      \"rel\":\"supervising_provider\",\n      \"href\":\"/api/v1/rendering_providers/\"\n    }\n  ]\n}","language":"json","status":200}]},"settings":"","url":"/bills/:id"},"createdAt":"2015-10-16T20:55:40.236Z","githubsync":"","hidden":false,"link_url":"","childrenPages":[]}

patchUpdate Bill


Path Params

id:
required
integer
ID of Bill

Body Params

bill[date_of_service]:
string
Bill - Date of Service
bill[diagnosis_type]:
string
Bill - Diagnosis Type
bill[place_of_service_id]:
integer
ID of Place of Service
bill[diagnosis_codes]:
array of strings
Array of Diagnosis Codes
bill[rendering_provider_id]:
integer
ID of Rendering Provider
bill[rendering_provider_id]:
integer
ID of Referring Provider
bill[supervising_provider_id]:
integer
ID of Supervising Provider
bill[date_of_service_end]:
string
Bill - Date of Service End
bill[authorization_number]:
string
Bill - Authorization Number
bill[admission_date]:
string
Bill - Admission Date
bill[additional_information]:
string
Bill - Additional Information
bill[practice_bill_id]:
integer
Bill - Practice Bill ID
bill[service_line_items_attributes][][procedure_code]:
string
Service Line Item - Procedure Code
bill[service_line_items_attributes][][units]:
string
Service Line Item - Units
bill[service_line_items_attributes][][diagnosis_code_1]:
string
Service Line Item - Diagnosis Code 1
bill[service_line_items_attributes][][diagnosis_code_2]:
string
Service Line Item - Diagnosis Code 2
bill[service_line_items_attributes][][diagnosis_code_3]:
string
Service Line Item - Diagnosis Code 3
bill[service_line_items_attributes][][diagnosis_code_4]:
string
Service Line Item - Diagnosis Code 4
bill[service_line_items_attributes][][supplemental_data]:
string
Service Line Item - Supplemental Data
bill[service_line_items_attributes][][custom_unit_charge_cents]:
string
Service Line Item - Custom Unit Charge Cents
bill[service_line_items_attributes][modifier_codes]:
array of strings
Service Line Item - Modifier Codes

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"5621645cc6648b1900cb1584","link_external":false,"link_url":"","next":{"description":"","pages":[]},"order":4,"type":"delete","category":"56215e66c412c31900ee27b1","editedParams2":true,"parentDoc":null,"sync_unique":"","title":"Delete Bill","updates":[],"user":"562148f56e20d40d007310fc","hidden":false,"isReference":true,"project":"5621497ac412c31900ee2790","createdAt":"2015-10-16T20:55:56.667Z","editedParams":true,"api":{"url":"/bills/:id","auth":"required","examples":{"codes":[{"name":"cURL","code":"curl \\\n  https://go.daisybill.com/api/v1/bills/544\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X DELETE \\\n  -H \"Content-Type: application/json\"","language":"curl"},{"language":"ruby","code":"bill = DaisybillApi::Models::Bill.find(544)\nbill.destroy"}]},"method":"delete","params":[{"name":"id","ref":"","required":true,"type":"int","_id":"56292cea2c0fd9190067da8a","default":"","desc":"ID of Bill","in":"path"}],"results":{"codes":[{"name":"","code":"{  \n  \"created_at\":\"2015-08-07T16:31:39.490-07:00\",\n  \"updated_at\":\"2015-08-07T16:31:39.490-07:00\",\n  \"review_status\":\"passed\",\n  \"review_errors\":[],\n  \"review_warnings\":[],\n  \"id\":544,\n  \"date_of_service\":\"2015-08-04\",\n  \"diagnosis_type\":\"Icd9\",\n  \"authorization_number\":\"\",\n  \"practice_bill_id\":\"\",\n  \"additional_information\":\"\",\n  \"status\":\"incomplete\",\n  \"charge_cents\":8981,\n  \"expected_payment_cents\":8981,\n  \"allowed_cents\":0,\n  \"balance_due_cents\":8981,\n  \"write_off_cents\":0,\n  \"diagnosis_codes\":[  \n    \"7400\"\n  ],\n  \"service_line_items\":[  \n    {  \n      \"created_at\":\"2015-08-07T16:31:39.560-07:00\",\n      \"updated_at\":\"2015-08-07T16:31:39.560-07:00\",\n      \"id\":1858,\n      \"procedure_code\":\"99213\",\n      \"units\":1,\n      \"diagnosis_code_1\":\"7400\",\n      \"diagnosis_code_2\":\"\",\n      \"diagnosis_code_3\":\"\",\n      \"diagnosis_code_4\":\"\",\n      \"charge_cents\":8981,\n      \"expected_payment_cents\":8981,\n      \"modifier_codes\":[],\n      \"allowed_cents\":0,\n      \"balance_due_cents\":8981,\n      \"write_off_cents\":0\n    }\n  ],\n  \"links\":[  \n    {  \n      \"rel\":\"injury\",\n      \"href\":\"/api/v1/injuries/28\"\n    },\n    {  \n      \"rel\":\"place_of_service\",\n      \"href\":\"/api/v1/places_of_service/248\"\n    },\n    {  \n      \"rel\":\"rendering_provider\",\n      \"href\":\"/api/v1/rendering_providers/206\"\n    },\n    {  \n      \"rel\":\"referring_provider\",\n      \"href\":\"/api/v1/referring_providers/\"\n    },\n    {  \n      \"rel\":\"supervising_provider\",\n      \"href\":\"/api/v1/rendering_providers/\"\n    }\n  ]\n}","language":"json","status":200}]},"settings":""},"body":"","excerpt":"","githubsync":"","slug":"delete-bill","version":"5621497bc412c31900ee2793","__v":2,"childrenPages":[]}

deleteDelete Bill


Path Params

id:
required
integer
ID of Bill

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"5878fb033e27c82500097ddd","hidden":false,"type":"get","__v":4,"githubsync":"","updates":[],"user":"562148f56e20d40d007310fc","link_url":"","sync_unique":"","category":"56215e66c412c31900ee27b1","createdAt":"2017-01-13T16:06:27.984Z","excerpt":"","order":5,"api":{"examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/billing_providers/222/bills\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -G \\\n -d date_of_service[eq]=12/15/2016"}]},"method":"get","params":[{"_id":"5878fb033e27c82500097de1","ref":"","in":"path","required":true,"desc":"ID of Billing Provider","default":"","type":"int","name":"billing_provider_id"},{"_id":"5878fb033e27c82500097de0","ref":"","in":"query","required":false,"desc":"Filterable","default":"","type":"yyyy-mm-dd","name":"created_at"},{"_id":"5878fb033e27c82500097ddf","ref":"","in":"query","required":false,"desc":"Filterable","default":"","type":"yyyy-mm-dd","name":"updated_at"},{"_id":"5878fb033e27c82500097dde","ref":"","in":"query","required":false,"desc":"Filterable","default":"","type":"yyyy-mm-dd","name":"date_of_service"},{"_id":"5c12e1aa520b18001f2785fe","ref":"","in":"query","required":false,"desc":"Filterable","default":"","type":"yyyy-mm-dd","name":"bill_status_updated_at"},{"_id":"5b23c05451c21300032792de","ref":"","in":"query","required":false,"desc":"Filter bill by status. Allowed values:  incomplete, sent, accepted, rejected, processed, lien, closed","default":"","type":"string","name":"status"},{"_id":"5bc60c071fef55000d2d3dbb","ref":"","in":"query","required":false,"desc":"Filterable","default":"","type":"string","name":"practice_bill_id"}],"results":{"codes":[{"status":200,"language":"json","code":"{\n  \"bills\": [\n    {\n      \"created_at\": \"2017-01-13T07:49:58.009-08:00\",\n      \"updated_at\": \"2017-01-13T07:49:58.009-08:00\",\n      \"review_status\": \"pending\",\n      \"review_errors\": [],\n      \"review_warnings\": [],\n      \"id\": 102,\n      \"date_of_service\": \"2016-12-15\",\n      \"diagnosis_type\": \"Icd10\",\n      \"status\": \"incomplete\",\n      \"charge_cents\": 0,\n      \"expected_payment_cents\": 0,\n      \"allowed_cents\": 0,\n      \"balance_due_cents\": 0,\n      \"write_off_cents\": 0,\n      \"diagnosis_codes\": [\"A200\"],\n      \"service_line_items\": [\n        {\n          \"created_at\": \"2017-01-13T07:49:58.179-08:00\",\n          \"updated_at\": \"2017-01-13T07:49:58.179-08:00\",\n          \"id\": 3609535,\n          \"procedure_code\": \"99215\",\n          \"units\": 1.0,\n          \"diagnosis_code_1\": \"A200\",\n          \"charge_cents\": 0,\n          \"expected_payment_cents\": 0,\n          \"modifier_codes\": [],\n          \"allowed_cents\": 0,\n          \"balance_due_cents\": 0,\n          \"write_off_cents\": 0\n        }\n      ],\n      \"links\": [\n        {\n          \"rel\": \"injury\",\n          \"href\": \"/api/v1/injuries/282783\"\n        }\n      ]\n    }\n  ]\n}","name":""}]},"settings":"","url":"/billing_providers/:billing_provider_id/bills","auth":"required"},"link_external":false,"next":{"pages":[],"description":""},"parentDoc":null,"project":"5621497ac412c31900ee2790","slug":"list-bills-for-billing-provider","title":"List Bills for Billing Provider","body":"","isReference":true,"version":"5621497bc412c31900ee2793","childrenPages":[]}

getList Bills for Billing Provider


Path Params

billing_provider_id:
required
integer
ID of Billing Provider

Query Params

created_at:
yyyy-mm-dd
Filterable
updated_at:
yyyy-mm-dd
Filterable
date_of_service:
yyyy-mm-dd
Filterable
bill_status_updated_at:
yyyy-mm-dd
Filterable
status:
string
Filter bill by status. Allowed values: incomplete, sent, accepted, rejected, processed, lien, closed
practice_bill_id:
string
Filterable

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"5b23c118e31dc50003dfc815","project":"5621497ac412c31900ee2790","version":"5621497bc412c31900ee2793","category":"56215e66c412c31900ee27b1","user":"552d6de93e1c280d00f76426","updates":[],"next":{"pages":[],"description":""},"createdAt":"2018-06-15T13:37:28.693Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"method":"post","examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/bills/123/write_offs\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X POST \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"write_off\": {\n    \"reasons\": \"Provider in MPN\"\n  }\n}'"}]},"results":{"codes":[{"status":201,"language":"json","code":"{  \n  \"created_at\":\"2015-02-16T07:43:26.185-07:00\",\n  \"updated_at\":\"2015-02-16T07:43:26.185-07:00\",\n  \"review_status\":\"pending\",\n  \"review_errors\":[],\n  \"review_warnings\":[],\n  \"id\":1401,\n  \"date_of_service\":\"2015-02-14\",\n  \"diagnosis_type\":\"Icd9\",\n  \"status\":\"closed\",\n  \"charge_cents\":0,\n  \"expected_payment_cents\":0,\n  \"allowed_cents\":0,\n  \"balance_due_cents\":0,\n  \"write_off_cents\":0,\n  \"diagnosis_codes\":[  \n    \"12345\"\n  ],\n  \"service_line_items\":[  \n    {  \n      \"created_at\":\"2015-02-14T16:31:39.560-07:00\",\n      \"updated_at\":\"2015-02-14T16:31:39.560-07:00\",\n      \"id\":1858,\n      \"procedure_code\":\"99214\",\n      \"units\":1,\n      \"diagnosis_code_1\":\"7400\",\n      \"diagnosis_code_2\":\"\",\n      \"diagnosis_code_3\":\"\",\n      \"diagnosis_code_4\":\"\",\n      \"charge_cents\":0,\n      \"expected_payment_cents\":0,\n      \"modifier_codes\":[],\n      \"allowed_cents\":0,\n      \"balance_due_cents\":0,\n      \"write_off_cents\":0\n    }\n  ],\n  \"links\":[  \n    {  \n      \"rel\":\"injury\",\n      \"href\":\"/api/v1/injuries/189\"\n    },\n    {  \n      \"rel\":\"place_of_service\",\n      \"href\":\"/api/v1/places_of_service/202\"\n    },\n    {  \n      \"rel\":\"rendering_provider\",\n      \"href\":\"/api/v1/rendering_providers/\"\n    },\n    {  \n      \"rel\":\"referring_provider\",\n      \"href\":\"/api/v1/referring_providers/\"\n    },\n    {  \n      \"rel\":\"supervising_provider\",\n      \"href\":\"/api/v1/rendering_providers/\"\n    }\n  ]\n}","name":""}]},"settings":"","auth":"required","params":[{"_id":"5b23c118e31dc50003dfc817","ref":"","in":"body","required":false,"desc":"Write off reason","default":"","type":"string","name":"write_off[reason]"},{"_id":"5b23c14f93d1710003a2821f","ref":"","in":"path","required":true,"desc":"Bill ID","default":"","type":"int","name":"bill_id"}],"url":"/bills/:id/write_offs"},"isReference":true,"order":6,"body":"","excerpt":"","slug":"close-bill","type":"post","title":"Close Bill","__v":7,"parentDoc":null,"childrenPages":[]}

postClose Bill


Path Params

bill_id:
required
integer
Bill ID

Body Params

write_off[reason]:
string
Write off reason

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"582a1244f0c1e80f00454a00","body":"[block:api-header]\n{\n  \"type\": \"basic\"\n}\n[/block]","hidden":false,"isReference":true,"link_url":"","version":"5621497bc412c31900ee2793","user":"562148f56e20d40d007310fc","__v":4,"createdAt":"2016-11-14T19:36:36.062Z","excerpt":"","order":0,"title":"List Pharmacy Bills","updates":[],"link_external":false,"next":{"pages":[],"description":""},"parentDoc":null,"project":"5621497ac412c31900ee2790","slug":"list-pharmacy-bills","api":{"auth":"required","examples":{"codes":[{"name":"cURL","language":"curl","code":"curl \\ \nhttps://go.daisybill.com/api/v1/injuries/14/pharmacy_bills\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\""},{"code":"DaisybillApi::Models::Injury.find(14).pharmacy_bills","language":"ruby","name":"Ruby"}]},"method":"get","params":[{"_id":"582a12e3d24c6b0f00837004","ref":"","in":"path","required":true,"desc":"ID of Injury","default":"","type":"int","name":"injury_id"},{"_id":"582a12e3d24c6b0f00837003","ref":"","in":"query","required":false,"desc":"Page offset to fetch","default":"1","type":"int","name":"page"},{"_id":"582a12e3d24c6b0f00837002","ref":"","in":"query","required":false,"desc":"","default":"25","type":"int","name":"per_page"},{"_id":"582a12e3d24c6b0f00837001","ref":"","in":"query","required":false,"desc":"Pad a number of results","default":"","type":"int","name":"offset"},{"_id":"5bc60b8e412fc3002572c48a","ref":"","in":"query","required":false,"desc":"Filterable","default":"","type":"string","name":"practice_bill_id"},{"_id":"5c12e207e4f25900182d7e7e","ref":"","in":"query","required":false,"desc":"Filterable","default":"","type":"yyyy-mm-dd","name":"created_at"},{"_id":"5c12e207e4f25900182d7e7d","ref":"","in":"query","required":false,"desc":"Filterable","default":"","type":"yyyy-mm-dd","name":"updated_at"},{"_id":"5c12e207e4f25900182d7e7c","ref":"","in":"query","required":false,"desc":"Filterable","default":"","type":"yyyy-mm-dd","name":"bill_status_updated_at"},{"_id":"5c12e207e4f25900182d7e7b","ref":"","in":"query","required":false,"desc":"Filterable","default":"","type":"string","name":"status"}],"results":{"codes":[{"code":"{\n  \"pharmacy_bills\": [\n    {\n      \"created_at\": \"2016-11-14T11:30:44.755-08:00\",\n      \"updated_at\": \"2016-11-14T11:30:44.755-08:00\",\n      \"review_status\": \"pending\",\n      \"review_errors\": [],\n      \"review_warnings\": [],\n      \"id\": 92,\n      \"product_type\": \"compound\",\n      \"date_of_service\": \"2016-04-23\",\n      \"practice_bill_id\": \"\",\n      \"status\": \"incomplete\",\n      \"charge_cents\": 725,\n      \"expected_payment_cents\": 725,\n      \"allowed_cents\": 0,\n      \"balance_due_cents\": 725,\n      \"service_line_items\": [\n        {\n          \"created_at\": \"2016-11-14T11:30:44.794-08:00\",\n          \"updated_at\": \"2016-11-14T11:30:44.794-08:00\",\n          \"id\": 304,\n          \"units\": 1.0,\n          \"supplemental_data\": \"Dispensing Fee\",\n          \"charge_cents\": 1114,\n          \"expected_payment_cents\": 223,\n          \"allowed_cents\": 0,\n          \"balance_due_cents\": 0\n        },\n        {\n          \"created_at\": \"2016-11-14T11:30:44.810-08:00\",\n          \"updated_at\": \"2016-11-14T11:30:44.810-08:00\",\n          \"id\": 305,\n          \"units\": 1.0,\n          \"supplemental_data\": \"Dispensing Fee\",\n          \"charge_cents\": 725,\n          \"expected_payment_cents\": 725,\n          \"allowed_cents\": 0,\n          \"balance_due_cents\": 725\n        }\n      ],\n      \"links\": [\n        {\n          \"rel\": \"injury\",\n          \"href\": \"/api/v1/injuries/14\"\n        },\n        {\n          \"rel\": \"place_of_service\",\n          \"href\": \"/api/v1/places_of_service/4\"\n        },\n        {\n          \"rel\": \"prescribing_provider\",\n          \"href\": \"/api/v1/prescribing_providers/85\"\n        }\n      ]\n    }\n  ]\n}\n","name":"","status":200,"language":"json"}]},"settings":"","url":"/injuries/:injury_id/pharmacy_bills"},"category":"582a10d8ad2bd70f00e6ae9d","githubsync":"","sync_unique":"","type":"get","childrenPages":[]}

getList Pharmacy Bills


Path Params

injury_id:
required
integer
ID of Injury

Query Params

page:
integer1
Page offset to fetch
per_page:
integer25
offset:
integer
Pad a number of results
practice_bill_id:
string
Filterable
created_at:
yyyy-mm-dd
Filterable
updated_at:
yyyy-mm-dd
Filterable
bill_status_updated_at:
yyyy-mm-dd
Filterable
status:
string
Filterable
[block:api-header] { "type": "basic" } [/block]

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



[block:api-header] { "type": "basic" } [/block]
{"_id":"582a16b9d24c6b0f00837009","category":"582a10d8ad2bd70f00e6ae9d","githubsync":"","hidden":false,"link_external":false,"updates":[],"version":"5621497bc412c31900ee2793","api":{"auth":"required","examples":{"codes":[{"name":"cURL","language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/pharmacy_bills/12\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\""},{"name":"Ruby","language":"ruby","code":"DaisybillApi::Models::PharmacyBill.find(12)"}]},"method":"get","params":[{"default":"","type":"int","name":"id","_id":"582a188e58cd260f001ed793","ref":"","in":"path","required":true,"desc":"ID of Pharmacy Bill"}],"results":{"codes":[{"code":"{\n  \"created_at\": \"2016-11-14T11:30:51.608-08:00\",\n  \"updated_at\": \"2016-11-14T11:30:51.608-08:00\",\n  \"review_status\": \"passed\",\n  \"review_errors\": [],\n  \"review_warnings\": [],\n  \"id\": 12,\n  \"product_type\": \"compound\",\n  \"date_of_service\": \"2016-04-23\",\n  \"practice_bill_id\": \"\",\n  \"status\": \"processed\",\n  \"charge_cents\": 725,\n  \"expected_payment_cents\": 725,\n  \"allowed_cents\": 0,\n  \"balance_due_cents\": 725,\n  \"service_line_items\": [\n    {\n      \"created_at\": \"2016-11-14T11:30:51.651-08:00\",\n      \"updated_at\": \"2016-11-14T11:30:51.651-08:00\",\n      \"id\": 361,\n      \"units\": 1.0,\n      \"supplemental_data\": \"Dispensing Fee\",\n      \"charge_cents\": 0,\n      \"expected_payment_cents\": 0,\n      \"allowed_cents\": 0,\n      \"balance_due_cents\": 0\n    }\n  ],\n  \"links\": [\n    {\n      \"rel\": \"injury\",\n      \"href\": \"/api/v1/injuries/29\"\n    },\n    {\n      \"rel\": \"place_of_service\",\n      \"href\": \"/api/v1/places_of_service/47\"\n    },\n    {\n      \"rel\": \"prescribing_provider\",\n      \"href\": \"/api/v1/prescribing_providers/86\"\n    }\n  ]\n}\n","language":"json","status":200}]},"settings":"","url":"/pharmacy_bills/:id"},"user":"562148f56e20d40d007310fc","link_url":"","body":"[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]","createdAt":"2016-11-14T19:55:37.270Z","excerpt":"","order":1,"project":"5621497ac412c31900ee2790","type":"get","__v":1,"next":{"pages":[],"description":""},"parentDoc":null,"slug":"get-pharmacy-bill","sync_unique":"","title":"Get Pharmacy Bill","isReference":true,"childrenPages":[]}

getGet Pharmacy Bill


Path Params

id:
required
integer
ID of Pharmacy Bill
[block:code] { "codes": [ { "code": "", "language": "text" } ] } [/block]

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



[block:code] { "codes": [ { "code": "", "language": "text" } ] } [/block]
{"_id":"582a18bdf0c1e80f00454a0d","title":"Create Pharmacy Bill","user":"562148f56e20d40d007310fc","api":{"settings":"","url":"/injuries/:injury_id/pharmacy_bills","auth":"required","examples":{"codes":[{"code":"curl \\\n  https://go.daisybill.com/api/v1/injuries/18/pharmacy_bills\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X POST \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"pharmacy_bill\": {\n    \"date_of_service\": \"2016-04-23\",\n    \"place_of_service_id\": 41,\n    \"prescribing_provider_id\": 29,\n    \"service_line_items_attributes\": [\n      {\n        \"units\": 1.0,\n        \"supplemental_data\": \"Dispensing Fee\"\n      }\n    ]\n  }\n}'","language":"curl","name":"cURL"},{"name":"Ruby","language":"ruby","code":"sli = DaisybillApi::Models::ServiceLineItem.new(\n  units: 1.0,\n  supplemental_data: \"Dispensing Fee\",\n)\n\nDaisybillApi::Models::PharmacyBill.create(\n  date_of_service: Date.new(2016, 4, 23),\n  place_of_service_id: 41,\n  prescribing_provider_id: 29,\n  injury_id: 18,\n  service_line_items: [sli]\n)"}]},"method":"post","params":[{"desc":"","default":"ID of Injury","type":"int","name":"injury_id","_id":"582a2472f8ae3b0f009e8f04","ref":"","in":"path","required":true},{"_id":"582a2472f8ae3b0f009e8f03","ref":"","in":"body","required":true,"desc":"Bill - Date of Service","default":"","type":"string","name":"bill[date_of_service]"},{"_id":"582a2472f8ae3b0f009e8f02","ref":"","in":"body","required":false,"desc":"Bill - Product Type","default":"","type":"string","name":"bill[product_type]"},{"_id":"582a2472f8ae3b0f009e8f01","ref":"","in":"body","required":false,"desc":"ID of Place of Service","default":"","type":"int","name":"bill[place_of_service_id]"},{"name":"bill[prescribing_provider_id]","_id":"582a2472f8ae3b0f009e8f00","ref":"","in":"body","required":false,"desc":"ID of Prescribing Provider","default":"","type":"int"},{"type":"string","name":"bill[prescription_date]","_id":"582a2472f8ae3b0f009e8eff","ref":"","in":"body","required":false,"desc":"Bill - Prescription Date","default":""},{"required":false,"desc":"Bill - Fill Number","default":"","type":"int","name":"bill[fill_number]","_id":"582a2472f8ae3b0f009e8efe","ref":"","in":"body"},{"ref":"","in":"body","required":false,"desc":"Bill - Prescription Number","default":"","type":"string","name":"bill[prescription_number]","_id":"582a2472f8ae3b0f009e8efd"},{"default":"","type":"int","name":"bill[days_supply]","_id":"582a2472f8ae3b0f009e8efc","ref":"","in":"body","required":false,"desc":"Bill - Days Supply"},{"in":"body","required":false,"desc":"Bill - Dispense as Written Code","default":"","type":"int","name":"bill[dispense_as_written_code]","_id":"582a2472f8ae3b0f009e8efb","ref":""},{"desc":"Bill - Unit of Measurement","default":"","type":"string","name":"bill[unit_of_measurement]","_id":"582a2472f8ae3b0f009e8efa","ref":"","in":"body","required":false},{"name":"bill[authorization_number]","_id":"582a2472f8ae3b0f009e8ef9","ref":"","in":"body","required":false,"desc":"Bill - Authorization Number","default":"","type":"string"},{"ref":"","in":"body","required":false,"desc":"Bill - Compound Name","default":"","type":"string","name":"bill[compound_name]","_id":"582a2472f8ae3b0f009e8ef8"},{"default":"","type":"int","name":"bill[dosage_form]","_id":"582a2472f8ae3b0f009e8ef7","ref":"","in":"body","required":false,"desc":"Bill - Dosage Form"},{"in":"body","required":false,"desc":"Bill - Practice Bill ID","default":"","type":"int","name":"bill[practice_bill_id]","_id":"58fa41d79211782300829d20","ref":""},{"required":false,"desc":"Bill - Route of Administration","default":"","type":"int","name":"bill[route_of_administration]","_id":"582a2472f8ae3b0f009e8ef6","ref":"","in":"body"},{"ref":"","in":"body","required":true,"desc":"Service Line Item - Supplemental Data","default":"","type":"string","name":"bill[service_line_items_attributes][][supplemental_data]","_id":"582a2472f8ae3b0f009e8ef5"},{"in":"body","required":true,"desc":"Service Line Item - Units","default":"","type":"float","name":"bill[service_line_items_attributes][][units]","_id":"582a2472f8ae3b0f009e8ef4","ref":""}],"results":{"codes":[{"name":"","code":"{\n  \"created_at\": \"2016-11-14T12:56:49.968-08:00\",\n  \"updated_at\": \"2016-11-14T12:56:49.968-08:00\",\n  \"review_status\": \"pending\",\n  \"review_errors\": [],\n  \"review_warnings\": [],\n  \"id\": 1002,\n  \"product_type\": \"compound\",\n  \"date_of_service\": \"2016-04-23\",\n  \"practice_bill_id\": \"\",\n  \"status\": \"incomplete\",\n  \"charge_cents\": 725,\n  \"expected_payment_cents\": 725,\n  \"allowed_cents\": 0,\n  \"balance_due_cents\": 725,\n  \"service_line_items\": [\n    {\n      \"created_at\": \"2016-11-14T12:56:50.006-08:00\",\n      \"updated_at\": \"2016-11-14T12:56:50.006-08:00\",\n      \"id\": 3610,\n      \"units\": 1.0,\n      \"supplemental_data\": \"Dispensing Fee\",\n      \"charge_cents\": 0,\n      \"expected_payment_cents\": 0,\n      \"allowed_cents\": 0,\n      \"balance_due_cents\": 0\n    }\n  ],\n  \"links\": [\n    {\n      \"rel\": \"injury\",\n      \"href\": \"/api/v1/injuries/18\"\n    },\n    {\n      \"rel\": \"place_of_service\",\n      \"href\": \"/api/v1/places_of_service/41\"\n    },\n    {\n      \"rel\": \"prescribing_provider\",\n      \"href\": \"/api/v1/prescribing_providers/29\"\n    }\n  ]\n}\n","language":"json","status":201}]}},"excerpt":"","hidden":false,"next":{"pages":[],"description":""},"order":2,"parentDoc":null,"__v":2,"body":"","category":"582a10d8ad2bd70f00e6ae9d","createdAt":"2016-11-14T20:04:13.058Z","sync_unique":"","isReference":true,"link_external":false,"link_url":"","type":"post","version":"5621497bc412c31900ee2793","githubsync":"","project":"5621497ac412c31900ee2790","slug":"create-pharmacy-bill","updates":[],"childrenPages":[]}

postCreate Pharmacy Bill


Path Params

injury_id:
required
integerID of Injury

Body Params

bill[date_of_service]:
required
string
Bill - Date of Service
bill[product_type]:
string
Bill - Product Type
bill[place_of_service_id]:
integer
ID of Place of Service
bill[prescribing_provider_id]:
integer
ID of Prescribing Provider
bill[prescription_date]:
string
Bill - Prescription Date
bill[fill_number]:
integer
Bill - Fill Number
bill[prescription_number]:
string
Bill - Prescription Number
bill[days_supply]:
integer
Bill - Days Supply
bill[dispense_as_written_code]:
integer
Bill - Dispense as Written Code
bill[unit_of_measurement]:
string
Bill - Unit of Measurement
bill[authorization_number]:
string
Bill - Authorization Number
bill[compound_name]:
string
Bill - Compound Name
bill[dosage_form]:
integer
Bill - Dosage Form
bill[practice_bill_id]:
integer
Bill - Practice Bill ID
bill[route_of_administration]:
integer
Bill - Route of Administration
bill[service_line_items_attributes][][supplemental_data]:
required
string
Service Line Item - Supplemental Data
bill[service_line_items_attributes][][units]:
required
float
Service Line Item - Units

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"582a279d8f1aea0f00c1b335","excerpt":"","githubsync":"","hidden":false,"order":3,"parentDoc":null,"sync_unique":"","title":"Update Pharmacy Bill","api":{"url":"/pharmacy_bills/:id","auth":"required","examples":{"codes":[{"name":"cURL","language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/pharmacy_bills/23\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X PATCH \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"pharmacy_bill\": {\n    \"date_of_service\": \"2016-04-22\"\n  }\n}'"},{"code":"pharmacy_bill = DaisybillApi::Models::PharmacyBill.find(23)\npharmacy_bill.date_of_service = Date.new(2016, 4, 22)\npharmacy_bill.save","language":"ruby","name":"Ruby"}]},"method":"patch","params":[{"ref":"","in":"path","required":true,"desc":"ID of Pharmacy Bill","default":"","type":"int","name":"id","_id":"582a294c8f1aea0f00c1b338"},{"default":"","type":"string","name":"bill[date_of_service]","_id":"582a2a57ebccce370082be28","ref":"","in":"body","required":false,"desc":"Bill - Date of Service"},{"default":"","type":"string","name":"bill[product_type]","_id":"582a2a57ebccce370082be27","ref":"","in":"body","required":false,"desc":"Bill - Product Type"},{"in":"body","required":false,"desc":"ID of Place of Service","default":"","type":"int","name":"bill[place_of_service_id]","_id":"582a2a57ebccce370082be26","ref":""},{"desc":"ID of Prescribing Provider","default":"","type":"int","name":"bill[prescribing_provider_id]","_id":"582a2a8debccce370082be2a","ref":"","in":"body","required":false},{"name":"bill[prescription_date]","_id":"582a2a8debccce370082be29","ref":"","in":"body","required":false,"desc":"Bill - Prescription Date","default":"","type":"string"},{"ref":"","in":"body","required":false,"desc":"Bill - Fill Number","default":"","type":"int","name":"bill[fill_number]","_id":"582a2af8ebccce370082be2c"},{"in":"body","required":false,"desc":"Bill - Prescription Number","default":"","type":"string","name":"bill[prescription_number]","_id":"582a2af8ebccce370082be2b","ref":""},{"required":false,"desc":"Bill - Days Supply","default":"","type":"int","name":"bill[days_supply]","_id":"582a2c61fc151d0f0088b44b","ref":"","in":"body"},{"type":"int","name":"bill[dispense_as_written_code]","_id":"582a2c61fc151d0f0088b44a","ref":"","in":"body","required":false,"desc":"Bill - Dispense as Written Code","default":""},{"required":false,"desc":"Bill - Unit of Measurement","default":"","type":"string","name":"bill[unit_of_measurement]","_id":"582a2c61fc151d0f0088b449","ref":"","in":"body"},{"ref":"","in":"body","required":false,"desc":"Bill - Authorization Number","default":"","type":"string","name":"bill[authorization_number]","_id":"582a2c61fc151d0f0088b448"},{"default":"","type":"string","name":"bill[compound_name]","_id":"582a2c61fc151d0f0088b447","ref":"","in":"body","required":false,"desc":"Bill - Compound Name"},{"in":"body","required":false,"desc":"Bill - Dosage Form","default":"","type":"int","name":"bill[dosage_form]","_id":"582a2c61fc151d0f0088b446","ref":""},{"desc":"Bill - Practice Bill ID","default":"","type":"int","name":"bill[practice_bill_id]","_id":"58fa41fe6a8bdc1b00056e86","ref":"","in":"body","required":false},{"_id":"582a2c61fc151d0f0088b445","ref":"","in":"body","required":false,"desc":"Bill - Route of Administration","default":"","type":"int","name":"bill[route_of_administration]"},{"_id":"582a2c61fc151d0f0088b444","ref":"","in":"body","required":false,"desc":"Service Line Item - Supplemental Data","default":"","type":"string","name":"bill[service_line_items_attributes][][supplemental_data]"},{"_id":"582a2c61fc151d0f0088b443","ref":"","in":"body","required":false,"desc":"Service Line Item - Units","default":"","type":"float","name":"bill[service_line_items_attributes][][units]"}],"results":{"codes":[{"language":"json","code":"{\n  \"created_at\": \"2016-11-14T13:11:23.087-08:00\",\n  \"updated_at\": \"2016-11-14T13:11:23.349-08:00\",\n  \"review_status\": \"pending\",\n  \"review_errors\": [],\n  \"review_warnings\": [],\n  \"id\": 23,\n  \"product_type\": \"compound\",\n  \"date_of_service\": \"2016-04-22\",\n  \"practice_bill_id\": \"\",\n  \"status\": \"incomplete\",\n  \"charge_cents\": 725,\n  \"expected_payment_cents\": 725,\n  \"allowed_cents\": 0,\n  \"balance_due_cents\": 725,\n  \"service_line_items\": [\n    {\n      \"created_at\": \"2016-11-14T13:11:23.132-08:00\",\n      \"updated_at\": \"2016-11-14T13:11:23.132-08:00\",\n      \"id\": 361,\n      \"units\": 1.0,\n      \"supplemental_data\": \"Dispensing Fee\",\n      \"charge_cents\": 0,\n      \"expected_payment_cents\": 0,\n      \"allowed_cents\": 0,\n      \"balance_due_cents\": 0\n    }\n  ],\n  \"links\": [\n    {\n      \"rel\": \"injury\",\n      \"href\": \"/api/v1/injuries/29\"\n    },\n    {\n      \"rel\": \"place_of_service\",\n      \"href\": \"/api/v1/places_of_service/48\"\n    },\n    {\n      \"rel\": \"prescribing_provider\",\n      \"href\": \"/api/v1/prescribing_providers/11\"\n    }\n  ]\n}\n","name":"","status":200}]},"settings":""},"body":"","category":"582a10d8ad2bd70f00e6ae9d","link_external":false,"project":"5621497ac412c31900ee2790","version":"5621497bc412c31900ee2793","__v":6,"createdAt":"2016-11-14T21:07:41.957Z","isReference":true,"next":{"pages":[],"description":""},"updates":[],"link_url":"","slug":"update-pharmacy-bill","type":"patch","user":"562148f56e20d40d007310fc","childrenPages":[]}

patchUpdate Pharmacy Bill


Path Params

id:
required
integer
ID of Pharmacy Bill

Body Params

bill[date_of_service]:
string
Bill - Date of Service
bill[product_type]:
string
Bill - Product Type
bill[place_of_service_id]:
integer
ID of Place of Service
bill[prescribing_provider_id]:
integer
ID of Prescribing Provider
bill[prescription_date]:
string
Bill - Prescription Date
bill[fill_number]:
integer
Bill - Fill Number
bill[prescription_number]:
string
Bill - Prescription Number
bill[days_supply]:
integer
Bill - Days Supply
bill[dispense_as_written_code]:
integer
Bill - Dispense as Written Code
bill[unit_of_measurement]:
string
Bill - Unit of Measurement
bill[authorization_number]:
string
Bill - Authorization Number
bill[compound_name]:
string
Bill - Compound Name
bill[dosage_form]:
integer
Bill - Dosage Form
bill[practice_bill_id]:
integer
Bill - Practice Bill ID
bill[route_of_administration]:
integer
Bill - Route of Administration
bill[service_line_items_attributes][][supplemental_data]:
string
Service Line Item - Supplemental Data
bill[service_line_items_attributes][][units]:
float
Service Line Item - Units

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"582a2c87c5de870f00d4df6d","__v":1,"api":{"results":{"codes":[{"status":200,"language":"json","code":"{\n  \"created_at\": \"2016-11-14T13:33:17.942-08:00\",\n  \"updated_at\": \"2016-11-14T13:33:17.942-08:00\",\n  \"review_status\": \"pending\",\n  \"review_errors\": [],\n  \"review_warnings\": [],\n  \"id\": 14,\n  \"product_type\": \"compound\",\n  \"date_of_service\": \"2016-04-23\",\n  \"practice_bill_id\": \"\",\n  \"status\": \"incomplete\",\n  \"charge_cents\": 0,\n  \"expected_payment_cents\": 0,\n  \"allowed_cents\": 0,\n  \"balance_due_cents\": 0,\n  \"service_line_items\": [],\n  \"links\": [\n    {\n      \"rel\": \"injury\",\n      \"href\": \"/api/v1/injuries/29\"\n    },\n    {\n      \"rel\": \"place_of_service\",\n      \"href\": \"/api/v1/places_of_service/48\"\n    },\n    {\n      \"rel\": \"prescribing_provider\",\n      \"href\": \"/api/v1/prescribing_providers/11\"\n    }\n  ]\n}\n","name":""}]},"settings":"","url":"/pharmacy_bills/:id","auth":"required","examples":{"codes":[{"language":"curl","name":"cURL","code":"curl \\\n  https://go.daisybill.com/api/v1/pharmacy_bills/14\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X DELETE \\\n  -H \"Content-Type: application/json\""},{"name":"Ruby","language":"ruby","code":"pharmacy_bill = DaisybillApi::Models::PharmacyBill.find(14)\npharmacy_bill.destroy"}]},"method":"delete","params":[{"default":"","type":"int","name":"id","_id":"582a2e26c5de870f00d4df6e","ref":"","in":"path","required":true,"desc":"ID of Pharmacy Bill"}]},"githubsync":"","excerpt":"","next":{"pages":[],"description":""},"slug":"delete-pharmacy-bill","updates":[],"body":"","category":"582a10d8ad2bd70f00e6ae9d","link_external":false,"link_url":"","order":4,"title":"Delete Pharmacy Bill","type":"delete","createdAt":"2016-11-14T21:28:39.007Z","hidden":false,"isReference":true,"parentDoc":null,"project":"5621497ac412c31900ee2790","sync_unique":"","user":"562148f56e20d40d007310fc","version":"5621497bc412c31900ee2793","childrenPages":[]}

deleteDelete Pharmacy Bill


Path Params

id:
required
integer
ID of Pharmacy Bill

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"5878fc3ea49d223700dacb1f","order":5,"excerpt":"","next":{"description":"","pages":[]},"slug":"list-pharmacy-bills-for-billing-provider","sync_unique":"","version":"5621497bc412c31900ee2793","isReference":true,"link_url":"","parentDoc":null,"hidden":false,"type":"get","updates":[],"__v":3,"category":"582a10d8ad2bd70f00e6ae9d","createdAt":"2017-01-13T16:11:42.188Z","link_external":false,"project":"5621497ac412c31900ee2790","title":"List Pharmacy Bills for Billing Provider","user":"562148f56e20d40d007310fc","api":{"settings":"","url":"/billing_providers/:billing_provider_id/pharmacy_bills","auth":"required","examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/billing_providers/1013/pharmacy_bills\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -G \\\n -d date_of_service[eq]=2016-04-23"}]},"method":"get","params":[{"_id":"5878fc3ea49d223700dacb23","ref":"","in":"path","required":true,"desc":"ID of Billing Provider","default":"","type":"int","name":"billing_provider_id"},{"_id":"5878fc3ea49d223700dacb22","ref":"","in":"query","required":false,"desc":"Filterable","default":"","type":"yyyy-mm-dd","name":"created_at"},{"_id":"5878fc3ea49d223700dacb21","ref":"","in":"query","required":false,"desc":"Filterable","default":"","type":"yyyy-mm-dd","name":"updated_at"},{"_id":"5878fc3ea49d223700dacb20","ref":"","in":"query","required":false,"desc":"Filterable","default":"","type":"yyyy-mm-dd","name":"date_of_service"},{"_id":"5bc60b76e56ccb00448e4d73","ref":"","in":"query","required":false,"desc":"Filterable","default":"","type":"string","name":"practice_bill_id"},{"_id":"5c12e2171d93f200424f47b0","ref":"","in":"query","required":false,"desc":"Filterable","default":"","type":"yyyy-mm-dd","name":"bill_status_updated_at"}],"results":{"codes":[{"status":200,"language":"json","code":"{\n  \"pharmacy_bills\": [\n    {\n      \"created_at\": \"2016-12-28T07:28:24.792-08:00\",\n      \"updated_at\": \"2016-12-28T07:28:24.792-08:00\",\n      \"review_status\": \"passed\",\n      \"review_errors\": [],\n      \"review_warnings\": [],\n      \"id\": 1002298,\n      \"product_type\": \"compound\",\n      \"date_of_service\": \"2016-04-23\",\n      \"practice_bill_id\": \"\",\n      \"status\": \"incomplete\",\n      \"charge_cents\": 725,\n      \"expected_payment_cents\": 725,\n      \"allowed_cents\": 0,\n      \"balance_due_cents\": 725,\n      \"service_line_items\": [\n        {\n          \"created_at\": \"2016-12-28T07:28:24.845-08:00\",\n          \"updated_at\": \"2016-12-28T07:28:24.845-08:00\",\n          \"id\": 3609405,\n          \"units\": 1.0,\n          \"supplemental_data\": \"Dispensing Fee\",\n          \"charge_cents\": 0,\n          \"expected_payment_cents\": 0,\n          \"allowed_cents\": 0,\n          \"balance_due_cents\": 0\n        },\n        {\n          \"created_at\": \"2016-12-28T07:28:24.868-08:00\",\n          \"updated_at\": \"2016-12-28T07:28:24.868-08:00\",\n          \"id\": 3609406,\n          \"units\": 1.0,\n          \"supplemental_data\": \"Dispensing Fee\",\n          \"charge_cents\": 725,\n          \"expected_payment_cents\": 725,\n          \"allowed_cents\": 0,\n          \"balance_due_cents\": 725\n        }\n      ],\n      \"links\": [\n        {\n          \"rel\": \"injury\",\n          \"href\": \"/api/v1/injuries/282663\"\n        },\n        {\n          \"rel\": \"place_of_service\",\n          \"href\": \"/api/v1/places_of_service/4098\"\n        },\n        {\n          \"rel\": \"prescribing_provider\",\n          \"href\": \"/api/v1/prescribing_providers/3\"\n        }\n      ]\n    }\n  ]\n}","name":""}]}},"body":"","githubsync":"","childrenPages":[]}

getList Pharmacy Bills for Billing Provider


Path Params

billing_provider_id:
required
integer
ID of Billing Provider

Query Params

created_at:
yyyy-mm-dd
Filterable
updated_at:
yyyy-mm-dd
Filterable
date_of_service:
yyyy-mm-dd
Filterable
practice_bill_id:
string
Filterable
bill_status_updated_at:
yyyy-mm-dd
Filterable

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"5769db64ed18d22b00e6429c","editedParams":true,"excerpt":"","hidden":false,"isReference":true,"slug":"calculations_create","__v":10,"api":{"url":"/calculations","auth":"required","examples":{"codes":[{"language":"curl","code":"curl -X POST \\\n -H \"Content-Type: application/json\" \\\n --url https://go.daisybill.com/api/v1/calculations \\\n -d '{\