{"info":{"_postman_id":"955d126e-811f-4069-802e-6859a7979084","name":"API : Heart Failure Predictor","description":"<html><head></head><body><p>base url - <a href=\"https://heart-failure-predictor-z0j1.onrender.com\">https://heart-failure-predictor-z0j1.onrender.com</a> (deployed on render)</p>\n<p>endpoint - /predict</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>discharge_location</code></td>\n<td><code>string</code></td>\n<td>Yes</td>\n<td>The location where the patient was discharged to. E.g., <code>\"HOSPICE-HOME\"</code></td>\n</tr>\n<tr>\n<td><code>admission_date</code></td>\n<td><code>string</code> (ISO date)</td>\n<td>Yes</td>\n<td>The date of hospital admission in <code>YYYY-MM-DD</code> format. E.g., <code>\"2025-04-01\"</code></td>\n</tr>\n<tr>\n<td><code>discharge_date</code></td>\n<td><code>string</code> (ISO date)</td>\n<td>Yes</td>\n<td>The date of hospital discharge in <code>YYYY-MM-DD</code> format. E.g., <code>\"2025-05-25\"</code></td>\n</tr>\n<tr>\n<td><code>gender</code></td>\n<td><code>string</code></td>\n<td>Yes</td>\n<td>Gender of the patient. Allowed values: <code>\"Male\"</code>, <code>\"Female\"</code>, <code>\"Other\"</code></td>\n</tr>\n<tr>\n<td><code>icd9_lab_results</code></td>\n<td><code>array</code> of objects</td>\n<td>Yes</td>\n<td>List of abnormal ICD9 lab results with severity codes. Each object has two fields:– <code>status</code> (<code>string</code>): Lab result status, typically <code>\"abnormal\"</code>– <code>code</code> (<code>string</code>): ICD-9 code associated with the result. E.g., <code>\"40401\"</code></td>\n</tr>\n</tbody>\n</table>\n</div></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"45294944","collectionId":"955d126e-811f-4069-802e-6859a7979084","publishedId":"2sB2qcCg7z","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-05-25T20:13:56.000Z"},"item":[{"name":"Sample TestCase - 1","id":"f8494eb8-9446-4826-8229-dcc7d36dba48","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"features\": [\n    \"HOSPICE-HOME\",\n    \"2025-04-01\",\n    \"2025-05-25\",\n    \"Female\",\n    [\n      [\"abnormal\", \"40401\"],\n      [\"abnormal\", \"40403\"],\n      [\"abnormal\", \"40411\"],\n      [\"abnormal\", \"40491\"],\n      [\"abnormal\", \"40493\"],\n      [\"abnormal\", \"42843\"],\n      [\"abnormal\", \"42842\"],\n      [\"abnormal\", \"42841\"],\n      [\"abnormal\", \"42833\"],\n      [\"abnormal\", \"42832\"],\n      [\"abnormal\", \"42823\"]\n    ]\n  ]\n}"},"url":"https://heart-failure-predictor-z0j1.onrender.com/predict","urlObject":{"protocol":"https","path":["predict"],"host":["heart-failure-predictor-z0j1","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"ed77e73f-bf01-4f3b-af63-d7e52c2b17bf","name":"prediction","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"features\": [\n    \"HOSPICE-HOME\",\n    \"2025-04-01\",\n    \"2025-05-25\",\n    \"Female\",\n    [\n      [\"abnormal\", \"40401\"],\n      [\"abnormal\", \"40403\"],\n      [\"abnormal\", \"40411\"],\n      [\"abnormal\", \"40491\"],\n      [\"abnormal\", \"40493\"],\n      [\"abnormal\", \"42843\"],\n      [\"abnormal\", \"42842\"],\n      [\"abnormal\", \"42841\"],\n      [\"abnormal\", \"42833\"],\n      [\"abnormal\", \"42832\"],\n      [\"abnormal\", \"42823\"]\n    ]\n  ]\n}"},"url":"https://heart-failure-predictor-z0j1.onrender.com/predict"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 25 May 2025 19:50:34 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"51"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"Content-Encoding","value":"br"},{"key":"rndr-id","value":"e50a82ce-0b54-4675"},{"key":"vary","value":"Accept-Encoding"},{"key":"x-render-origin-server","value":"gunicorn"},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"94578f013df53b04-BOM"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"prediction\": 1,\n    \"probability\": 0.44450321793556213\n}"}],"_postman_id":"f8494eb8-9446-4826-8229-dcc7d36dba48"},{"name":"Sample TestCase - 2","id":"2df5271c-d2a8-4a66-9a3d-e718f7a1f4bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"features\": [\n    \"LONG TERM CARE HOSPITAL\",\n    \"2025-01-01\",\n    \"2025-04-20\",\n    \"Male\",\n    [\n      [\"abnormal\",\"40401\"],\n      [\"abnormal\",\"42843\"],\n      [\"abnormal\",\"42841\"],\n      [\"normal\",\"4280\"]\n    ]\n  ]\n}\n"},"url":"https://heart-failure-predictor-z0j1.onrender.com/predict","urlObject":{"protocol":"https","path":["predict"],"host":["heart-failure-predictor-z0j1","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"5361f9ef-a100-451f-9403-e9b6198c040f","name":"prediction","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"features\": [\n    \"LONG TERM CARE HOSPITAL\",\n    \"2025-01-01\",\n    \"2025-04-20\",\n    \"Male\",\n    [\n      [\"abnormal\",\"40401\"],\n      [\"abnormal\",\"42843\"],\n      [\"abnormal\",\"42841\"],\n      [\"normal\",\"4280\"]\n    ]\n  ]\n}\n"},"url":"https://heart-failure-predictor-z0j1.onrender.com/predict"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 25 May 2025 20:12:25 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"51"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"Content-Encoding","value":"br"},{"key":"rndr-id","value":"854ae369-8556-4a4a"},{"key":"vary","value":"Accept-Encoding"},{"key":"x-render-origin-server","value":"gunicorn"},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"9457b00229c147b0-BOM"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"prediction\": 0,\n    \"probability\": 0.11782584339380264\n}"}],"_postman_id":"2df5271c-d2a8-4a66-9a3d-e718f7a1f4bb"}]}