Function: translateBound()
translateBound(
cwe,map):CodedTarget|undefined
The bound-table target for a coded element's primary coding, or undefined when the map does
not faithfully apply - i.e. the primary declares a coding system that is not this map's bound
table (CWE.3 present and not in CodedValueMap.sourceMnemonics), the primary code is empty, or
the code is in the IG map's (unmapped) group. Never asserts a standard translation for a foreign
coding system, and never fabricates a target.
Parameters
cwe
The parsed coded element (its identifier is the candidate source-table code).
map
The license-clean value map to consider applying.
Returns
CodedTarget | undefined
Example
import { translateBound, ROUTE_VALUE_MAP } from "@cosyte/transform";
translateBound({ identifier: "IM" }, ROUTE_VALUE_MAP)?.code; // "IM" (v3 route)
translateBound({ identifier: "IM", nameOfCodingSystem: "99LOCAL" }, ROUTE_VALUE_MAP); // undefined