Health care backend

Customer measurements and data about the customer is sent to GIllie as datapoints. “measurement” field in datapoint defines the type of measurement.

Typically health care systems sends measurements of types:

  • home_care_visit - freeform text note of home care visit. Gillie AI analyzes this.
  • systolic_blood_pressure and diastolic_blood_pressure
  • weight (customer weight)
  • heart_rate
  • glucose
  • and many others - check full list of measurements

Example

Example code sends one home_care_visit datapoint and one heart_rate measurement. device_type should contain the backend name (short name).

transaction_id field is not mandatory, but it can be used to prevent duplicate creation.


const GillieApi = require('gillie-api').GillieApi;
const api = new GillieApi(
    {publicKey: "...public key here...", 
     privateKey: "...private key here..."
  });

example();

async function example() {
    // Send datapoint for text AI
    let res1 = await api.post("/api/datapoints", 
        {
        measurement: "home_care_visit",
        string_value: "The patient was very tired.",
        person_id: "12378907778",
        at: "2021-11-29T12:00:05.000Z",
        device_type: "backend",
        transaction_id: "2987634"
    });
    console.log("RESULT 1", res1);

    // Example of sending a number datapoint / measurement
    let res2 = await api.post("/api/datapoints", {
        measurement: "heart_rate",
        value: 120,
        person_id: "12378907778",
        device_type: "backend",
        transaction_id: "2987635" 
    });
    console.log("RESULT 2", res2);
}