Skip to content
@cosyte

Cosyte

Open-source parsers and tooling for healthcare data. HL7 v2, C-CDA, X12, DICOM, NCPDP, FHIR - in TypeScript
The Cosyte logo on its own white ground: the icon beside the word Cosyte.

Integration that feels like modern software.

We build, host and run healthcare integrations, on open-source libraries we wrote and maintain in public.

  • Building with healthcare data? Use our libraries: install any one in the table below from npm, with a quickstart for each at docs.cosyte.com.
  • Need an integration built or run? We build it, then host and run it: in your environment, or in ours under a Business Associate Agreement, set up per engagement. See our integration services.

We publish 14 libraries: one for each of 8 standards (HL7 v2, MLLP, FHIR, C-CDA, X12, NCPDP, ASTM, and DICOM) and 6 built on them (terminology, transform, deid, synth, dates, and cli). They are written in TypeScript and published to npm, each on its current release line: transform and deid on the 0.2 line, and the others on the 0.1 line. Pathways is our integration engine, built on these libraries: released on npm on the 0.0 line, and still in development.

npm install @cosyte/hl7

Each library installs on its own: swap hl7 for any name in the table. All 14 are MIT licensed and support Node.js 22 or later (@cosyte/synth needs 22.12 or later), tested on 22, 24, and 26.

Libraries

Package What it does Links
@cosyte/hl7 Parse, build, and serialize HL7 v2 messages, and read fields by name (msg.patient?.mrn) instead of by position npm · docs · repo
@cosyte/mllp Send and receive HL7 v2 over MLLP: client and server, framing, ACK correlation, reconnects, TLS, and an in-memory transport for tests npm · docs · repo
@cosyte/fhir Read, write, and validate FHIR R4 in JSON and XML, keeping each value exactly as written npm · docs · repo
@cosyte/ccda Parse, build, and serialize C-CDA documents, with typed problems, medications, allergies, and results npm · docs · repo
@cosyte/x12 Parse, build, and serialize X12 005010 healthcare transactions (837, 835, 270/271, 834, 999, and more), with typed models and every amount an exact decimal npm · docs · repo
@cosyte/ncpdp Parse and build NCPDP SCRIPT ePrescriptions and Telecom pharmacy claims npm · docs · repo
@cosyte/astm Parse and build ASTM E1394 lab-instrument records and E1381 checksummed frames npm · docs · repo
@cosyte/dicom Read, write, and de-identify DICOM Part 10 metadata (PS3.15 Basic Profile), without decoding pixels npm · docs · repo
@cosyte/terminology Run FHIR $lookup, $validate-code, $translate, and $expand over code systems, value sets, and maps you supply npm · docs · repo
@cosyte/transform Turn parsed HL7 v2 messages into FHIR R4 Bundles, with mappings taken from the HL7 Version 2 to FHIR implementation guide npm · docs · repo
@cosyte/deid Apply a de-identification policy (HIPAA Safe Harbor by default) to HL7 v2, C-CDA, FHIR R4, X12, NCPDP Telecom, and DICOM metadata, with a manifest that repeats no value npm · docs · repo
@cosyte/synth Generate seeded, reproducible synthetic test data in HL7 v2, FHIR R4, C-CDA, X12, NCPDP, and ASTM npm · docs · repo
@cosyte/dates Validate and convert healthcare dates without adding precision or guessing a timezone npm · docs · repo
@cosyte/cli The cosyte command: parse, validate, convert, and redact healthcare data from the terminal, with an MCP server for agents npm · docs · repo

Start here

  • Docs and quickstarts, one quickstart per library.
  • Examples: runnable end-to-end starters. Every message, document, and image in them is synthetic.
  • Discussions: the 0.1 announcement, questions, ideas, and what you build with the libraries. Report bugs in each library's own issue tracker.
  • Pathways: our integration engine, released on the 0.0 line.
  • Integration services: we build, host and run integrations for teams that need one.
  • cosyte.com: who we are and what we build.

Popular repositories Loading

  1. x12 x12 Public

    Developer-focused ASC X12 healthcare EDI parser, serializer, and builder for Node.js and TypeScript: lenient on parse, spec-clean on emit.

    TypeScript 5 2

  2. hl7 hl7 Public

    Developer-focused HL7 v2 toolkit for Node.js and TypeScript, message parsing and building, mutation and serialization, and one-line helpers.

    TypeScript 3

  3. claude-containers claude-containers Public

    Self-hosted Docker stack for isolated, long-lived Claude Code sessions. One container per repo, reachable over SSH/tmux and the Claude app's Remote Control. Unofficial; not affiliated with Anthropic.

    Shell 3

  4. dicom dicom Public

    DICOM Part 10 parser + utility library for Node.js and TypeScript: metadata-first, vendor-quirky-tolerant, dual ESM/CJS.

    TypeScript 2

  5. terminology terminology Public

    Terminology engine for US healthcare code systems in Node.js and TypeScript: FHIR $translate, $lookup, $validate-code, and $expand over code systems, value sets, and maps you supply.

    TypeScript 2

  6. synth synth Public

    Deterministic, seedable synthetic healthcare test fixtures for Node.js and TypeScript: HL7 v2, FHIR R4 and US Core, C-CDA, X12, NCPDP, and ASTM, spec-clean by construction and never real PHI.

    TypeScript 2

Repositories

Showing 10 of 23 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…