@peopl-health/nexus 6.5.1 → 6.5.2
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.
|
@@ -224,7 +224,8 @@ function briefCaseLine(identity, entry, alarmSymptom) {
|
|
|
224
224
|
const graded = [1, 2, 3, 4, 5].includes(entry?.grade) && !/\bG[1-5]\b/i.test(label) ? `${label} G${entry.grade}` : label;
|
|
225
225
|
const patient = identity.age ? `${titleCased(oneLineOf(identity.patientName))}, ${identity.age}` : titleCased(oneLineOf(identity.patientName));
|
|
226
226
|
const doctor = titleCased(oneLineOf(identity.treatingDoctor));
|
|
227
|
-
|
|
227
|
+
// The name alone: «Dr./Dra.» stands in for an unknown gender and only adds noise to a short line.
|
|
228
|
+
return doctor ? `${patient} · ${graded} (${doctor})` : `${patient} · ${graded}`;
|
|
228
229
|
}
|
|
229
230
|
|
|
230
231
|
// The four lines of the doctor's alert; each is a template variable, so none may be empty.
|