@cosyte/hl7
LiveHL7 v2
Cosyte
We build, host and run healthcare integrations, on open-source libraries we wrote and maintain in public. There are 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), all MIT-licensed. Pathways, our integration engine, is in development.
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);
// Fields that identify the patient: read them, never log them. The values are synthetic.
const mrn = msg.patient?.mrn; // "MRN12345" (synthetic)
const fullName = msg.patient?.fullName; // "John Q Doe" (synthetic)
const dateOfBirth = msg.patient?.dateOfBirth; // raw "19800115" (synthetic)
// Log what identifies no one: the message type, booleans, a precision and warning codes.
console.log("Message type:", msg.meta.type);
console.log("Has a record number:", mrn !== undefined);
console.log("Has a name:", fullName !== undefined);
console.log("Date of birth precision:", dateOfBirth?.precision);
console.log("Warnings:", msg.warnings.map((w) => w.code));Message type: ADT^A01^ADT_A01
Has a record number: true
Has a name: true
Date of birth precision: day
Warnings: []The suite
The list is the proof. Each package is engineered to the same standard-conformance bar and ships under MIT.
@cosyte/hl7
LiveHL7 v2
@cosyte/mllp
LiveMLLP
@cosyte/dicom
LiveDICOM Part 10
@cosyte/x12
LiveASC X12 / HIPAA 005010
@cosyte/ccda
LiveHL7 C-CDA R2.1
@cosyte/ncpdp
LiveNCPDP SCRIPT + Telecom
@cosyte/astm
LiveASTM E1394 / E1381
@cosyte/fhir
LiveHL7 FHIR R4
See the full open-source surface →Or start from the standard on your wire →
Services
We work with US labs, providers, payers, NEMT brokers, and health-tech teams 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.
Building it is half the work. The other half is running it: we host and run what we build, in your environment, or in ours under a Business Associate Agreement, set up per engagement. Either way it sits on the same open-source libraries, so you can read the code we run for you.
Claims out, remittances in, eligibility, and claim status, built on @cosyte/x12.
License, stay, or move, and a migration proven channel by channel on replayed traffic.
Analyzer interfaces, results to ordering providers, and the claims that pay for the work.
We sign Business Associate Agreements. How we handle data
Who we are
We write the open-source libraries, we build client integrations on them, and we host and run those integrations. The engineering you can read on GitHub is the engineering on your project and the code we run for you: no account managers, no handoffs, no “platform” pitch over a hollow stack. The open source is public work, and it is where our credibility comes from.
Tell us what's on the wire and what has to come out the other side. We read the spec, write the code, keep it running, and stay honest about what's solved.