Function: looksProductLevel()
looksProductLevel(
displayName):boolean
Heuristic: does an RxNorm displayName look like a product/branded concept
(carries a dose form or strength) rather than a bare ingredient? Used only to
flag ALLERGEN_GRANULARITY_SUSPECT, a best-effort signal, never a hard
rule. Returns false when there is no display text to inspect.
Parameters
displayName
string | undefined
Returns
boolean
Example
import { looksProductLevel } from "@cosyte/ccda";
looksProductLevel("amoxicillin 500 MG Oral Tablet"); // true
looksProductLevel("amoxicillin"); // false