curl --request POST \
--url https://api.sandbox.metriport.com/medical/v1/cohort \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "<string>",
"color": "<string>",
"description": "<string>",
"settings": {
"monitoring": {
"hie": {
"enabled": true,
"frequency": "<string>"
},
"adt": {
"enabled": true
},
"pharmacy": {
"notifications": true,
"schedule": {
"enabled": true,
"frequency": "<string>"
}
},
"laboratory": {
"notifications": true
}
}
}
}
'import { MetriportMedicalApi } from "@metriport/api-sdk";
const metriport = new MetriportMedicalApi("YOUR_API_KEY");
const cohort = await metriport.createCohort({
name: "High Risk",
color: "red",
description: "Patients that need frequent and robust monitoring.",
settings: {
monitoring: {
hie: {
enabled: true,
frequency: "weekly"
},
adt: {
enabled: true
},
pharmacy: {
notifications: true,
schedule: {
enabled: false,
frequency: "monthly"
}
},
laboratory: {
notifications: true,
schedule: {
enabled: false,
frequency: "monthly"
}
},
},
}
});
Creates a new cohort for organizing and managing groups of patients. Cohort names must be unique within your organization.
curl --request POST \
--url https://api.sandbox.metriport.com/medical/v1/cohort \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "<string>",
"color": "<string>",
"description": "<string>",
"settings": {
"monitoring": {
"hie": {
"enabled": true,
"frequency": "<string>"
},
"adt": {
"enabled": true
},
"pharmacy": {
"notifications": true,
"schedule": {
"enabled": true,
"frequency": "<string>"
}
},
"laboratory": {
"notifications": true
}
}
}
}
'import { MetriportMedicalApi } from "@metriport/api-sdk";
const metriport = new MetriportMedicalApi("YOUR_API_KEY");
const cohort = await metriport.createCohort({
name: "High Risk",
color: "red",
description: "Patients that need frequent and robust monitoring.",
settings: {
monitoring: {
hie: {
enabled: true,
frequency: "weekly"
},
adt: {
enabled: true
},
pharmacy: {
notifications: true,
schedule: {
enabled: false,
frequency: "monthly"
}
},
laboratory: {
notifications: true,
schedule: {
enabled: false,
frequency: "monthly"
}
},
},
}
});
red, green, blue, yellow, purple, orange, pink, brown, gray, black, white. Defaults to white on creation if no color is given.Show Settings properties
Hide monitoring object properties
Show hie object properties
weekly or biweekly or monthly. Defaults to monthly.Show adt object properties
Show pharmacy object properties
Show schedule object properties
weekly or biweekly or monthly. Defaults to monthly.00000000-0000-0000-0000-000000000000).Show Settings properties
Hide monitoring object properties
Show hie object properties
weekly or biweekly or monthly. Defaults to monthly.Show adt object properties
Show pharmacy object properties
Show schedule object properties
weekly or biweekly or monthly. Defaults to monthly.import { MetriportMedicalApi } from "@metriport/api-sdk";
const metriport = new MetriportMedicalApi("YOUR_API_KEY");
const cohort = await metriport.createCohort({
name: "High Risk",
color: "red",
description: "Patients that need frequent and robust monitoring.",
settings: {
monitoring: {
hie: {
enabled: true,
frequency: "weekly"
},
adt: {
enabled: true
},
pharmacy: {
notifications: true,
schedule: {
enabled: false,
frequency: "monthly"
}
},
laboratory: {
notifications: true,
schedule: {
enabled: false,
frequency: "monthly"
}
},
},
}
});
{
"id": "00000000-0000-0000-0000-000000000000",
"eTag": "1",
"name": "High Risk",
"description": "Patients that need frequent and robust monitoring.",
"color": "red",
"settings": {
"monitoring": {
"hie": {
"enabled": true,
"frequency": "weekly"
},
"adt": {
"enabled": true
},
"pharmacy": {
"notifications": true,
"schedule": {
"enabled": false,
"frequency": "monthly"
}
},
"laboratory": {
"notifications": true
}
}
},
"size": 0
}