@peopl-health/nexus 5.72.4 → 5.72.5
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.
|
@@ -105,8 +105,11 @@ const CHANGE_ES = {
|
|
|
105
105
|
unchanged: 'sigue igual',
|
|
106
106
|
worsened: 'empeoró',
|
|
107
107
|
mixed: 'mixto',
|
|
108
|
+
absent: 'no tuvo el síntoma',
|
|
108
109
|
};
|
|
109
110
|
|
|
111
|
+
const ABSENT_CHANGE_RX = /^absent_(.+)_cluster$/;
|
|
112
|
+
|
|
110
113
|
const GRADE_BASIS_ES = {
|
|
111
114
|
composite: 'la tabla compuesta del PRO-CTCAE resolvió el grado con las respuestas de arriba',
|
|
112
115
|
presence: 'sólo se preguntó si el síntoma estaba presente; el grado no sale de una escala de severidad',
|
|
@@ -294,7 +297,13 @@ function buildAdherenceBlock(priorResolutions = []) {
|
|
|
294
297
|
|
|
295
298
|
function buildSymptomChangeBlock(symptomsChange = []) {
|
|
296
299
|
if (!symptomsChange.length) return 'Sin cambio de síntomas reportado.';
|
|
297
|
-
return symptomsChange
|
|
300
|
+
return symptomsChange
|
|
301
|
+
.map((entry) => {
|
|
302
|
+
const absent = ABSENT_CHANGE_RX.exec(entry);
|
|
303
|
+
if (!absent) return `- ${entry}`;
|
|
304
|
+
return `- ${entry} → el paciente marcó «Nunca tuve este síntoma» para "${absent[1]}". Si este triaje le da grado a ese síntoma, la respuesta se contradice y vale el grado`;
|
|
305
|
+
})
|
|
306
|
+
.join('\n');
|
|
298
307
|
}
|
|
299
308
|
|
|
300
309
|
function buildSymptomSignalsBlock(symptomSignals) {
|