@peopl-health/nexus 5.61.0-dev.11235 → 5.61.0-dev.11236

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.
@@ -884,6 +884,11 @@ async function sendScheduledDoctorAlert({ id, kind, lease = null, now = new Date
884
884
  return null;
885
885
  }
886
886
  const urgencyLevel = kind === 'realert' ? initial.urgencyLevel : topUrgencyOf(review);
887
+ // Only stat and asap alert the doctor; a review reopened by a milder alarm waits for the board.
888
+ if (!ALERTED_URGENCIES.includes(urgencyLevel)) {
889
+ await release();
890
+ return null;
891
+ }
887
892
  // The doctor already heard about this urgency (a recheck, or a retry whose record landed): nothing to send.
888
893
  if (kind === 'initial' && (URGENCY_RANK[urgencyLevel] || 0) <= alertedRankOf(review)) {
889
894
  await release();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peopl-health/nexus",
3
- "version": "5.61.0-dev.11235",
3
+ "version": "5.61.0-dev.11236",
4
4
  "description": "Core messaging and assistant library for WhatsApp communication platforms",
5
5
  "keywords": [
6
6
  "whatsapp",