Detect 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 = ""
)

Arguments

domainKey

Character. The domain name (e.g. "ConditionOccurrence", "Measurement").

domainVal

Named list. The domain criterion object from the JSON.

supportedKeySet

Character vector of supported attribute keys for this domain.

emitter

Emitter object from makeEmitter() (handles skipOrStop).

jsonContextPath

Character. Path prefix for error messages (e.g. "PrimaryCriteria").