Skip to content

Patient & Healthcare/Insurance Management Platform

Notifications You must be signed in to change notification settings

pbadhe/CureNsure

Repository files navigation

CureNsure

CureNsure is a flask based Patient & Healthcare/Insurance Management Platform providing REST APIs for following features:

  1. Appointment scheduling and management.
  2. Insurance plan selection and recommendation.
  3. Secure messaging and encryption.
  4. Tracking status & COVID-19 supportive features.

Developed By

For concerns or suggestions, contact on the given email address.

Installation

  1. Clone CureNsure repository.
  2. Create a firestore database for supporting data operations.
  3. Make sure you have the firestore secret key json file stored in the default location.
  4. If deployment is necessary, make sure you have the firestore database linked to the Google Cloud project which you want to host to the Cloud Run with appropriate IAM permissions.
  5. Install all the required packages using package manager pip with command pip install -r requirements.txt in the working environment.
  6. Run the flask server by executing python cure.py to host the application and serve the APIs.
  7. For testing the APIs, Postman application can be installed. To install Postman, visit this link.

Usage

To setup the database, see the resource documents and use the file createSchema.py for schema creation. Routes for all the APIs can be found in cure.py with appropriate documentation. APIs can be tested by importing the example-ready, labelled Postman API collection into the Postman Client. For more information on importing a json collection, visit here. The postman collection has all the API requests labelled with sample request and response.

image image image image

For example, a simple GET request for searching details of a doctor whose id is known can be called in the following way: (Flask server's default port is 8080 when hosted locally)

Request

GET /list

http://localhost:8080/list?id=3f4acd25

Response

HTTP/1.1 200 OK
Server: Werkzeug/2.2.2 Python/3.10.8
Date: Fri, 09 Dec 2022 04:24:16 GMT
Status: 200 OK
Connection: close
Content-Type: application/json
Content-Length: 311
Access-Control-Allow-Origin: *

{"hospital_name": "IU Health Center in Absolute Demo!", "id": "3f4acd25",
 "role_id": "2", "speciality": "Physician", "user_address": "Bloomington, IN",
 "user_email": "oleg@iu.edu", "user_first_name": "Joe", "user_gender": "Male",
 "user_last_name": "Nani", "user_mobile": "123134234", "user_name": "idkas", 
 "user_zipcode": "23466433" }

Deployment

Files cloudbuild.yaml and Dockerfile can be used during deployment of containerized code. For more information on deployment to Google cloud, visit here.

Contributing

Pull requests or any suggestions are welcome. Please make sure to update tests as appropriate.

License

MIT

About

Patient & Healthcare/Insurance Management Platform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published