This is the basic architecture of the system:

We have a sensor which is gaining “vitals” data, such as a pulse reading and sends this to a smartphone using Bluetooth.

From here the Smartphone will send the data to the Server vis a POST request.

The Raspberry Pi will use a RESTFul server(see and will store the data sent by the phone.

From here, physicians can easily access the data on the server through the RESTFul APIs