@peopl-health/nexus 5.56.25 → 5.56.26

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.
@@ -21,7 +21,7 @@ const definition = {
21
21
  },
22
22
  reminder_description: {
23
23
  type: 'string',
24
- description: 'Short description of what the reminder is for (e.g. \'tomar ondansetrón antes del desayuno\', \'preguntarle cómo amaneció del dolor de cabeza\'). This becomes the WhatsApp message body.',
24
+ description: 'Short description of what the reminder is for (e.g. \'tomar ondansetrón antes del desayuno\', \'preguntarle cómo amaneció del dolor de cabeza\'). This becomes the WhatsApp message body. For a Programme activity name the format — la charla, tu sesión colectiva, tu sesión individual — never a bare \'tu sesión\': the text stays in the conversation and is what a later turn reads to tell them apart.',
25
25
  },
26
26
  reminder_type: {
27
27
  type: 'string',
@@ -387,7 +387,8 @@ function reconstruct({ plan, runId, elements, tasksById, patientId }) {
387
387
  turnId: ext[RECOMMENDATION_EXT.TURN_ID] || null,
388
388
  qualityWarnings: extValues(plan, RECOMMENDATION_EXT.QUALITY_WARNING)
389
389
  .map(objectExtension)
390
- .filter((warning) => typeof warning?.problem === 'string'),
390
+ .map(warningRecord)
391
+ .filter(Boolean),
391
392
  producedBy: {
392
393
  model: ext[RECOMMENDATION_EXT.PRODUCED_BY_MODEL] || null,
393
394
  methodVersion: ext[RECOMMENDATION_EXT.METHOD_VERSION] || null,
@@ -12,10 +12,12 @@ function normalizeForAnchor(value) {
12
12
 
13
13
  // The normalizer keeps only letters and digits, so `<3` and `≥3` would both collapse onto `3`.
14
14
  const COMPARATOR_WORDS = [
15
+ [/!=|≠|<>/g, ' neq '],
15
16
  [/>=|≥/g, ' gte '],
16
17
  [/<=|≤/g, ' lte '],
17
18
  [/>/g, ' gt '],
18
19
  [/</g, ' lt '],
20
+ [/=/g, ' eq '],
19
21
  ];
20
22
 
21
23
  const nameComparators = (value) => COMPARATOR_WORDS
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peopl-health/nexus",
3
- "version": "5.56.25",
3
+ "version": "5.56.26",
4
4
  "description": "Core messaging and assistant library for WhatsApp communication platforms",
5
5
  "keywords": [
6
6
  "whatsapp",