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, }