@peopl-health/nexus 6.5.5 → 6.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -154,7 +154,8 @@ async function alertIfUntaken(review, clock, stage, now) {
|
|
|
154
154
|
// Replies to the group message Airtable posted for this alarm, so the case reads as one thread.
|
|
155
155
|
const quoted = await readGroupMessageId(clock.emergencyRecordId, review.patientCode);
|
|
156
156
|
if (!await claimStage(review, clock, stage, now)) return false;
|
|
157
|
-
|
|
157
|
+
// A roster doctor gets the levels their sin_tomar lists, like anyone else on the team.
|
|
158
|
+
const result = await sendTeamAlert({ message, operator: OPERATOR, level: clock.level, quoted, withDoctors: !who.identity.testPatient });
|
|
158
159
|
const phonesDelivered = result.phones.filter((phone) => phone.delivered).length;
|
|
159
160
|
await getEscalationReview().updateOne(
|
|
160
161
|
{ _id: review._id, untakenAlerts: { $elemMatch: sameStage(clock, stage) } },
|