Open-source parsers and tooling for healthcare data (HL7 v2, C-CDA, X12 EDI, DICOM, NCPDP, ASTM, and FHIR), written in strict TypeScript for Node.js. Lenient on parse, spec-clean on emit, with a bias toward never silently mis-reading a dose, a code system, or a patient identifier.
Pre-alpha, on the 0.0.x-until-first-alpha ladder.
Parsers, plus the MLLP transport for HL7 v2. Each installs on its own:
| Package | What it does |
|---|---|
@cosyte/hl7 |
HL7 v2 messages: parse, build, validate, stream |
@cosyte/mllp |
MLLP transport for HL7 v2: client + server, framing, ACK correlation, TLS |
@cosyte/dicom |
DICOM Part 10: metadata, routing keys, metadata-level PS3.15 de-identification |
@cosyte/x12 |
ASC X12 EDI: HIPAA 005010 (837 / 835 / 271 / 834 / 999 / …) |
@cosyte/ccda |
C-CDA R2.1: parse, build, and edit clinical documents |
@cosyte/ncpdp |
NCPDP: SCRIPT ePrescribing + Telecom pharmacy claims |
@cosyte/astm |
ASTM lab instruments: E1394 records + E1381 framing |
npm install @cosyte/hl7Tooling that works across the formats, rather than a parser for one:
| Package | What it does |
|---|---|
@cosyte/terminology |
Terminology engine: $lookup / $validate-code / $translate / $expand over code systems you supply |
@cosyte/transform |
HL7 v2 → FHIR R4, grounded in the official v2-to-FHIR implementation guide |
@cosyte/deid |
HIPAA-grounded de-identification policy engine, fail-closed |
@cosyte/synth |
Deterministic, seedable synthetic test data across six formats, never real PHI |
@cosyte/cli |
The cosyte command + MCP server, for the terminal or an LLM |
Some of these do not install cleanly yet, and it is fair to know before you try: transform and synth
declare a peer dependency on @cosyte/fhir, which is not on npm yet,
and @cosyte/cli@0.0.1's published manifest points at local tarballs. terminology and deid install
on their own today.
fhir is public and in active development, not yet on npm: an FHIR R4
toolkit with a safety-critical status / negation model.
Shared CI/CD and toolchain config live in .github and
config, which publishes six @cosyte/* toolchain packages of its
own.
- Correct, not merely green. Healthcare data is safety-critical; a parser that silently mis-reads a value can harm someone. Conformance is graded against the standard, not the test suite.
- PHI-safe by default. Synthetic-only fixtures, redaction in logs, no realistic PHI in the repos.
- Near-zero dependencies, dual ESM/CJS, strict TypeScript, one enforced toolchain across the suite.
Learn more at cosyte.com · developer docs at docs.cosyte.com
Pre-alpha and pre-launch: APIs may change before the first alpha.