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.
Attempting to enable ADT, pharmacy, or laboratory monitoring settings
for an account without the monitoring service activated will result in a 400 error.
These are premium features - if you’d like access to them, contact us and let us know!
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, "schedule": { "enabled": false, "frequency": "monthly" } } } }}
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, create a cohort and specify the settings directly on the cohort. 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. Create a cohortconst cohort = await metriportApi.createCohort({ name: "My Custom Cohort", description: "This is my first cohort", color: "purple", settings: { monitoring: { adt: { enabled: true } } } });// 2. Add patients to the cohortconst patientsInCohort = await metriportApi.addPatientsToCohort({ cohortId: cohort.id, patientIds: [ "00000000-0000-0000-0000-000000000000", "11111111-1111-1111-1111-111111111111", "22222222-2222-2222-2222-222222222222", ]});// 🎉 Your patients are now subscribed to ADT notifications!
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 enabled.
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.
Enable or disable scheduled data pulls for laboratory monitoring. When disabled, no
scheduled pulls will occur regardless of the frequency setting. Defaults to disabled.