Coerce whatever an editor, a REST body or a stored row holds into a clean
list of base codes: each entry normalized through baseLanguageOf,
unknown entries dropped, duplicates removed (first occurrence wins, so the
physician's own order is kept), and nothing that is not an array read as
empty. The one normalizer every writer runs, so the table only ever holds
values the ranking can match.
Coerce whatever an editor, a REST body or a stored row holds into a clean list of base codes: each entry normalized through baseLanguageOf, unknown entries dropped, duplicates removed (first occurrence wins, so the physician's own order is kept), and nothing that is not an array read as empty. The one normalizer every writer runs, so the table only ever holds values the ranking can match.