Cohorts allow you to configure shared patient settings.
For example, you could create one cohort to monitor a group of
chronically-ill individuals with all features enabled (e.g., ADTs, pharmacies, laboratory, HIE), and another cohort
that monitors a less critical group of individuals with just HIE data enabled.
If you’d like us to create a cohort that includes ADT, pharmacy, or laboratory monitoring,
please note these are premium features and require those services to be activated
on your account. Let us know if you’d like to add them.
Every cohort has a unique name and a collection of settings which apply to all patients within that cohort.
These settings control what data sources are monitored, how frequently queries are run, and what notifications are sent.A patient can be in multiple cohorts, which allows for flexible monitoring configurations.
If any cohort enables a particular monitoring feature, that feature will be active for the patient.
In Metriport, a cohort is simply a label that can be given to any number of patients. You can
use that label to apply common settings across a group of patients,
or retrieve the members of that cohort via API.
Copy
Ask AI
{ "name": "High Risk", "description": "Members of this cohort are opted-in to all available data sources.", "color": "red", "settings": { "monitoring": { "adt": { "enabled": true }, "hie": { "enabled": true, "frequency": "weekly" }, "pharmacy": { "notifications": true, "schedule": { "enabled": false, "frequency": "monthly" } }, "laboratory": { "notifications": true } } }}
See Here for a detailed explanation of the available settings.
Metriport allows you to monitor patients and receive notifications about them over time.To do this, ask us to create a cohort for you and specify the settings you wish to have. Then add patients that need to be monitored to the cohort.
The settings of the cohort are now applied to the patient (what monitoring is set, schedule, etc.).
Copy
Ask AI
// 1. Get the cohort created by Metriportconst cohortId = "00000000-0000-0000-0000-000000000000";// 2. Add patients to the cohortconst patientsInCohort = await metriportApi.addPatientsToCohort({ cohortId, patientIds: [ "11111111-1111-1111-1111-111111111111", "22222222-2222-2222-2222-222222222222", ]});
Setting a patient’s cohorts as you create them is the
easiest way + recommended way of enabling monitoring.
Alternatively, just create your patients as usual (via API call or bulk patient create) and specify the desired cohorts.
Copy
Ask AI
// Create a patient and assign to existing cohortsconst patient = await metriportApi.createPatient( { firstName: "John", lastName: "Doe", dob: "1990-01-01", genderAtBirth: "M", address: [ { addressLine1: "123 Main St", city: "Anytown", state: "CA", zip: "12345", country: "USA", }, ], // Assign cohorts during creation cohorts: [ "00000000-0000-0000-0000-000000000000", "11111111-1111-1111-1111-111111111111" ], }, facilityId);// The patient is now automatically subscribed to the monitoring settings of the 2 cohorts
Enable or disable scheduled data pulls for HIE monitoring. Defaults to disabled.
When disabled, no scheduled pulls will occur regardless of the frequency setting.
HIE monitoring is coming soon! While this feature is not yet live, you can configure
your HIE monitoring settings now. These settings will automatically take effect when the feature launches.
Enable or disable scheduled data pulls for pharmacy monitoring. When disabled, no
scheduled pulls will occur regardless of the frequency setting. Defaults to disabled.
Pharmacy monitoring is coming soon! While this feature is not yet live, you can configure
your Pharmacy monitoring settings now. These settings will automatically take effect when the feature launches.