{"_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":[],"user":"562148f56e20d40d007310fc","__v":46,"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":"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"}],"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":7,"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
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

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":2,"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":"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
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":3,"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"}],"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
[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":2,"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"}],"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

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 '{\"api_token\": \"c94c86caa54fe54b40449fc80a4ddc86\", \"calculation\":{\"date_of_service\":\"2015-06-01\",\"type\":\"PhysicianService\",\"type_of_specialty\":\"Physician\",\"place_of_service_type\":\"Non-Facility\",\"service_line_items_attributes\":[{\"procedure_code\":\"99215\",\"units\":\"1\"},{\"procedure_code\":\"99214\",\"units\":\"1\"},{\"procedure_code\":\"ml103\",\"units\":\"1\",\"modifier_codes\":[\"93\"]}]}}'\n\n"}]},"method":"post","params":[{"_id":"5769dc092e985322008327e3","ref":"","in":"body","required":true,"desc":"Type of calculation. Allowed values: PhysicianService, Pharmacy, Pathology, Dme, CopyService","default":"physician_services","type":"string","name":"calculation[type]"},{"_id":"5769dc092e985322008327e2","ref":"","in":"body","required":true,"desc":"Date of service for bill","default":"","type":"yyyy-mm-dd","name":"calculation[date_of_service]"},{"_id":"5769dc5b47693a0e00002ced","ref":"","in":"body","required":false,"desc":"Required for type \"PhysicianService\"","default":"","type":"string","name":"calculation[type_of_specialty]"},{"_id":"5769dc5b47693a0e00002cec","ref":"","in":"body","required":false,"desc":"Required for type \"PhysicianService\". Allowed Values: Facility, Non-Facility","default":"","type":"string","name":"calculation[place_of_service_type]"},{"_id":"576ae0097de8223400762e10","ref":"","in":"body","required":false,"desc":"Required for type \"Pharmacy\". Allowed values: 1, 2, 3, 4, 5, 6, 7, 10, 11, 12, 13, 14, 15, 16, 17, 18","default":"","type":"string","name":"calculation[dosage_form]"},{"_id":"576ae0097de8223400762e0f","ref":"","in":"body","required":false,"desc":"Required for type \"Pharmacy\". Allowed values:  1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22","default":"","type":"string","name":"calculation[route_of_administration]"},{"_id":"576ae0097de8223400762e0e","ref":"","in":"body","required":false,"desc":"Required for type \"Pharmacy\". Allowed values: compound, dispensed.","default":"","type":"string","name":"calculation[product_type]"},{"_id":"576ae0097de8223400762e0d","ref":"","in":"body","required":false,"desc":"Required for type \"Pharmacy\". Allowed values: 1-99","default":"","type":"string","name":"calculation[number_of_containers]"},{"_id":"5769dc5b47693a0e00002ceb","ref":"","in":"body","required":true,"desc":"Procedure code","default":"","type":"string","name":"calculation[service_line_items_attributes][][procedure_code]"},{"_id":"5769dd260a8da417006fa041","ref":"","in":"body","required":true,"desc":"Units","default":"","type":"string","name":"calculation[service_line_items_attributes][][units]"},{"_id":"5769dd260a8da417006fa040","ref":"","in":"body","required":false,"desc":"Required when procedure code is 99070 or for type Pharmacy","default":"","type":"string","name":"calculation[service_line_items_attributes][][supplemental_data]"},{"_id":"5769dd260a8da417006fa03e","ref":"","in":"body","required":false,"desc":"Modifier Code","default":"","type":"string","name":"calculation[service_line_items_attributes][][modifier_codes][]"}],"results":{"codes":[{"name":"","code":"{\n  \"created_at\": \"2016-06-22T12:03:55.167-07:00\",\n  \"updated_at\": \"2016-06-22T12:03:55.167-07:00\",\n  \"id\": 452902,\n  \"date_of_service\": \"2015-06-01\",\n  \"place_of_service_type\": \"Non-Facility\",\n  \"type_of_specialty\": \"Physician\",\n  \"type\": \"PhysicianService\",\n  \"expected_payment_cents\": 120984,\n  \"service_line_items\": [\n    {\n      \"created_at\": \"2016-06-22T12:03:55.186-07:00\",\n      \"updated_at\": \"2016-06-22T12:03:55.186-07:00\",\n      \"procedure_code\": \"99215\",\n      \"units\": 1.0,\n      \"by_report\": false,\n      \"expected_payment_cents\": 17859,\n      \"modifier_codes\": [],\n      \"cci_edits\": [],\n      \"filters\": []\n    },\n    {\n      \"created_at\": \"2016-06-22T12:03:55.244-07:00\",\n      \"updated_at\": \"2016-06-22T12:03:55.244-07:00\",\n      \"procedure_code\": \"99214\",\n      \"units\": 1.0,\n      \"expected_payment_cents\": 0,\n      \"modifier_codes\": [],\n      \"cci_edits\": [\n        \"§9789.12.13 Misuse of column two code with column one code - 99215 – Effective: 07/01/2014\"\n      ],\n      \"filters\": []\n    },\n    {\n      \"created_at\": \"2016-06-22T12:03:55.282-07:00\",\n      \"updated_at\": \"2016-06-22T12:03:55.282-07:00\",\n      \"procedure_code\": \"ML103\",\n      \"units\": 1.0,\n      \"by_report\": false,\n      \"expected_payment_cents\": 103125,\n      \"modifier_codes\": [\n        \"93\"\n      ],\n      \"cci_edits\": [],\n      \"filters\": [\n        \"§9795 The Medical Legal Fee Regulation increases reimbursement 10% when modifier 93 is applicable (ML102 and ML103).\"\n      ]\n    }\n  ]\n}","language":"json","status":200}]},"settings":""},"body":"# Notes:\n\n**Access to this endpoint requires a specific subscription.  Please contact api@daisybill.com for more information.** \n\n**This endpoint is not stable and is therefore subject to change**","type":"post","updates":[],"user":"552d6de93e1c280d00f76426","version":"5621497bc412c31900ee2793","githubsync":"","order":0,"parentDoc":null,"link_url":"","project":"5621497ac412c31900ee2790","sync_unique":"","title":"Create Calculations","category":"5769dacc1f52a00e006a9780","editedParams2":true,"createdAt":"2016-06-22T00:27:16.042Z","link_external":false,"next":{"description":"","pages":[]},"childrenPages":[]}

postCreate Calculations


Body Params

calculation[type]:
required
stringphysician_services
Type of calculation. Allowed values: PhysicianService, Pharmacy, Pathology, Dme, CopyService
calculation[date_of_service]:
required
yyyy-mm-dd
Date of service for bill
calculation[type_of_specialty]:
string
Required for type "PhysicianService"
calculation[place_of_service_type]:
string
Required for type "PhysicianService". Allowed Values: Facility, Non-Facility
calculation[dosage_form]:
string
Required for type "Pharmacy". Allowed values: 1, 2, 3, 4, 5, 6, 7, 10, 11, 12, 13, 14, 15, 16, 17, 18
calculation[route_of_administration]:
string
Required for type "Pharmacy". Allowed values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22
calculation[product_type]:
string
Required for type "Pharmacy". Allowed values: compound, dispensed.
calculation[number_of_containers]:
string
Required for type "Pharmacy". Allowed values: 1-99
calculation[service_line_items_attributes][][procedure_code]:
required
string
Procedure code
calculation[service_line_items_attributes][][units]:
required
string
Units
calculation[service_line_items_attributes][][supplemental_data]:
string
Required when procedure code is 99070 or for type Pharmacy
calculation[service_line_items_attributes][][modifier_codes]:
string
Modifier Code
# Notes: **Access to this endpoint requires a specific subscription. Please contact api@daisybill.com for more information.** **This endpoint is not stable and is therefore subject to change**

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



# Notes: **Access to this endpoint requires a specific subscription. Please contact api@daisybill.com for more information.** **This endpoint is not stable and is therefore subject to change**
{"_id":"5841c18aeb4351250074dfce","sync_unique":"","body":"","category":"5841c0faeb4351250074dfcc","excerpt":"","project":"5621497ac412c31900ee2790","updates":[],"user":"552d6de93e1c280d00f76426","hidden":false,"isReference":true,"order":0,"link_url":"","next":{"pages":[],"description":""},"parentDoc":null,"type":"post","version":"5621497bc412c31900ee2793","__v":1,"api":{"params":[{"ref":"","in":"body","required":true,"desc":"Allowed values: \"ClaimsAdministrator\" or \"Payer\"","default":"","type":"string","name":"claim_number_verification[resource_type]","_id":"5841c18aeb4351250074dfd1"},{"in":"body","required":true,"desc":"ID of Payer or Claims Administrator","default":"","type":"int","name":"claim_number_verification[resource_id]","_id":"5841c18aeb4351250074dfd0","ref":""},{"required":true,"desc":"Claim number to verify","default":"","type":"string","name":"claim_number_verification[claim_number]","_id":"5841c18aeb4351250074dfcf","ref":"","in":"body"}],"results":{"codes":[{"status":200,"language":"json","code":"{\n  \"matches\": true,\n  \"claim_number_patterns_present\": true\n}","name":""}]},"settings":"","url":"/claim_number_verifications","auth":"required","examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/claim_number_verifications\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X POST \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"claim_number_verification\": {\n    \"resource_id\": 2,\n    \"resource_type\": \"Payer\",\n    \"claim_number\": \"12345\"\n  }\n}'"},{"language":"ruby","code":"DaisybillApi::Models::ClaimNumberVerification.create(\n  resource_type: \"Payer\",\n  resource_id: get_payer.id,\n  claim_number: \"12345\"\n)"}]},"method":"post"},"slug":"verify-claim-number","title":"Verify Claim Number","createdAt":"2016-12-02T18:46:34.154Z","githubsync":"","link_external":false,"childrenPages":[]}

postVerify Claim Number


Body Params

claim_number_verification[resource_type]:
required
string
Allowed values: "ClaimsAdministrator" or "Payer"
claim_number_verification[resource_id]:
required
integer
ID of Payer or Claims Administrator
claim_number_verification[claim_number]:
required
string
Claim number to verify

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"570eab70986c040e008f7987","hidden":false,"version":"5621497bc412c31900ee2793","sync_unique":"","title":"List Claims Administrators","type":"get","updates":[],"api":{"settings":"","url":"/claims_administrators","auth":"required","examples":{"codes":[{"name":"cURL","language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/claims_administrators\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\"\n"},{"code":"DaisybillApi::Models::ClaimsAdministrator.all","language":"ruby"}]},"method":"get","params":[{"in":"query","required":false,"desc":"Page offset to fetch","default":"1","type":"int","name":"page","_id":"570eab70986c040e008f798a","ref":""},{"in":"query","name":"per_page","ref":"","required":false,"type":"int","_id":"570eab70986c040e008f7989","default":"25","desc":"Number of results to return per page (max 100)"},{"type":"int","name":"offset","_id":"570eab70986c040e008f7988","ref":"","in":"query","required":false,"desc":"Pad a number of results","default":""},{"desc":"Search Term (e.g. 'Sedgwick')","default":"","type":"string","name":"search","_id":"58da9a8efc7eed0f007c6117","ref":"","in":"query","required":false}],"results":{"codes":[{"status":200,"language":"json","code":"{\n  \"claims_administrators\":[\n     {\n        \"created_at\":\"2012-4-23T06:53:36.266-07:00\",\n        \"updated_at\":\"2012-8-23T06:53:36.266-07:00\",\n        \"name”:”Acme Corp.\",\n        \"id”:18,\n        \"description\": \"Acme\"\n     },\n     {\n        \"created_at\":\"2014-05-27T15:15:09.402-07:00\",\n        \"updated_at\":\"2014-09-03T05:19:02.394-07:00\",\n        \"name”:”Omnicorp”,\n        \"id”:19,\n        \"description\": \"Omnicorp\"\n     }\n  ]\n}","name":""}]}},"editedParams":true,"project":"5621497ac412c31900ee2790","slug":"get-claims-administrators-1","next":{"pages":[],"description":""},"order":0,"parentDoc":null,"createdAt":"2016-04-13T20:26:24.500Z","editedParams2":true,"link_external":false,"link_url":"","excerpt":"","githubsync":"","isReference":true,"user":"562148f56e20d40d007310fc","__v":2,"body":"","category":"570eaa403160d10e0041df00","childrenPages":[]}

getList Claims Administrators


Query Params

page:
integer1
Page offset to fetch
per_page:
integer25
Number of results to return per page (max 100)
offset:
integer
Pad a number of results
search:
string
Search Term (e.g. 'Sedgwick')

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"5845f1ed8584d02500ec8eda","githubsync":"","next":{"pages":[],"description":""},"type":"get","user":"562148f56e20d40d007310fc","api":{"params":[{"_id":"5845f203e055290f00c02ac1","ref":"","in":"path","required":true,"desc":"ID of Claims Administrator","default":"","type":"int","name":"id"}],"results":{"codes":[{"language":"json","code":"{\n  \"created_at\": \"2012-10-23T06:53:34.459-07:00\",\n  \"updated_at\": \"2016-01-11T10:05:12.009-08:00\",\n  \"name\": \"Sedgwick Claims Management Services (TPA)\",\n  \"id\": 38,\n  \"description\": \"CMS\",\n  \"also_known_as\": \"CMS\",\n  \"affiliated_entities\": \"Everest National Ins. Co\"\n}","name":"","status":200}]},"settings":"","url":"/claims_administrators/:id","auth":"required","examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/claims_administrators/38\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\""},{"language":"ruby","code":"DaisybillApi::Models::ClaimsAdministrator.find(38)"}]},"method":"get"},"link_external":false,"parentDoc":null,"slug":"get-claims-administrator","version":"5621497bc412c31900ee2793","excerpt":"","isReference":true,"link_url":"","project":"5621497ac412c31900ee2790","sync_unique":"","createdAt":"2016-12-05T23:02:05.247Z","body":"","category":"570eaa403160d10e0041df00","hidden":false,"order":1,"title":"Get Claims Administrator","updates":[],"__v":2,"childrenPages":[]}

getGet Claims Administrator


Path Params

id:
required
integer
ID of Claims Administrator

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"58f0d6a4cfb0e4230090e875","type":"get","version":"5621497bc412c31900ee2793","createdAt":"2017-04-14T14:03:16.818Z","excerpt":"","sync_unique":"","slug":"list-contacts-for-injury","title":"List Contacts for Injury","updates":[],"githubsync":"","link_external":false,"link_url":"","next":{"pages":[],"description":""},"order":0,"__v":0,"api":{"auth":"required","examples":{"codes":[{"name":"cURL","language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/injuries/29/contacts\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\""},{"name":"Ruby","language":"ruby","code":"injury = DaisybillApi::Models::Injury.find(29)\ninjury.contacts "}]},"method":"get","params":[{"desc":"ID of Injury","default":"","type":"int","name":"injury_id","_id":"58f0d6a4cfb0e4230090e879","ref":"","in":"path","required":true},{"name":"page","_id":"58f0d6a4cfb0e4230090e878","ref":"","in":"query","required":false,"desc":"Page offset to fetch","default":"1","type":"int"},{"ref":"","in":"query","required":false,"desc":"Number of results to return per page","default":"25","type":"int","name":"per_page","_id":"58f0d6a4cfb0e4230090e877"},{"in":"query","required":false,"desc":"Pad a number of results","default":"","type":"int","name":"offset","_id":"58f0d6a4cfb0e4230090e876","ref":""}],"results":{"codes":[{"status":200,"language":"json","code":"{\n  \"contacts\": [\n    {\n      \"created_at\": \"2017-04-12T07:41:47.552-07:00\",\n      \"updated_at\": \"2017-04-12T07:41:47.552-07:00\",\n      \"id\": 151,\n      \"first_name\": \"Suzie\",\n      \"last_name\": \"Queue\",\n      \"company\": \"Acme Co.\",\n      \"telephone\": \"5553332222\",\n      \"email\": \"adjustor@example.com\",\n      \"fax\": \"5552223333\",\n      \"address\": {\n        \"created_at\": \"2017-04-12T07:41:47.538-07:00\",\n        \"updated_at\": \"2017-04-12T07:41:47.538-07:00\",\n        \"id\": 414188,\n        \"address_1\": \"1 Main Street\",\n        \"city\": \"anywhere\",\n        \"state\": \"CA\",\n        \"zip_code\": \"12345\"\n      },\n      \"role\": \"Adjustor\",\n      \"type\": \"adjustor\",\n      \"links\": [\n        {\n          \"rel\": \"injury\",\n          \"href\": \"/api/v1/injuries/29\"\n        }\n      ]\n    }\n  ]\n} ","name":""}]},"settings":"","url":"/injuries/:injury_id/contacts"},"isReference":false,"project":"5621497ac412c31900ee2790","user":"562148f56e20d40d007310fc","body":"","category":"58f0d5afcfb0e4230090e86f","hidden":false,"parentDoc":null,"childrenPages":[]}

getList Contacts for Injury


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

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"58f0d92e6d51c50f0017f63b","createdAt":"2017-04-14T14:14:06.457Z","next":{"pages":[],"description":""},"order":1,"project":"5621497ac412c31900ee2790","slug":"get-contact","type":"get","user":"562148f56e20d40d007310fc","body":"","hidden":false,"title":"Get Contact","updates":[],"version":"5621497bc412c31900ee2793","category":"58f0d5afcfb0e4230090e86f","link_url":"","sync_unique":"","__v":1,"api":{"settings":"","url":"/contacts/:id","auth":"required","examples":{"codes":[{"code":"curl \\\n  https://go.daisybill.com/api/v1/contacts/151\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\"","language":"curl","name":"cURL"},{"name":"Ruby","code":"DaisybillApi::Models::Contact.find(151)","language":"ruby"}]},"method":"get","params":[{"desc":"ID of Contact","default":"","type":"int","name":"id","_id":"58f0d992cfb0e4230090e87f","ref":"","in":"path","required":true}],"results":{"codes":[{"name":"","code":"{\n  \"created_at\": \"2017-04-12T07:41:53.699-07:00\",\n  \"updated_at\": \"2017-04-12T07:41:53.699-07:00\",\n  \"id\": 151,\n  \"first_name\": \"Suzie\",\n  \"last_name\": \"Queue\",\n  \"company\": \"Acme Co.\",\n  \"telephone\": \"5553332222\",\n  \"email\": \"adjustor@example.com\",\n  \"fax\": \"5552223333\",\n  \"address\": {\n    \"created_at\": \"2017-04-12T07:41:53.684-07:00\",\n    \"updated_at\": \"2017-04-12T07:41:53.684-07:00\",\n    \"id\": 414207,\n    \"address_1\": \"1 Main Street\",\n    \"city\": \"anywhere\",\n    \"state\": \"CA\",\n    \"zip_code\": \"12345\"\n  },\n  \"role\": \"Adjustor\",\n  \"type\": \"adjustor\",\n  \"links\": [\n    {\n      \"rel\": \"injury\",\n      \"href\": \"/api/v1/injuries/29\"\n    }\n  ]\n} ","language":"json","status":200}]}},"excerpt":"","githubsync":"","isReference":false,"link_external":false,"parentDoc":null,"childrenPages":[]}

getGet Contact


Path Params

id:
required
integer
ID of Contact

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"58f0dab152fe830f00307e7d","project":"5621497ac412c31900ee2790","title":"Create Contact","user":"562148f56e20d40d007310fc","githubsync":"","isReference":false,"link_external":false,"next":{"pages":[],"description":""},"order":2,"excerpt":"","hidden":false,"sync_unique":"","type":"post","version":"5621497bc412c31900ee2793","category":"58f0d5afcfb0e4230090e86f","createdAt":"2017-04-14T14:20:33.001Z","api":{"params":[{"type":"int","name":"injury_id","_id":"58f0dd746973552500cd6328","ref":"","in":"path","required":true,"desc":"ID of Injury","default":""},{"required":true,"desc":"Must be one of the following: 'adjustor', 'claims_administrator', 'bill_review', 'request_for_authorization', 'applicant_attorney', 'defense_attorney', 'rn_case_manager', or 'ptp'","default":"","type":"string","name":"contact[type]","_id":"58f0dd746973552500cd6327","ref":"","in":"body"},{"type":"string","name":"contact[first_name]","_id":"58f0dd746973552500cd6326","ref":"","in":"body","required":false,"desc":"Contact - First Name","default":""},{"required":false,"desc":"Contact - Last Name","default":"","type":"string","name":"contact[last_name]","_id":"58f0dd746973552500cd6325","ref":"","in":"body"},{"type":"string","name":"contact[company]","_id":"58f0dd97cfb0e4230090e886","ref":"","in":"body","required":false,"desc":"Contact - Company Name","default":""},{"desc":"Contact - Email","default":"","type":"string","name":"contact[email]","_id":"58f0de8b6973552500cd632d","ref":"","in":"body","required":false},{"_id":"58f0de8b6973552500cd632c","ref":"","in":"body","required":false,"desc":"Contact - Telephone Number","default":"","type":"string","name":"contact[telephone]"},{"_id":"58f0de8b6973552500cd632b","ref":"","in":"body","required":false,"desc":"Contact - Fax Number","default":"","type":"string","name":"contact[fax]"},{"name":"contact[address_attributes][address_1]","_id":"58f0dee76d51c50f0017f705","ref":"","in":"body","required":false,"desc":"Address - Address 1","default":"","type":"string"},{"ref":"","in":"body","required":false,"desc":"Address - Address 2","default":"","type":"string","name":"contact[address_attributes][address_2]","_id":"58f0dee76d51c50f0017f704"},{"default":"","type":"string","name":"contact[address_attributes][city]","_id":"58f0dee76d51c50f0017f703","ref":"","in":"body","required":false,"desc":"Address - City"},{"in":"body","required":false,"desc":"Address - State","default":"","type":"string","name":"contact[address_attributes][state]","_id":"58f0deffe237460f00906c64","ref":""},{"desc":"Address - Zip Code","default":"","type":"string","name":"contact[address_attributes][zip_code]","_id":"58f0df23cfb0e4230090e8a8","ref":"","in":"body","required":false}],"results":{"codes":[{"code":"{\n  \"created_at\": \"2017-04-12T07:41:51.103-07:00\",\n  \"updated_at\": \"2017-04-12T07:41:51.103-07:00\",\n  \"id\": 151304,\n  \"first_name\": \"Suzie\",\n  \"last_name\": \"Queue\",\n  \"company\": \"Acme Co.\",\n  \"telephone\": \"5553332222\",\n  \"email\": \"adjustor@example.com\",\n  \"fax\": \"5552223333\",\n  \"address\": {\n    \"created_at\": \"2017-04-12T07:41:51.088-07:00\",\n    \"updated_at\": \"2017-04-12T07:41:51.088-07:00\",\n    \"id\": 414198,\n    \"address_1\": \"1 Main Street\",\n    \"city\": \"anywhere\",\n    \"state\": \"CA\",\n    \"zip_code\": \"12345\"\n  },\n  \"role\": \"Adjustor\",\n  \"type\": \"adjustor\",\n  \"links\": [\n    {\n      \"rel\": \"injury\",\n      \"href\": \"/api/v1/injuries/29\"\n    }\n  ]\n}","language":"json","status":200,"name":""}]},"settings":"","url":"/injuries/:injury_id/contacts","auth":"required","examples":{"codes":[{"code":"curl \\\n  https://go.daisybill.com/api/v1/injuries/29/contacts\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X POST \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"contact\": {\n    \"first_name\": \"Suzie\",\n    \"last_name\": \"Queue\",\n    \"company\": \"Acme Co.\",\n    \"telephone\": \"5553332222\",\n    \"email\": \"adjustor@example.com\",\n    \"fax\": \"5552223333\",\n    \"type\": \"adjustor\",\n    \"address_attributes\": {\n      \"address_1\": \"1 Main Street\",\n      \"city\": \"anywhere\",\n      \"zip_code\": \"12345\",\n      \"state\": \"CA\"\n    }\n  }\n}'","language":"curl"},{"code":"address = DaisybillApi::Models::Address.new(\n  address_1: \"1 Main Street\",\n  city:      \"anywhere\",\n  zip_code:  \"12345\",\n  state:     \"CA\"\n)\n\nDaisybillApi::Models::Contact.create(\n  injury_id:       29,\n  first_name:      \"Suzie\",\n  last_name:       \"Queue\",\n  company:         \"Acme Co.\",\n  telephone:       \"5553332222\",\n  email:           \"adjustor@example.com\",\n  fax:             \"5552223333\",\n  type:            \"adjustor\",\n  address:         address\n)","language":"ruby"}]},"method":"post"},"body":"","link_url":"","slug":"create-contact","updates":[],"__v":6,"parentDoc":null,"childrenPages":[]}

postCreate Contact


Path Params

injury_id:
required
integer
ID of Injury

Body Params

contact[type]:
required
string
Must be one of the following: 'adjustor', 'claims_administrator', 'bill_review', 'request_for_authorization', 'applicant_attorney', 'defense_attorney', 'rn_case_manager', or 'ptp'
contact[first_name]:
string
Contact - First Name
contact[last_name]:
string
Contact - Last Name
contact[company]:
string
Contact - Company Name
contact[email]:
string
Contact - Email
contact[telephone]:
string
Contact - Telephone Number
contact[fax]:
string
Contact - Fax Number
contact[address_attributes][address_1]:
string
Address - Address 1
contact[address_attributes][address_2]:
string
Address - Address 2
contact[address_attributes][city]:
string
Address - City
contact[address_attributes][state]:
string
Address - State
contact[address_attributes][zip_code]:
string
Address - Zip Code

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"58f0dfda4b233c0f00f571fe","category":"58f0d5afcfb0e4230090e86f","createdAt":"2017-04-14T14:42:34.905Z","githubsync":"","link_external":false,"link_url":"","next":{"pages":[],"description":""},"version":"5621497bc412c31900ee2793","hidden":false,"order":3,"slug":"update-contact-1","updates":[],"body":"","excerpt":"","title":"Update Contact","type":"patch","user":"562148f56e20d40d007310fc","__v":0,"api":{"auth":"required","examples":{"codes":[{"code":"curl \\\n  https://go.daisybill.com/api/v1/contacts/151\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X PATCH \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"contact\": {\n    \"last_name\": \"Q\"\n  }\n}'","language":"curl"},{"code":"contact.last_name = \"Q\"\ncontact.save","language":"ruby"}]},"method":"patch","params":[{"in":"path","name":"id","ref":"","required":true,"type":"int","_id":"58f0dd746973552500cd6328","default":"","desc":"ID of Contact"},{"ref":"","in":"body","required":false,"desc":"Must be one of the following: 'adjustor', 'claims_administrator', 'bill_review', 'request_for_authorization', 'applicant_attorney', 'defense_attorney', 'rn_case_manager', or 'ptp'","default":"","type":"string","name":"contact[type]","_id":"58f0dd746973552500cd6327"},{"default":"","type":"string","name":"contact[first_name]","_id":"58f0dd746973552500cd6326","ref":"","in":"body","required":false,"desc":"Contact - First Name"},{"in":"body","required":false,"desc":"Contact - Last Name","default":"","type":"string","name":"contact[last_name]","_id":"58f0dd746973552500cd6325","ref":""},{"required":false,"desc":"Contact - Company Name","default":"","type":"string","name":"contact[company]","_id":"58f0dd97cfb0e4230090e886","ref":"","in":"body"},{"ref":"","in":"body","required":false,"desc":"Contact - Email","default":"","type":"string","name":"contact[email]","_id":"58f0de8b6973552500cd632d"},{"in":"body","required":false,"desc":"Contact - Telephone Number","default":"","type":"string","name":"contact[telephone]","_id":"58f0de8b6973552500cd632c","ref":""},{"required":false,"desc":"Contact - Fax Number","default":"","type":"string","name":"contact[fax]","_id":"58f0de8b6973552500cd632b","ref":"","in":"body"},{"type":"string","name":"contact[address_attributes][address_1]","_id":"58f0dee76d51c50f0017f705","ref":"","in":"body","required":false,"desc":"Address - Address 1","default":""},{"desc":"Address - Address 2","default":"","type":"string","name":"contact[address_attributes][address_2]","_id":"58f0dee76d51c50f0017f704","ref":"","in":"body","required":false},{"_id":"58f0dee76d51c50f0017f703","ref":"","in":"body","required":false,"desc":"Address - City","default":"","type":"string","name":"contact[address_attributes][city]"},{"_id":"58f0deffe237460f00906c64","ref":"","in":"body","required":false,"desc":"Address - State","default":"","type":"string","name":"contact[address_attributes][state]"},{"name":"contact[address_attributes][zip_code]","_id":"58f0df23cfb0e4230090e8a8","ref":"","in":"body","required":false,"desc":"Address - Zip Code","default":"","type":"string"}],"results":{"codes":[{"name":"","status":200,"language":"json","code":"{\n  \"created_at\": \"2017-04-12T07:41:56.565-07:00\",\n  \"updated_at\": \"2017-04-12T07:41:56.705-07:00\",\n  \"id\": 151,\n  \"first_name\": \"Suzie\",\n  \"last_name\": \"Q\",\n  \"company\": \"Acme Co.\",\n  \"telephone\": \"5553332222\",\n  \"email\": \"adjustor@example.com\",\n  \"fax\": \"5552223333\",\n  \"address\": {\n    \"created_at\": \"2017-04-12T07:41:56.550-07:00\",\n    \"updated_at\": \"2017-04-12T07:41:56.689-07:00\",\n    \"id\": 414216,\n    \"address_1\": \"2 Main St\",\n    \"city\": \"anywhere\",\n    \"state\": \"CA\",\n    \"zip_code\": \"12345\"\n  },\n  \"role\": \"Adjustor\",\n  \"type\": \"adjustor\",\n  \"links\": [\n    {\n      \"rel\": \"injury\",\n      \"href\": \"/api/v1/injuries/29\"\n    }\n  ]\n}"}]},"settings":"","url":"/contacts/:id"},"isReference":false,"project":"5621497ac412c31900ee2790","sync_unique":"","parentDoc":null,"childrenPages":[]}

patchUpdate Contact


Path Params

id:
required
integer
ID of Contact

Body Params

contact[type]:
string
Must be one of the following: 'adjustor', 'claims_administrator', 'bill_review', 'request_for_authorization', 'applicant_attorney', 'defense_attorney', 'rn_case_manager', or 'ptp'
contact[first_name]:
string
Contact - First Name
contact[last_name]:
string
Contact - Last Name
contact[company]:
string
Contact - Company Name
contact[email]:
string
Contact - Email
contact[telephone]:
string
Contact - Telephone Number
contact[fax]:
string
Contact - Fax Number
contact[address_attributes][address_1]:
string
Address - Address 1
contact[address_attributes][address_2]:
string
Address - Address 2
contact[address_attributes][city]:
string
Address - City
contact[address_attributes][state]:
string
Address - State
contact[address_attributes][zip_code]:
string
Address - Zip Code

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"58a60c09243dd30f00fd87a8","__v":0,"hidden":false,"link_external":false,"order":0,"title":"List Error Reports","user":"562148f56e20d40d007310fc","version":"5621497bc412c31900ee2793","body":"","githubsync":"","slug":"list-error-reports","sync_unique":"","type":"get","updates":[],"category":"58a60b5e2cb5710f0070d08a","isReference":false,"next":{"pages":[],"description":""},"link_url":"","parentDoc":null,"project":"5621497ac412c31900ee2790","api":{"results":{"codes":[{"language":"json","code":"{\n  \"error_reports\": [\n    {\n      \"created_at\": \"2016-05-16T13:22:14.444-07:00\",\n      \"updated_at\": \"2016-05-16T13:25:44.982-07:00\",\n      \"id\": 3,\n      \"error_type\": \"other\",\n      \"comment\": \"Second Review incorrectly denied as duplicate\",\n      \"name\": \"Angenette\",\n      \"telephone\": \"9999999999\",\n      \"role\": \"Escalation Team\",\n      \"call_reference_number\": \"\",\n      \"resolved_at\": \"2016-05-16T13:25:44.975-07:00\",\n      \"resolution_comment\": \"Hi DaisyBiller, we confirmed the error with York We also emailed a supervisor at York regarding the problem.\",\n      \"creator_name\": \"Brannon Maggio\",\n      \"links\": [\n        {\n          \"rel\": \"bill\",\n          \"href\": \"/api/v1/bills/5\"\n        }\n      ]\n    }\n  ]\n}","name":"","status":200}]},"settings":"","url":"/bills/:bill_id/error_reports","auth":"required","examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/bills/5/error_reports\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\""},{"language":"ruby","code":"bill = DaisybillApi::Models::Bill.find(5)\nbill.error_reports"}]},"method":"get","params":[{"required":true,"desc":"ID of Bill","default":"","type":"int","name":"bill_id","_id":"58a60c09243dd30f00fd87a9","ref":"","in":"path"}]},"createdAt":"2017-02-16T20:31:05.510Z","excerpt":"","childrenPages":[]}

getList Error Reports


Path Params

bill_id:
required
integer
ID of Bill

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"58a60f3bdc4ced0f00f37e96","parentDoc":null,"slug":"create-error-report","title":"Create Error Report","user":"562148f56e20d40d007310fc","category":"58a60b5e2cb5710f0070d08a","githubsync":"","next":{"pages":[],"description":""},"order":1,"project":"5621497ac412c31900ee2790","sync_unique":"","type":"post","isReference":false,"createdAt":"2017-02-16T20:44:43.074Z","excerpt":"","link_external":false,"link_url":"","updates":[],"version":"5621497bc412c31900ee2793","__v":0,"body":"","api":{"auth":"required","examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/bills/5/error_reports\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X POST \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"error_report\": {\n    \"error_type\": \"submission_not_on_file\",\n    \"comment\": \"Second Review incorrectly denied as duplicate\",\n    \"name\": \"Nancy\",\n    \"telephone\": \"5552221111\",\n    \"role\": \"Escalation Team\",\n    \"call_reference_number\": \"12\"\n  }\n}'"},{"code":"DaisybillApi::Models::ErrorReport.create(\n  bill_id: 5,\n  error_type: \"submission_not_on_file\",\n  comment: \"Second Review incorrectly denied as duplicate\",\n  name: \"Nancy\",\n  telephone: \"5552221111\",\n  role: \"Escalation Team\",\n  call_reference_number: \"12\"\n)","language":"ruby"}]},"method":"post","params":[{"in":"path","required":true,"desc":"ID of Bill","default":"","type":"int","name":"id","_id":"58a60f3bdc4ced0f00f37e9d","ref":""},{"desc":"Acceptable values: submission_not_on_file, documents_not_on_file, incorrect_rejection, other","default":"","type":"string","name":"error_type","_id":"58a60f3bdc4ced0f00f37e9c","ref":"","in":"body","required":true},{"name":"comment","_id":"58a60f3bdc4ced0f00f37e9b","ref":"","in":"body","required":true,"desc":"","default":"","type":"string"},{"ref":"","in":"body","required":true,"desc":"","default":"","type":"string","name":"name","_id":"58a60f3bdc4ced0f00f37e9a"},{"in":"body","required":true,"desc":"","default":"","type":"string","name":"telephone","_id":"58a60f3bdc4ced0f00f37e99","ref":""},{"required":false,"desc":"","default":"","type":"string","name":"role","_id":"58a60f3bdc4ced0f00f37e98","ref":"","in":"body"},{"ref":"","in":"body","required":false,"desc":"","default":"","type":"string","name":"call_reference_number","_id":"58a60f3bdc4ced0f00f37e97"}],"results":{"codes":[{"code":"{\n  \"created_at\": \"2017-02-16T11:56:44.263-08:00\",\n  \"updated_at\": \"2017-02-16T11:56:44.263-08:00\",\n  \"id\": 14,\n  \"error_type\": \"submission_not_on_file\",\n  \"comment\": \"Second Review incorrectly denied as duplicate\",\n  \"name\": \"Nancy\",\n  \"telephone\": \"5552221111\",\n  \"role\": \"Escalation Team\",\n  \"call_reference_number\": \"12\",\n  \"creator_name\": \"Brannon Maggio\",\n  \"links\": [\n    {\n      \"rel\": \"bill\",\n      \"href\": \"/api/v1/bills/5\"\n    }\n  ]\n}","name":"","status":200,"language":"json"}]},"settings":"","url":"/bills/:id/error_reports"},"hidden":false,"childrenPages":[]}

postCreate Error Report


Path Params

id:
required
integer
ID of Bill

Body Params

error_type:
required
string
Acceptable values: submission_not_on_file, documents_not_on_file, incorrect_rejection, other
comment:
required
string
name:
required
string
telephone:
required
string
role:
string
call_reference_number:
string

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"58a60fbf2cb5710f0070d0a2","excerpt":"","githubsync":"","hidden":false,"user":"562148f56e20d40d007310fc","version":"5621497bc412c31900ee2793","__v":0,"api":{"examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/error_reports/16\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\""},{"language":"ruby","code":"DaisybillApi::Models::ErrorReport.find(16)"}]},"method":"get","params":[{"name":"id","_id":"58a60fbf2cb5710f0070d0a3","ref":"","in":"path","required":true,"desc":"ID of Error Report","default":"","type":"int"}],"results":{"codes":[{"code":"{\n  \"created_at\": \"2017-02-16T11:56:44.477-08:00\",\n  \"updated_at\": \"2017-02-16T11:56:44.477-08:00\",\n  \"id\": 16,\n  \"error_type\": \"submission_not_on_file\",\n  \"comment\": \"Second Review incorrectly denied as duplicate\",\n  \"name\": \"Nancy\",\n  \"telephone\": \"2225551111\",\n  \"role\": \"Adjustor\",\n  \"call_reference_number\": \"123\",\n  \"creator_name\": \"Brannon Maggio\",\n  \"links\": [\n    {\n      \"rel\": \"bill\",\n      \"href\": \"/api/v1/bills/876720\"\n    }\n  ]\n}","name":"","status":200,"language":"json"}]},"settings":"","url":"/error_reports/:id","auth":"required"},"order":2,"type":"get","updates":[],"body":"","category":"58a60b5e2cb5710f0070d08a","isReference":false,"link_url":"","next":{"pages":[],"description":""},"createdAt":"2017-02-16T20:46:55.204Z","link_external":false,"parentDoc":null,"project":"5621497ac412c31900ee2790","slug":"get-error-report","sync_unique":"","title":"Get Error Report","childrenPages":[]}

getGet Error Report


Path Params

id:
required
integer
ID of Error Report

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"5621637db244890d0018699c","isReference":true,"next":{"description":"","pages":[]},"parentDoc":null,"sync_unique":"","user":"562148f56e20d40d007310fc","excerpt":"","hidden":false,"category":"56215e61c6648b1900cb156f","editedParams2":true,"link_external":false,"link_url":"","project":"5621497ac412c31900ee2790","updates":[],"api":{"auth":"required","examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/patients/55/injuries\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\"","name":"cURL"},{"language":"ruby","code":"patient = DaisybillApi::Models::Patient.find(55)\npatient.injuries"}]},"method":"get","params":[{"name":"patient_id","ref":"","required":true,"type":"int","_id":"5628dcb60653060d00a2f7ea","default":"","desc":"ID of Patient","in":"path"},{"_id":"5628dcda3398070d002f3093","default":"1","desc":"Page offset to fetch","in":"query","name":"page","ref":"","required":false,"type":"int"},{"_id":"5628dcda3398070d002f3092","default":"25","desc":"Number of results to return per page","in":"query","name":"per_page","ref":"","required":false,"type":"int"},{"_id":"5628dcda3398070d002f3091","default":"","desc":"Pad a number of results","in":"query","name":"offset","ref":"","required":false,"type":"int"}],"results":{"codes":[{"name":"","code":"{  \n  \"injuries\":[  \n    {  \n      \"created_at\":\"2015-06-27T14:55:16.661-08:00\",\n      \"updated_at\":\"2015-06-27T14:55:16.661-08:00\",\n      \"review_status\":\"passed\",\n      \"review_errors\":[],\n      \"review_warnings\":[],\n      \"id\":31,\n      \"description\":\"Right Wrist\",\n      \"claim_number\":\"0184461034\",\n      \"adj_number\":\"ADJ_87258\",\n      \"start_date\":\"1998-10-29\",\n      \"claims_administrator_id\":19,\n      \"diagnosis_codes\":[  \n        \"7400\"\n      ],\n      \"employer\":{  \n        \"created_at\":\"2015-01-27T14:55:16.706-08:00\",\n        \"updated_at\":\"2015-01-27T14:55:16.706-08:00\",\n        \"id\":12,\n        \"name\":\"Watsica-Huels\"\n      },\n      \"claims_administrator\":{  \n        \"created_at\":\"2013-07-04T10:18:10.746-08:00\",\n        \"updated_at\":\"2015-07-10T15:22:23.142-08:00\",\n        \"name\":\"White, Labadie and West Inc.\",\n        \"id\":39\n      },\n      \"contacts\":[],\n      \"links\":[  \n        {  \n          \"rel\":\"patient\",\n          \"href\":\"/api/v1/patients/55\"\n        }\n      ]\n    }\n  ]\n}","language":"json","status":200}]},"settings":"","url":"/patients/:patient_id/injuries"},"body":"","slug":"list-injuries","editedParams":true,"githubsync":"","order":0,"title":"List Injuries","type":"get","version":"5621497bc412c31900ee2793","__v":3,"createdAt":"2015-10-16T20:52:13.149Z","childrenPages":[]}

getList Injuries


Path Params

patient_id:
required
integer
ID of Patient

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":"56216399b244890d0018699e","githubsync":"","isReference":true,"version":"5621497bc412c31900ee2793","__v":3,"editedParams2":true,"excerpt":"","project":"5621497ac412c31900ee2790","slug":"get-injury","sync_unique":"","title":"Get Injury","type":"get","api":{"url":"/injuries/:id","auth":"required","examples":{"codes":[{"name":"cURL","code":"curl \\\n  https://go.daisybill.com/api/v1/injuries/31\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\"","language":"curl"},{"language":"ruby","code":"injury = DaisybillApi::Models::Injury.find(31)"}]},"method":"get","params":[{"default":"","desc":"ID of Injury","in":"path","name":"id","ref":"","required":true,"type":"int","_id":"5628e3f9e3b5f5230084fd3c"}],"results":{"codes":[{"name":"","code":"{  \n  \"created_at\":\"2015-06-27T14:55:16.661-08:00\",\n  \"updated_at\":\"2015-06-27T14:55:16.661-08:00\",\n  \"review_status\":\"passed\",\n  \"review_errors\":[],\n  \"review_warnings\":[],\n  \"id\":31,\n  \"description\":\"Right Wrist\",\n  \"claim_number\":\"0184461034\",\n  \"adj_number\":\"ADJ_87258\",\n  \"start_date\":\"1998-10-29\",\n  \"claims_administrator_id\":19,\n  \"diagnosis_codes\":[  \n    \"7400\"\n  ],\n  \"employer\":{  \n    \"created_at\":\"2015-01-27T14:55:16.706-08:00\",\n    \"updated_at\":\"2015-01-27T14:55:16.706-08:00\",\n    \"id\":12,\n    \"name\":\"Watsica-Huels\"\n  },\n  \"claims_administrator\":{  \n    \"created_at\":\"2013-01-04T10:18:10.746-08:00\",\n    \"updated_at\":\"2015-02-10T15:22:23.142-08:00\",\n    \"name\":\"White, Labadie and West Inc.\",\n    \"id\":39\n  },\n  \"contacts\":[],\n  \"links\":[  \n    {  \n      \"rel\":\"patient\",\n      \"href\":\"/api/v1/patients/55\"\n    }\n  ]\n}","language":"json","status":200}]},"settings":""},"link_url":"","parentDoc":null,"updates":[],"user":"562148f56e20d40d007310fc","hidden":false,"order":1,"body":"","editedParams":true,"next":{"description":"","pages":[]},"category":"56215e61c6648b1900cb156f","createdAt":"2015-10-16T20:52:41.581Z","link_external":false,"childrenPages":[]}

getGet Injury


Path Params

id:
required
integer
ID of Injury

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"562163cf6e20d40d0073112a","isReference":true,"next":{"description":"","pages":[]},"title":"Create Injury","api":{"url":"/patients/:patient_id/injuries","auth":"required","examples":{"codes":[{"code":"curl \\\n  https://go.daisybill.com/api/v1/patients/5/injuries\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X POST \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"injury\": {\n    \"patient_id\": 288472,\n    \"description\": \"Tennis elbow\",\n    \"start_date\": \"2015-03-01\",\n    \"end_date\": \"2015-06-08\",\n    \"claim_number\": \"1234567890\",\n    \"claims_administrator_id\": 8317,\n    \"payer_id\": 262,\n    \"adj_number\": \"ADJ_12345\",\n    \"employer_attributes\": {\n      \"name\": \"Acme Co.\",\n      \"address_attributes\": {\n        \"address_1\": \"1 Main Street\",\n        \"city\": \"anywhere\",\n        \"zip_code\": \"12345\",\n        \"state\": \"CA\"\n      }\n    }\n  }\n}'","language":"curl","name":"cURL"},{"code":"address = DaisybillApi::Models::Address.new(\n  address_1: \"616 Amira Shoal\",\n  city: \"West Anissa\",\n  state: \"CA\",\n  zip_code: \"900019988\"\n)\n\nemployer = DaisybillApi::Models::Employer.new(\n  name: \"Marquardt-Lehner Inc\",\n  address: address\n)\n\nDaisybillApi::Models::Injury.create(\n  patient_id: 5,\n  description: \"Tennis elbow\",\n  start_date: \"2003-10-02\",\n  end_date: \"2003-11-29\",\n  claim_number: \"0184431024\",\n  claims_administrator_id: 63,\n  payer_id: 14,\n  adj_number: \"ADJ_42158\",\n  employer: employer\n)","language":"ruby"}]},"method":"post","params":[{"_id":"5628e65b0f90450d0061b08f","ref":"","in":"path","required":true,"desc":"ID of Patient","default":"","type":"int","name":"patient_id"},{"_id":"5628e65b0f90450d0061b08e","ref":"","in":"body","required":true,"desc":"Injury Description","default":"","type":"string","name":"injury[description]"},{"_id":"5628e65b0f90450d0061b08d","ref":"","in":"body","required":false,"desc":"Injury Start Date","default":"nil","type":"string","name":"injury[start_date]"},{"_id":"5628e7115cfea90d00ddc69a","ref":"","in":"body","required":false,"desc":"Injury End Date","default":"nil","type":"string","name":"injury[end_date]"},{"_id":"5628e7115cfea90d00ddc699","ref":"","in":"body","required":false,"desc":"Injury Adjustment Number","default":"nil","type":"string","name":"injury[adj_number]"},{"_id":"5628e65b0f90450d0061b08b","ref":"","in":"body","required":false,"desc":"Injury Claim Number","default":"nil","type":"string","name":"injury[claim_number]"},{"_id":"5b69ec6bad3dfa00037ea528","ref":"","in":"body","required":false,"desc":"Injury State","default":"","type":"string","name":"injury[state]"},{"_id":"5628e65b0f90450d0061b08c","ref":"","in":"body","required":false,"desc":"ID of Claims Administrator","default":"nil","type":"int","name":"injury[claims_administrator_id]"},{"_id":"58051cdb16161c0f0077e086","ref":"","in":"body","required":false,"desc":"ID of Payer","default":"nil","type":"int","name":"injury[payer_id]"},{"_id":"5628e65b0f90450d0061b08a","ref":"","in":"body","required":false,"desc":"Employer Name","default":"nil","type":"string","name":"injury[employer_attributes][name]"},{"_id":"5628e65b0f90450d0061b089","ref":"","in":"body","required":false,"desc":"Employer Address - Address 1","default":"nil","type":"string","name":"injury[employer_attributes][address_attributes][address_1]"},{"_id":"5628e65b0f90450d0061b088","ref":"","in":"body","required":false,"desc":"Employer Address - Address 2","default":"nil","type":"string","name":"injury[employer_attributes][address_attributes][address_2]"},{"_id":"5628e65b0f90450d0061b087","ref":"","in":"body","required":false,"desc":"Employer Address - City","default":"nil","type":"string","name":"injury[employer_attributes][address_attributes][city]"},{"_id":"5628e7115cfea90d00ddc698","ref":"","in":"body","required":false,"desc":"Employer Address - State","default":"nil","type":"string","name":"injury[employer_attributes][address_attributes][state]"},{"_id":"5628e7115cfea90d00ddc697","ref":"","in":"body","required":false,"desc":"Employer Address - Zip Code","default":"nil","type":"string","name":"injury[employer_attributes][address_attributes][zip_code]"}],"results":{"codes":[{"code":"{  \n  \"created_at\":\"2015-10-22T08:10:31.902-07:00\",\n  \"updated_at\":\"2015-10-22T08:10:31.902-07:00\",\n  \"review_status\":\"pending\",\n  \"review_errors\":[],\n  \"review_warnings\":[],\n  \"id\":155,\n  \"description\":\"Tennis elbow\",\n  \"claim_number\":\"0184431024\",\n  \"adj_number\":\"ADJ_42158\",\n  \"start_date\":\"2003-10-02\",\n  \"end_date\":\"2003-11-29\",\n  \"claims_administrator_id\":63,\n  \"payer_id\":14,\n  \"diagnosis_codes\":[],\n  \"employer\":{  \n    \"created_at\":\"2015-10-22T08:10:32.038-07:00\",\n    \"updated_at\":\"2015-10-22T08:10:32.038-07:00\",\n    \"id\":121,\n    \"name\":\"Marquardt-Lehner Inc\",\n    \"address\":{  \n      \"created_at\":\"2015-10-22T08:10:31.988-07:00\",\n      \"updated_at\":\"2015-10-22T08:10:31.988-07:00\",\n      \"id\":227,\n      \"address_1\":\"616 Amira Shoal\",\n      \"city\":\"West Anissa\",\n      \"state\":\"CA\",\n      \"zip_code\":\"900019988\"\n    }\n  },\n  \"claims_administrator\":{  \n    \"created_at\":\"2015-10-04T06:53:28.627-07:00\",\n    \"updated_at\":\"2015-10-04T06:53:28.627-07:00\",\n    \"name\":\"Donnelly Mutual Insurance\",\n    \"id\":56\n  },\n  \"contacts\":[],\n  \"links\":[  \n    {  \n      \"rel\":\"patient\",\n      \"href\":\"/api/v1/patients/5\"\n    }\n  ]\n}","language":"json","status":201,"name":""}]},"settings":""},"githubsync":"","excerpt":"","link_url":"","order":2,"parentDoc":null,"body":"","createdAt":"2015-10-16T20:53:35.945Z","editedParams2":true,"type":"post","version":"5621497bc412c31900ee2793","__v":6,"link_external":false,"project":"5621497ac412c31900ee2790","slug":"create-injury","sync_unique":"","updates":[],"user":"562148f56e20d40d007310fc","category":"56215e61c6648b1900cb156f","editedParams":true,"hidden":false,"childrenPages":[]}

postCreate Injury


Path Params

patient_id:
required
integer
ID of Patient

Body Params

injury[description]:
required
string
Injury Description
injury[start_date]:
stringnil
Injury Start Date
injury[end_date]:
stringnil
Injury End Date
injury[adj_number]:
stringnil
Injury Adjustment Number
injury[claim_number]:
stringnil
Injury Claim Number
injury[state]:
string
Injury State
injury[claims_administrator_id]:
integernil
ID of Claims Administrator
injury[payer_id]:
integernil
ID of Payer
injury[employer_attributes][name]:
stringnil
Employer Name
injury[employer_attributes][address_attributes][address_1]:
stringnil
Employer Address - Address 1
injury[employer_attributes][address_attributes][address_2]:
stringnil
Employer Address - Address 2
injury[employer_attributes][address_attributes][city]:
stringnil
Employer Address - City
injury[employer_attributes][address_attributes][state]:
stringnil
Employer Address - State
injury[employer_attributes][address_attributes][zip_code]:
stringnil
Employer Address - Zip Code

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"562163dff761a4170068ecf5","githubsync":"","hidden":false,"link_external":false,"link_url":"","next":{"pages":[],"description":""},"order":3,"sync_unique":"","updates":[],"user":"562148f56e20d40d007310fc","createdAt":"2015-10-16T20:53:51.961Z","title":"Update Injury","version":"5621497bc412c31900ee2793","__v":7,"api":{"method":"patch","params":[{"_id":"5628fea00f90450d0061b0c4","ref":"","in":"path","required":true,"desc":"ID of Injury","default":"","type":"int","name":"id"},{"_id":"5628fea00f90450d0061b0c3","ref":"","in":"body","required":false,"desc":"Injury Description","default":"","type":"string","name":"injury[description]"},{"_id":"5628fea00f90450d0061b0c2","ref":"","in":"body","required":false,"desc":"Injury Start Date","default":"","type":"string","name":"injury[start_date]"},{"_id":"5628fea00f90450d0061b0c1","ref":"","in":"body","required":false,"desc":"Injury End Date","default":"","type":"string","name":"injury[end_date]"},{"_id":"5628fea00f90450d0061b0c0","ref":"","in":"body","required":false,"desc":"Injury Adjustment Number","default":"","type":"string","name":"injury[adj_number]"},{"_id":"5628fea00f90450d0061b0bf","ref":"","in":"body","required":false,"desc":"Injury Claim Number","default":"","type":"string","name":"injury[claim_number]"},{"_id":"5b69ec7ead3dfa00037ea529","ref":"","in":"body","required":false,"desc":"Injury State","default":"","type":"string","name":"injury[state]"},{"_id":"5628fea00f90450d0061b0be","ref":"","in":"body","required":false,"desc":"ID of Claims Administrator","default":"","type":"int","name":"injury[claims_administrator_id]"},{"_id":"5717d316f2d4380e006f0275","ref":"","in":"body","required":false,"desc":"ID of Payer","default":"","type":"int","name":"injury[payer_id]"},{"_id":"5628fea00f90450d0061b0bd","ref":"","in":"body","required":false,"desc":"Employer Name","default":"","type":"string","name":"injury[employer_attributes][name]"},{"_id":"5628fea00f90450d0061b0bc","ref":"","in":"body","required":false,"desc":"Employer Address - Address 1","default":"","type":"string","name":"injury[employer_attributes][address_attributes][address_1]"},{"_id":"5628fea00f90450d0061b0bb","ref":"","in":"body","required":false,"desc":"Employer Address - Address 2","default":"","type":"string","name":"injury[employer_attributes][address_attributes][address_2]"},{"_id":"5628fea00f90450d0061b0ba","ref":"","in":"body","required":false,"desc":"Employer Address - City","default":"","type":"string","name":"injury[employer_attributes][address_attributes][city]"},{"_id":"5628fea00f90450d0061b0b9","ref":"","in":"body","required":false,"desc":"Employer Address - State","default":"","type":"string","name":"injury[employer_attributes][address_attributes][state]"},{"_id":"5628fea00f90450d0061b0b8","ref":"","in":"body","required":false,"desc":"Employer Address - Zip Code","default":"","type":"string","name":"injury[employer_attributes][address_attributes][zip_code]"}],"results":{"codes":[{"name":"","code":"{  \n  \"created_at\":\"2015-10-22T08:10:31.902-07:00\",\n  \"updated_at\":\"2015-10-22T08:10:33.128-07:00\",\n  \"review_status\":\"pending\",\n  \"review_errors\":[],\n  \"review_warnings\":[],\n  \"id\":155,\n  \"description\":\"Tennis elbow\",\n  \"claim_number\":\"0184431027\",\n  \"adj_number\":\"ADJ_42158\",\n  \"start_date\":\"2003-10-02\",\n  \"end_date\":\"2003-11-29\",\n  \"claims_administrator_id\":63,\n  \"payer_id\":82,\n  \"diagnosis_codes\":[],\n  \"employer\":{  \n    \"created_at\":\"2015-10-22T08:10:32.038-07:00\",\n    \"updated_at\":\"2015-10-22T08:10:32.038-07:00\",\n    \"id\":121,\n    \"name\":\"Marquardt-Lehner Inc\",\n    \"address\":{  \n      \"created_at\":\"2015-10-22T08:10:31.988-07:00\",\n      \"updated_at\":\"2015-10-22T08:10:31.988-07:00\",\n      \"id\":227,\n      \"address_1\":\"616 Amira Shoal\",\n      \"city\":\"West Anissa\",\n      \"state\":\"CA\",\n      \"zip_code\":\"900019988\"\n    }\n  },\n  \"claims_administrator\":{  \n    \"created_at\":\"2015-10-04T06:53:28.627-07:00\",\n    \"updated_at\":\"2015-10-04T06:53:28.627-07:00\",\n    \"name\":\"Donnelly Mutual Insurance\",\n    \"id\":56\n  },\n  \"contacts\":[],\n  \"links\":[  \n    {  \n      \"rel\":\"patient\",\n      \"href\":\"/api/v1/patients/5\"\n    }\n  ]\n}","language":"json","status":200}]},"settings":"","url":"/injuries/:id","auth":"required","examples":{"codes":[{"code":"curl \\\n  https://go.daisybill.com/api/v1/injuries/155\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X PATCH \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"injury\": {\n    \"claim_number\": \"12345xyz\"\n  }\n}'","name":"cURL","language":"curl"},{"language":"ruby","code":"injury = DaisybillApi::Models::Injury.find(155)\ninjury.claim_number = \"0184431027\"\ninjury.save"}]}},"body":"","category":"56215e61c6648b1900cb156f","editedParams":true,"excerpt":"","isReference":true,"parentDoc":null,"project":"5621497ac412c31900ee2790","editedParams2":true,"slug":"update-injury","type":"patch","childrenPages":[]}

patchUpdate Injury


Path Params

id:
required
integer
ID of Injury

Body Params

injury[description]:
string
Injury Description
injury[start_date]:
string
Injury Start Date
injury[end_date]:
string
Injury End Date
injury[adj_number]:
string
Injury Adjustment Number
injury[claim_number]:
string
Injury Claim Number
injury[state]:
string
Injury State
injury[claims_administrator_id]:
integer
ID of Claims Administrator
injury[payer_id]:
integer
ID of Payer
injury[employer_attributes][name]:
string
Employer Name
injury[employer_attributes][address_attributes][address_1]:
string
Employer Address - Address 1
injury[employer_attributes][address_attributes][address_2]:
string
Employer Address - Address 2
injury[employer_attributes][address_attributes][city]:
string
Employer Address - City
injury[employer_attributes][address_attributes][state]:
string
Employer Address - State
injury[employer_attributes][address_attributes][zip_code]:
string
Employer Address - Zip Code

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"562163f5c412c31900ee27c3","createdAt":"2015-10-16T20:54:13.576Z","sync_unique":"","title":"Delete Injury","__v":2,"api":{"examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/injuries/155\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X DELETE \\\n  -H \"Content-Type: application/json\"","name":"cURL"},{"language":"ruby","code":"injury = DaisybillApi::Models::Injury.find(155)\ninjury.destroy"}]},"method":"delete","params":[{"desc":"ID of Injury","in":"path","name":"id","ref":"","required":true,"type":"int","_id":"562905815cfea90d00ddc6d1","default":""}],"results":{"codes":[{"name":"","code":"{  \n  \"created_at\":\"2015-10-22T08:10:31.902-07:00\",\n  \"updated_at\":\"2015-10-22T08:10:33.128-07:00\",\n  \"review_status\":\"pending\",\n  \"review_errors\":[],\n  \"review_warnings\":[],\n  \"id\":155,\n  \"description\":\"Tennis elbow\",\n  \"claim_number\":\"0184431027\",\n  \"adj_number\":\"ADJ_42158\",\n  \"start_date\":\"2003-10-02\",\n  \"end_date\":\"2003-11-29\",\n  \"claims_administrator_id\":63,\n  \"diagnosis_codes\":[],\n  \"employer\":{  \n    \"created_at\":\"2015-10-22T08:10:32.038-07:00\",\n    \"updated_at\":\"2015-10-22T08:10:32.038-07:00\",\n    \"id\":121,\n    \"name\":\"Marquardt-Lehner Inc\",\n    \"address\":{  \n      \"created_at\":\"2015-10-22T08:10:31.988-07:00\",\n      \"updated_at\":\"2015-10-22T08:10:31.988-07:00\",\n      \"id\":227,\n      \"address_1\":\"616 Amira Shoal\",\n      \"city\":\"West Anissa\",\n      \"state\":\"CA\",\n      \"zip_code\":\"900019988\"\n    }\n  },\n  \"claims_administrator\":{  \n    \"created_at\":\"2015-10-04T06:53:28.627-07:00\",\n    \"updated_at\":\"2015-10-04T06:53:28.627-07:00\",\n    \"name\":\"Donnelly Mutual Insurance\",\n    \"id\":56\n  },\n  \"contacts\":[],\n  \"links\":[  \n    {  \n      \"rel\":\"patient\",\n      \"href\":\"/api/v1/patients/5\"\n    }\n  ]\n}","language":"json","status":200}]},"settings":"","url":"/injuries/:id","auth":"required"},"excerpt":"","githubsync":"","isReference":true,"link_url":"","type":"delete","editedParams":true,"editedParams2":true,"link_external":false,"slug":"delete-injury","version":"5621497bc412c31900ee2793","category":"56215e61c6648b1900cb156f","next":{"description":"","pages":[]},"order":4,"parentDoc":null,"project":"5621497ac412c31900ee2790","updates":[],"user":"562148f56e20d40d007310fc","body":"","hidden":false,"childrenPages":[]}

deleteDelete Injury


Path Params

id:
required
integer
ID of Injury

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"585c2d4e137fe82300ac1abb","version":"5621497bc412c31900ee2793","__v":0,"category":"56215e61c6648b1900cb156f","excerpt":"","link_url":"","sync_unique":"","title":"List Injuries for Billing Provider","updates":[],"githubsync":"","isReference":true,"order":5,"slug":"list-injuries-for-billing-provider","type":"get","hidden":false,"user":"562148f56e20d40d007310fc","api":{"auth":"required","examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/billing_providers/222/injuries\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"claim_number\": \"7654322\"\n}'"},{"language":"ruby","code":"billing_provider.injuries(claim_number: \"7654322\")"}]},"method":"get","params":[{"default":"","type":"int","name":"id","_id":"585c2d4e137fe82300ac1abf","ref":"","in":"path","required":true,"desc":"ID of Billing Provider"},{"desc":"Injury claim number - Filterable","in":"query","name":"claim_number","ref":"","required":false,"type":"string","_id":"585c2d4e137fe82300ac1abe","default":""},{"in":"query","name":"created_at","ref":"","required":false,"type":"yyyy-mm-dd","_id":"585c2d4e137fe82300ac1abd","default":"","desc":"Filterable"},{"default":"","desc":"Filterable","in":"query","name":"updated_at","ref":"","required":false,"type":"yyyy-mm-dd","_id":"585c2d4e137fe82300ac1abc"}],"results":{"codes":[{"status":200,"name":"","code":"{\n  \"injuries\": [\n    {\n      \"created_at\": \"2014-01-15T11:01:24.951-08:00\",\n      \"updated_at\": \"2014-01-27T13:33:08.809-08:00\",\n      \"review_status\": \"passed\",\n      \"review_errors\": [],\n      \"review_warnings\": [],\n      \"id\": 11785,\n      \"description\": \"Low Back\",\n      \"claim_number\": \"8069569843\",\n      \"adj_number\": \"ADJ_11785\",\n      \"start_date\": \"1997-02-05\",\n      \"claims_administrator_id\": 427,\n      \"diagnosis_codes\": [],\n      \"employer\": {\n        \"created_at\": \"2014-01-15T11:01:24.976-08:00\",\n        \"updated_at\": \"2014-01-15T11:01:24.976-08:00\",\n        \"id\": 11470,\n        \"name\": \"Russel-Bins\",\n        \"address\": {\n          \"created_at\": \"2014-01-15T11:01:24.969-08:00\",\n          \"updated_at\": \"2014-01-15T11:01:24.969-08:00\",\n          \"id\": 21062,\n          \"address_1\": \"2872 Gertrude Tunnel\",\n          \"city\": \"Pablotown\",\n          \"state\": \"CA\",\n          \"zip_code\": \"90001\"\n        }\n      },\n      \"claims_administrator\": {\n        \"created_at\": \"2012-10-23T06:53:35.166-07:00\",\n        \"updated_at\": \"2015-12-15T13:55:32.731-08:00\",\n        \"name\": \"Tower Group (AmTrust)\",\n        \"id\": 427,\n        \"description\": \"SUA Insurance, Security National Insurance\"\n      },\n      \"contacts\": [\n        {\n          \"created_at\": \"2014-01-15T11:01:24.986-08:00\",\n          \"updated_at\": \"2014-09-03T05:12:57.414-07:00\",\n          \"id\": 7030,\n          \"first_name\": \"Nolan\",\n          \"last_name\": \"Pollich\",\n          \"company\": \"Stanton-Kihn\",\n          \"telephone\": \"2131268671\",\n          \"email\": \"contact_7030@daisybill.com\",\n          \"fax\": \"2136677992\",\n          \"role\": \"Adjustor\"\n        },\n        {\n          \"created_at\": \"2014-01-15T11:01:24.996-08:00\",\n          \"updated_at\": \"2014-09-03T05:12:57.432-07:00\",\n          \"id\": 7031,\n          \"first_name\": \"Kenya\",\n          \"last_name\": \"Roob\",\n          \"company\": \"Ruecker and Sons\",\n          \"telephone\": \"2133553586\",\n          \"email\": \"contact_7031@daisybill.com\",\n          \"fax\": \"2133420474\",\n          \"role\": \"Applicant Attorney\"\n        }\n      ],\n      \"links\": [\n        {\n          \"rel\": \"patient\",\n          \"href\": \"/api/v1/patients/12010\"\n        }\n      ]\n    }\n  ]\n}","language":"json"}]},"settings":"","url":"/billing_providers/:id/injuries"},"body":"","createdAt":"2016-12-22T19:45:18.404Z","link_external":false,"next":{"description":"","pages":[]},"parentDoc":null,"project":"5621497ac412c31900ee2790","childrenPages":[]}

getList Injuries for Billing Provider


Path Params

id:
required
integer
ID of Billing Provider

Query Params

claim_number:
string
Injury claim number - Filterable
created_at:
yyyy-mm-dd
Filterable
updated_at:
yyyy-mm-dd
Filterable

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"570eb13dd6c6f00e00b9861b","link_url":"","__v":2,"body":"","category":"570eb0b2a38d470e0060c9a7","createdAt":"2016-04-13T20:51:09.909Z","editedParams2":true,"excerpt":"","order":0,"parentDoc":null,"project":"5621497ac412c31900ee2790","sync_unique":"","title":"List Payers","type":"get","version":"5621497bc412c31900ee2793","link_external":false,"api":{"results":{"codes":[{"code":"{\n  \"payers\": [\n      {\n          \"created_at\": \"2015-12-30T08:55:22.465-08:00\",\n          \"updated_at\": \"2015-12-30T08:55:22.465-08:00\",\n          \"name\": \"Hacienda Verde”,\n          \"id\": 16,\n          \"claims_administrator_id\": 1,\n          \"description\": \"Verde\",\n          \"main\": false\n      },\n      {\n          \"created_at\": \"2015-12-27T08:55:25.376-08:00\",\n          \"updated_at\": \"2015-12-27T08:55:25.376-08:00\",\n          \"name\": \"Not Listed\",\n          \"id\": 28,\n          \"claims_administrator_id\": 1,\n          \"main\": true\n      }\n  ]\n}\n","language":"json","status":200,"name":""}]},"settings":"","url":"/claims_administrators/:claims_administrator_id/payers","auth":"required","examples":{"codes":[{"name":"cURL","language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/claims_administrators/1/payers\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\""},{"code":"claims_administrator = DaisybillApi::Models::ClaimsAdministrator.all.first\npayers = claims_administrator.payers","language":"ruby"}]},"method":"get","params":[{"in":"path","required":true,"desc":"ID of Claims Administrator","default":"","type":"int","name":"claims_administrator_id","_id":"570eb13dd6c6f00e00b9861f","ref":""},{"desc":"Page offset to fetch","default":"1","type":"int","name":"page","_id":"570eb13dd6c6f00e00b9861e","ref":"","in":"query","required":false},{"_id":"570eb13dd6c6f00e00b9861d","default":"25","desc":"Number of results to return per page (max 100)","in":"query","name":"per_page","ref":"","required":false,"type":"int"},{"_id":"570eb13dd6c6f00e00b9861c","ref":"","in":"query","required":false,"desc":"Pad a number of results","default":"","type":"int","name":"offset"},{"_id":"58da9b05be929e19002a0f08","ref":"","in":"query","required":false,"desc":"Search Term (e.g. 'Pomona')","default":"","type":"string","name":"search"}]},"editedParams":true,"githubsync":"","hidden":false,"isReference":true,"updates":[],"next":{"description":"","pages":[]},"slug":"list-payers","user":"562148f56e20d40d007310fc","childrenPages":[]}

getList Payers


Path Params

claims_administrator_id:
required
integer
ID of Claims Administrator

Query Params

page:
integer1
Page offset to fetch
per_page:
integer25
Number of results to return per page (max 100)
offset:
integer
Pad a number of results
search:
string
Search Term (e.g. 'Pomona')

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"5845f1329faf12230009b09b","api":{"auth":"required","examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/payers/38\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\""},{"language":"ruby","code":"claims_administrator = DaisybillApi::Models::ClaimsAdministrator.find(2985)\npayer = claims_administrator.payers.first\nDaisybillApi::Models::Payer.find(payer.id)"}]},"method":"get","params":[{"name":"id","_id":"5845f1329faf12230009b09c","ref":"","in":"path","required":true,"desc":"ID of Payer","default":"","type":"int"}],"results":{"codes":[{"code":"{\n  \"created_at\": \"2016-04-18T11:01:15.338-07:00\",\n  \"updated_at\": \"2016-04-18T11:01:15.338-07:00\",\n  \"name\": \"ABF Freight Systems \",\n  \"id\": 38,\n  \"claims_administrator_id\": 2985,\n  \"main\": false\n}","name":"","status":200,"language":"json"}]},"settings":"","url":"/payers/:id"},"createdAt":"2016-12-05T22:58:58.658Z","excerpt":"","parentDoc":null,"slug":"get-payer","__v":0,"next":{"pages":[],"description":""},"project":"5621497ac412c31900ee2790","sync_unique":"","user":"562148f56e20d40d007310fc","version":"5621497bc412c31900ee2793","category":"570eb0b2a38d470e0060c9a7","hidden":false,"link_external":false,"order":1,"type":"get","updates":[],"githubsync":"","isReference":true,"link_url":"","title":"Get Payer","body":"","childrenPages":[]}

getGet Payer


Path Params

id:
required
integer
ID of Payer

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"56216231f4e0352100cbf288","api":{"auth":"required","examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/billing_providers/25/places_of_service\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\"","name":"cURL"},{"language":"ruby","code":"billing_provider = DaisybillApi::Models::BillingProvider.find(25)\nplaces_of_service = billing_provider.places_of_service"}]},"method":"get","params":[{"required":true,"type":"int","_id":"5627c4d166c62617009d183f","default":"","desc":"ID of Billing Provider","in":"path","name":"billing_provider_id","ref":""},{"name":"page","ref":"","required":false,"type":"int","_id":"5627e3344861511700f7a115","default":"1","desc":"Page offset to fetch","in":"query"},{"_id":"5627e3344861511700f7a114","default":"25","desc":"Number of results to return per page","in":"query","name":"per_page","ref":"","required":false,"type":"int"},{"type":"int","_id":"5627e3344861511700f7a113","default":"","desc":"Pad a number of results","in":"query","name":"offset","ref":"","required":false}],"results":{"codes":[{"language":"json","status":200,"name":"","code":"{  \n  \"places_of_service\":[  \n    {  \n      \"created_at\":\"2013-10-22T11:33:09.568-07:00\",\n      \"updated_at\":\"2014-05-01T05:41:17.605-07:00\",\n      \"id\":8,\n      \"name\":\"Purdy-Hammes\",\n      \"nick_name\":\"Purdy-Hammes\",\n      \"county\":\"Alameda\",\n      \"npi\":\"2821558504\",\n      \"active\":true,\n      \"authorization_telephone_number\":\"2132333823\",\n      \"authorization_fax_number\":\"2134334187\",\n      \"place_of_service_type_code\":\"03\",\n      \"address\":{  \n        \"created_at\":\"2013-10-22T11:33:09.558-07:00\",\n        \"updated_at\":\"2013-10-22T11:33:09.558-07:00\",\n        \"id\":27,\n        \"address_1\":\"96869 Stephany Loaf\",\n        \"city\":\"Keeleyview\",\n        \"state\":\"CA\",\n        \"zip_code\":\"900019998\"\n      },\n      \"links\":[  \n        {  \n          \"rel\":\"billing_provider\",\n          \"href\":\"/api/v1/billing_providers/25\"\n        }\n      ]\n    },\n    {  \n      \"created_at\":\"2015-10-21T10:08:19.015-07:00\",\n      \"updated_at\":\"2015-10-21T10:08:19.015-07:00\",\n      \"id\":9,\n      \"name\":\"Botsford, Hauck and McKenzie\",\n      \"nick_name\":\"Botsford, Hauck and McKenzie\",\n      \"county\":\"Inyo\",\n      \"place_of_service_type_code\":\"23\",\n      \"address\":{  \n        \"created_at\":\"2015-10-21T10:08:18.927-07:00\",\n        \"updated_at\":\"2015-10-21T10:08:18.927-07:00\",\n        \"id\":28,\n        \"address_1\":\"69793 Hill Ridge\",\n        \"city\":\"Kautzerton\",\n        \"state\":\"CA\",\n        \"zip_code\":\"900019998\"\n      },\n      \"links\":[  \n        {  \n          \"rel\":\"billing_provider\",\n          \"href\":\"/api/v1/billing_providers/25\"\n        }\n      ]\n    }\n  ]\n}"}]},"settings":"","url":"/billing_providers/:billing_provider_id/places_of_service"},"body":"","editedParams2":true,"hidden":false,"next":{"description":"","pages":[]},"order":0,"project":"5621497ac412c31900ee2790","updates":[],"category":"56215e4df4e0352100cbf27a","createdAt":"2015-10-16T20:46:41.202Z","excerpt":"","isReference":true,"sync_unique":"","user":"562148f56e20d40d007310fc","version":"5621497bc412c31900ee2793","__v":3,"parentDoc":null,"title":"List Places of Service","editedParams":true,"githubsync":"","link_external":false,"link_url":"","slug":"list-places-of-service","type":"get","childrenPages":[]}

getList Places of Service


Path Params

billing_provider_id:
required
integer
ID of Billing Provider

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":"5621623cb244890d00186991","user":"562148f56e20d40d007310fc","editedParams2":true,"hidden":false,"excerpt":"","link_external":false,"sync_unique":"","type":"get","category":"56215e4df4e0352100cbf27a","editedParams":true,"githubsync":"","isReference":true,"link_url":"","next":{"description":"","pages":[]},"order":1,"slug":"get-place-of-service","api":{"url":"/places_of_service/:id","auth":"required","examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/places_of_service/8\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\"","name":"cURL"},{"language":"ruby","code":"place_of_service = DaisybillApi::Models::PlaceOfService.find(8)"}]},"method":"get","params":[{"_id":"5627cc2166c62617009d184f","default":"","desc":"ID of Place of Service","in":"path","name":"id","ref":"","required":true,"type":"int"}],"results":{"codes":[{"status":200,"language":"json","code":"{  \n  \"created_at\":\"2013-10-22T11:33:09.568-07:00\",\n  \"updated_at\":\"2014-05-01T05:41:17.605-07:00\",\n  \"id\":8,\n  \"name\":\"Purdy-Hammes\",\n  \"nick_name\":\"Purdy-Hammes\",\n  \"county\":\"Alameda\",\n  \"npi\":\"2821558504\",\n  \"active\":true,\n  \"authorization_telephone_number\":\"2132333823\",\n  \"authorization_fax_number\":\"2134334187\",\n  \"place_of_service_type_code\":\"03\",\n  \"address\":{  \n    \"created_at\":\"2013-10-22T11:33:09.558-07:00\",\n    \"updated_at\":\"2013-10-22T11:33:09.558-07:00\",\n    \"id\":14987,\n    \"address_1\":\"96869 Stephany Loaf\",\n    \"city\":\"Keeleyview\",\n    \"state\":\"CA\",\n    \"zip_code\":\"900019998\"\n  },\n  \"links\":[  \n    {  \n      \"rel\":\"billing_provider\",\n      \"href\":\"/api/v1/billing_providers/25\"\n    }\n  ]\n}","name":""}]},"settings":""},"body":"","updates":[],"createdAt":"2015-10-16T20:46:52.996Z","parentDoc":null,"project":"5621497ac412c31900ee2790","title":"Get Place of Service","version":"5621497bc412c31900ee2793","__v":2,"childrenPages":[]}

getGet Place of Service


Path Params

id:
required
integer
ID of Place of Service

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"5621625bbc7b320d007ddcde","order":2,"parentDoc":null,"updates":["594808be99cec4000f116c17"],"version":"5621497bc412c31900ee2793","createdAt":"2015-10-16T20:47:23.262Z","editedParams":true,"hidden":false,"link_external":false,"__v":15,"category":"56215e4df4e0352100cbf27a","slug":"create-place-of-service","type":"post","link_url":"","next":{"description":"","pages":[]},"project":"5621497ac412c31900ee2790","excerpt":"","githubsync":"","isReference":true,"title":"Create Place of Service","user":"562148f56e20d40d007310fc","api":{"settings":"","url":"/billing_providers/:billing_provider_id/places_of_service","auth":"required","examples":{"codes":[{"name":"cURL","language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/billing_providers/25/places_of_service\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X POST \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"place_of_service\": {\n    \"name\": \"Murray, Pollich and Balistreri\",\n    \"nick_name\": \"MPB\",\n    \"place_of_service_type_code\": \"03\",\n    \"county\": \"Sierra\",\n    \"address_attributes\": {\n      \"address_1\": \"1 Main Street\",\n      \"city\": \"anywhere\",\n      \"zip_code\": \"12345\",\n      \"state\": \"CA\"\n    }\n  }\n}'"},{"language":"ruby","code":"address = DaisybillApi::Models::Address.new(\n  address_1: \"26643 Lakin Track\",\n  city: \"East Emmitt\",\n  state: \"CA\",\n  zip_code: \"900019998\"\n)\n\nplace_of_service = DaisybillApi::Models::PlaceOfService.create(\n  billing_provider_id: 25,\n  name: \"Murray, Pollich and Balistreri\",\n  nick_name: \"Murray, Pollich and Balistreri\",\n  place_of_service_type_code: \"03\",\n  county: \"Sierra\",\n  address: address\n)"}]},"method":"post","params":[{"type":"int","name":"billing_provider_id","_id":"5627cdfd3e0add0d00c9ed9b","ref":"","in":"path","required":true,"desc":"Billing Provider - ID","default":""},{"required":true,"desc":"Place of Service - Name","default":"","type":"string","name":"place_of_service[name]","_id":"5627d4dc44c87f0d00fe651e","ref":"","in":"body"},{"ref":"","in":"body","required":true,"desc":"Place of Service - Nick name","default":"","type":"string","name":"place_of_service[nick_name]","_id":"5627d4dc44c87f0d00fe651d"},{"in":"body","required":true,"desc":"Place of Service - Type Code","default":"","type":"string","name":"place_of_service[place_of_service_type_code]","_id":"5627da6166c62617009d186e","ref":""},{"required":false,"desc":"Place of Service - Telephone","default":"","type":"string","name":"place_of_service[telephone]","_id":"58b097492c149b0f007c983e","ref":"","in":"body"},{"type":"string","name":"place_of_service[county]","_id":"5627d4dc44c87f0d00fe651c","ref":"","in":"body","required":true,"desc":"Place of Service - County","default":""},{"required":true,"desc":"Address - Address 1","default":"","type":"string","name":"place_of_service[address_attributes][address_1]","_id":"5627d5a7e2ce610d004e3f5f","ref":"","in":"body"},{"type":"string","name":"place_of_service[address_attributes][address_2]","_id":"5627d5f43e0add0d00c9edab","ref":"","in":"body","required":false,"desc":"Address - Address 2","default":"nil"},{"required":true,"desc":"Address - City","default":"","type":"string","name":"place_of_service[address_attributes][city]","_id":"5627d5f43e0add0d00c9edaa","ref":"","in":"body"},{"type":"string","name":"place_of_service[address_attributes][state]","_id":"5627d6273e0add0d00c9edad","ref":"","in":"body","required":true,"desc":"Address - State","default":""},{"desc":"Address - Zip Code (9 digits)","default":"","type":"string","name":"place_of_service[address_attributes][zip_code]","_id":"5627d6273e0add0d00c9edac","ref":"","in":"body","required":true},{"name":"place_of_service[npi]","_id":"5627d64b44c87f0d00fe6522","ref":"","in":"body","required":false,"desc":"Place of Service - National Provider Identifier","default":"nil","type":"string"},{"type":"string","name":"place_of_service[authorization_fax_number]","_id":"5627d6e03e0add0d00c9edae","ref":"","in":"body","required":false,"desc":"Place of Service - Authorization Fax Number","default":"nil"},{"desc":"Place of Service - Authorization Telephone Number","default":"nil","type":"string","name":"place_of_service[authorization_telephone_number]","_id":"5627d6fb3e0add0d00c9edaf","ref":"","in":"body","required":false},{"name":"place_of_service[active]","_id":"5627d70c80c9910d00134fda","ref":"","in":"body","required":false,"desc":"Place of Service - Active","default":"nil","type":"boolean"}],"results":{"codes":[{"status":201,"language":"json","code":"{  \n  \"created_at\":\"2015-10-21T11:35:07.977-07:00\",\n  \"updated_at\":\"2015-10-21T11:35:07.977-07:00\",\n  \"id\":29,\n  \"name\":\"Murray, Pollich and Balistreri\",\n  \"nick_name\":\"Murray, Pollich and Balistreri\",\n  \"county\":\"Sierra\",\n  \"place_of_service_type_code\":\"03\",\n  \"address\":{  \n    \"created_at\":\"2015-10-21T11:35:07.940-07:00\",\n    \"updated_at\":\"2015-10-21T11:35:07.940-07:00\",\n    \"id\":110,\n    \"address_1\":\"26643 Lakin Track\",\n    \"city\":\"East Emmitt\",\n    \"state\":\"CA\",\n    \"zip_code\":\"900019998\"\n  },\n  \"links\":[  \n    {  \n      \"rel\":\"billing_provider\",\n      \"href\":\"/api/v1/billing_providers/25\"\n    }\n  ]\n}","name":null}]}},"body":"[block:callout]\n{\n  \"type\": \"info\",\n  \"body\": \"Creating a `PlaceOfService` requires assigning a valid `Address` instance to the `address` attribute of the `PlaceOfService`. Note that `Address` objects can only be persisted and retrieved in the context of their parent.\",\n  \"title\": \"Using Addresses with Places of Service\"\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Valid Place of Service Type Codes\",\n  \"body\": \"Ensure that the `place_of_service_type_code` you are using is valid. A list of valid codes can be found here:\"\n}\n[/block]\nUse 9 digits zip codes","editedParams2":true,"sync_unique":"","childrenPages":[]}

postCreate Place of Service


Path Params

billing_provider_id:
required
integer
Billing Provider - ID

Body Params

place_of_service[name]:
required
string
Place of Service - Name
place_of_service[nick_name]:
required
string
Place of Service - Nick name
place_of_service[place_of_service_type_code]:
required
string
Place of Service - Type Code
place_of_service[telephone]:
string
Place of Service - Telephone
place_of_service[county]:
required
string
Place of Service - County
place_of_service[address_attributes][address_1]:
required
string
Address - Address 1
place_of_service[address_attributes][address_2]:
stringnil
Address - Address 2
place_of_service[address_attributes][city]:
required
string
Address - City
place_of_service[address_attributes][state]:
required
string
Address - State
place_of_service[address_attributes][zip_code]:
required
string
Address - Zip Code (9 digits)
place_of_service[npi]:
stringnil
Place of Service - National Provider Identifier
place_of_service[authorization_fax_number]:
stringnil
Place of Service - Authorization Fax Number
place_of_service[authorization_telephone_number]:
stringnil
Place of Service - Authorization Telephone Number
place_of_service[active]:
booleannil
Place of Service - Active
[block:callout] { "type": "info", "body": "Creating a `PlaceOfService` requires assigning a valid `Address` instance to the `address` attribute of the `PlaceOfService`. Note that `Address` objects can only be persisted and retrieved in the context of their parent.", "title": "Using Addresses with Places of Service" } [/block] [block:callout] { "type": "info", "title": "Valid Place of Service Type Codes", "body": "Ensure that the `place_of_service_type_code` you are using is valid. A list of valid codes can be found here:" } [/block] Use 9 digits zip codes

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



[block:callout] { "type": "info", "body": "Creating a `PlaceOfService` requires assigning a valid `Address` instance to the `address` attribute of the `PlaceOfService`. Note that `Address` objects can only be persisted and retrieved in the context of their parent.", "title": "Using Addresses with Places of Service" } [/block] [block:callout] { "type": "info", "title": "Valid Place of Service Type Codes", "body": "Ensure that the `place_of_service_type_code` you are using is valid. A list of valid codes can be found here:" } [/block] Use 9 digits zip codes
{"_id":"5621628af761a4170068ecef","next":{"description":"","pages":[]},"__v":10,"editedParams":true,"editedParams2":true,"excerpt":"","hidden":false,"link_url":"","category":"56215e4df4e0352100cbf27a","link_external":false,"title":"Update Place of Service","type":"patch","user":"562148f56e20d40d007310fc","api":{"url":"/places_of_service/:id","auth":"required","examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/places_of_service/29\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X PATCH \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"place_of_service\": {\n    \"zip_code\": \"54321\"\n  }\n}'","name":"cURL"},{"code":"place_of_service = DaisybillApi::Models::PlaceOfService.find(29)\nplace_of_service.address.city = \"Adelanto\"\nplace_of_service.save","language":"ruby"}]},"method":"patch","params":[{"type":"int","name":"id","_id":"5627dc9d0653060d00a2f6c0","ref":"","in":"path","required":true,"desc":"ID of Place of Service","default":""},{"desc":"Place of Service - Name","default":"","type":"string","name":"place_of_service[name]","_id":"5627dcd666c62617009d1879","ref":"","in":"body","required":false},{"name":"place_of_service[nick_name]","_id":"5627dcd666c62617009d1878","ref":"","in":"body","required":false,"desc":"Place of Service - Nick name","default":"","type":"string"},{"type":"string","name":"place_of_service[place_of_service_type_code]","_id":"5627dd940653060d00a2f6c7","ref":"","in":"body","required":false,"desc":"Place of Service - Type Code","default":""},{"required":false,"desc":"Place of Service - County","default":"","type":"string","name":"place_of_service[county]","_id":"5627dd940653060d00a2f6c6","ref":"","in":"body"},{"type":"string","name":"place_of_service[telephone]","_id":"58b0977c2c149b0f007c9840","ref":"","in":"body","required":false,"desc":"Place of Service - Telephone","default":""},{"required":false,"desc":"Address - Address 1","default":"","type":"string","name":"place_of_service[address_attributes][address_1]","_id":"5627dd940653060d00a2f6c5","ref":"","in":"body"},{"ref":"","in":"body","required":false,"desc":"Address - Address 2","default":"","type":"string","name":"place_of_service[address_attributes][address_2]","_id":"5627dd940653060d00a2f6c4"},{"default":"","type":"string","name":"place_of_service[address_attributes][city]","_id":"5627dd940653060d00a2f6c3","ref":"","in":"body","required":false,"desc":"Address - City"},{"in":"body","required":false,"desc":"Address - State","default":"","type":"string","name":"place_of_service[address_attributes][state]","_id":"5627dd940653060d00a2f6c2","ref":""},{"desc":"Address - Zip Code","default":"","type":"string","name":"place_of_service[address_attributes][zip_code]","_id":"5627dd940653060d00a2f6c1","ref":"","in":"body","required":false},{"name":"place_of_service[npi]","_id":"5627de073e0add0d00c9edbf","ref":"","in":"body","required":false,"desc":"Place of Service - National Provider Identifier","default":"","type":"string"},{"type":"string","name":"place_of_service[authorization_fax_number]","_id":"5627de073e0add0d00c9edbe","ref":"","in":"body","required":false,"desc":"Place of Service - Authorization Fax Number","default":""},{"desc":"Place of Service - Authorization Telephone Number","default":"","type":"string","name":"place_of_service[authorization_telephone_number]","_id":"5627de073e0add0d00c9edbd","ref":"","in":"body","required":false},{"name":"place_of_service[active]","_id":"5627de073e0add0d00c9edbc","ref":"","in":"body","required":false,"desc":"Place of Service - Active","default":"","type":"boolean"}],"results":{"codes":[{"name":"","code":"{  \n  \"created_at\":\"2015-10-21T11:00:43.620-07:00\",\n  \"updated_at\":\"2015-10-21T11:00:43.620-07:00\",\n  \"id\":29,\n  \"name\":\"Murray, Pollich and Balistreri\",\n  \"nick_name\":\"Murray, Pollich and Balistreri\",\n  \"county\":\"San Bernardino\",\n  \"place_of_service_type_code\":\"03\",\n  \"address\":{  \n    \"created_at\":\"2015-10-21T11:00:43.573-07:00\",\n    \"updated_at\":\"2015-10-21T11:45:42.551-07:00\",\n    \"id\":110,\n    \"address_1\":\"26643 Lakin Track\",\n    \"city\":\"Adelanto\",\n    \"state\":\"CA\",\n    \"zip_code\":\"900019998\"\n  },\n  \"links\":[  \n    {  \n      \"rel\":\"billing_provider\",\n      \"href\":\"/api/v1/billing_providers/25\"\n    }\n  ]\n}","language":"json","status":200}]},"settings":""},"createdAt":"2015-10-16T20:48:10.301Z","githubsync":"","isReference":true,"order":3,"updates":[],"version":"5621497bc412c31900ee2793","body":"","parentDoc":null,"project":"5621497ac412c31900ee2790","slug":"update-place-of-service","sync_unique":"","childrenPages":[]}

patchUpdate Place of Service


Path Params

id:
required
integer
ID of Place of Service

Body Params

place_of_service[name]:
string
Place of Service - Name
place_of_service[nick_name]:
string
Place of Service - Nick name
place_of_service[place_of_service_type_code]:
string
Place of Service - Type Code
place_of_service[county]:
string
Place of Service - County
place_of_service[telephone]:
string
Place of Service - Telephone
place_of_service[address_attributes][address_1]:
string
Address - Address 1
place_of_service[address_attributes][address_2]:
string
Address - Address 2
place_of_service[address_attributes][city]:
string
Address - City
place_of_service[address_attributes][state]:
string
Address - State
place_of_service[address_attributes][zip_code]:
string
Address - Zip Code
place_of_service[npi]:
string
Place of Service - National Provider Identifier
place_of_service[authorization_fax_number]:
string
Place of Service - Authorization Fax Number
place_of_service[authorization_telephone_number]:
string
Place of Service - Authorization Telephone Number
place_of_service[active]:
boolean
Place of Service - Active

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"56216179bc7b320d007ddcd9","api":{"url":"/billing_providers/:billing_provider_id/rendering_providers","auth":"required","examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/billing_providers/18/rendering_providers\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\"","name":"cURL"},{"code":"billing_provider = DaisybillApi::Models::BillingProvider.find(18)\nrendering_providers = billing_provider.rendering_providers","language":"ruby"}]},"method":"get","params":[{"desc":"ID of Billing Provider","in":"path","name":"billing_provider_id","ref":"","required":true,"type":"int","_id":"56267c099b9e180d0068d914","default":""},{"in":"query","name":"page","ref":"","required":false,"type":"int","_id":"56267c099b9e180d0068d913","default":"1","desc":"Page offset to fetch"},{"required":false,"type":"int","_id":"56267c099b9e180d0068d912","default":"25","desc":"Number of results to return per page","in":"query","name":"per_page","ref":""},{"name":"offset","ref":"","required":false,"type":"int","_id":"56267c099b9e180d0068d911","default":"","desc":"Pad a number of results","in":"query"}],"results":{"codes":[{"language":"json","code":"{  \n  \"rendering_providers\":[  \n    {  \n      \"created_at\":\"2015-10-01T14:08:40.807-07:00\",\n      \"updated_at\":\"2015-10-01T14:08:40.807-07:00\",\n      \"id\":42,\n      \"first_name\":\"Irene\",\n      \"last_name\":\"Glover\",\n      \"npi\":\"9832767367\",\n      \"state_license_number\":\"333400\",\n      \"taxonomy_code\":\"2086S0105X\",\n      \"type_of_specialty\":\"Physician\",\n      \"active\":true,\n      \"links\":[  \n        {  \n          \"rel\":\"billing_provider\",\n          \"href\":\"/api/v1/billing_providers/18\"\n        }\n      ]\n    },\n    {  \n      \"created_at\":\"2015-10-01T14:09:50.488-07:00\",\n      \"updated_at\":\"2015-11-14T17:40:30.725-08:00\",\n      \"id\":45,\n      \"first_name\":\"Milton\",\n      \"last_name\":\"Moore\",\n      \"npi\":\"6568431498\",\n      \"state_license_number\":\"890241\",\n      \"taxonomy_code\":\"2086S0105X\",\n      \"type_of_specialty\":\"Physician\",\n      \"active\":true,\n      \"links\":[  \n        {  \n          \"rel\":\"billing_provider\",\n          \"href\":\"/api/v1/billing_providers/18\"\n        }\n      ]\n    },\n    {  \n      \"created_at\":\"2015-10-01T14:07:58.879-07:00\",\n      \"updated_at\":\"2015-08-12T07:02:32.247-07:00\",\n      \"id\":46,\n      \"first_name\":\"Afton\",\n      \"last_name\":\"Reinger\",\n      \"npi\":\"1328134138\",\n      \"state_license_number\":\"468363\",\n      \"taxonomy_code\":\"2086S0105X\",\n      \"type_of_specialty\":\"Physician\",\n      \"active\":true,\n      \"links\":[  \n        {  \n          \"rel\":\"billing_provider\",\n          \"href\":\"/api/v1/billing_providers/18\"\n        }\n      ]\n    }\n  ]\n}","name":"","status":200}]},"settings":""},"editedParams":true,"project":"5621497ac412c31900ee2790","slug":"list-rendering-providers","version":"5621497bc412c31900ee2793","body":"","excerpt":"Returns list of rendering providers","hidden":false,"order":0,"sync_unique":"","updates":[],"user":"562148f56e20d40d007310fc","category":"56215e40c6648b1900cb156e","createdAt":"2015-10-16T20:43:37.300Z","githubsync":"","next":{"description":"","pages":[]},"parentDoc":null,"type":"get","__v":4,"editedParams2":true,"isReference":true,"link_external":false,"link_url":"","title":"List Rendering Providers","childrenPages":[]}

getList Rendering Providers

Returns list of rendering providers

Path Params

billing_provider_id:
required
integer
ID of Billing Provider

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":"56216188c412c31900ee27be","type":"get","updates":[],"githubsync":"","isReference":true,"order":1,"parentDoc":null,"sync_unique":"","version":"5621497bc412c31900ee2793","api":{"results":{"codes":[{"status":200,"language":"json","code":"{  \n  \"created_at\":\"2015-10-01T14:08:40.807-07:00\",\n  \"updated_at\":\"2015-10-01T14:08:40.807-07:00\",\n  \"id\":5,\n  \"first_name\":\"Prudence\",\n  \"last_name\":\"Kling\",\n  \"npi\":\"9024532260\",\n  \"state_license_number\":\"363423\",\n  \"taxonomy_code\":\"2096S0125X\",\n  \"type_of_specialty\":\"Physician\",\n  \"active\":true,\n  \"links\":[  \n    {  \n      \"rel\":\"billing_provider\",\n      \"href\":\"/api/v1/billing_providers/16\"\n    }\n  ]\n}","name":""}]},"settings":"","url":"/rendering_providers/:id","auth":"required","examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/rendering_providers/5\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\"","name":null},{"code":"rendering_provider = DaisybillApi::Models::RenderingProvider.find(5)","language":"ruby"}]},"method":"get","params":[{"desc":"ID of Rendering Provider","in":"path","name":"id","ref":"","required":true,"type":"int","_id":"562680c2db1eda0d001c3dc9","default":""}]},"hidden":false,"next":{"description":"","pages":[]},"slug":"get-rendering-provider","excerpt":"","link_external":false,"__v":2,"body":"","category":"56215e40c6648b1900cb156e","createdAt":"2015-10-16T20:43:52.061Z","editedParams":true,"editedParams2":true,"link_url":"","project":"5621497ac412c31900ee2790","title":"Get Rendering Provider","user":"562148f56e20d40d007310fc","childrenPages":[]}

getGet Rendering Provider


Path Params

id:
required
integer
ID of Rendering Provider

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"562161d8f4e0352100cbf284","category":"56215e40c6648b1900cb156e","editedParams":true,"hidden":false,"link_url":"","next":{"description":"","pages":[]},"slug":"create-rendering-provider","createdAt":"2015-10-16T20:45:12.533Z","isReference":true,"sync_unique":"","title":"Create Rendering Provider","api":{"auth":"required","examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/billing_providers/14/rendering_providers\\?api_token\\=abcdefghijklmnopqrstuvwxyz123456 \\\n  -H \"Content-Type: application/json\" \\\n  -X POST \\\n  -d '{\n        \"rendering_provider\": {\n          \"first_name\":\"Cecile\",\n          \"last_name\":\"Romaguera\",\n          \"npi\":\"3545151626\",\n          \"state_license_number\":\"251229\",\n          \"taxonomy_code\":\"2086S0105X\",\n          \"type_of_specialty\":\"Physician\"\n        }\n      }'","name":"cURL"},{"language":"ruby","name":"Ruby","code":"rendering_provider = DaisybillApi::Models::RenderingProvider.create(\n  billing_provider_id: 25,\n  first_name: \"Cecile\",\n  last_name: \"Romaguera\",\n  npi: \"3545151626\",\n  state_license_number: \"251229\",\n  taxonomy_code: \"2086S0105X\",\n  type_of_specialty: \"Physician\"\n)"}]},"method":"post","params":[{"_id":"562686eac2d64b0d002ece5b","ref":"","in":"path","required":true,"desc":"ID of Billing Provider","default":"","type":"int","name":"billing_provider_id"},{"_id":"5a8de8b29369e3007ae1276e","ref":"","in":"body","required":false,"desc":"","default":"Person","type":"string","name":"rendering_provider[type]"},{"_id":"562686eac2d64b0d002ece5a","ref":"","in":"body","required":true,"desc":"First name of Rendering Provider","default":"","type":"string","name":"rendering_provider[first_name]"},{"_id":"562686eac2d64b0d002ece59","ref":"","in":"body","required":true,"desc":"Last name of Rendering Provider","default":"","type":"string","name":"rendering_provider[last_name]"},{"_id":"5a8de8b29369e3007ae1276d","ref":"","in":"body","required":false,"desc":"Entity name of Rendering Provider","default":"","type":"string","name":"rendering_provider[entity_name]"},{"_id":"562686eac2d64b0d002ece58","ref":"","in":"body","required":true,"desc":"National Provider Identifier","default":"","type":"string","name":"rendering_provider[npi]"},{"_id":"562686eac2d64b0d002ece57","ref":"","in":"body","required":true,"desc":"State License Number","default":"","type":"string","name":"rendering_provider[state_license_number]"},{"_id":"562686eac2d64b0d002ece56","ref":"","in":"body","required":true,"desc":"Taxonomy Code","default":"","type":"string","name":"rendering_provider[taxonomy_code]"},{"_id":"562686eac2d64b0d002ece55","ref":"","in":"body","required":true,"desc":"`Physician`, `Non-Physician Practitioner`, or `Clinical Social Worker`","default":"","type":"string","name":"rendering_provider[type_of_specialty]"},{"_id":"56269228ad42230d00c3ea53","ref":"","in":"body","required":false,"desc":"Active","default":"nil","type":"boolean","name":"rendering_provider[active]"}],"results":{"codes":[{"language":"json","code":"{  \n  \"created_at\":\"2015-10-20T14:13:25.854-07:00\",\n  \"updated_at\":\"2015-10-20T14:13:25.854-07:00\",\n  \"id\":82,\n  \"first_name\":\"Cecile\",\n  \"last_name\":\"Romaguera\",\n  \"npi\":\"3545151626\",\n  \"state_license_number\":\"251229\",\n  \"taxonomy_code\":\"2086S0105X\",\n  \"type_of_specialty\":\"Physician\",\n  \"active\":true,\n  \"links\":[  \n    {  \n      \"rel\":\"billing_provider\",\n      \"href\":\"/api/v1/billing_providers/25\"\n    }\n  ]\n}","name":"","status":201}]},"settings":"","url":"/billing_providers/:billing_provider_id/rendering_providers"},"body":"If the Rendering Provider is not a person (e.g., lab), then `entity_name` should be used and type should be \"NonPerson\".","editedParams2":true,"excerpt":"","link_external":false,"parentDoc":null,"updates":[],"user":"562148f56e20d40d007310fc","version":"5621497bc412c31900ee2793","__v":5,"githubsync":"","order":2,"project":"5621497ac412c31900ee2790","type":"post","childrenPages":[]}

postCreate Rendering Provider


Path Params

billing_provider_id:
required
integer
ID of Billing Provider

Body Params

rendering_provider[type]:
stringPerson
rendering_provider[first_name]:
required
string
First name of Rendering Provider
rendering_provider[last_name]:
required
string
Last name of Rendering Provider
rendering_provider[entity_name]:
string
Entity name of Rendering Provider
rendering_provider[npi]:
required
string
National Provider Identifier
rendering_provider[state_license_number]:
required
string
State License Number
rendering_provider[taxonomy_code]:
required
string
Taxonomy Code
rendering_provider[type_of_specialty]:
required
string
`Physician`, `Non-Physician Practitioner`, or `Clinical Social Worker`
rendering_provider[active]:
booleannil
Active
If the Rendering Provider is not a person (e.g., lab), then `entity_name` should be used and type should be "NonPerson".

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



If the Rendering Provider is not a person (e.g., lab), then `entity_name` should be used and type should be "NonPerson".
{"_id":"562161e7bc7b320d007ddcdb","excerpt":"","order":3,"project":"5621497ac412c31900ee2790","sync_unique":"","title":"Update Rendering Provider","api":{"settings":"","url":"/rendering_providers/:id","auth":"required","examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/rendering_providers/31\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X PATCH \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"rendering_provider\": {\n    \"last_name\": \"Strangelove\"\n  }\n}'","name":"cURL"},{"language":"ruby","code":"rendering_provider = DaisybillApi::Models::RenderingProvider.find(31)\nrendering_provider.taxonomy_code = \"390200000X\"\nrendering_provider.save"}]},"method":"patch","params":[{"type":"int","_id":"5626a59f3a4c6b0d00c4544d","default":"","desc":"ID of Rendering Provider","in":"path","name":"id","ref":"","required":true},{"required":false,"type":"string","_id":"5626a7cffcbbc621004ebee9","default":"","desc":"First name of Rendering Provider","in":"body","name":"rendering_provider[first_name]","ref":""},{"name":"rendering_provider[last_name]","ref":"","required":false,"type":"string","_id":"5626a7cffcbbc621004ebee8","default":"","desc":"Last name of Rendering Provider","in":"body"},{"type":"string","_id":"5626a7cffcbbc621004ebee7","default":"","desc":"National Provider Number","in":"body","name":"rendering_provider[npi]","ref":"","required":false},{"default":"","desc":"State License Number","in":"body","name":"rendering_provider[state_license_number]","ref":"","required":false,"type":"string","_id":"5626a7cffcbbc621004ebee6"},{"desc":"Taxonomy Code","in":"body","name":"rendering_provider[taxonomy_code]","ref":"","required":false,"type":"string","_id":"5626a7cffcbbc621004ebee5","default":""},{"name":"rendering_provider[type_of_specialty]","ref":"","required":false,"type":"string","_id":"5626a7cffcbbc621004ebee4","default":"","desc":"`Physician`, `Non-Physician Practitioner`, or `Clinical Social Worker`","in":"body"},{"_id":"5626a7cffcbbc621004ebee3","default":"","desc":"","in":"body","name":"rendering_provider[active]","ref":"","required":false,"type":"boolean"}],"results":{"codes":[{"name":null,"code":"{  \n  \"created_at\":\"2015-10-21T06:51:56.605-07:00\",\n  \"updated_at\":\"2015-10-21T07:56:24.191-07:00\",\n  \"id\":31,\n  \"first_name\":\"Domingo\",\n  \"last_name\":\"Douglas\",\n  \"npi\":\"3545151627\",\n  \"state_license_number\":\"251227\",\n  \"taxonomy_code\":\"390200000X\",\n  \"type_of_specialty\":\"Physician\",\n  \"active\":true,\n  \"links\":[  \n    {  \n      \"rel\":\"billing_provider\",\n      \"href\":\"/api/v1/billing_providers/25\"\n    }\n  ]\n}","language":"json","status":200}]}},"editedParams":true,"version":"5621497bc412c31900ee2793","type":"patch","updates":[],"category":"56215e40c6648b1900cb156e","editedParams2":true,"githubsync":"","parentDoc":null,"slug":"update-rendering-provider","user":"562148f56e20d40d007310fc","createdAt":"2015-10-16T20:45:27.015Z","hidden":false,"isReference":true,"link_url":"","next":{"description":"","pages":[]},"__v":4,"body":"","link_external":false,"childrenPages":[]}

patchUpdate Rendering Provider


Path Params

id:
required
integer
ID of Rendering Provider

Body Params

rendering_provider[first_name]:
string
First name of Rendering Provider
rendering_provider[last_name]:
string
Last name of Rendering Provider
rendering_provider[npi]:
string
National Provider Number
rendering_provider[state_license_number]:
string
State License Number
rendering_provider[taxonomy_code]:
string
Taxonomy Code
rendering_provider[type_of_specialty]:
string
`Physician`, `Non-Physician Practitioner`, or `Clinical Social Worker`
rendering_provider[active]:
boolean

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"56216202c6648b1900cb157d","next":{"description":"","pages":[]},"project":"5621497ac412c31900ee2790","updates":[],"__v":3,"editedParams":true,"excerpt":"","githubsync":"","hidden":false,"user":"562148f56e20d40d007310fc","version":"5621497bc412c31900ee2793","createdAt":"2015-10-16T20:45:54.216Z","editedParams2":true,"link_url":"","title":"List Referring Providers","type":"get","link_external":false,"parentDoc":null,"slug":"list-referring-providers","sync_unique":"","api":{"method":"get","params":[{"name":"billing_provider_id","ref":"","required":true,"type":"int","_id":"56279cfd44c87f0d00fe64bd","default":"","desc":"ID of Billing Provider","in":"path"},{"_id":"5627e2eb5cfea90d00ddc540","default":"1","desc":"Page offset to fetch","in":"query","name":"page","ref":"","required":false,"type":"int"},{"_id":"5627e2eb5cfea90d00ddc53f","default":"25","desc":"Number of results to return per page","in":"query","name":"per_page","ref":"","required":false,"type":"int"},{"type":"int","_id":"5627e2eb5cfea90d00ddc53e","default":"","desc":"Pad a number of results","in":"query","name":"offset","ref":"","required":false}],"results":{"codes":[{"name":"","code":"{  \n  \"referring_providers\":[  \n    {  \n      \"created_at\":\"2015-10-21T07:21:35.496-07:00\",\n      \"updated_at\":\"2015-10-21T07:21:35.496-07:00\",\n      \"id\":31,\n      \"first_name\":\"Monica\",\n      \"last_name\":\"Hernandez\",\n      \"npi\":\"3545151626\",\n      \"state_license_number\":\"826296\",\n      \"links\":[  \n        {  \n          \"rel\":\"billing_provider\",\n          \"href\":\"/api/v1/billing_providers/25\"\n        }\n      ]\n    },\n    {  \n      \"created_at\":\"2015-10-21T08:04:53.225-07:00\",\n      \"updated_at\":\"2015-10-21T08:04:53.225-07:00\",\n      \"id\":32,\n      \"first_name\":\"Ronald\",\n      \"last_name\":\"Casper\",\n      \"npi\":\"1160182623\",\n      \"links\":[  \n        {  \n          \"rel\":\"billing_provider\",\n          \"href\":\"/api/v1/billing_providers/25\"\n        }\n      ]\n    }\n  ]\n}","language":"json","status":200}]},"settings":"","url":"/billing_providers/:billing_provider_id/referring_providers","auth":"required","examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/billing_providers/25/referring_providers\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\"","name":"cURL"},{"language":"ruby","code":"billing_provider = DaisybillApi::Models::BillingProvider.find(25)\nreferring_providers = billing_provider.referring_providers"}]}},"body":"","category":"56215e47f4e0352100cbf279","isReference":true,"order":0,"childrenPages":[]}

getList Referring Providers


Path Params

billing_provider_id:
required
integer
ID of Billing Provider

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":"5621620a6e20d40d00731121","api":{"auth":"required","examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/referring_providers/21\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\"","name":"cURL"},{"language":"ruby","code":"referring_provider = DaisybillApi::Models::ReferringProvider.find(21)"}]},"method":"get","params":[{"name":"id","ref":"","required":true,"type":"int","_id":"5627aa9e3a4c6b0d00c455ba","default":"","desc":"ID of Referring Provider","in":"path"}],"results":{"codes":[{"code":"{  \n  \"created_at\":\"2015-10-21T08:04:53.225-07:00\",\n  \"updated_at\":\"2015-10-21T08:04:53.225-07:00\",\n  \"id\":21,\n  \"first_name\":\"Alvah\",\n  \"last_name\":\"Weissnat\",\n  \"npi\":\"6617376688\",\n  \"links\":[  \n    {  \n      \"rel\":\"billing_provider\",\n      \"href\":\"/api/v1/billing_providers/25\"\n    }\n  ]\n}","language":"json","status":200,"name":""}]},"settings":"","url":"/referring_providers/:id"},"category":"56215e47f4e0352100cbf279","editedParams":true,"link_external":false,"version":"5621497bc412c31900ee2793","type":"get","updates":[],"__v":4,"createdAt":"2015-10-16T20:46:02.488Z","editedParams2":true,"githubsync":"","link_url":"","title":"Get Referring Provider","slug":"get-referring-provider","sync_unique":"","body":"","excerpt":"","next":{"description":"","pages":[]},"order":1,"parentDoc":null,"project":"5621497ac412c31900ee2790","user":"562148f56e20d40d007310fc","hidden":false,"isReference":true,"childrenPages":[]}

getGet Referring Provider


Path Params

id:
required
integer
ID of Referring Provider

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"56216216f761a4170068eced","editedParams":true,"hidden":false,"parentDoc":null,"slug":"create-referring-provider","user":"562148f56e20d40d007310fc","version":"5621497bc412c31900ee2793","category":"56215e47f4e0352100cbf279","createdAt":"2015-10-16T20:46:14.822Z","excerpt":"","isReference":true,"link_url":"","sync_unique":"","title":"Create Referring Provider","__v":6,"type":"post","githubsync":"","link_external":false,"updates":[],"editedParams2":true,"body":"","next":{"description":"","pages":[]},"order":2,"project":"5621497ac412c31900ee2790","api":{"auth":"required","examples":{"codes":[{"code":"curl \\\n  https://go.daisybill.com/api/v1/billing_providers/25/referring_providers\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X POST \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"referring_provider\": {\n    \"first_name\": \"John\",\n    \"last_name\": \"Smith\",\n    \"middle_initial\": \"D\",\n    \"npi\": \"1234567890\",\n    \"state_license_number\": \"1234567ABC\"\n  }\n}'","language":"curl","name":"cURL"},{"code":"referring_provider = DaisybillApi::Models::ReferringProvider.create(\n  billing_provider_id: 25,\n  first_name: \"Lindsey\",\n  last_name: \"Nienow\",\n  npi: \"1747327641\"\n)","language":"ruby"}]},"method":"post","params":[{"in":"path","name":"billing_provider_id","ref":"","required":true,"type":"int","_id":"5627ac5d22ef6a2100fb34f0","default":"","desc":"ID of Billing Provider"},{"required":true,"type":"string","_id":"5627ac5d22ef6a2100fb34ef","default":"","desc":"First name of Referring Provider","in":"body","name":"referring_provider[first_name]","ref":""},{"in":"body","name":"referring_provider[last_name]","ref":"","required":true,"type":"string","_id":"5627ac5d22ef6a2100fb34ee","default":"","desc":"Last name of Referring Provider"},{"default":"","desc":"National Provider Number","in":"body","name":"referring_provider[npi]","ref":"","required":true,"type":"string","_id":"5627ac91fcbbc621004ec050"},{"ref":"","required":false,"type":"string","_id":"5627ac91fcbbc621004ec04f","default":"nil","desc":"State License Number","in":"body","name":"referring_provider[state_license_number]"},{"ref":"","required":false,"type":"string","_id":"5627ad523e0add0d00c9ed58","default":"nil","desc":"Middle Initial of Referring Provider","in":"body","name":"referring_provider[middle_initial]"},{"desc":"Suffix of Referring Provider","in":"body","name":"referring_provider[suffix]","ref":"","required":false,"type":"string","_id":"5627ad523e0add0d00c9ed57","default":"nil"},{"name":"referring_provider[active]","ref":"","required":false,"type":"boolean","_id":"5627ad523e0add0d00c9ed56","default":"nil","desc":"Active","in":"body"}],"results":{"codes":[{"status":201,"language":"json","code":"{  \n  \"created_at\":\"2015-10-21T08:25:18.955-07:00\",\n  \"updated_at\":\"2015-10-21T08:25:18.955-07:00\",\n  \"id\":72,\n  \"first_name\":\"Lindsey\",\n  \"last_name\":\"Nienow\",\n  \"npi\":\"1747327641\",\n  \"links\":[  \n    {  \n      \"rel\":\"billing_provider\",\n      \"href\":\"/api/v1/billing_providers/25\"\n    }\n  ]\n}","name":""}]},"settings":"","url":"/billing_providers/:billing_provider_id/referring_providers"},"childrenPages":[]}

postCreate Referring Provider


Path Params

billing_provider_id:
required
integer
ID of Billing Provider

Body Params

referring_provider[first_name]:
required
string
First name of Referring Provider
referring_provider[last_name]:
required
string
Last name of Referring Provider
referring_provider[npi]:
required
string
National Provider Number
referring_provider[state_license_number]:
stringnil
State License Number
referring_provider[middle_initial]:
stringnil
Middle Initial of Referring Provider
referring_provider[suffix]:
stringnil
Suffix of Referring Provider
referring_provider[active]:
booleannil
Active

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"562162226e20d40d00731123","createdAt":"2015-10-16T20:46:26.685Z","isReference":true,"type":"patch","updates":[],"slug":"update-referring-provider","__v":4,"category":"56215e47f4e0352100cbf279","excerpt":"","hidden":false,"parentDoc":null,"project":"5621497ac412c31900ee2790","title":"Update Referring Provider","user":"562148f56e20d40d007310fc","body":"","link_url":"","sync_unique":"","api":{"params":[{"required":true,"type":"int","_id":"5627aeb53a4c6b0d00c455bb","default":"","desc":"ID of Referring Provider","in":"path","name":"id","ref":""},{"name":"referring_provider[first_name]","ref":"","required":false,"type":"string","_id":"5627b343e2ce610d004e3f2b","default":"","desc":"First name of Referring Provider","in":"body"},{"type":"string","_id":"5627b343e2ce610d004e3f2a","default":"","desc":"Last name of Referring Provider","in":"body","name":"referring_provider[last_name]","ref":"","required":false},{"default":"","desc":"National Provider Number","in":"body","name":"referring_provider[npi]","ref":"","required":false,"type":"string","_id":"5627b343e2ce610d004e3f29"},{"ref":"","required":false,"type":"string","_id":"5627b343e2ce610d004e3f28","default":"","desc":"State License Number","in":"body","name":"referring_provider[state_license_number]"},{"desc":"Middle Initial of Referring Provider","in":"body","name":"referring_provider[middle_initial]","ref":"","required":false,"type":"string","_id":"5627b343e2ce610d004e3f27","default":""},{"in":"body","name":"referring_provider[suffix]","ref":"","required":false,"type":"string","_id":"5627b343e2ce610d004e3f26","default":"","desc":"Suffix of Referring Provider"},{"default":"","desc":"Active","in":"body","name":"referring_provider[active]","ref":"","required":false,"type":"boolean","_id":"5627b343e2ce610d004e3f25"}],"results":{"codes":[{"status":200,"language":"json","code":"{  \n  \"created_at\":\"2015-10-21T08:25:18.955-07:00\",\n  \"updated_at\":\"2015-10-21T09:19:17.503-07:00\",\n  \"id\":38,\n  \"first_name\":\"Lindsey\",\n  \"last_name\":\"Nienow\",\n  \"npi\":\"5523818925\",\n  \"links\":[  \n    {  \n      \"rel\":\"billing_provider\",\n      \"href\":\"/api/v1/billing_providers/25\"\n    }\n  ]\n}","name":""}]},"settings":"","url":"/referring_providers/:id","auth":"required","examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/referring_providers/38\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X PATCH \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"referring_provider\": {\n    \"last_name\": \"Garcia\"\n  }\n}'","name":"cURL"},{"code":"referring_provider = DaisybillApi::Models::ReferringProvider.find(38)\nreferring_provider.npi = \"5523818925\"\nreferring_provider.save","language":"ruby"}]},"method":"patch"},"editedParams":true,"editedParams2":true,"githubsync":"","link_external":false,"next":{"description":"","pages":[]},"order":3,"version":"5621497bc412c31900ee2793","childrenPages":[]}

patchUpdate Referring Provider


Path Params

id:
required
integer
ID of Referring Provider

Body Params

referring_provider[first_name]:
string
First name of Referring Provider
referring_provider[last_name]:
string
Last name of Referring Provider
referring_provider[npi]:
string
National Provider Number
referring_provider[state_license_number]:
string
State License Number
referring_provider[middle_initial]:
string
Middle Initial of Referring Provider
referring_provider[suffix]:
string
Suffix of Referring Provider
referring_provider[active]:
boolean
Active

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"562162946e20d40d00731125","next":{"description":"","pages":[]},"createdAt":"2015-10-16T20:48:20.577Z","excerpt":"","hidden":false,"link_url":"","order":0,"parentDoc":null,"project":"5621497ac412c31900ee2790","api":{"results":{"codes":[{"status":200,"language":"json","code":"{  \n  \"patients\":[  \n    {  \n      \"created_at\":\"2015-01-27T14:52:45.543-08:00\",\n      \"updated_at\":\"2015-06-30T05:37:13.000-07:00\",\n      \"review_status\":\"passed\",\n      \"review_errors\":[],\n      \"review_warnings\":[],\n      \"id\":61,\n      \"first_name\":\"Brett\",\n      \"last_name\":\"Miller\",\n      \"gender\":\"Male\",\n      \"practice_internal_id\":\"\",\n      \"date_of_birth\":\"1976-05-15\",\n      \"ssn\":\"123456789\",\n      \"telephone\":\"2132508538\",\n      \"address\":{  \n        \"created_at\":\"2015-01-27T14:52:45.528-08:00\",\n        \"updated_at\":\"2015-01-27T14:52:45.528-08:00\",\n        \"id\":84,\n        \"address_1\":\"38682 Kuvalis Unions\",\n        \"city\":\"Edwardberg\",\n        \"state\":\"CA\",\n        \"zip_code\":\"90001\"\n      },\n      \"links\":[  \n        {  \n          \"rel\":\"billing_provider\",\n          \"href\":\"/api/v1/billing_providers/25\"\n        }\n      ]\n    },\n    {  \n      \"created_at\":\"2015-04-11T16:49:47.616-07:00\",\n      \"updated_at\":\"2015-07-24T15:11:09.919-07:00\",\n      \"review_status\":\"passed\",\n      \"review_errors\":[  \n        \"Date of birth can't be blank\",\n        \"SSN can't be blank\"\n      ],\n      \"id\":78,\n      \"first_name\":\"Evie\",\n      \"last_name\":\"Hintz\",\n      \"gender\":\"Female\",\n      \"practice_internal_id\":\"\",\n      \"date_of_birth\":\"1976-09-08\",\n      \"ssn\":\"123456789\",\n      \"telephone\":\"2139605132\",\n      \"address\":{  \n        \"created_at\":\"2015-07-24T14:11:16.714-07:00\",\n        \"updated_at\":\"2015-07-24T14:11:16.714-07:00\",\n        \"id\":87,\n        \"address_1\":\"44081 Yundt Ways\",\n        \"city\":\"West Mableside\",\n        \"state\":\"CA\",\n        \"zip_code\":\"93411\"\n      },\n      \"links\":[  \n        {  \n          \"rel\":\"billing_provider\",\n          \"href\":\"/api/v1/billing_providers/25\"\n        }\n      ]\n    }\n  ]\n}","name":""}]},"settings":"","url":"/billing_providers/:billing_provider_id/patients","auth":"required","examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/billing_providers/25/patients\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\"","name":"cURL"},{"language":"ruby","code":"billing_provider = DaisybillApi::Models::BillingProvider.find(25)\npatients = billing_provider.patients"}]},"method":"get","params":[{"_id":"5627e1f8ab6f3a0d00067eac","ref":"","in":"path","required":true,"desc":"ID of Billing Provider","default":"","type":"int","name":"billing_provider_id"},{"_id":"5627e3ab0653060d00a2f6cf","ref":"","in":"query","required":false,"desc":"Page offset to fetch","default":"1","type":"int","name":"page"},{"_id":"5627e3ab0653060d00a2f6ce","ref":"","in":"query","required":false,"desc":"Number of results to return per page","default":"25","type":"int","name":"per_page"},{"_id":"5627e3ab0653060d00a2f6cd","ref":"","in":"query","required":false,"desc":"Pad a number of results","default":"","type":"int","name":"offset"}]},"category":"56215e5ac412c31900ee27b0","editedParams":true,"githubsync":"","isReference":true,"sync_unique":"","type":"get","updates":[],"version":"5621497bc412c31900ee2793","body":"","editedParams2":true,"link_external":false,"user":"562148f56e20d40d007310fc","__v":5,"slug":"list-patients","title":"List Patients","childrenPages":[]}

getList Patients


Path Params

billing_provider_id:
required
integer
ID of Billing Provider

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":"562162a4f761a4170068ecf1","createdAt":"2015-10-16T20:48:36.414Z","hidden":false,"parentDoc":null,"title":"Get Patient","api":{"examples":{"codes":[{"name":"cURL","language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/patients/61\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\""},{"language":"ruby","code":"patient = DaisybillAPi::Models::Patient.find(61)"}]},"method":"get","params":[{"_id":"5628028148742a0d0047446b","default":"","desc":"ID of Patient","in":"path","name":"id","ref":"","required":true,"type":"int"}],"results":{"codes":[{"code":"{  \n  \"created_at\":\"2015-01-27T14:52:45.543-08:00\",\n  \"updated_at\":\"2015-06-30T05:37:13.000-07:00\",\n  \"review_status\":\"passed\",\n  \"review_errors\":[],\n  \"review_warnings\":[],\n  \"id\":61,\n  \"first_name\":\"Brett\",\n  \"last_name\":\"Miller\",\n  \"gender\":\"Male\",\n  \"practice_internal_id\":\"\",\n  \"date_of_birth\":\"1976-05-15\",\n  \"ssn\":\"123456789\",\n  \"telephone\":\"2132508538\",\n  \"address\":{  \n    \"created_at\":\"2015-01-27T14:52:45.528-08:00\",\n    \"updated_at\":\"2015-01-27T14:52:45.528-08:00\",\n    \"id\":84,\n    \"address_1\":\"38682 Kuvalis Unions\",\n    \"city\":\"Edwardberg\",\n    \"state\":\"CA\",\n    \"zip_code\":\"90001\"\n  },\n  \"links\":[  \n    {  \n      \"rel\":\"billing_provider\",\n      \"href\":\"/api/v1/billing_providers/25\"\n    }\n  ]\n}","language":"json","status":200,"name":""}]},"settings":"","url":"/patients/:id","auth":"required"},"editedParams2":true,"excerpt":"","version":"5621497bc412c31900ee2793","slug":"get-patient","type":"get","updates":[],"__v":2,"editedParams":true,"isReference":true,"link_external":false,"next":{"description":"","pages":[]},"user":"562148f56e20d40d007310fc","project":"5621497ac412c31900ee2790","sync_unique":"","body":"","category":"56215e5ac412c31900ee27b0","githubsync":"","link_url":"","order":1,"childrenPages":[]}

getGet Patient


Path Params

id:
required
integer
ID of Patient

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"562162b4bc7b320d007ddce0","api":{"auth":"required","examples":{"codes":[{"name":"cURL","code":"curl \\\n  https://go.daisybill.com/api/v1/billing_providers/25/patients\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X POST \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"patient\": {\n    \"first_name\": \"Ben\",\n    \"last_name\": \"Liscio\",\n    \"date_of_birth\": \"1933-01-01\",\n    \"ssn\": \"123454321\",\n    \"gender\": \"Male\",\n    \"address_attributes\": {\n      \"address_1\": \"1 Main Street\",\n      \"city\": \"anywhere\",\n      \"zip_code\": \"12345\",\n      \"state\": \"CA\"\n    }\n  }\n}'","language":"curl"},{"language":"ruby","code":"DaisybillApi::Models::Patient.create(\n  billing_provider_id: 25,\n  first_name: \"Beatrice\",\n  last_name: \"Kiddo\"\n)"}]},"method":"post","params":[{"type":"int","_id":"562803d50b07130d0063c5a9","default":"","desc":"ID of Billing Provider","in":"path","name":"billing_provider_id","ref":"","required":true},{"required":true,"type":"string","_id":"562803d50b07130d0063c5a8","default":"","desc":"Patient - First name","in":"body","name":"patient[first_name]","ref":""},{"name":"patient[last_name]","ref":"","required":true,"type":"string","_id":"562803d50b07130d0063c5a7","default":"","desc":"Patient - Last name","in":"body"},{"type":"string","_id":"562804154861511700f7a13d","default":"nil","desc":"Patient - Gender","in":"body","name":"patient[gender]","ref":"","required":false},{"required":false,"type":"string","_id":"562804154861511700f7a13c","default":"nil","desc":"Patient - Date of Birth","in":"body","name":"patient[date_of_birth]","ref":""},{"name":"patient[ssn]","ref":"","required":false,"type":"string","_id":"562804154861511700f7a13b","default":"nil","desc":"Patient - Social Security Number","in":"body"},{"_id":"562804920653060d00a2f702","default":"nil","desc":"Patient - Suffix","in":"body","name":"patient[suffix]","ref":"","required":false,"type":"string"},{"_id":"562804c788948617002a09ac","default":"nil","desc":"Patient - Middle Initial","in":"body","name":"patient[middle_initial]","ref":"","required":false,"type":"string"},{"_id":"562804c788948617002a09ab","default":"nil","desc":"Patient - Practice Internal ID","in":"body","name":"patient[practice_internal_id]","ref":"","required":false,"type":"string"},{"_id":"562804c788948617002a09aa","default":"nil","desc":"Patient - Telephone number","in":"body","name":"patient[telephone]","ref":"","required":false,"type":"string"},{"_id":"562804674861511700f7a142","default":"nil","desc":"Address - Address 1","in":"body","name":"patient[address_attributes][address_1]","ref":"","required":false,"type":"string"},{"_id":"562804674861511700f7a141","default":"nil","desc":"Address - Address 2","in":"body","name":"patient[address_attributes][address_2]","ref":"","required":false,"type":"string"},{"_id":"562804674861511700f7a140","default":"nil","desc":"Address - City","in":"body","name":"patient[address_attributes][city]","ref":"","required":false,"type":"string"},{"_id":"562804674861511700f7a13f","default":"nil","desc":"Address - State","in":"body","name":"patient[address_attributes][state]","ref":"","required":false,"type":"string"},{"type":"string","_id":"562804674861511700f7a13e","default":"nil","desc":"Address - Zip code","in":"body","name":"patient[address_attributes][zip_code]","ref":"","required":false}],"results":{"codes":[{"status":201,"name":"","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"}]},"settings":"","url":"/billing_providers/:billing_provider_id/patients"},"body":"","editedParams":true,"excerpt":"","hidden":false,"link_url":"","parentDoc":null,"__v":11,"version":"5621497bc412c31900ee2793","next":{"description":"","pages":[]},"order":2,"sync_unique":"","type":"post","user":"562148f56e20d40d007310fc","isReference":true,"createdAt":"2015-10-16T20:48:52.621Z","githubsync":"","project":"5621497ac412c31900ee2790","updates":[],"editedParams2":true,"link_external":false,"slug":"create-patient","title":"Create Patient","category":"56215e5ac412c31900ee27b0","childrenPages":[]}

postCreate Patient


Path Params

billing_provider_id:
required
integer
ID of Billing Provider

Body Params

patient[first_name]:
required
string
Patient - First name
patient[last_name]:
required
string
Patient - Last name
patient[gender]:
stringnil
Patient - Gender
patient[date_of_birth]:
stringnil
Patient - Date of Birth
patient[ssn]:
stringnil
Patient - Social Security Number
patient[suffix]:
stringnil
Patient - Suffix
patient[middle_initial]:
stringnil
Patient - Middle Initial
patient[practice_internal_id]:
stringnil
Patient - Practice Internal ID
patient[telephone]:
stringnil
Patient - Telephone number
patient[address_attributes][address_1]:
stringnil
Address - Address 1
patient[address_attributes][address_2]:
stringnil
Address - Address 2
patient[address_attributes][city]:
stringnil
Address - City
patient[address_attributes][state]:
stringnil
Address - State
patient[address_attributes][zip_code]:
stringnil
Address - Zip code

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"562162c5f4e0352100cbf28a","parentDoc":null,"updates":[],"user":"562148f56e20d40d007310fc","hidden":false,"isReference":true,"link_url":"","api":{"auth":"required","examples":{"codes":[{"name":"cURL","code":"curl \\\n  https://go.daisybill.com/api/v1/patients/48\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X PATCH \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"patient\": {\n    \"first_name\": \"Bobby\"\n  }\n}'","language":"curl"},{"language":"ruby","code":"patient = DaisybillApi::Models::Patient.find(48)\npatient.date_of_birth = \"1978-05-16\"\npatient.save"}]},"method":"patch","params":[{"required":true,"type":"int","_id":"56280eb70653060d00a2f724","default":"","desc":"ID of Patient","in":"path","name":"id","ref":""},{"in":"body","name":"patient[first_name]","ref":"","required":false,"type":"string","_id":"56280eb70653060d00a2f723","default":"","desc":"Patient - First name"},{"default":"","desc":"Patient - Last name","in":"body","name":"patient[last_name]","ref":"","required":false,"type":"string","_id":"56280eb70653060d00a2f722"},{"desc":"Patient - Gender","in":"body","name":"patient[gender]","ref":"","required":false,"type":"string","_id":"56280eb70653060d00a2f721","default":""},{"name":"patient[date_of_birth]","ref":"","required":false,"type":"string","_id":"56280eb70653060d00a2f720","default":"","desc":"Patient - Date of Birth","in":"body"},{"_id":"56280eb70653060d00a2f71f","default":"","desc":"Patient - Social Security Number","in":"body","name":"patient[ssn]","ref":"","required":false,"type":"string"},{"type":"string","_id":"56280f170653060d00a2f727","default":"","desc":"Patient - Middle Initial","in":"body","name":"patient[middle_initial]","ref":"","required":false},{"default":"","desc":"Patient - Suffix","in":"body","name":"patient[suffix]","ref":"","required":false,"type":"string","_id":"56280f170653060d00a2f728"},{"desc":"Patient - Practice Internal ID","in":"body","name":"patient[practice_internal_id]","ref":"","required":false,"type":"string","_id":"56280f170653060d00a2f726","default":""},{"name":"patient[telephone]","ref":"","required":false,"type":"string","_id":"56280f170653060d00a2f725","default":"","desc":"Patient - Telephone number","in":"body"},{"type":"string","_id":"56280eb70653060d00a2f71e","default":"","desc":"Address - Address 1","in":"body","name":"patient[address_attributes][address_1]","ref":"","required":false},{"required":false,"type":"string","_id":"56280eb70653060d00a2f71d","default":"","desc":"Address - Address 2","in":"body","name":"patient[address_attributes][address_2]","ref":""},{"in":"body","name":"patient[address_attributes][city]","ref":"","required":false,"type":"string","_id":"56280eb70653060d00a2f71c","default":"","desc":"Address - City"},{"required":false,"type":"string","_id":"56280eb70653060d00a2f71b","default":"","desc":"Address - State","in":"body","name":"patient[address_attributes][state]","ref":""},{"name":"patient[address_attributes][zip_code]","ref":"","required":false,"type":"string","_id":"56280eb70653060d00a2f71a","default":"","desc":"Address - Zip code","in":"body"}],"results":{"codes":[{"name":"","code":"{  \n  \"created_at\":\"2015-10-20T14:40:06.637-07:00\",\n  \"updated_at\":\"2015-10-21T15:28:41.149-07:00\",\n  \"review_status\":\"pending\",\n  \"review_errors\":[],\n  \"review_warnings\":[],\n  \"id\":48,\n  \"first_name\":\"Beatrice\",\n  \"last_name\":\"Kiddo\",\n  \"date_of_birth\":\"1978-05-16\",\n  \"links\":[  \n    {  \n      \"rel\":\"billing_provider\",\n      \"href\":\"/api/v1/billing_providers/25\"\n    }\n  ]\n}","language":"json","status":200}]},"settings":"","url":"/patients/:id"},"sync_unique":"","type":"patch","editedParams":true,"editedParams2":true,"excerpt":"","githubsync":"","project":"5621497ac412c31900ee2790","__v":9,"category":"56215e5ac412c31900ee27b0","slug":"update-patient","title":"Update Patient","version":"5621497bc412c31900ee2793","next":{"description":"","pages":[]},"order":3,"body":"","createdAt":"2015-10-16T20:49:09.218Z","link_external":false,"childrenPages":[]}

patchUpdate Patient


Path Params

id:
required
integer
ID of Patient

Body Params

patient[first_name]:
string
Patient - First name
patient[last_name]:
string
Patient - Last name
patient[gender]:
string
Patient - Gender
patient[date_of_birth]:
string
Patient - Date of Birth
patient[ssn]:
string
Patient - Social Security Number
patient[middle_initial]:
string
Patient - Middle Initial
patient[suffix]:
string
Patient - Suffix
patient[practice_internal_id]:
string
Patient - Practice Internal ID
patient[telephone]:
string
Patient - Telephone number
patient[address_attributes][address_1]:
string
Address - Address 1
patient[address_attributes][address_2]:
string
Address - Address 2
patient[address_attributes][city]:
string
Address - City
patient[address_attributes][state]:
string
Address - State
patient[address_attributes][zip_code]:
string
Address - Zip code

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"562162dabc7b320d007ddce2","next":{"pages":[],"description":""},"user":"562148f56e20d40d007310fc","__v":4,"isReference":true,"parentDoc":null,"project":"5621497ac412c31900ee2790","slug":"delete-patient","type":"delete","updates":[],"createdAt":"2015-10-16T20:49:30.422Z","editedParams2":true,"link_url":"","order":4,"title":"Delete Patient","api":{"settings":"","url":"/patients/:id","auth":"required","examples":{"codes":[{"name":"","language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/patients/48\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X DELETE \\\n  -H \"Content-Type: application/json\""},{"language":"ruby","code":"patient = DaisybillApi::Models::Patient.find(48)\npatient.destroy"}]},"method":"delete","params":[{"default":"","desc":"ID of Patient","in":"path","name":"id","ref":"","required":false,"type":"int","_id":"5628133c0b07130d0063c5bf"}],"results":{"codes":[{"name":"","code":"{  \n  \"created_at\":\"2015-10-21T14:38:43.845-07:00\",\n  \"updated_at\":\"2015-10-21T14:38:43.845-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","status":200}]}},"githubsync":"","link_external":false,"excerpt":"","hidden":false,"sync_unique":"","version":"5621497bc412c31900ee2793","body":"","category":"56215e5ac412c31900ee27b0","editedParams":true,"childrenPages":[]}

deleteDelete Patient


Path Params

id:
integer
ID of Patient

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"562e711919e7b40d00b7c6ee","body":"","parentDoc":null,"project":"5621497ac412c31900ee2790","githubsync":"","type":"get","updates":[],"user":"562148f56e20d40d007310fc","__v":6,"editedParams2":true,"hidden":false,"link_url":"","next":{"description":"","pages":[]},"sync_unique":"","version":"5621497bc412c31900ee2793","api":{"url":"/billing_providers/:billing_provider_id/patients/search","auth":"required","examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/billing_providers/25/patients/search\\?api_token=abcdefghijklmnopqrstuvwxyz123456&first_name=Sarah&last_name=connor \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\"","name":"cURL"},{"code":"patients = DaisybillApi::Models::Patient.search(\n  billing_provider_id: 25,\n  first_name: \"Sarah\",\n  last_name: \"Connor\"\n)","language":"ruby"}]},"method":"get","params":[{"_id":"562e711919e7b40d00b7c6f3","ref":"","in":"path","required":true,"desc":"ID of Billing Provider","default":"","type":"int","name":"billing_provider_id"},{"_id":"562e711919e7b40d00b7c6f2","ref":"","in":"query","required":false,"desc":"First Name search query","default":"","type":"string","name":"first_name"},{"_id":"562e711919e7b40d00b7c6f1","ref":"","in":"query","required":false,"desc":"Last Name search query","default":"","type":"string","name":"last_name"},{"_id":"562e711919e7b40d00b7c6f0","ref":"","in":"query","required":false,"desc":"SSN search query","default":"","type":"string","name":"ssn"},{"_id":"562e711919e7b40d00b7c6ef","ref":"","in":"query","required":false,"desc":"Date of Birth search query","default":"","type":"string","name":"date_of_birth"},{"_id":"5b69eee159beb90003ca26a2","ref":"","in":"query","required":false,"desc":"Patient Practice Internal ID query","default":"","type":"string","name":"practice_internal_id"},{"_id":"562e77fc36d1140d00120b2e","ref":"","in":"query","required":false,"desc":"Page offset to fetch","default":"1","type":"int","name":"page"},{"_id":"562e77fc36d1140d00120b2d","ref":"","in":"query","required":false,"desc":"Number of results to return per page","default":"25","type":"int","name":"per_page"},{"_id":"562e77fc36d1140d00120b2c","ref":"","in":"query","required":false,"desc":"Pad a number of results","default":"","type":"int","name":"offset"}],"results":{"codes":[{"name":"","code":"{  \n  \"patients\":[  \n    {  \n      \"created_at\":\"2015-01-27T14:52:45.543-08:00\",\n      \"updated_at\":\"2015-06-30T05:37:13.000-07:00\",\n      \"review_status\":\"passed\",\n      \"review_errors\":[],\n      \"review_warnings\":[],\n      \"id\":61,\n      \"first_name\":\"Sarah\",\n      \"last_name\":\"Connor\",\n      \"gender\":\"Male\",\n      \"practice_internal_id\":\"\",\n      \"date_of_birth\":\"1976-05-15\",\n      \"ssn\":\"123456789\",\n      \"telephone\":\"2132508538\",\n      \"address\":{  \n        \"created_at\":\"2015-01-27T14:52:45.528-08:00\",\n        \"updated_at\":\"2015-01-27T14:52:45.528-08:00\",\n        \"id\":84,\n        \"address_1\":\"38682 Kuvalis Unions\",\n        \"city\":\"Edwardberg\",\n        \"state\":\"CA\",\n        \"zip_code\":\"90001\"\n      },\n      \"links\":[  \n        {  \n          \"rel\":\"billing_provider\",\n          \"href\":\"/api/v1/billing_providers/25\"\n        }\n      ]\n    }\n  ]\n}","language":"json","status":200}]},"settings":""},"category":"56215e5ac412c31900ee27b0","editedParams":true,"link_external":false,"order":5,"slug":"search-for-patient","title":"Search for Patients","createdAt":"2015-10-26T18:29:45.517Z","excerpt":"","isReference":true,"childrenPages":[]}

getSearch for Patients


Path Params

billing_provider_id:
required
integer
ID of Billing Provider

Query Params

first_name:
string
First Name search query
last_name:
string
Last Name search query
ssn:
string
SSN search query
date_of_birth:
string
Date of Birth search query
practice_internal_id:
string
Patient Practice Internal ID query
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":"5845eb449faf12230009b098","order":0,"parentDoc":null,"project":"5621497ac412c31900ee2790","body":"","isReference":true,"sync_unique":"","title":"List Paper EORs","version":"5621497bc412c31900ee2793","__v":1,"next":{"pages":[],"description":""},"createdAt":"2016-12-05T22:33:40.021Z","excerpt":"","hidden":false,"link_external":false,"link_url":"","slug":"list-paper-eors","api":{"results":{"codes":[{"code":"{\n  \"paper_eors\": [\n    {\n      \"created_at\": \"2014-03-03T16:56:13.854-08:00\",\n      \"updated_at\": \"2014-03-03T16:56:13.919-08:00\",\n      \"review_status\": \"passed\",\n      \"review_errors\": [],\n      \"review_warnings\": [],\n      \"id\": 10575,\n      \"eor_file_name\": \"paper_eor.pdf\",\n      \"eor_content_type\": \"application/pdf\",\n      \"eor_file_size\": 1306194,\n      \"eor_url\": \"https://daisybill-development.s3.amazonaws.com/paper_eors/paper_eor.pdf?AWSAccessKeyId=123&Expires=1480980339&Signature=abc\",\n      \"links\": [\n        {\n          \"rel\": \"remittance\",\n          \"href\": \"/api/v1/remittances/14\"\n        }\n      ]\n    }\n  ]\n}\n","language":"json","status":200,"name":""}]},"settings":"","url":"/remittances/:remittance_id/paper_eors","auth":"required","examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/remittances/14/paper_eors\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\""}]},"method":"get","params":[{"required":true,"desc":"","default":"","type":"int","name":"remittance_id","_id":"5845eb9339950c1b002afe8d","ref":"","in":"path"}]},"updates":[],"user":"562148f56e20d40d007310fc","type":"get","category":"5845eb1a8584d02500ec8eab","githubsync":"","childrenPages":[]}

getList Paper EORs


Path Params

remittance_id:
required
integer

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"58498586bd8d22390066ca29","api":{"settings":"","url":"/paper_eors/:id","auth":"required","examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/paper_eors/1\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\""}]},"method":"get","params":[{"_id":"58498586bd8d22390066ca2a","ref":"","in":"path","required":true,"desc":"ID of Paper EOR","default":"","type":"int","name":"id"}],"results":{"codes":[{"status":200,"language":"json","code":"{\n  \"created_at\": \"2012-12-20T14:41:51.296-08:00\",\n  \"updated_at\": \"2012-12-21T12:01:01.791-08:00\",\n  \"review_status\": \"passed\",\n  \"review_errors\": [],\n  \"review_warnings\": [],\n  \"id\": 1,\n  \"eor_file_name\": \"paper_eor.pdf\",\n  \"eor_content_type\": \"application/pdf\",\n  \"eor_file_size\": 761150,\n  \"eor_url\": \"https://daisybill-development.s3.amazonaws.com/paper_eors/paper_eor.pdf?AWSAccessKeyId=abc=1481216693&Signature=123\",\n  \"links\": [\n    {\n      \"rel\": \"remittance\",\n      \"href\": \"/api/v1/remittances/1395\"\n    }\n  ]\n}","name":""}]}},"body":"","excerpt":"","githubsync":"","isReference":true,"project":"5621497ac412c31900ee2790","type":"get","category":"5845eb1a8584d02500ec8eab","link_external":false,"link_url":"","sync_unique":"","updates":[],"user":"562148f56e20d40d007310fc","version":"5621497bc412c31900ee2793","__v":0,"createdAt":"2016-12-08T16:08:38.741Z","hidden":false,"next":{"pages":[],"description":""},"order":1,"parentDoc":null,"slug":"get-paper-eor","title":"Get Paper EOR","childrenPages":[]}

getGet Paper EOR


Path Params

id:
required
integer
ID of Paper EOR

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"58473926c28cc939002eb405","isReference":true,"user":"562148f56e20d40d007310fc","version":"5621497bc412c31900ee2793","githubsync":"","link_url":"","parentDoc":null,"project":"5621497ac412c31900ee2790","sync_unique":"","body":"","category":"5845eb1a8584d02500ec8eab","excerpt":"","title":"Create Paper EOR","updates":[],"next":{"pages":[],"description":""},"type":"post","api":{"auth":"required","examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/remittances/986/paper_eors\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X POST \\\n  -F \"paper_eor[eor]=@my_files/paper_eor.pdf;type=application/pdf\""}]},"method":"post","params":[{"default":"","type":"int","name":"remittance_id","_id":"58473926c28cc939002eb407","ref":"","in":"path","required":true,"desc":"ID of Remittance"},{"ref":"","required":true,"type":"file","_id":"58473926c28cc939002eb406","default":"","desc":"Document to attach","in":"body","name":"paper_eor[eor]"}],"results":{"codes":[{"language":"json","status":201,"name":"","code":"{\n  \"created_at\": \"2012-12-20T14:41:51.296-08:00\",\n  \"updated_at\": \"2012-12-21T12:01:01.791-08:00\",\n  \"review_status\": \"pending\",\n  \"review_errors\": [],\n  \"review_warnings\": [],\n  \"id\": 1,\n  \"eor_file_name\": \"paper_eor.pdf\",\n  \"eor_content_type\": \"application/pdf\",\n  \"eor_file_size\": 761150,\n  \"eor_url\": \"https://daisybill-development.s3.amazonaws.com/paper_eors/paper_eor.pdf?AWSAccessKeyId=123&Expires=1481065852&Signature=abc\",\n  \"links\": [\n    {\n      \"rel\": \"remittance\",\n      \"href\": \"/api/v1/remittances/986\"\n    }\n  ]\n}"}]},"settings":"","url":"/remittances/:remittance_id/paper_eors"},"createdAt":"2016-12-06T22:18:14.838Z","order":2,"slug":"create-paper-eor","__v":0,"hidden":false,"link_external":false,"childrenPages":[]}

postCreate Paper EOR


Path Params

remittance_id:
required
integer
ID of Remittance

Body Params

paper_eor[eor]:
required
file
Document to attach

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"582a3014f8ae3b0f009e8f0c","body":"","githubsync":"","updates":[],"__v":1,"link_url":"","parentDoc":null,"slug":"list-prescribing-providers","sync_unique":"","type":"get","user":"562148f56e20d40d007310fc","version":"5621497bc412c31900ee2793","api":{"examples":{"codes":[{"name":"cURL","language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/billing_providers/42/prescribing_providers\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\""},{"name":"Ruby","language":"ruby","code":"billing_provider = DaisybillApi::Models::BillingProvider.find(42)\nbilling_provider.prescribing_providers"}]},"method":"get","params":[{"ref":"","in":"path","required":true,"desc":"ID of Billing Provider","default":"","type":"int","name":"billing_provider_id","_id":"582a3014f8ae3b0f009e8f0d"},{"in":"query","required":false,"desc":"Page offset to fetch","default":"1","type":"int","name":"page","_id":"582a3143fc151d0f0088b455","ref":""},{"desc":"Number of results to return per page","default":"25","type":"int","name":"per_page","_id":"582a3143fc151d0f0088b454","ref":"","in":"query","required":false},{"name":"offset","_id":"582a3143fc151d0f0088b453","ref":"","in":"query","required":false,"desc":"Pad a number of results","default":"","type":"int"}],"results":{"codes":[{"name":"","code":"{\n  \"prescribing_providers\": [\n    {\n      \"created_at\": \"2016-11-14T09:24:28.213-08:00\",\n      \"updated_at\": \"2016-11-14T09:24:28.213-08:00\",\n      \"id\": 3,\n      \"first_name\": \"Wallace\",\n      \"last_name\": \"Grommit\",\n      \"middle_initial\": \"A\",\n      \"suffix\": \"MD\",\n      \"npi\": \"1221321413\",\n      \"address\": {\n        \"created_at\": \"2016-11-14T09:24:28.179-08:00\",\n        \"updated_at\": \"2016-11-14T09:24:28.179-08:00\",\n        \"id\": 456,\n        \"address_1\": \"123 Main St.\",\n        \"address_2\": \"Suite 3\",\n        \"city\": \"Los Angeles\",\n        \"state\": \"CA\",\n        \"zip_code\": \"999991234\"\n      },\n      \"links\": [\n        {\n          \"rel\": \"billing_provider\",\n          \"href\": \"/api/v1/billing_providers/42\"\n        }\n      ]\n    }\n  ]\n}\n","language":"json","status":200}]},"settings":"","url":"/billing_providers/:billing_provider_id/prescribing_providers","auth":"required"},"isReference":true,"next":{"pages":[],"description":""},"title":"List Prescribing Providers","excerpt":"","createdAt":"2016-11-14T21:43:48.177Z","hidden":false,"link_external":false,"order":0,"project":"5621497ac412c31900ee2790","category":"582a2ecf8f1aea0f00c1b340","childrenPages":[]}

getList Prescribing Providers


Path Params

billing_provider_id:
required
integer
ID of Billing Provider

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":"582a3e267fa6ad0f00e4b269","link_url":"","sync_unique":"","type":"get","api":{"examples":{"codes":[{"name":"cURL","language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/prescribing_providers/18\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\""},{"language":"ruby","code":"DaisybillApi::Models::PrescribingProvider.find(18)"}]},"method":"get","params":[{"ref":"","in":"path","required":true,"desc":"ID of Prescribing Provider","default":"","type":"int","name":"id","_id":"582a3e267fa6ad0f00e4b26a"}],"results":{"codes":[{"language":"json","status":200,"name":"","code":"{\n  \"created_at\": \"2016-11-14T11:26:53.055-08:00\",\n  \"updated_at\": \"2016-11-14T11:26:53.055-08:00\",\n  \"id\": 18,\n  \"first_name\": \"Wallace\",\n  \"last_name\": \"Grommit\",\n  \"middle_initial\": \"A\",\n  \"suffix\": \"MD\",\n  \"npi\": \"1221321413\",\n  \"address\": {\n    \"created_at\": \"2016-11-14T11:26:53.044-08:00\",\n    \"updated_at\": \"2016-11-14T11:26:53.044-08:00\",\n    \"id\": 408,\n    \"address_1\": \"123 Main St.\",\n    \"address_2\": \"Suite 3\",\n    \"city\": \"Los Angeles\",\n    \"state\": \"CA\",\n    \"zip_code\": \"999991234\"\n  },\n  \"links\": [\n    {\n      \"rel\": \"billing_provider\",\n      \"href\": \"/api/v1/billing_providers/4\"\n    }\n  ]\n}\n"}]},"settings":"","url":"/prescribing_providers/:id","auth":"required"},"body":"","createdAt":"2016-11-14T22:43:50.593Z","link_external":false,"__v":0,"githubsync":"","updates":[],"title":"Get Prescribing Provider","user":"562148f56e20d40d007310fc","version":"5621497bc412c31900ee2793","excerpt":"","next":{"pages":[],"description":""},"order":1,"project":"5621497ac412c31900ee2790","slug":"get-prescribing-provider","category":"582a2ecf8f1aea0f00c1b340","hidden":false,"isReference":true,"parentDoc":null,"childrenPages":[]}

getGet Prescribing Provider


Path Params

id:
required
integer
ID of Prescribing Provider

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"582a3594c5de870f00d4df84","version":"5621497bc412c31900ee2793","githubsync":"","link_url":"","parentDoc":null,"updates":[],"link_external":false,"next":{"pages":[],"description":""},"sync_unique":"","title":"Create Prescribing Provider","category":"582a2ecf8f1aea0f00c1b340","excerpt":"","isReference":true,"type":"post","user":"562148f56e20d40d007310fc","__v":1,"body":"","order":2,"slug":"create-prescribing-provider","api":{"params":[{"type":"int","name":"billing_provider_id","_id":"582a3594c5de870f00d4df88","ref":"","in":"path","required":true,"desc":"ID of Billing Provider","default":""},{"desc":"Prescribing Provider - First Name","default":"","type":"string","name":"prescribing_provider[first_name]","_id":"582a3594c5de870f00d4df87","ref":"","in":"body","required":false},{"_id":"582a3594c5de870f00d4df86","ref":"","in":"body","required":true,"desc":"Prescribing Provider - Last Name","default":"","type":"string","name":"prescribing_provider[last_name]"},{"_id":"582a3594c5de870f00d4df85","ref":"","in":"body","required":true,"desc":"Prescribing Provider - NPI","default":"","type":"string","name":"prescribing_provider[npi]"},{"_id":"582a3741f8ae3b0f009e8f8e","ref":"","in":"body","required":false,"desc":"Prescribing Provider - Middle Initial","default":"","type":"string","name":"prescribing_provider[middle_initial]"},{"_id":"582a3741f8ae3b0f009e8f8d","ref":"","in":"body","required":false,"desc":"Prescribing Provider - Suffix","default":"","type":"string","name":"prescribing_provider[suffix]"},{"name":"prescribing_provider[address_attributes][address_1]","_id":"582a3741f8ae3b0f009e8f8c","ref":"","in":"body","required":false,"desc":"Address - Address 1","default":"","type":"string"},{"ref":"","in":"body","required":false,"desc":"Address - Address 2","default":"","type":"string","name":"prescribing_provider[address_attributes][address_2]","_id":"582a3741f8ae3b0f009e8f8b"},{"default":"","type":"string","name":"prescribing_provider[address_attributes][city]","_id":"582a3741f8ae3b0f009e8f8a","ref":"","in":"body","required":false,"desc":"Address - City"},{"in":"body","required":false,"desc":"Address - State","default":"","type":"string","name":"prescribing_provider[address_attributes][state]","_id":"582a3741f8ae3b0f009e8f89","ref":""},{"required":false,"desc":"Address - Zip Code","default":"","type":"string","name":"prescribing_provider[address_attributes][zip_code]","_id":"582a3741f8ae3b0f009e8f88","ref":"","in":"body"}],"results":{"codes":[{"name":"","code":"{\n  \"created_at\": \"2016-11-14T14:32:33.879-08:00\",\n  \"updated_at\": \"2016-11-14T14:32:33.879-08:00\",\n  \"id\": 73,\n  \"first_name\": \"Wallace\",\n  \"last_name\": \"Grommit\",\n  \"middle_initial\": \"A\",\n  \"suffix\": \"MD\",\n  \"npi\": \"1234567890\",\n  \"address\": {\n    \"created_at\": \"2016-11-14T14:32:33.868-08:00\",\n    \"updated_at\": \"2016-11-14T14:32:33.868-08:00\",\n    \"id\": 356,\n    \"address_1\": \"123 Main St.\",\n    \"address_2\": \"Suite 3\",\n    \"city\": \"Los Angeles\",\n    \"state\": \"CA\",\n    \"zip_code\": \"999991234\"\n  },\n  \"links\": [\n    {\n      \"rel\": \"billing_provider\",\n      \"href\": \"/api/v1/billing_providers/4\"\n    }\n  ]\n}\n","language":"json","status":201}]},"settings":"","url":"/billing_providers/:billing_provider_id/prescribing_providers","auth":"required","examples":{"codes":[{"name":"cURL","language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/billing_providers/4/prescribing_providers\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X POST \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"prescribing_provider\": {\n    \"first_name\": \"Wallace\",\n    \"last_name\": \"Grommit\",\n    \"middle_initial\": \"A\",\n    \"suffix\": \"MD\",\n    \"npi\": \"1234567890\",\n    \"address_attributes\": {\n       \"address_1\": \"123 Main St.\",\n       \"address_2\": \"Suite 3\",\n       \"city\":      \"Los Angeles\",\n       \"state\":     \"CA\",\n       \"zip_code\":  \"999991234\"\n    }\n  }\n}'"},{"name":null,"language":"ruby","code":"address = DaisybillApi::Models::Address.new(\n  address_1: \"123 Main St.\",\n  address_2: \"Suite 3\",\n  city:      \"Los Angeles\",\n  state:     \"CA\",\n  zip_code:  \"999991234\"\n)\n\nDaisybillApi::Models::PrescribingProvider.create(\n  billing_provider_id: 4,\n  first_name: \"Wallace\",\n  last_name: \"Grommit\",\n  middle_initial: \"A\",\n  suffix: \"MD\",\n  npi: \"1234567890\",\n  address: address\n)"}]},"method":"post"},"createdAt":"2016-11-14T22:07:16.704Z","hidden":false,"project":"5621497ac412c31900ee2790","childrenPages":[]}

postCreate Prescribing Provider


Path Params

billing_provider_id:
required
integer
ID of Billing Provider

Body Params

prescribing_provider[first_name]:
string
Prescribing Provider - First Name
prescribing_provider[last_name]:
required
string
Prescribing Provider - Last Name
prescribing_provider[npi]:
required
string
Prescribing Provider - NPI
prescribing_provider[middle_initial]:
string
Prescribing Provider - Middle Initial
prescribing_provider[suffix]:
string
Prescribing Provider - Suffix
prescribing_provider[address_attributes][address_1]:
string
Address - Address 1
prescribing_provider[address_attributes][address_2]:
string
Address - Address 2
prescribing_provider[address_attributes][city]:
string
Address - City
prescribing_provider[address_attributes][state]:
string
Address - State
prescribing_provider[address_attributes][zip_code]:
string
Address - Zip Code

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"582a41eec5de870f00d4df94","category":"582a2ecf8f1aea0f00c1b340","createdAt":"2016-11-14T22:59:58.226Z","githubsync":"","order":3,"parentDoc":null,"slug":"update-prescribing-provider","user":"562148f56e20d40d007310fc","api":{"results":{"codes":[{"status":200,"language":"json","code":"{\n  \"created_at\": \"2016-11-14T11:26:52.731-08:00\",\n  \"updated_at\": \"2016-11-14T11:26:52.814-08:00\",\n  \"id\": 18,\n  \"first_name\": \"Wallace\",\n  \"last_name\": \"Grommit\",\n  \"middle_initial\": \"B\",\n  \"suffix\": \"MD\",\n  \"npi\": \"1221321413\",\n  \"address\": {\n    \"created_at\": \"2016-11-14T11:26:52.719-08:00\",\n    \"updated_at\": \"2016-11-14T11:26:52.719-08:00\",\n    \"id\": 407,\n    \"address_1\": \"123 Main St.\",\n    \"address_2\": \"Suite 3\",\n    \"city\": \"Los Angeles\",\n    \"state\": \"CA\",\n    \"zip_code\": \"999991234\"\n  },\n  \"links\": [\n    {\n      \"rel\": \"billing_provider\",\n      \"href\": \"/api/v1/billing_providers/4\"\n    }\n  ]\n}\n","name":""}]},"settings":"","url":"/prescribing_providers/:id","auth":"required","examples":{"codes":[{"language":"curl","name":"cURL","code":"curl \\\n  https://go.daisybill.com/api/v1/prescribing_providers/18\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X PATCH \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"prescribing_provider\": {\n    \"middle_initial\": \"B\"\n  }\n}'"},{"code":"prescribing_provider = DaisybillApi::Models::PrescribingProvider.find(18)\nprescribing_provider.middle_initial = \"B\"\nprescribing_provider.save","language":"ruby","name":"Ruby"}]},"method":"patch","params":[{"in":"path","required":true,"desc":"ID of Prescribing Provider","default":"","type":"int","name":"id","_id":"582a41eec5de870f00d4df95","ref":""},{"desc":"Prescribing Provider - First Name","default":"","type":"string","name":"prescribing_provider[first_name]","_id":"582a437e7fa6ad0f00e4b275","ref":"","in":"body","required":false},{"_id":"582a437e7fa6ad0f00e4b274","ref":"","in":"body","required":false,"desc":"Prescribing Provider - Last Name","default":"","type":"string","name":"prescribing_provider[last_name]"},{"_id":"582a437e7fa6ad0f00e4b273","ref":"","in":"body","required":false,"desc":"Prescribing Provider - NPI","default":"","type":"string","name":"prescribing_provider[npi]"},{"_id":"582a437e7fa6ad0f00e4b272","ref":"","in":"body","required":false,"desc":"Prescribing Provider - Middle Initial","default":"","type":"string","name":"prescribing_provider[middle_initial]"},{"name":"prescribing_provider[suffix]","_id":"582a437e7fa6ad0f00e4b271","ref":"","in":"body","required":false,"desc":"Prescribing Provider - Suffix","default":"","type":"string"},{"type":"string","name":"prescribing_provider[address_attributes][address_1]","_id":"582a437e7fa6ad0f00e4b270","ref":"","in":"body","required":false,"desc":"Address - Address 1","default":""},{"desc":"Address - Address 2","default":"","type":"string","name":"prescribing_provider[address_attributes][address_2]","_id":"582a437e7fa6ad0f00e4b26f","ref":"","in":"body","required":false},{"_id":"582a437e7fa6ad0f00e4b26e","ref":"","in":"body","required":false,"desc":"Address - City","default":"","type":"string","name":"prescribing_provider[address_attributes][city]"},{"_id":"582a437e7fa6ad0f00e4b26d","ref":"","in":"body","required":false,"desc":"Address - State","default":"","type":"string","name":"prescribing_provider[address_attributes][state]"},{"name":"prescribing_provider[address_attributes][zip_code]","_id":"582a437e7fa6ad0f00e4b26c","ref":"","in":"body","required":false,"desc":"Address - Zip Code","default":"","type":"string"}]},"body":"","sync_unique":"","version":"5621497bc412c31900ee2793","__v":1,"link_external":false,"project":"5621497ac412c31900ee2790","title":"Update Prescribing Provider","hidden":false,"isReference":true,"link_url":"","next":{"pages":[],"description":""},"type":"patch","updates":[],"excerpt":"","childrenPages":[]}

patchUpdate Prescribing Provider


Path Params

id:
required
integer
ID of Prescribing Provider

Body Params

prescribing_provider[first_name]:
string
Prescribing Provider - First Name
prescribing_provider[last_name]:
string
Prescribing Provider - Last Name
prescribing_provider[npi]:
string
Prescribing Provider - NPI
prescribing_provider[middle_initial]:
string
Prescribing Provider - Middle Initial
prescribing_provider[suffix]:
string
Prescribing Provider - Suffix
prescribing_provider[address_attributes][address_1]:
string
Address - Address 1
prescribing_provider[address_attributes][address_2]:
string
Address - Address 2
prescribing_provider[address_attributes][city]:
string
Address - City
prescribing_provider[address_attributes][state]:
string
Address - State
prescribing_provider[address_attributes][zip_code]:
string
Address - Zip Code

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"586eb40b5c4f761b0017bee3","next":{"pages":[],"description":""},"title":"List Remittances for Billing Provider","hidden":false,"isReference":true,"sync_unique":"","type":"get","version":"5621497bc412c31900ee2793","createdAt":"2017-01-05T21:00:59.932Z","link_url":"","project":"5621497ac412c31900ee2790","link_external":false,"parentDoc":null,"slug":"list-remittances-for-billing-provider","updates":[],"body":"","excerpt":"","githubsync":"","order":0,"user":"562148f56e20d40d007310fc","__v":2,"api":{"method":"get","params":[{"_id":"586eb40b5c4f761b0017bee4","ref":"","in":"path","required":true,"desc":"ID of Billing Provider","default":"","type":"int","name":"ID"},{"_id":"586eb705012eab0f00379d6e","ref":"","in":"query","required":false,"desc":"Filterable","default":"","type":"yyyy-mm-dd","name":"created_at"},{"_id":"586eb705012eab0f00379d6d","ref":"","in":"query","required":false,"desc":"Filterable","default":"","type":"yyyy-mm-dd","name":"effective_date"},{"_id":"586eb705012eab0f00379d6c","ref":"","in":"query","required":false,"desc":"Filterable","default":"","type":"yyyy-mm-dd","name":"deposited_on"}],"results":{"codes":[{"status":200,"language":"json","code":"{\n  \"remittances\": [\n    {  \n      \"created_at\":\"2017-09-05T16:07:56.291-07:00\",\n      \"updated_at\":\"2017-09-05T16:07:56.291-07:00\",\n      \"id\":121232,\n      \"payment_amount_cents\":12746,\n      \"check_amount\":12746,\n      \"check_number\":\"12345678\",\n      \"check_effective_date\":\"2017-09-04\",\n      \"payment_source\":\"electronic_eor\",\n      \"claim_adjustment_reasons\":[  \n\n      ],\n      \"service_line_item_payments\":[  \n        {  \n          \"created_at\":\"2017-09-05T16:07:56.310-07:00\",\n          \"updated_at\":\"2017-09-05T16:07:57.911-07:00\",\n          \"service_line_item_id\":499555,\n          \"procedure_code\":\"99214\",\n          \"units\":1,\n          \"payment_amount_cents\":11638,\n          \"claim_adjustment_reasons\":[  \n            {  \n              \"code\":\"45\",\n              \"amount_cents\":7133,\n              \"description\":\"Charge exceeds fee schedule/maximum allowable\"\n            }\n          ]\n        },\n        {  \n          \"created_at\":\"2017-09-05T16:07:56.301-07:00\",\n          \"updated_at\":\"2017-09-05T16:07:57.838-07:00\",\n          \"service_line_item_id\":499556,\n          \"procedure_code\":\"WC002\",\n          \"units\":1,\n          \"payment_amount_cents\":1108,\n          \"claim_adjustment_reasons\":[  \n            {  \n              \"code\":\"45\",\n              \"amount_cents\":678,\n              \"description\":\"Charge exceeds fee schedule/maximum allowable\"\n            }\n          ]\n        }\n      ],\n      \"links\":[  \n        {  \n          \"rel\":\"bill\",\n          \"href\":\"/api/v1/bills/149106\"\n        },\n        {  \n          \"rel\":\"bill_submission\",\n          \"href\":\"/api/v1/bill_submissions/185419\"\n        },\n        {  \n          \"rel\":\"remittance\",\n          \"href\":\"/api/v1/remittances/108372\"\n        }\n      ]\n    }\n  ]\n}\n","name":""}]},"settings":"","url":"/billing_providers/:id/remittances","auth":"required","examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/billing_providers/222/remittances\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -G \\\n -d created_at[gt]=9/23/2016"}]}},"category":"58473d898a7b9a1b00b0a5ec","childrenPages":[]}

getList Remittances for Billing Provider


Path Params

ID:
required
integer
ID of Billing Provider

Query Params

created_at:
yyyy-mm-dd
Filterable
effective_date:
yyyy-mm-dd
Filterable
deposited_on:
yyyy-mm-dd
Filterable

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"5847404c889b6c2d00fb86d6","updates":[],"createdAt":"2016-12-06T22:48:44.724Z","link_external":false,"parentDoc":null,"project":"5621497ac412c31900ee2790","title":"Create Remittance","__v":0,"body":"","category":"58473d898a7b9a1b00b0a5ec","githubsync":"","isReference":true,"next":{"pages":[],"description":""},"slug":"create-remittance","sync_unique":"","api":{"examples":{"codes":[{"code":"curl \\\n  https://go.daisybill.com/api/v1/billing_providers/222/remittances\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X POST \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"remittance\": {\n    \"check_number\": \"1\",\n    \"check_amount_cents\": 4600,\n    \"effective_date\": \"2016-11-03\",\n    \"marked_as_deposited\": true,\n    \"deposited_on\": \"2016-12-06\",\n    \"bill_payments_attributes\": [\n      {\n        \"payer_claim_control_number\": \"123\",\n        \"bill_id\": 1002,\n        \"payment_amount_cents\": 12300,\n        \"service_line_items_attributes\": [\n          {\n            \"service_line_item_id\": 36,\n            \"payment_amount_cents\": 12300\n          }\n        ]\n      }\n    ]\n  }\n}'","language":"curl"},{"name":null,"language":"ruby","code":"service_line_item = bill.service_line_items.first\n\nbill_payment = DaisybillApi::Models::BillPayment.new(\n  bill_id: bill.id,\n  payer_claim_control_number: \"123\",\n  payment_amount_cents: 12_300,\n  service_line_items: [service_line_item]\n)\n\nDaisybillApi::Models::Remittance.create(\n  billing_provider_id: BASE_BILLING_PROVIDER_ID,\n  check_number: \"1\",\n  check_amount_cents: 46_00,\n  effective_date: Date.new(2016, 11, 03),\n  marked_as_deposited: true,\n  deposited_on: Date.today,\n  bill_payments: [bill_payment]\n)"}]},"method":"post","params":[{"ref":"","in":"path","required":true,"desc":"ID of Billing Provider","default":"","type":"int","name":"billing_provider_id","_id":"5847404c889b6c2d00fb86e1"},{"ref":"","required":false,"type":"string","_id":"5847404c889b6c2d00fb86e0","default":"","desc":"Check Number","in":"body","name":"check_number"},{"desc":"Amount of Check (in cents)","in":"body","name":"check_amount_cents","ref":"","required":false,"type":"int","_id":"5847404c889b6c2d00fb86df","default":""},{"name":"effective_date","ref":"","required":false,"type":"string","_id":"5847404c889b6c2d00fb86de","default":"","desc":"Effective Date","in":"body"},{"type":"boolean","_id":"5847404c889b6c2d00fb86dd","default":"","desc":"Marked As Deposited","in":"body","name":"marked_as_deposited","ref":"","required":false},{"default":"","desc":"Deposited On","in":"body","name":"deposited_on","ref":"","required":false,"type":"string","_id":"5847404c889b6c2d00fb86dc"},{"desc":"Payer Claim Control Number","in":"body","name":"bill_payments_attributes[payer_claim_control_number]","ref":"","required":false,"type":"string","_id":"5847404c889b6c2d00fb86db","default":""},{"in":"body","name":"bill_payments_attributes[bill_id]","ref":"","required":false,"type":"int","_id":"5847404c889b6c2d00fb86da","default":"","desc":"ID of Bill"},{"default":"","desc":"Payment Amount for Bill Payment","in":"body","name":"bill_payments_attributes[payment_amount_cents]","ref":"","required":false,"type":"int","_id":"5847404c889b6c2d00fb86d9"},{"ref":"","required":false,"type":"int","_id":"5847404c889b6c2d00fb86d8","default":"","desc":"ID of Service Line Item","in":"body","name":"bill_payments_attributes[service_line_items_attributes][service_line_item_id]"},{"desc":"Payment Amount for Service Line Item","in":"body","name":"bill_payments_attributes[service_line_items_attributes][payment_amount_cents]","ref":"","required":false,"type":"int","_id":"5847404c889b6c2d00fb86d7","default":""}],"results":{"codes":[{"name":"","code":"{\n  \"created_at\": \"2016-12-06T14:43:52.966-08:00\",\n  \"updated_at\": \"2016-12-06T14:43:52.966-08:00\",\n  \"id\": 724,\n  \"billing_provider_id\": 222,\n  \"check_number\": \"1\",\n  \"check_amount_cents\": 4600,\n  \"effective_date\": \"2016-11-03\",\n  \"marked_as_deposited\": true,\n  \"deposited_on\": \"2016-12-06\",\n  \"bill_payments\": [\n    {\n      \"created_at\": \"2016-12-06T14:43:52.979-08:00\",\n      \"updated_at\": \"2016-12-06T14:43:52.979-08:00\",\n      \"id\": 822676,\n      \"payment_amount_cents\": 12300,\n      \"check_amount\": 4600,\n      \"check_number\": \"1\",\n      \"check_effective_date\": \"2016-11-03\",\n      \"payment_source\": \"manual_posting\",\n      \"links\": [\n        {\n          \"rel\": \"bill\",\n          \"href\": \"/api/v1/bills/1002\"\n        },\n        {\n          \"rel\": \"bill_submission\",\n          \"href\": \"/api/v1/bill_submissions/1258847\"\n        },\n        {\n          \"rel\": \"remittance\",\n          \"href\": \"/api/v1/remittances/724\"\n        }\n      ]\n    }\n  ],\n  \"links\": [\n    {\n      \"rel\": \"billing_provider\",\n      \"href\": \"/api/v1/billing_providers/222\"\n    }\n  ]\n}","language":"json","status":201}]},"settings":"","url":"/billing_providers/:billing_provider_id/remittances","auth":"required"},"user":"562148f56e20d40d007310fc","version":"5621497bc412c31900ee2793","type":"post","hidden":false,"link_url":"","order":1,"excerpt":"","childrenPages":[]}

postCreate Remittance


Path Params

billing_provider_id:
required
integer
ID of Billing Provider

Body Params

check_number:
string
Check Number
check_amount_cents:
integer
Amount of Check (in cents)
effective_date:
string
Effective Date
marked_as_deposited:
boolean
Marked As Deposited
deposited_on:
string
Deposited On
bill_payments_attributes[payer_claim_control_number]:
string
Payer Claim Control Number
bill_payments_attributes[bill_id]:
integer
ID of Bill
bill_payments_attributes[payment_amount_cents]:
integer
Payment Amount for Bill Payment
bill_payments_attributes[service_line_items_attributes][service_line_item_id]:
integer
ID of Service Line Item
bill_payments_attributes[service_line_items_attributes][payment_amount_cents]:
integer
Payment Amount for Service Line Item

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"586ec2a3012eab0f00379da7","isReference":true,"project":"5621497ac412c31900ee2790","sync_unique":"","type":"get","api":{"method":"get","params":[{"_id":"586ec2a3012eab0f00379da8","ref":"","in":"path","required":true,"desc":"ID of Remittance","default":"","type":"int","name":"id"}],"results":{"codes":[{"status":200,"language":"json","code":"{  \n  \"created_at\":\"2017-09-05T16:07:56.291-07:00\",\n  \"updated_at\":\"2017-09-05T16:07:56.291-07:00\",\n  \"id\":121232,\n  \"payment_amount_cents\":12746,\n  \"check_amount\":12746,\n  \"check_number\":\"12345678\",\n  \"check_effective_date\":\"2017-09-04\",\n  \"payment_source\":\"electronic_eor\",\n  \"claim_adjustment_reasons\":[  \n\n  ],\n  \"service_line_item_payments\":[  \n    {  \n      \"created_at\":\"2017-09-05T16:07:56.310-07:00\",\n      \"updated_at\":\"2017-09-05T16:07:57.911-07:00\",\n      \"service_line_item_id\":499555,\n      \"procedure_code\":\"99214\",\n      \"units\":1,\n      \"payment_amount_cents\":11638,\n      \"claim_adjustment_reasons\":[  \n        {  \n          \"code\":\"45\",\n          \"amount_cents\":7133,\n          \"description\":\"Charge exceeds fee schedule/maximum allowable\"\n        }\n      ]\n    },\n    {  \n      \"created_at\":\"2017-09-05T16:07:56.301-07:00\",\n      \"updated_at\":\"2017-09-05T16:07:57.838-07:00\",\n      \"service_line_item_id\":499556,\n      \"procedure_code\":\"WC002\",\n      \"units\":1,\n      \"payment_amount_cents\":1108,\n      \"claim_adjustment_reasons\":[  \n        {  \n          \"code\":\"45\",\n          \"amount_cents\":678,\n          \"description\":\"Charge exceeds fee schedule/maximum allowable\"\n        }\n      ]\n    }\n  ],\n  \"links\":[  \n    {  \n      \"rel\":\"bill\",\n      \"href\":\"/api/v1/bills/149106\"\n    },\n    {  \n      \"rel\":\"bill_submission\",\n      \"href\":\"/api/v1/bill_submissions/185419\"\n    },\n    {  \n      \"rel\":\"remittance\",\n      \"href\":\"/api/v1/remittances/108372\"\n    }\n  ]\n}","name":""}]},"settings":"","url":"/remittances/:id","auth":"required","examples":{"codes":[{"code":"curl \\\n  https://go.daisybill.com/api/v1/remittances/1\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\"","language":"curl"},{"language":"ruby","code":"DaisybillApi::Models::Remittance.find(1)"}]}},"githubsync":"","hidden":false,"user":"562148f56e20d40d007310fc","version":"5621497bc412c31900ee2793","category":"58473d898a7b9a1b00b0a5ec","link_url":"","updates":[],"next":{"pages":[],"description":""},"order":2,"slug":"get-remittance","body":"","excerpt":"","link_external":false,"parentDoc":null,"title":"Get Remittance","__v":1,"createdAt":"2017-01-05T22:03:15.882Z","childrenPages":[]}

getGet Remittance


Path Params

id:
required
integer
ID of Remittance

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"5936bc45c1cedf000f18032c","project":"5621497ac412c31900ee2790","version":"5621497bc412c31900ee2793","category":"5936bc33c8ab6e0033ffdb6d","user":"5928300b3ddea50f00aec401","updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-06-06T14:29:25.109Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[{"status":200,"language":"json","code":"{\n  \"tasks\": [\n    {\n      \"created_at\": \"2017-06-06T07:26:03.932-07:00\",\n      \"updated_at\": \"2017-06-06T07:26:03.932-07:00\",\n      \"id\": 4164832,\n      \"due_date\": \"2017-06-06\",\n      \"message\": \"Supporting Document Required\",\n      \"links\": [\n        {\n          \"rel\": \"bill\",\n          \"href\": \"/api/v1/bills/1002420\"\n        },\n        {\n          \"rel\": \"assigned_user\",\n          \"href\": \"/api/v1/users/470\"\n        }\n      ]\n    }\n  ]\n}","name":""}]},"settings":"","auth":"required","params":[{"_id":"5936bcb7283eac000f902a70","ref":"","in":"path","required":true,"desc":"Id of Bill","default":"","type":"int","name":"id"}],"url":"/bills/:id/tasks","examples":{"codes":[{"code":"curl \\\n\thttps://go.daisybill.com/api/v1/bills/1002420/tasks\\?\napi_token=abcdefghijklmnopqrstuvwxyz123456 \\\n\t-s \\\n \t-X GET \\\n \t-H \"Content-Type: application/json\"","language":"curl"},{"language":"ruby","code":"bill = DaisybillApi::Models::Bill.find(1002419)\nbill.tasks"}]},"method":"get"},"isReference":false,"order":0,"body":"","excerpt":"","slug":"list-tasks-for-bill","type":"get","title":"List Tasks for Bill","__v":1,"parentDoc":null,"childrenPages":[]}

getList Tasks for Bill


Path Params

id:
required
integer
Id of Bill

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"597b450f7bdbc5003859694b","project":"5621497ac412c31900ee2790","version":"5621497bc412c31900ee2793","category":"5936bc33c8ab6e0033ffdb6d","user":"552d6de93e1c280d00f76426","updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-07-28T14:07:11.543Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"method":"get","examples":{"codes":[{"code":"  curl \\\n  https://go.daisybill.com/api/v1/billing_providers/222/tasks\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\"","language":"curl"},{"language":"ruby","code":"bill = DaisybillApi::Models::BillingProvider.find(222)\nbilling_provider.tasks"}]},"settings":"","results":{"codes":[{"status":200,"language":"json","code":"{\n  \"tasks\": [\n    {\n      \"created_at\": \"2017-06-06T07:26:03.932-07:00\",\n      \"updated_at\": \"2017-06-06T07:26:03.932-07:00\",\n      \"id\": 4164832,\n      \"due_date\": \"2017-06-06\",\n      \"message\": \"Supporting Document Required\",\n      \"links\": [\n        {\n          \"rel\": \"bill\",\n          \"href\": \"/api/v1/bills/1002420\"\n        },\n        {\n          \"rel\": \"assigned_user\",\n          \"href\": \"/api/v1/users/470\"\n        }\n      ]\n    }\n  ]\n}","name":""}]},"auth":"required","params":[{"_id":"5936bcb7283eac000f902a70","ref":"","in":"path","required":true,"desc":"Id of Billing Provider","default":"","type":"int","name":"id"},{"_id":"597b4635a5636800424bc0d1","ref":"","in":"query","required":false,"desc":"Provide true to return only completed tasks; false to return incomplete tasks; no param will return incomplete and complete.","default":"","type":"boolean","name":"completed"},{"_id":"597b4635a5636800424bc0d0","ref":"","in":"query","required":false,"desc":"Filter on created.  See http://dev.daisybill.com/docs/filterable-records for more information","default":"","type":"object","name":"created_at"},{"_id":"597b4635a5636800424bc0cf","ref":"","in":"query","required":false,"desc":"Filter on updated at.  See http://dev.daisybill.com/docs/filterable-records for more information","default":"","type":"object","name":"updated_at"},{"_id":"597b4635a5636800424bc0ce","ref":"","in":"query","required":false,"desc":"Filter on due date.","default":"","type":"yyyy-mm-dd","name":"due_date"}],"url":"/billing_providers/:id/tasks"},"isReference":false,"order":1,"body":"","excerpt":"","slug":"list-tasks-for-billing-provider","type":"get","title":"List Tasks for Billing Provider","__v":1,"parentDoc":null,"childrenPages":[]}

getList Tasks for Billing Provider


Path Params

id:
required
integer
Id of Billing Provider

Query Params

completed:
boolean
Provide true to return only completed tasks; false to return incomplete tasks; no param will return incomplete and complete.
created_at:
object
Filter on created. See http://dev.daisybill.com/docs/filterable-records for more information
updated_at:
object
Filter on updated at. See http://dev.daisybill.com/docs/filterable-records for more information
due_date:
yyyy-mm-dd
Filter on due date.

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"5936bd3ec1cedf000f18032f","project":"5621497ac412c31900ee2790","version":"5621497bc412c31900ee2793","category":"5936bc33c8ab6e0033ffdb6d","user":"5928300b3ddea50f00aec401","updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-06-06T14:33:34.053Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[{"status":200,"language":"json","code":"{\n  \"created_at\": \"2017-06-06T07:28:12.540-07:00\",\n  \"updated_at\": \"2017-06-06T07:28:12.540-07:00\",\n  \"id\": 4164840,\n  \"due_date\": \"2017-06-06\",\n  \"message\": \"Supporting Document Required\",\n  \"links\": [\n    {\n      \"rel\": \"bill\",\n      \"href\": \"/api/v1/bills/1002424\"\n    },\n    {\n      \"rel\": \"assigned_user\",\n      \"href\": \"/api/v1/users/470\"\n    }\n  ]\n}","name":""}]},"settings":"","auth":"required","params":[{"_id":"5936bdb0c1cedf000f180353","ref":"","in":"path","required":true,"desc":"Id of Task","default":"","type":"int","name":"id"}],"url":"/tasks/:id","examples":{"codes":[{"code":"curl \\\n  https://go.daisybill.com/api/v1/tasks/4164840\\? api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n \t-s \\\n  -X GET \\\n\t-H \"Content-Type: application/json\"","language":"curl"},{"language":"ruby","code":"DaisybillApi::Models::Task.find(4164840)"}]},"method":"get"},"isReference":false,"order":2,"body":"","excerpt":"","slug":"get-task","type":"get","title":"Get Task","__v":1,"parentDoc":null,"childrenPages":[]}

getGet Task


Path Params

id:
required
integer
Id of Task

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"5936cbdbc8ab6e0033ffde79","project":"5621497ac412c31900ee2790","version":"5621497bc412c31900ee2793","category":"5936bc33c8ab6e0033ffdb6d","user":"5928300b3ddea50f00aec401","updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-06-06T15:35:55.243Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[{"name":"","code":"{\n  \"created_at\": \"2017-06-06T08:22:57.640-07:00\",\n  \"updated_at\": \"2017-06-06T08:22:57.640-07:00\",\n  \"id\": 4164916,\n  \"due_date\": \"2017-06-06\",\n  \"message\": \"Upload Paper EOR\",\n  \"links\": [\n    {\n      \"rel\": \"bill\",\n      \"href\": \"/api/v1/bills/1002455\"\n    },\n    {\n      \"rel\": \"assigned_user\",\n      \"href\": \"/api/v1/users/1074\"\n    }\n  ]\n}","language":"json","status":200}]},"settings":"","auth":"required","params":[{"_id":"5936cc01c8ab6e0033ffde9b","ref":"","in":"path","required":true,"desc":"Id of Bill","default":"","type":"int","name":"id"},{"_id":"5936ceb004751d001b93eb9c","ref":"","in":"body","required":true,"desc":"Task Message","default":"","type":"string","name":"task[message]"},{"_id":"5936ceb004751d001b93eb9b","ref":"","in":"body","required":true,"desc":"Task Due Date","default":"","type":"string","name":"task[due_date]"},{"_id":"5936ceb004751d001b93eb9a","ref":"","in":"body","required":true,"desc":"Id of Task Assigned User","default":"","type":"int","name":"task[assigned_user_id]"}],"url":"/bills/:id/tasks","examples":{"codes":[{"code":"curl \\\n  https://go.daisybill.com/api/v1/bills/1002455/tasks\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X POST \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"task\": {\n    \"message\": \"Upload Paper EOR\",\n    \"due_date\": \"2017-06-06\",\n    \"assigned_user_id\": 1074\n  }\n}'","language":"curl"},{"code":"DaisybillApi::Models::Task.create(bill_id: 1002455, message: \"Upload Paper EOR\")","language":"ruby"}]},"method":"post"},"isReference":false,"order":3,"body":"","excerpt":"","slug":"create-task","type":"post","title":"Create Task","__v":2,"parentDoc":null,"childrenPages":[]}

postCreate Task


Path Params

id:
required
integer
Id of Bill

Body Params

task[message]:
required
string
Task Message
task[due_date]:
required
string
Task Due Date
task[assigned_user_id]:
required
integer
Id of Task Assigned User

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"5936d5a3c1cedf000f180f22","project":"5621497ac412c31900ee2790","version":"5621497bc412c31900ee2793","category":"5936bc33c8ab6e0033ffdb6d","user":"5928300b3ddea50f00aec401","updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-06-06T16:17:39.311Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[{"status":200,"language":"json","code":"{\n  \"created_at\": \"2017-06-07T07:47:13.056-07:00\",\n  \"updated_at\": \"2017-06-07T07:47:13.186-07:00\",\n  \"id\": 4165113,\n  \"due_date\": \"2019-08-08\",\n  \"links\": [\n    {\n      \"rel\": \"bill\",\n      \"href\": \"/api/v1/bills/1002511\"\n    },\n    {\n      \"rel\": \"completed_by\",\n      \"href\": \"/api/v1/users/1074\"\n    },\n    {\n      \"rel\": \"assigned_user\",\n      \"href\": \"/api/v1/users/470\"\n    }\n  ]\n}","name":""}]},"settings":"","auth":"required","params":[{"_id":"59380f29886df0000f10edfb","ref":"","in":"path","required":true,"desc":"Id of Task","default":"","type":"int","name":"id"},{"_id":"59380f29886df0000f10edf9","ref":"","in":"body","required":false,"desc":"Task Due Date","default":"","type":"string","name":"task[due_date]"},{"_id":"59380f29886df0000f10edf8","ref":"","in":"body","required":false,"desc":"Id of Task Assigned User","default":"","type":"int","name":"task[assigned_user_id]"},{"_id":"599de10194a9e2002336c03e","ref":"","in":"body","required":false,"desc":"Id of User who completed the task","default":"","type":"int","name":"task[completed_by_id]"}],"url":"/tasks/:id","examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1//tasks/4165113\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X PATCH \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"task\": {\n    \"due_date\": \"2019-08-08\",\n    \"completed_by_id\": 1074\n  }\n}'"},{"code":"task = DaisybillApi::Models::Task.find(4165042)\ntask.due_date = \"2019-08-08\"\ntask.save","language":"ruby"}]},"method":"patch"},"isReference":false,"order":4,"body":"# Notes:\n\n**Only custom tasks can be completed via API** \n\n**Non-custom tasks are completed via an action performed in the DaisyBill app**","excerpt":"","slug":"update-task","type":"patch","title":"Update Task","__v":4,"parentDoc":null,"childrenPages":[]}

patchUpdate Task


Path Params

id:
required
integer
Id of Task

Body Params

task[due_date]:
string
Task Due Date
task[assigned_user_id]:
integer
Id of Task Assigned User
task[completed_by_id]:
integer
Id of User who completed the task
# Notes: **Only custom tasks can be completed via API** **Non-custom tasks are completed via an action performed in the DaisyBill app**

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



# Notes: **Only custom tasks can be completed via API** **Non-custom tasks are completed via an action performed in the DaisyBill app**
{"_id":"5878069cb8e8fb190060902b","slug":"create-request-for-second-review","sync_unique":"","version":"5621497bc412c31900ee2793","__v":0,"api":{"examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/bills/270/requests_for_second_review\\?api_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X POST \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"request_for_second_review\": {\n    \"disputed_services_attributes\": [\n      {\n        \"service_line_item_id\": 1306,\n        \"reason\": \"Incorrect rejection\",\n        \"authorized\": true,\n        \"supporting_documentation_attached\": false\n      }\n    ]\n  }\n}'"},{"language":"ruby","code":"disputed_service = DaisybillApi::Models::DisputedService.new(\n  service_line_item_id: sli.id,\n  reason: \"Incorrect rejection\",\n  authorized: true,\n  supporting_documentation_attached: false\n)\n\nDaisybillApi::Models::RequestForSecondReview.create(\n  bill_id: bill.id,\n  disputed_services: [disputed_service]\n)"}]},"method":"post","params":[{"default":"","type":"int","name":"bill_id","_id":"5878069cb8e8fb1900609030","ref":"","in":"path","required":true,"desc":"ID of Bill"},{"in":"body","required":true,"desc":"ID of Service Line Item","default":"","type":"int","name":"disputed_services_attributes[][service_line_item_id]","_id":"5878069cb8e8fb190060902f","ref":""},{"required":true,"desc":"Reason for requesting second review","default":"","type":"string","name":"disputed_services_attributes[][reason]","_id":"5878069cb8e8fb190060902e","ref":"","in":"body"},{"ref":"","in":"body","required":false,"desc":"Authorized?","default":"","type":"boolean","name":"disputed_services_attributes[][authorized]","_id":"5878069cb8e8fb190060902d"},{"default":"","type":"boolean","name":"disputed_services_attributes[][supporting_documentation_attached]","_id":"5878069cb8e8fb190060902c","ref":"","in":"body","required":false,"desc":"Supporting documentation attached?"}],"results":{"codes":[{"code":"{\n  \"created_at\": \"2017-01-12T13:35:04.588-08:00\",\n  \"updated_at\": \"2017-01-12T13:35:04.588-08:00\",\n  \"id\": 120235,\n  \"bill_submission_id\": 13298,\n  \"disputed_services\": [\n    {\n      \"created_at\": \"2017-01-12T13:35:04.628-08:00\",\n      \"updated_at\": \"2017-01-12T13:35:04.628-08:00\",\n      \"id\": 251784,\n      \"reason\": \"Incorrect rejection\",\n      \"authorized\": true,\n      \"supporting_documentation_attached\": false\n    }\n  ],\n  \"links\": [\n    {\n      \"rel\": \"bill\",\n      \"href\": \"/api/v1/bills/270\"\n    }\n  ]\n}","name":"","status":200,"language":"json"}]},"settings":"","url":"/bills/:bill_id/requests_for_second_review","auth":"required"},"isReference":true,"project":"5621497ac412c31900ee2790","githubsync":"","type":"post","hidden":false,"next":{"pages":[],"description":""},"order":0,"parentDoc":null,"category":"5878009ce1d2bd3d002a75c5","createdAt":"2017-01-12T22:43:40.854Z","excerpt":"","updates":[],"user":"562148f56e20d40d007310fc","body":"","link_external":false,"link_url":"","title":"Create Request for Second Review","childrenPages":[]}

postCreate Request for Second Review


Path Params

bill_id:
required
integer
ID of Bill

Body Params

disputed_services_attributes[][service_line_item_id]:
required
integer
ID of Service Line Item
disputed_services_attributes[][reason]:
required
string
Reason for requesting second review
disputed_services_attributes[][authorized]:
boolean
Authorized?
disputed_services_attributes[][supporting_documentation_attached]:
boolean
Supporting documentation attached?

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"5935bb64cfb17f0025c2db61","project":"5621497ac412c31900ee2790","version":"5621497bc412c31900ee2793","category":"5935bb50b940120025b8534c","user":"5928300b3ddea50f00aec401","updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-06-05T20:13:24.430Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[{"name":"","code":"{\n  \"created_at\":\"2013-01-14T12:48:58.701-08:00\",\n  \"updated_at\":\"2017-05-31T11:35:08.391-07:00\",\n  \"id\":209,\n  \"first_name\":\"Brannon\",\n  \"last_name\":\"Maggio\",\n  \"email\":\"user_209@daisybill.com\",\n  \"active\":false\n}","language":"json","status":200}]},"settings":"","auth":"required","params":[{"_id":"5935bbe7b940120025b8538d","ref":"","in":"path","required":true,"desc":"Id of User","default":"","type":"int","name":"id"}],"url":"/users/:id","examples":{"codes":[{"code":"curl \\   \n  https://go.daisybill.com/api/v1/users/57\\?\napi_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\"","language":"curl"},{"code":"DaisybillApi::Models::User.find(209)","language":"ruby"}]},"method":"get"},"isReference":false,"order":0,"body":"","excerpt":"","slug":"get-user","type":"get","title":"Get User","__v":1,"parentDoc":null,"childrenPages":[]}

getGet User


Path Params

id:
required
integer
Id of User

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



{"_id":"593817ad1316ed000f783dae","project":"5621497ac412c31900ee2790","version":"5621497bc412c31900ee2793","category":"5935bb50b940120025b8534c","user":"5928300b3ddea50f00aec401","updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-06-07T15:11:41.102Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[{"name":"","code":"{\n  \"users\": [\n    {\n      \"created_at\": \"2013-02-13T09:10:34.520-08:00\",\n      \"updated_at\": \"2016-05-23T14:21:39.663-07:00\",\n      \"id\": 107,\n      \"first_name\": \"Margaret\",\n      \"last_name\": \"Reynolds\",\n      \"email\": \"user_107@daisybill.com\",\n      \"active\": true\n    },\n    {\n      \"created_at\": \"2016-01-20T14:07:16.389-08:00\",\n      \"updated_at\": \"2016-05-23T14:24:06.372-07:00\",\n      \"id\": 3277,\n      \"first_name\": \"Mariam\",\n      \"last_name\": \"Padberg\",\n      \"email\": \"user_3277@daisybill.com\",\n      \"active\": true\n    },\n    {\n      \"created_at\": \"2016-03-08T10:55:10.409-08:00\",\n      \"updated_at\": \"2016-05-23T14:24:17.681-07:00\",\n      \"id\": 3441,\n      \"first_name\": \"Pedro\",\n      \"last_name\": \"Marks\",\n      \"email\": \"user_3441@daisybill.com\",\n      \"active\": true\n    }\n  ]\n}","language":"json","status":200}]},"settings":"","auth":"required","params":[],"url":"/users","examples":{"codes":[{"language":"curl","code":"curl \\\n  https://go.daisybill.com/api/v1/users\\?\napi_token=abcdefghijklmnopqrstuvwxyz123456 \\\n  -s \\\n  -X GET \\\n  -H \"Content-Type: application/json\""},{"code":"DaisybillApi::Models::User.all","language":"ruby"}]},"method":"get"},"isReference":false,"order":1,"body":"","excerpt":"","slug":"list-users-for-organization","type":"get","title":"List Users for Organization","__v":0,"parentDoc":null,"childrenPages":[]}

getList Users for Organization


Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format