Variable: OP_SUPPORT
constOP_SUPPORT:Readonly<Record<CosyteFormat,ReadonlySet<Op>>>
The honest per-format operation matrix. A (format, op) pair absent here is a value-free
CLI_FORMAT_UNSUPPORTED, never a faked result. The unsupported cells and why:
- dicom
parse/fmt. The model is binary (no faithful JSON view;serializeDicomemits a Part-10 byte stream, not text).inspect/validateare supported. - ccda
parse: the canonical form is XML; there is no library-blessed JSON model, sofmt(XML re-serialize) is the faithful surface.inspect/fmt/validateare supported. - mllp
fmt/validate: MLLP is a transport container the CLI de-frames to HL7;parseyields the enclosed HL7 message(s) andinspectreports the frame count.
Example
import { OP_SUPPORT } from "@cosyte/cli";
OP_SUPPORT.dicom.has("parse"); // => false
OP_SUPPORT.hl7.has("validate"); // => true