style: apply prettier across the tree

One-shot prettier pass so the new format:check gate starts from a clean
baseline. Formatting only — no behaviour change. Generator-owned and
vendored artifacts stay untouched via .prettierignore.
This commit is contained in:
Marc-André Bombeck committed 2026-06-19 22:20:31 +02:00
1 parent b3fea2ef59
commit 1f4ba5939d
1000 files changed
+12130 -8385

No files matched your search

+140 -22
View File
@@ -110,9 +110,24 @@ export const REFERENCE_RANGES: Record<ReferenceMetric, ReferenceRange> = {
unit: "mmHg",
bands: [
// ESH grade bands (office, mmHg, systolic anchors shown).
{ label: "Optimal", high: 120, citation: "ESH_2023_HYPERTENSION", normal: true },
{ label: "Normal", low: 120, high: 129, citation: "ESH_2023_HYPERTENSION" },
{ label: "High-normal", low: 130, high: 139, citation: "ESH_2023_HYPERTENSION" },
{
label: "Optimal",
high: 120,
citation: "ESH_2023_HYPERTENSION",
normal: true,
},
{
label: "Normal",
low: 120,
high: 129,
citation: "ESH_2023_HYPERTENSION",
},
{
label: "High-normal",
low: 130,
high: 139,
citation: "ESH_2023_HYPERTENSION",
},
{ label: "Hypertension", low: 140, citation: "ESH_2023_HYPERTENSION" },
],
referenceId: "ESH_2023_HYPERTENSION",
@@ -135,7 +150,13 @@ export const REFERENCE_RANGES: Record<ReferenceMetric, ReferenceRange> = {
unit: "mmHg",
bands: [
{ label: "Narrow", high: 25, citation: "STATPEARLS_PULSE_PRESSURE" },
{ label: "Typical at rest", low: 25, high: 60, citation: "STATPEARLS_PULSE_PRESSURE", normal: true },
{
label: "Typical at rest",
low: 25,
high: 60,
citation: "STATPEARLS_PULSE_PRESSURE",
normal: true,
},
{ label: "Wide", low: 60, citation: "STATPEARLS_PULSE_PRESSURE" },
],
referenceId: "STATPEARLS_PULSE_PRESSURE",
@@ -147,7 +168,13 @@ export const REFERENCE_RANGES: Record<ReferenceMetric, ReferenceRange> = {
MEAN_ARTERIAL_PRESSURE: {
unit: "mmHg",
bands: [
{ label: "Resting band", low: 70, high: 100, citation: "STATPEARLS_MAP", normal: true },
{
label: "Resting band",
low: 70,
high: 100,
citation: "STATPEARLS_MAP",
normal: true,
},
],
referenceId: "STATPEARLS_MAP",
guidanceCaveat:
@@ -157,7 +184,12 @@ export const REFERENCE_RANGES: Record<ReferenceMetric, ReferenceRange> = {
PULSE_WAVE_VELOCITY: {
unit: "m/s",
bands: [
{ label: "Reference", high: 10, citation: "ESC_ESH_2018_PWV", normal: true },
{
label: "Reference",
high: 10,
citation: "ESC_ESH_2018_PWV",
normal: true,
},
{ label: "Elevated stiffness", low: 10, citation: "ESC_ESH_2018_PWV" },
],
referenceId: "ESC_ESH_2018_PWV",
@@ -173,8 +205,19 @@ export const REFERENCE_RANGES: Record<ReferenceMetric, ReferenceRange> = {
RESTING_HEART_RATE: {
unit: "bpm",
bands: [
{ label: "Normal adult resting", low: 60, high: 100, citation: "AHA_2024_RHR", normal: true },
{ label: "Athletic (benign)", low: 40, high: 60, citation: "AHA_2024_RHR" },
{
label: "Normal adult resting",
low: 60,
high: 100,
citation: "AHA_2024_RHR",
normal: true,
},
{
label: "Athletic (benign)",
low: 40,
high: 60,
citation: "AHA_2024_RHR",
},
],
referenceId: "AHA_2024_RHR",
guidanceCaveat:
@@ -193,8 +236,19 @@ export const REFERENCE_RANGES: Record<ReferenceMetric, ReferenceRange> = {
OXYGEN_SATURATION: {
unit: "%",
bands: [
{ label: "Healthy room air", low: 95, high: 100, citation: "STATPEARLS_PULSE_OX", normal: true },
{ label: "Mild hypoxaemia", low: 91, high: 94, citation: "STATPEARLS_PULSE_OX" },
{
label: "Healthy room air",
low: 95,
high: 100,
citation: "STATPEARLS_PULSE_OX",
normal: true,
},
{
label: "Mild hypoxaemia",
low: 91,
high: 94,
citation: "STATPEARLS_PULSE_OX",
},
],
referenceId: "STATPEARLS_PULSE_OX",
guidanceCaveat:
@@ -204,7 +258,13 @@ export const REFERENCE_RANGES: Record<ReferenceMetric, ReferenceRange> = {
RESPIRATORY_RATE: {
unit: "breaths/min",
bands: [
{ label: "Normal resting adult", low: 12, high: 20, citation: "ALA_RESPIRATORY_RATE", normal: true },
{
label: "Normal resting adult",
low: 12,
high: 20,
citation: "ALA_RESPIRATORY_RATE",
normal: true,
},
{ label: "Worth attention", low: 22, citation: "RCP_2017_NEWS2" },
],
referenceId: "ALA_RESPIRATORY_RATE",
@@ -216,7 +276,13 @@ export const REFERENCE_RANGES: Record<ReferenceMetric, ReferenceRange> = {
BODY_TEMPERATURE: {
unit: "°C",
bands: [
{ label: "Normal oral range", low: 35.7, high: 37.4, citation: "JGIM_2019_TEMPERATURE", normal: true },
{
label: "Normal oral range",
low: 35.7,
high: 37.4,
citation: "JGIM_2019_TEMPERATURE",
normal: true,
},
{ label: "Fever", low: 38.0, citation: "JGIM_2019_TEMPERATURE" },
],
referenceId: "JGIM_2019_TEMPERATURE",
@@ -228,9 +294,23 @@ export const REFERENCE_RANGES: Record<ReferenceMetric, ReferenceRange> = {
BLOOD_GLUCOSE: {
unit: "mg/dL",
bands: [
{ label: "Normal fasting", high: 100, citation: "ADA_2024_GLYCEMIC", normal: true },
{ label: "Prediabetes (fasting)", low: 100, high: 125, citation: "ADA_2024_GLYCEMIC" },
{ label: "Diabetes range (fasting)", low: 126, citation: "ADA_2024_GLYCEMIC" },
{
label: "Normal fasting",
high: 100,
citation: "ADA_2024_GLYCEMIC",
normal: true,
},
{
label: "Prediabetes (fasting)",
low: 100,
high: 125,
citation: "ADA_2024_GLYCEMIC",
},
{
label: "Diabetes range (fasting)",
low: 126,
citation: "ADA_2024_GLYCEMIC",
},
],
referenceId: "ADA_2024_GLYCEMIC",
conflicts: [
@@ -246,8 +326,18 @@ export const REFERENCE_RANGES: Record<ReferenceMetric, ReferenceRange> = {
HBA1C: {
unit: "%",
bands: [
{ label: "Normal", high: 5.7, citation: "ADA_2024_GLYCEMIC", normal: true },
{ label: "Prediabetes", low: 5.7, high: 6.4, citation: "ADA_2024_GLYCEMIC" },
{
label: "Normal",
high: 5.7,
citation: "ADA_2024_GLYCEMIC",
normal: true,
},
{
label: "Prediabetes",
low: 5.7,
high: 6.4,
citation: "ADA_2024_GLYCEMIC",
},
{ label: "Diabetes", low: 6.5, citation: "ADA_2024_GLYCEMIC" },
],
referenceId: "ADA_2024_GLYCEMIC",
@@ -259,7 +349,13 @@ export const REFERENCE_RANGES: Record<ReferenceMetric, ReferenceRange> = {
unit: "kg/m²",
bands: [
{ label: "Underweight", high: 18.5, citation: "WHO_2020_PA" },
{ label: "Normal", low: 18.5, high: 24.9, citation: "WHO_2020_PA", normal: true },
{
label: "Normal",
low: 18.5,
high: 24.9,
citation: "WHO_2020_PA",
normal: true,
},
{ label: "Overweight", low: 25.0, high: 29.9, citation: "WHO_2020_PA" },
{ label: "Obesity", low: 30.0, citation: "WHO_2020_PA" },
],
@@ -272,7 +368,12 @@ export const REFERENCE_RANGES: Record<ReferenceMetric, ReferenceRange> = {
STEPS: {
unit: "steps/day",
bands: [
{ label: "Higher mortality benefit", low: 8000, citation: "STEPS_SAINT_MAURICE_2020", normal: true },
{
label: "Higher mortality benefit",
low: 8000,
citation: "STEPS_SAINT_MAURICE_2020",
normal: true,
},
],
referenceId: "STEPS_SAINT_MAURICE_2020",
guidanceCaveat:
@@ -282,7 +383,13 @@ export const REFERENCE_RANGES: Record<ReferenceMetric, ReferenceRange> = {
VISCERAL_FAT: {
unit: "rating",
bands: [
{ label: "Healthy rating", low: 1, high: 12, citation: "VAT_IMAGING_THRESHOLD", normal: true },
{
label: "Healthy rating",
low: 1,
high: 12,
citation: "VAT_IMAGING_THRESHOLD",
normal: true,
},
{ label: "Elevated rating", low: 13, citation: "VAT_IMAGING_THRESHOLD" },
],
referenceId: "VAT_IMAGING_THRESHOLD",
@@ -294,8 +401,19 @@ export const REFERENCE_RANGES: Record<ReferenceMetric, ReferenceRange> = {
SLEEP_DURATION: {
unit: "h",
bands: [
{ label: "Adult 18–64", low: 7, high: 9, citation: "AASM_2015_SLEEP", normal: true },
{ label: "Older adult 65+", low: 7, high: 8, citation: "AASM_2015_SLEEP" },
{
label: "Adult 18–64",
low: 7,
high: 9,
citation: "AASM_2015_SLEEP",
normal: true,
},
{
label: "Older adult 65+",
low: 7,
high: 8,
citation: "AASM_2015_SLEEP",
},
],
referenceId: "AASM_2015_SLEEP",
guidanceCaveat: