mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-16 07:13:29 +00:00
fix(score): write the glycaemia labels in the reader's glucose unit
The fasting-glucose pillar served its observed and reference labels as "Fasting median 99 mg/dL" and "70-99 mg/dL fasting" whatever the account's unit, and clients print those labels as they come. They are now written in the record's glucose unit. The scored value, its unit and the band edges stay canonical, so the score does not move and the web, which converts from the value, cannot convert twice. The schema now says which fields are canonical and which are display text. Refs #1067
This commit is contained in:
1 parent
d0a9086538
commit
5486014360
13 files changed
+89
-11
No files matched your search
@@ -55784,11 +55784,14 @@ components:
|
||||
properties:
|
||||
value:
|
||||
type: number
|
||||
description: The scored value in its canonical unit (fasting glucose in mg/dL).
|
||||
unit:
|
||||
type: string
|
||||
description: The canonical unit of `value`.
|
||||
label:
|
||||
type: string
|
||||
description: The complete display value, paired or panel values included.
|
||||
description: The complete display value, paired or panel values included, written in the reader's units (fasting glucose
|
||||
in the account's glucose unit).
|
||||
asOf:
|
||||
type: string
|
||||
format: date-time
|
||||
@@ -55817,12 +55820,15 @@ components:
|
||||
anyOf:
|
||||
- type: number
|
||||
- type: "null"
|
||||
description: Lower band edge, canonical unit.
|
||||
high:
|
||||
anyOf:
|
||||
- type: number
|
||||
- type: "null"
|
||||
description: Upper band edge, canonical unit.
|
||||
label:
|
||||
type: string
|
||||
description: The band as display text, in the reader's units.
|
||||
source:
|
||||
type: string
|
||||
required:
|
||||
|
||||
Reference in new issue
Block a user