Cosyte

Open-source parsers for healthcare's data standards.

We build and maintain an MIT-licensed suite of parsers for the formats that carry clinical data: HL7 v2, MLLP, DICOM, X12, C-CDA, NCPDP, ASTM, and FHIR. Each one is a lenient reader that records what it tolerated as a stable warning, with a dependency footprint small enough to audit in an afternoon. We also consult on the integrations that put them to work.

parse-hl7-message.tsts
import { parseHL7 } from "@cosyte/hl7";

// A synthetic ADT^A01 admit. HL7 v2 ends every segment with a carriage return.
const raw =
  "MSH|^~\\&|EPIC|MAIN|LIS|REF|20260419101500||ADT^A01^ADT_A01|MSG00001|P|2.5\r" +
  "EVN|A01|20260419101500\r" +
  "PID|1||MRN12345^^^HOSP^MR||Doe^John^Q||19800115|M|||123 Main St^^Boston^MA^02101||^PRN^PH^^^617^5551212\r" +
  "PV1|1|I|ICU^101^A^HOSP|||||ATTEND^Smith^Jane^^^^MD|||||||||||VISIT001\r";

const msg = parseHL7(raw);

console.log("Patient record number:", msg.patient?.mrn);
console.log("Full name:", msg.patient?.fullName);
console.log("Date of birth:", msg.patient?.dateOfBirth?.raw);
console.log("Precision:", msg.patient?.dateOfBirth?.precision);
console.log("Message type:", msg.meta.type);
console.log("Sent at:", msg.meta.timestamp?.raw);
console.log("Ward:", msg.visit?.location?.pointOfCare);
output
Patient record number: MRN12345
Full name: John Q Doe
Date of birth: 19800115
Precision: day
Message type: ADT^A01^ADT_A01
Sent at: 20260419101500
Ward: ICU

The suite

One bar across every standard healthcare actually runs on.

The list is the proof. Each package is engineered to the same standard-conformance bar and ships under MIT.

@cosyte/hl7

Live

HL7 v2

@cosyte/mllp

Live

MLLP

@cosyte/dicom

Live

DICOM Part 10

@cosyte/x12

Live

ASC X12 / HIPAA 005010

@cosyte/ccda

Live

HL7 C-CDA R2.1

@cosyte/ncpdp

Live

NCPDP SCRIPT + Telecom

@cosyte/astm

Live

ASTM E1394 / E1381

@cosyte/fhir

Live

HL7 FHIR

See the full open-source surface →Or start from the standard on your wire →

Consulting

We build the integrations on the parsers we write.

  • HL7 v2feed
  • 270/271X12 eligibility
  • 835X12 remittance
  • C-CDAon referral
  • DICOMstudy decode
  • SCRIPTNCPDP ePrescribing

We work with US labs, providers, and health-tech vendors on the integration work that has to be right the first time: ingesting an HL7 v2 feed, fielding 270/271 eligibility, posting an 835 remittance, parsing a C-CDA on referral, reading a DICOM study, handling a Surescripts ePrescribing message.

The credibility comes from the open-source suite. The engagement comes from the same engineering: quiet, spec-grounded, and honest about what is and is not solved.

Integration services →

Who we are

Engineering-led, open-source-first.

We write the parsers and we do the integration work on them, so the engineering you can read on GitHub is the engineering on your project: no account managers, no handoffs. No sales floor, no out-of-date marketing site, no “platform” pitch over a hollow stack. The site you're reading and the code on GitHub are the company.

More about Cosyte →

Have a healthcare-data integration to ship?

Tell us what's on the wire and what has to come out the other side. We read the spec, write the code, and stay honest about what's solved.