R/jsonToCapr.R
detectUnsupportedKeys.RdDetect domain keys not in the supported set and emit skipOrStop for each (non-null/non-empty). Prevents silent semantic drift when new Circe fields appear.
detectUnsupportedKeys(
domainKey,
domainVal,
supportedKeySet,
emitter,
jsonContextPath = ""
)Character. The domain name (e.g. "ConditionOccurrence", "Measurement").
Named list. The domain criterion object from the JSON.
Character vector of supported attribute keys for this domain.
Emitter object from makeEmitter() (handles skipOrStop).
Character. Path prefix for error messages (e.g. "PrimaryCriteria").