phenotypic.schema.header_to_module#

phenotypic.schema.header_to_module() dict[str, REMBI_MODULE][source]#

Map every known column header to its REMBI module.

Walks every MeasurementInfo subclass exported from phenotypic.schema and reads each member’s resolved_rembi_module. Cached (lru_cache): the mapping derives entirely from the import-time schema enums, which are fixed once the package is imported, so there is no staleness concern and the hot-path callers (manifest builder + metadata accessor) skip the walk on every call after the first. The returned dict is read-only by contract; callers must not mutate it (mirrors _label_to_category()).

Return type:

dict[str, REMBI_MODULE]