Function: checkLoincDeprecation()
checkLoincDeprecation(
code,position,ctx):void
Flag a result/vital observation code that is a known-deprecated LOINC. Emits
DEPRECATED_LOINC (code preserved) only when the value is in the LOINC code
system and a recognized-deprecated code; otherwise silent. A value with no
code or a non-LOINC system is left unchecked.
Parameters
code
CD | undefined
position
ctx
Returns
void
Example
import { checkLoincDeprecation } from "@cosyte/ccda";
checkLoincDeprecation(observationCode, { path: "code" }, ctx);