{"info":{"_postman_id":"45d10441-fd61-431b-a4d1-a50785840610","name":"StethoMe API - Vendor (Extended)","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"6250828","collectionId":"45d10441-fd61-431b-a4d1-a50785840610","publishedId":"S17m1BbV","public":true,"customColor":{"top-bar":"009FE3","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-03-15T11:01:06.000Z"},"item":[{"name":"token","event":[{"listen":"test","script":{"id":"7962d10c-8fff-4fef-9e20-75745b70704a","exec":["pm.test(\"Get Token\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"middle_client_token\", jsonData.token);","});"],"type":"text/javascript"}}],"id":"79b4672f-642c-4e47-8b89-7d7fe29762de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{vendor_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{api_url}}/token","description":"<p>Returns client token.</p>\n<p>Generated token must be given to StethoMe SDK for successfull authorization.</p>\n<p>Must be authorized with vendor token issued for particular vendor. Vendor token <strong>must</strong> be kept secret from client devices and <strong>must not</strong> be shared with any third party.</p>\n","urlObject":{"path":["token"],"host":["{{api_url}}"],"query":[],"variable":[]}},"response":[{"id":"ddedbf61-8ad9-42f3-9969-18c30a522488","name":"token(invalid vendor token)","originalRequest":{"method":"GET","header":[],"url":"{{api_url}}/token"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"reason\": \"Invalid token\"\n}"},{"id":"fff6654d-9fec-4086-90f8-b4f5b2b48130","name":"token","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{middle_vendor_token}}","type":"text"}],"url":"{{api_url}}/token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJpYXQiOjE1N5I0OTUwNTUsInR5cGUiOiJjbxllbnQiLCJ2ZW5kb3JfaWQiOiI1Yzg4MDdkM2E4YWI5IiwidmVu1GZyIjoiU3RlaHRvTW1iLCJqdGkiOiI1Yzg5MzFjZmI2YzI0IiwiZXhwIjoxNTUy0Dk2ODU1fQ.6hxwnIYnvz-5Y_KR3lyVtb1vR3dNDHaNeTF7kje2ePxn_WrFLXFBIp4sRnpv6nF-Es0DKWYTs-Cmw0H_Oy1JvQ\"\n}"}],"_postman_id":"79b4672f-642c-4e47-8b89-7d7fe29762de"},{"name":"check","event":[{"listen":"test","script":{"id":"b6347140-f7ef-4dfa-be07-9f66f77cfb02","exec":["pm.test(\"Get ID\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"last_id\", jsonData.id);","});"],"type":"text/javascript"}}],"id":"947e93dc-97d0-4864-8b6b-24d15f018770","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{middle_client_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{api_url}}/visit/:visit-id/check","description":"<p>Check processing status of all recordings associated with given visit id.</p>\n<p>Will return report for whole visit if processing is finished.</p>\n","urlObject":{"path":["visit",":visit-id","check"],"host":["{{api_url}}"],"query":[],"variable":[{"description":{"content":"<p>Visit ID received from StethoMe SDK or <code>/visit</code> route</p>\n","type":"text/plain"},"type":"any","value":"5c8807d3a8cb9","key":"visit-id"}]}},"response":[{"id":"098074ac-4da5-42e0-9ffa-b5e51036de66","name":"check (processing)","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{client_token}}","type":"text"}],"url":{"raw":"{{api_url}}/visit/:visit-id/check","host":["{{api_url}}"],"path":["visit",":visit-id","check"],"variable":[{"key":"visit-id","value":"5c8807d3a8cb9"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"processing\"\n}"},{"id":"82d9a57f-02df-460a-aaa1-ec92c2442402","name":"check (error)","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{client_token}}","type":"text"}],"url":{"raw":"{{api_url}}/visit/:visit-id/check","host":["{{api_url}}"],"path":["visit",":visit-id","check"],"variable":[{"key":"visit-id","value":"5c8807d3a8cb9"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"payload\": {\n        \"message\": \"Input payload validation failed\",\n        \"errors\": {\n            \"age\": \"Age in years of the auscultated subject Invalid age: -12.3. age must be a positive integer\"\n        }\n    },\n    \"result\": []\n}"},{"id":"f1f9ad02-e821-4f65-97b7-0e8d14a0206e","name":"check (successful)","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{client_token}}","type":"text"}],"url":{"raw":"{{api_url}}/visit/:visit-id/check","host":["{{api_url}}"],"path":["visit",":visit-id","check"],"variable":[{"key":"visit-id","value":"5c8807d3a8cb9"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"completed\",\n    \"alarm\": 2,\n    \"confident\": false,\n    \"points\": [\n        {\n            \"point\": 1,\n            \"valid\": true,\n            \"respiratory_rate\": 30.13815789473684,\n            \"tags\": {\n                \"ccg\": 0,\n                \"cfg\": 2,\n                \"whg\": 0,\n                \"wrg\": 0\n            },\n            \"ers_phenomenas\": {\n                \"fine crackles\": 2\n            }\n        }\n    ]\n}"}],"_postman_id":"947e93dc-97d0-4864-8b6b-24d15f018770"},{"name":"check-point","event":[{"listen":"test","script":{"id":"b6347140-f7ef-4dfa-be07-9f66f77cfb02","exec":["pm.test(\"Get ID\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"last_id\", jsonData.id);","});"],"type":"text/javascript"}}],"id":"7b46673b-5505-41e1-bf61-6f0babe54964","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{middle_client_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{api_url}}/visit/:visit-id/recording/:point/check","description":"<p>Check processing status of single recording associated with given visit id.</p>\n<p>Will return report for single recording if processing is finished.</p>\n","urlObject":{"path":["visit",":visit-id","recording",":point","check"],"host":["{{api_url}}"],"query":[],"variable":[{"description":{"content":"<p>Visit ID received from StethoMe SDK or <code>/visit</code> route</p>\n","type":"text/plain"},"type":"any","value":"5c8807d3a8cb9","key":"visit-id"},{"description":{"content":"<p>Recording No. (1-12)</p>\n","type":"text/plain"},"type":"any","value":"1","key":"point"}]}},"response":[{"id":"0327d6ef-c397-4de2-82f3-c1da1c1ac3d2","name":"check-point (completed)","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{client_token}}","type":"text"}],"url":{"raw":"{{api_url}}/visit/:visit-id/recording/:point/check","host":["{{api_url}}"],"path":["visit",":visit-id","recording",":point","check"],"variable":[{"key":"visit-id","value":"5c8807d3a8cb9"},{"key":"point","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"completed\",\n    \"point\": 1,\n    \"valid\": true,\n    \"quality\": 0.9332,\n    \"respiratory_rate\": 30.13815789473684,\n    \"tags\": {\n        \"ccg\": 0,\n        \"cfg\": 2,\n        \"whg\": 0,\n        \"wrg\": 0\n    },\n    \"ers_phenomenas\": {\n        \"fine crackles\": 2\n    }\n}"},{"id":"81d79cfd-4fb1-4836-9c2e-2c63d93adf0d","name":"check-point (processing)","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{client_token}}","type":"text"}],"url":{"raw":"{{api_url}}/visit/:visit-id/recording/:point/check","host":["{{api_url}}"],"path":["visit",":visit-id","recording",":point","check"],"variable":[{"key":"visit-id","value":"5c8807d3a8cb9"},{"key":"point","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"processing\"\n}"},{"id":"d5b969e1-459e-4684-92fb-47559f328587","name":"check-point (error)","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{client_token}}","type":"text"}],"url":{"raw":"{{api_url}}/visit/:visit-id/recording/:point/check","host":["{{api_url}}"],"path":["visit",":visit-id","recording",":point","check"],"variable":[{"key":"visit-id","value":"5c8807d3a8cb9"},{"key":"point","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"payload\": {\n        \"message\": \"Input payload validation failed\",\n        \"errors\": {\n            \"age\": \"Age in years of the auscultated subject Invalid age: 0.0. age must be a positive float\"\n        }\n    },\n    \"result\": []\n}"}],"_postman_id":"7b46673b-5505-41e1-bf61-6f0babe54964"},{"name":"tags","event":[{"listen":"test","script":{"id":"b6347140-f7ef-4dfa-be07-9f66f77cfb02","exec":["pm.test(\"Get ID\", function () {","    var jsonData = pm.response.json();","    pm.environment.set(\"last_id\", jsonData.id);","});"],"type":"text/javascript"}}],"id":"a664d3ed-4931-4fec-bc1b-c71cdc28f68a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{middle_vendor_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{api_url}}/visit/:visit-id/recording/:point/tags","description":"<p>Get analysed tags for single recording from given visit id.</p>\n","urlObject":{"path":["visit",":visit-id","recording",":point","tags"],"host":["{{api_url}}"],"query":[],"variable":[{"description":{"content":"<p>Visit ID received from StethoMe SDK or <code>/visit</code> route</p>\n","type":"text/plain"},"type":"any","value":"5c8807d3a8cb9","key":"visit-id"},{"description":{"content":"<p>Recording No. (1-12)</p>\n","type":"text/plain"},"type":"any","value":"1","key":"point"}]}},"response":[{"id":"2214d378-8190-4dbf-844f-8fa091cb6997","name":"recording tags","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{vendor_token}}","type":"text"}],"url":{"raw":"{{api_url}}/visit/:visit-id/recording/:point/tags","host":["{{api_url}}"],"path":["visit",":visit-id","recording",":point","tags"],"variable":[{"key":"visit-id","value":"5c8807d3a8cb9"},{"key":"point","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"stop\": 0.069787985865724,\n        \"start\": 0.004416961130742,\n        \"type\": \"i\"\n    },\n    {\n        \"stop\": 0.29416961130742,\n        \"start\": 0.22173144876325,\n        \"type\": \"i\"\n    },\n    {\n        \"stop\": 0.51413427561837,\n        \"start\": 0.43904593639576,\n        \"type\": \"i\"\n    },\n    {\n        \"stop\": 0.74028268551237,\n        \"start\": 0.67137809187279,\n        \"type\": \"i\"\n    },\n    {\n        \"stop\": 0.97968197879859,\n        \"start\": 0.90459363957597,\n        \"type\": \"i\"\n    },\n    {\n        \"stop\": 0.22173144876325,\n        \"start\": 0.073321554770318,\n        \"type\": \"e\"\n    },\n    {\n        \"stop\": 0.43904593639576,\n        \"start\": 0.29681978798587,\n        \"type\": \"e\"\n    },\n    {\n        \"stop\": 0.67137809187279,\n        \"start\": 0.51501766784452,\n        \"type\": \"e\"\n    },\n    {\n        \"stop\": 0.90459363957597,\n        \"start\": 0.74381625441696,\n        \"type\": \"e\"\n    },\n    {\n        \"stop\": 0.99646643109541,\n        \"start\": 0.98409893992933,\n        \"type\": \"e\"\n    },\n    {\n        \"stop\": 0.050353356890459,\n        \"start\": 0.004416961130742,\n        \"type\": \"cfg\"\n    },\n    {\n        \"stop\": 0.28356890459364,\n        \"start\": 0.22791519434629,\n        \"type\": \"cfg\"\n    },\n    {\n        \"stop\": 0.3904593639576,\n        \"start\": 0.34717314487633,\n        \"type\": \"cfg\"\n    },\n    {\n        \"stop\": 0.51060070671378,\n        \"start\": 0.44611307420495,\n        \"type\": \"cfg\"\n    },\n    {\n        \"stop\": 0.60335689045936,\n        \"start\": 0.55388692579505,\n        \"type\": \"cfg\"\n    },\n    {\n        \"stop\": 0.73144876325088,\n        \"start\": 0.67579505300353,\n        \"type\": \"cfg\"\n    },\n    {\n        \"stop\": 0.84187279151943,\n        \"start\": 0.8030035335689,\n        \"type\": \"cfg\"\n    },\n    {\n        \"stop\": 0.96908127208481,\n        \"start\": 0.91166077738516,\n        \"type\": \"cfg\"\n    },\n    {\n        \"stop\": 0.14929328621908,\n        \"start\": 0.13515901060071,\n        \"type\": \"n\"\n    },\n    {\n        \"stop\": 0.63957597173145,\n        \"start\": 0.63074204946996,\n        \"type\": \"n\"\n    },\n    {\n        \"stop\": 0.66519434628975,\n        \"start\": 0.65636042402827,\n        \"type\": \"n\"\n    },\n    {\n        \"stop\": 0.68374558303887,\n        \"start\": 0.67491166077739,\n        \"type\": \"n\"\n    },\n    {\n        \"stop\": 0.93639575971731,\n        \"start\": 0.91166077738516,\n        \"type\": \"n\"\n    },\n    {\n        \"stop\": 0.050353356890459,\n        \"start\": 0.004416961130742,\n        \"type\": \"cg\"\n    },\n    {\n        \"stop\": 0.28356890459364,\n        \"start\": 0.22791519434629,\n        \"type\": \"cg\"\n    },\n    {\n        \"stop\": 0.3904593639576,\n        \"start\": 0.34717314487633,\n        \"type\": \"cg\"\n    },\n    {\n        \"stop\": 0.50795053003534,\n        \"start\": 0.44611307420495,\n        \"type\": \"cg\"\n    },\n    {\n        \"stop\": 0.60424028268551,\n        \"start\": 0.55388692579505,\n        \"type\": \"cg\"\n    },\n    {\n        \"stop\": 0.72879858657244,\n        \"start\": 0.67579505300353,\n        \"type\": \"cg\"\n    },\n    {\n        \"stop\": 0.84275618374558,\n        \"start\": 0.8030035335689,\n        \"type\": \"cg\"\n    },\n    {\n        \"stop\": 0.96908127208481,\n        \"start\": 0.91166077738516,\n        \"type\": \"cg\"\n    },\n    {\n        \"stop\": 0.047703180212014,\n        \"start\": 0.0070671378091873,\n        \"type\": \"pg\"\n    },\n    {\n        \"stop\": 0.28091872791519,\n        \"start\": 0.22879858657244,\n        \"type\": \"pg\"\n    },\n    {\n        \"stop\": 0.38957597173145,\n        \"start\": 0.34805653710247,\n        \"type\": \"pg\"\n    },\n    {\n        \"stop\": 0.50441696113074,\n        \"start\": 0.4469964664311,\n        \"type\": \"pg\"\n    },\n    {\n        \"stop\": 0.60335689045936,\n        \"start\": 0.5547703180212,\n        \"type\": \"pg\"\n    },\n    {\n        \"stop\": 0.71554770318021,\n        \"start\": 0.67756183745583,\n        \"type\": \"pg\"\n    },\n    {\n        \"stop\": 0.83303886925795,\n        \"start\": 0.80388692579505,\n        \"type\": \"pg\"\n    },\n    {\n        \"stop\": 0.96554770318021,\n        \"start\": 0.91254416961131,\n        \"type\": \"pg\"\n    }\n]"}],"_postman_id":"a664d3ed-4931-4fec-bc1b-c71cdc28f68a"},{"name":"wav","event":[{"listen":"test","script":{"id":"b6347140-f7ef-4dfa-be07-9f66f77cfb02","exec":[""],"type":"text/javascript"}}],"id":"35ad2fca-bc3c-4977-95c0-c034cad6270c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{middle_vendor_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{api_url}}/visit/:visit-id/recording/:point/wav","description":"<p>Get single recording audio file for playback.</p>\n","urlObject":{"path":["visit",":visit-id","recording",":point","wav"],"host":["{{api_url}}"],"query":[],"variable":[{"description":{"content":"<p>Visit ID received from StethoMe SDK or <code>/visit</code> route</p>\n","type":"text/plain"},"type":"any","value":"5c8807d3a8cb9","key":"visit-id"},{"description":{"content":"<p>Recording No. (1-12)</p>\n","type":"text/plain"},"type":"any","value":"1","key":"point"}]}},"response":[{"id":"5557685e-d45e-45a6-aa43-fe91e8ef9e5e","name":"wav","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{vendor_token}}","type":"text"}],"url":{"raw":"{{api_url}}/visit/:visit-id/recording/:point/wav","host":["{{api_url}}"],"path":["visit",":visit-id","recording",":point","wav"],"variable":[{"key":"visit-id","value":"5c8807d3a8cb9"},{"key":"point","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Content-Type","value":"audio/x-wav","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"<binary_file>"}],"_postman_id":"35ad2fca-bc3c-4977-95c0-c034cad6270c"},{"name":"visit","event":[{"listen":"test","script":{"id":"b6347140-f7ef-4dfa-be07-9f66f77cfb02","exec":[""],"type":"text/javascript"}}],"id":"1403949b-2a3c-4bc3-982c-7923f31f22f5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{middle_client_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{api_url}}/visit","description":"<p>Generate visit ID.\nAll subsequent client requests will have to send this ID to properly match all recordings to same visit.</p>\n","urlObject":{"path":["visit"],"host":["{{api_url}}"],"query":[],"variable":[]}},"response":[{"id":"f572dfcf-5caf-4f42-b627-fe60717a2f76","name":"visit","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{client_token}}","type":"text"}],"url":"{{api_url}}/visit"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"5c8a4abfd8f09\"\n}"}],"_postman_id":"1403949b-2a3c-4bc3-982c-7923f31f22f5"},{"name":"add recording","event":[{"listen":"test","script":{"id":"b6347140-f7ef-4dfa-be07-9f66f77cfb02","exec":[""],"type":"text/javascript"}}],"id":"eb72c015-046b-4fb6-8284-14bdb45bc9ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{middle_client_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"meta\": \n\t{\n\t\t\"device\": {\n\t\t\t\"serial\": \"5737h0m3-h0m3\",\n\t\t\t\"type\": \"SM\"\n\t\t},\n\t\t\"patient\": {\n\t\t\t\"age\": 12.3, \"sex\": \"M\", \"weight\": 23.4\n\t\t}\n\t},\n\t\"files\": [\n\t\t{\n\t\t\t\"encoding\": \"wav\",\n\t\t\t\"position\": 1,\n\t\t\t\"data\": \"<base64_encoded_audio>\"\n\t\t}\n\t]\n}"},"url":"{{api_url}}/visit/:visit-id","description":"<p>Adds recording to visit with given id.</p>\n<p><strong>Request body schema</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th></th>\n<th>Type</th>\n<th>Description</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>meta</strong></td>\n<td><code>object</code></td>\n<td>Metadata about recording</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td><strong>files</strong></td>\n<td><code>object[]</code></td>\n<td>Array of file objects</td>\n<td>Yes</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>meta schema</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th></th>\n<th>Type</th>\n<th>Description</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>device</strong></td>\n<td><code>object</code></td>\n<td>Metadata about recording device</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td><strong>device.serial</strong></td>\n<td><code>string</code></td>\n<td>Recording device serial</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td><strong>device.type</strong></td>\n<td><code>string</code></td>\n<td>Recording device type, <strong>must</strong> be <code>SM</code> for StethoMe Home</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td></td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><strong>patient</strong></td>\n<td><code>object</code></td>\n<td>Information about ausculated subject</td>\n<td>No</td>\n</tr>\n<tr>\n<td><strong>patient.age</strong></td>\n<td><code>float</code></td>\n<td>Positive float representing age in years</td>\n<td>No</td>\n</tr>\n<tr>\n<td><strong>patient.sex</strong></td>\n<td><code>float</code></td>\n<td>String representing subject gender (<code>M</code>/<code>F</code>)</td>\n<td>No</td>\n</tr>\n<tr>\n<td><strong>patient.weight</strong></td>\n<td><code>float</code></td>\n<td>Positive float representing weight in years</td>\n<td>No</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>file schema</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th></th>\n<th>Type</th>\n<th>Description</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>encoding</strong></td>\n<td><code>string</code></td>\n<td>Encoding type <code>wav</code>(default) or <code>mdcte</code></td>\n<td>No</td>\n</tr>\n<tr>\n<td><strong>position</strong></td>\n<td><code>integer</code></td>\n<td>Ausculated point no. (1-12)</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td><strong>data</strong></td>\n<td><code>string</code></td>\n<td>Base64 encoded audio file</td>\n<td>Yes</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["visit",":visit-id"],"host":["{{api_url}}"],"query":[],"variable":[{"description":{"content":"<p>Visit ID received from StethoMe SDK or <code>/visit</code> route</p>\n","type":"text/plain"},"type":"any","value":"5c8807d3a8cb9","key":"visit-id"}]}},"response":[{"id":"d2cd46f1-3844-46ba-90d1-ce8b333edab1","name":"add (expired token)","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{client_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"meta\": \n\t{\n\t\t\"device\": {\n\t\t\t\"serial\": \"5737h0m3-h0m3\",\n\t\t\t\"type\": \"SM\"\n\t\t},\n\t\t\"patient\": {\n\t\t\t\"age\": 12.3, \"sex\": \"M\", \"weight\": 23.4\n\t\t}\n\t},\n\t\"files\": [\n\t\t{\n\t\t\t\"encoding\": \"wav\",\n\t\t\t\"position\": 1,\n\t\t\t\"data\": \"<base64_encoded_audio>\"\n\t\t}\n\t]\n}"},"url":{"raw":"{{api_url}}/visit/:visit-id","host":["{{api_url}}"],"path":["visit",":visit-id"],"variable":[{"key":"visit-id","value":"5c8807d3a8cb9"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"reason\": \"Expired token\"\n}"},{"id":"dc2f1315-46f6-4048-a5bf-84aa0dd75c40","name":"add","originalRequest":{"method":"POST","header":[{"key":"Authorization","name":"Content-Type","type":"text","value":"Bearer {{client_token}}"}],"body":{"mode":"raw","raw":"{\n\t\"meta\": \n\t{\n\t\t\"device\": {\n\t\t\t\"serial\": \"5737h0m3-h0m3\",\n\t\t\t\"type\": \"SM\"\n\t\t},\n\t\t\"patient\": {\n\t\t\t\"age\": 12.3, \"sex\": \"M\", \"weight\": 23.4\n\t\t}\n\t},\n\t\"files\": [\n\t\t{\n\t\t\t\"encoding\": \"wav\",\n\t\t\t\"position\": 1,\n\t\t\t\"data\": \"<base64_encoded_audio>\"\n\t\t}\n\t]\n}"},"url":{"raw":"{{api_url}}/visit/:visit-id","host":["{{api_url}}"],"path":["visit",":visit-id"],"variable":[{"key":"visit-id","value":"5c8807d3a8cb9"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 13 Mar 2019 16:29:19 GMT"},{"key":"Server","value":"Apache/2.4.25 (Debian)"},{"key":"X-Powered-By","value":"PHP/7.3.3"},{"key":"Content-Length","value":"44"},{"key":"Keep-Alive","value":"timeout=5, max=98"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"5c8807d3a8cb9\",\n    \"status\": \"processing\"\n}"}],"_postman_id":"eb72c015-046b-4fb6-8284-14bdb45bc9ea"}],"event":[{"listen":"prerequest","script":{"id":"e323cd9b-9387-4fac-89a5-d0f1548022dc","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"f0591eea-fe15-4623-980e-eae6907a61e6","type":"text/javascript","exec":[""]}}]}