From a2de09daf3df37fc80fb772b26031727d4ab1eca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Sat, 20 Jun 2026 10:19:44 +0200 Subject: [PATCH] style: format the new FHIR coding modules --- src/lib/fhir/lab-loinc.ts | 5 +++-- src/lib/fhir/resources.ts | 6 +++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/lib/fhir/lab-loinc.ts b/src/lib/fhir/lab-loinc.ts index 9874e1b82..7493cb545 100644 --- a/src/lib/fhir/lab-loinc.ts +++ b/src/lib/fhir/lab-loinc.ts @@ -252,7 +252,7 @@ const UNIT_NORMALISATION: Record = { "µiu/ml": "m[IU]/L", "uiu/ml": "m[IU]/L", // eGFR rate - "mlmin173m2": "mL/min/{1.73_m2}", + mlmin173m2: "mL/min/{1.73_m2}", "ml/min/1.73m2": "mL/min/{1.73_m2}", "ml/min/1.73sqm": "mL/min/{1.73_m2}", }; @@ -297,7 +297,8 @@ export function resolveLabCoding( unit: string, canonicalName?: string | null, ): ResolvedLabCoding | null { - const source = canonicalName && canonicalName.length > 0 ? canonicalName : analyte; + const source = + canonicalName && canonicalName.length > 0 ? canonicalName : analyte; const key = normaliseLabKey(source); const resolvedKey = LAB_LOINC_BY_KEY[key] ? key : LAB_ALIASES[key]; if (!resolvedKey) return null; diff --git a/src/lib/fhir/resources.ts b/src/lib/fhir/resources.ts index 582fe6b6e..68cbda343 100644 --- a/src/lib/fhir/resources.ts +++ b/src/lib/fhir/resources.ts @@ -666,7 +666,11 @@ export function observationsFromReportData( code: coding ? { coding: [ - { system: LOINC_SYSTEM, code: coding.loinc, display: coding.display }, + { + system: LOINC_SYSTEM, + code: coding.loinc, + display: coding.display, + }, ], text, }