{"info":{"_postman_id":"4b57bc04-1f40-4655-b9d4-f58ac4c845ab","name":"MediRepo","description":"<html><head></head><body><h1 id=\"ciagcg\">\n  <img alt=\"Logo\" src=\"https://user-images.githubusercontent.com/57791712/119592166-52709080-bdae-11eb-8bfe-f9b0a68f4950.png\">\n</h1>\n\n<h3>\n  Elixir/Phoenix API for Daily Medical Reports\n</h3>\n\n<p>Making communication easier for Hospitals and Pacients Family</p>\n\n<p>Most hospitals are restricting visitors for COVID-19 Patients. This is a personal project to help hospitals sharing Daily Medical Reports with those patients family.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"\n  \n","slug":"ciagcg"}],"owner":"15643514","collectionId":"4b57bc04-1f40-4655-b9d4-f58ac4c845ab","publishedId":"TzzBpFsL","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-08-19T11:27:08.000Z"},"item":[{"name":"Hospitals","item":[{"name":"Auth","item":[{"name":"Sign-in","id":"cb799e43-ad2c-488e-bc4b-ec693c9437d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\"email\": \"andrgab@gmail.com\",\r\n \"password\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://elderly-joyous-pangolin.gigalixirapp.com/api/hospitals/signin","description":"<p>Returns a valid token for Hospitals.</p>\n","urlObject":{"protocol":"https","path":["api","hospitals","signin"],"host":["elderly-joyous-pangolin","gigalixirapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"cb799e43-ad2c-488e-bc4b-ec693c9437d0"},{"name":"Reset Password","id":"b30dbb88-5f56-405e-8a98-401542a2ae9b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{ \"email\": \"americas22@email.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://elderly-joyous-pangolin.gigalixirapp.com/api/hospitals/reset","description":"<p>Send a registered hospital's e-mail to receive a valid reset token by e-mail.</p>\n","urlObject":{"protocol":"https","path":["api","hospitals","reset"],"host":["elderly-joyous-pangolin","gigalixirapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b30dbb88-5f56-405e-8a98-401542a2ae9b"},{"name":"Login With Reset Token","id":"29a04e7a-483a-4262-944c-2a687a32fe6a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\"id\": \"85e6af53-c5a4-4d46-b24c-df5afaf6574a\",\r\n \"reset_token\": \"UTFlVWxNc3NXTUR1SDUyQmYzc25oZz09\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://elderly-joyous-pangolin.gigalixirapp.com/api/hospitals/fastlogin","description":"<p>Use the received reset token and the hospital ID to gain a new access token.</p>\n","urlObject":{"protocol":"https","path":["api","hospitals","fastlogin"],"host":["elderly-joyous-pangolin","gigalixirapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"29a04e7a-483a-4262-944c-2a687a32fe6a"}],"id":"e7414c40-8ea6-4091-b9b4-02416ef35add","description":"<p>This folder contains endpoints related to authentication.</p>\n","_postman_id":"e7414c40-8ea6-4091-b9b4-02416ef35add"},{"name":"List","item":[{"name":"List Hospitals","event":[{"listen":"prerequest","script":{"id":"5c0db894-791d-48bd-9e64-105a3e14f80e","exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"id":"8c75f391-b6bd-4a33-8fd5-cec2d0405c28","exec":[""],"type":"text/javascript"}}],"id":"46ce86ef-4676-468a-9bd1-07306d58c1dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://elderly-joyous-pangolin.gigalixirapp.com/api/hospitals/list","description":"<p>List of all registered hospitals.</p>\n","urlObject":{"protocol":"https","path":["api","hospitals","list"],"host":["elderly-joyous-pangolin","gigalixirapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"46ce86ef-4676-468a-9bd1-07306d58c1dd"}],"id":"6cd2969e-e967-4aab-b50c-fd61dccf10e7","description":"<p>Folder with hospital list endpoint.</p>\n","_postman_id":"6cd2969e-e967-4aab-b50c-fd61dccf10e7"},{"name":"Update","event":[{"listen":"prerequest","script":{"id":"fdcbf05d-b13a-48a9-aa64-7b72c638596b","exec":[""],"type":"text/javascript"}}],"id":"9cc97d3b-64f9-49e2-9fcc-5aceab3890e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n \"password\": \"1234568\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://elderly-joyous-pangolin.gigalixirapp.com/api/hospitals/","description":"<p>Update the logged Hospital. Authetication required.</p>\n","urlObject":{"protocol":"https","path":["api","hospitals",""],"host":["elderly-joyous-pangolin","gigalixirapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"9cc97d3b-64f9-49e2-9fcc-5aceab3890e7"},{"name":"Create","event":[{"listen":"prerequest","script":{"id":"e6fc7ec8-358a-49da-84ab-df9706708813","exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"id":"bf40d889-532b-4b28-bf57-45f569b82581","exec":[""],"type":"text/javascript"}}],"id":"4e88f38f-b0d5-4860-8d59-82e7cd3d1fdc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\"name\": \"Hospital das Americas\",\r\n \"email\": \"americas2882@email.com\",\r\n \"password\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://elderly-joyous-pangolin.gigalixirapp.com/api/hospitals/","description":"<p>Creates a new hospital and gets an authentication token.</p>\n","urlObject":{"protocol":"https","path":["api","hospitals",""],"host":["elderly-joyous-pangolin","gigalixirapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"4e88f38f-b0d5-4860-8d59-82e7cd3d1fdc"},{"name":"Get","event":[{"listen":"prerequest","script":{"id":"5c0db894-791d-48bd-9e64-105a3e14f80e","exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"id":"8c75f391-b6bd-4a33-8fd5-cec2d0405c28","exec":[""],"type":"text/javascript"}}],"id":"9bc1806a-a78e-4adb-ae43-c34cef1dc0f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://elderly-joyous-pangolin.gigalixirapp.com/api/hospitals/","description":"<p>Show information about the logged hospital. Authetication required.</p>\n","urlObject":{"protocol":"https","path":["api","hospitals",""],"host":["elderly-joyous-pangolin","gigalixirapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"9bc1806a-a78e-4adb-ae43-c34cef1dc0f6"},{"name":"Delete","id":"9f37bd9d-7067-4562-a71d-4fb4580a536a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"https://elderly-joyous-pangolin.gigalixirapp.com/api/hospitals/","description":"<p>Deletes the logged Hospital. Authetication required.</p>\n","urlObject":{"protocol":"https","path":["api","hospitals",""],"host":["elderly-joyous-pangolin","gigalixirapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"9f37bd9d-7067-4562-a71d-4fb4580a536a"}],"id":"b1a706fb-bfdb-4ac1-a48e-b7b62b4b2152","description":"<p>Endpoints for hospitals</p>\n","_postman_id":"b1a706fb-bfdb-4ac1-a48e-b7b62b4b2152"},{"name":"bulletins","item":[{"name":"Create","id":"f4bd7397-9960-4c0b-8711-af8eea50ef88","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\"nome\": \"Andre\",\r\n\"dt_nascimento\": \"1980-01-18\",\r\n\"geral\": \"ESTAVEL\",\r\n\"pressao\": \"NORMAL\",\r\n\"consciencia\": \"CONSCIENTE\", \r\n\"febre\": \"Ausente\",\r\n\"respiracao\": \"NORMAL\",\r\n\"diurese\": \"NORMAL\",\r\n\"obs\": \"PACIENTE ESTA REAGINDO BEM\",\r\n\"medico\": \"DR.JOAO DA SILVA\",\r\n\"atendimento\": 99999,\r\n\"cd_paciente\": 88888,\r\n\"dt_assinatura\": \"2020-04-29\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://elderly-joyous-pangolin.gigalixirapp.com/api/bulletins","description":"<p>Creates a new Medical Report. Authetication required.</p>\n","urlObject":{"protocol":"https","path":["api","bulletins"],"host":["elderly-joyous-pangolin","gigalixirapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"f4bd7397-9960-4c0b-8711-af8eea50ef88"},{"name":"Update","id":"91570c79-54e6-47ff-a789-ceef4bb468dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n\"nome\": \"Andre\",\r\n\"dt_nascimento\": \"1977-01-28\",\r\n\"geral\": \"ESTAVEL\",\r\n\"pressao\": \"NORMAL\",\r\n\"consciencia\": \"CONSCIENTE\", \r\n\"febre\": \"TESTE\",\r\n\"respiracao\": \"NORMAL\",\r\n\"diurese\": \"NORMAL\",\r\n\"obs\": \"PACIENTE ESTA REAGINDO BEM\",\r\n\"medico\": \"ANTONIO CARLOS PETRUS\",\r\n\"atendimento\": 99999,\r\n\"cd_paciente\": 88888,\r\n\"dt_assinatura\": \"2020-04-29\",\r\n\"hospital_id\": \"c6b2430d-0f04-4321-9348-88062ca10ffe\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://elderly-joyous-pangolin.gigalixirapp.com/api/bulletins/7fa47ceb-008e-481b-825c-fa5cb2c55e64","description":"<p>Edits a bulletin. Bulletin ID and Authetication are required.</p>\n","urlObject":{"protocol":"https","path":["api","bulletins","7fa47ceb-008e-481b-825c-fa5cb2c55e64"],"host":["elderly-joyous-pangolin","gigalixirapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"91570c79-54e6-47ff-a789-ceef4bb468dc"},{"name":"Get","id":"1f740b49-d166-499a-b212-92c6a04d47d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://elderly-joyous-pangolin.gigalixirapp.com/api/bulletins/7fa47ceb-008e-481b-825c-fa5cb2c55e64","description":"<p>Gets information about a bulletin. Bulletin ID and Authetication are required.</p>\n","urlObject":{"protocol":"https","path":["api","bulletins","7fa47ceb-008e-481b-825c-fa5cb2c55e64"],"host":["elderly-joyous-pangolin","gigalixirapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1f740b49-d166-499a-b212-92c6a04d47d4"},{"name":"Delete","id":"91b577d0-956e-4b8e-a86d-562580e5982c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":false},"method":"DELETE","header":[],"url":"https://elderly-joyous-pangolin.gigalixirapp.com/api/bulletins/c92633c7-19ea-4d1c-9119-ecd28bf26fbd","description":"<p>Deletes a bulletin. Bulletin ID and Authetication are required.</p>\n","urlObject":{"protocol":"https","path":["api","bulletins","c92633c7-19ea-4d1c-9119-ecd28bf26fbd"],"host":["elderly-joyous-pangolin","gigalixirapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"91b577d0-956e-4b8e-a86d-562580e5982c"}],"id":"b3bf5b74-a07d-426a-bd2e-055fe34ce4bb","description":"<p>Folder with the endpoints for Medical Reports (bulletins).</p>\n","_postman_id":"b3bf5b74-a07d-426a-bd2e-055fe34ce4bb"},{"name":"pacients","item":[{"name":"View","id":"fea84b8f-c520-4d3a-ae5a-dabe133085cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://elderly-joyous-pangolin.gigalixirapp.com/api/patients/view","description":"<p>Shows a bulletins. Pacient authetication required.</p>\n","urlObject":{"protocol":"https","path":["api","patients","view"],"host":["elderly-joyous-pangolin","gigalixirapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"fea84b8f-c520-4d3a-ae5a-dabe133085cc"},{"name":"Sign-in","id":"72b87cad-123a-4324-80ca-dfe135a9b00b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\"login\": 88888, \r\n \"password\": 99999, \r\n \"dt_nasc\": \"1980-01-18\",\r\n \"id\": \"253aab06-85a5-48a7-8e5e-4094f05abb3b\"}\r\n","options":{"raw":{"language":"json"}}},"url":"https://elderly-joyous-pangolin.gigalixirapp.com/api/patients/signin","description":"<p>Returns a token for bulletin view. Pacient ID, Password, Birthday and Hospital ID are required.</p>\n","urlObject":{"protocol":"https","path":["api","patients","signin"],"host":["elderly-joyous-pangolin","gigalixirapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"72b87cad-123a-4324-80ca-dfe135a9b00b"}],"id":"af0153d5-62bf-4cf1-9cfd-ee9c2dda851f","description":"<p>Public Endpoints for access bulletins information.</p>\n","_postman_id":"af0153d5-62bf-4cf1-9cfd-ee9c2dda851f"}]}