feat(labs): draw list/detail, marker history, PDF file serving
This commit is contained in:
@@ -508,6 +508,12 @@ for (const a of ANALYTES) {
|
||||
for (const al of a.aliases) INDEX.set(norm(al), a);
|
||||
}
|
||||
|
||||
const BY_KEY = new Map(ANALYTES.map((a) => [a.key, a]));
|
||||
|
||||
export function resolveAnalyte(name: string): Analyte | null {
|
||||
return INDEX.get(norm(name)) ?? null;
|
||||
}
|
||||
|
||||
export function getAnalyte(key: string): Analyte | null {
|
||||
return BY_KEY.get(key) ?? null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user