fix(labs): never present a converted reading's printed range in the wrong unit

A converted reading's bounds move with its value, but the printed range text
stays in the unit the report used, and every reader preferred that text: the
list showed "Report range 3.9 to 5.5" beside 100.9 mg/dL, and the doctor
report and the FHIR referenceRange.text did the same. The text is still
stored verbatim. The range resolver now takes the reading's sourceUnit (as a
required field, so no reader can forget to select it) and, for a converted
reading, leaves the window's text empty so every surface states the converted
bounds in the marker's unit, and hands the printed text over separately with
its unit. The lab DTO carries it as printedReferenceText, and the note beside
a reading shows it as "as printed in mmol/L: ...".
This commit is contained in:
Marc-André Bombeck committed 2026-10-14 19:10:49 +02:00
1 parent cc0313c955
commit 47a91d6922
29 files changed
+365 -20

No files matched your search

+2 -1
View File
@@ -9590,7 +9590,8 @@
"notLinkedYet": "Noch keinem Biomarker zugeordnet",
"sourceRange": {
"fromReport": "Befundbereich {range}",
"catalogDiffers": "dein Bereich {range}"
"catalogDiffers": "dein Bereich {range}",
"printed": "auf dem Befund in {unit}: {range}"
}
},
"modules": {
+2 -1
View File
@@ -9590,7 +9590,8 @@
"notLinkedYet": "Not linked to a biomarker yet",
"sourceRange": {
"fromReport": "Report range {range}",
"catalogDiffers": "your range {range}"
"catalogDiffers": "your range {range}",
"printed": "as printed in {unit}: {range}"
}
},
"modules": {
+2 -1
View File
@@ -9590,7 +9590,8 @@
"notLinkedYet": "Aún no vinculado a un biomarcador",
"sourceRange": {
"fromReport": "Rango del informe {range}",
"catalogDiffers": "tu rango {range}"
"catalogDiffers": "tu rango {range}",
"printed": "impreso en {unit}: {range}"
}
},
"modules": {
+2 -1
View File
@@ -9590,7 +9590,8 @@
"notLinkedYet": "Pas encore lié à un biomarqueur",
"sourceRange": {
"fromReport": "Plage du compte rendu {range}",
"catalogDiffers": "votre plage {range}"
"catalogDiffers": "votre plage {range}",
"printed": "imprimé en {unit} : {range}"
}
},
"modules": {
+2 -1
View File
@@ -9590,7 +9590,8 @@
"notLinkedYet": "Non ancora collegato a un biomarcatore",
"sourceRange": {
"fromReport": "Intervallo del referto {range}",
"catalogDiffers": "il tuo intervallo {range}"
"catalogDiffers": "il tuo intervallo {range}",
"printed": "stampato in {unit}: {range}"
}
},
"modules": {
+2 -1
View File
@@ -9590,7 +9590,8 @@
"notLinkedYet": "아직 바이오마커에 연결되지 않았어요",
"sourceRange": {
"fromReport": "결과지 범위 {range}",
"catalogDiffers": "내 범위 {range}"
"catalogDiffers": "내 범위 {range}",
"printed": "결과지 원문({unit}): {range}"
}
},
"modules": {
+2 -1
View File
@@ -9590,7 +9590,8 @@
"notLinkedYet": "Jeszcze niepowiązane z biomarkerem",
"sourceRange": {
"fromReport": "Zakres z wyniku {range}",
"catalogDiffers": "twój zakres {range}"
"catalogDiffers": "twój zakres {range}",
"printed": "wydrukowano w {unit}: {range}"
}
},
"modules": {