# Cosyte > The readable text of every page that https://cosyte.com/llms.txt lists, in the same order, taken from the main content of each page when the site is built. Each page starts with a Source line giving its URL. Links are absolute. The developer documentation is a separate origin with its own map, https://docs.cosyte.com/llms.txt. --- Source: https://cosyte.com/ Cosyte # Integration that feels like modern software. 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. [Talk about an integration](https://cosyte.com/integration-services) [Explore the open source](https://cosyte.com/open-source) parse-hl7-message.ts ```ts 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)); ``` output ``` Message type: ADT^A01^ADT_A01 Has a record number: true Has a name: true Date of birth precision: day Warnings: [] ``` 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 R4 [See the full open-source surface →](https://cosyte.com/open-source) [Or start from the standard on your wire →](https://cosyte.com/standards) Services ## We build your integrations, and we keep them running. - HL7 v2 feed - 270/271 X12 eligibility - 835 X12 remittance - C-CDA on referral - DICOM study decode - ASTM analyzer results 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. [Integration services →](https://cosyte.com/integration-services) ### Where teams start with us [X12 and revenue cycle](https://cosyte.com/revenue-cycle) Claims out, remittances in, eligibility, and claim status, built on @cosyte/x12. [Leaving Mirth Connect](https://cosyte.com/leaving-mirth-connect) License, stay, or move, and a migration proven channel by channel on replayed traffic. [Labs](https://cosyte.com/labs) Analyzer interfaces, results to ordering providers, and the claims that pay for the work. We sign Business Associate Agreements. [How we handle data](https://cosyte.com/trust) Who we are ## We wrote the tools, we build on them, and we keep it running. 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. [More about Cosyte →](https://cosyte.com/about) ## 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, keep it running, and stay honest about what's solved. [Get in touch](https://cosyte.com/contact) [Read the code first](https://cosyte.com/open-source) --- Source: https://cosyte.com/open-source Open source # The open-source suite. We build and maintain 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. Each parser is engineered to the same bar: a lenient reader that records what it tolerated as a stable warning, and a dependency footprint small enough to audit in an afternoon. The suite is open source and public on GitHub: read the code, file an issue, or watch a repo. Every package is on the 0.1.x line; below 1.0, a breaking change moves the minor version and the changelog says so. Eight parsers are published on npm and carry a real install line below, as do all six libraries built on them; a card shows an install line only once its package is really on npm. The bar ## One engineering standard across every package. ### Lenient reader, warnings on the record Postel's Law, applied to healthcare data: the parser tolerates the real-world quirks feeds actually ship and records each one as a stable, value-free warning, rather than throwing on the first deviation. ### Near-zero runtime dependencies Most packages ship with zero runtime dependencies. Four take one each: C-CDA and the SCRIPT side of NCPDP use an XML parser, dates uses a Temporal polyfill, and the CLI loads the MCP SDK only when its MCP server starts. Small enough to read the whole tree, not just trust it. ### MIT licensed Every package is MIT: permissive, auditable, and free to run in production. The credibility is the code, not a pitch. - 8 standards in the suite - MIT across every package - ~0 runtime dependencies The parsers ## Parsers for the standards healthcare actually runs on. Eight packages, one bar. Each is scoped to a single standard and honest about what a given release covers: the concrete surface lives in each package’s repo. @cosyte/hl7 HL7 v2 Live Parse, validate, and build HL7 v2 messages: the standard that still carries the overwhelming majority of real hospital messaging traffic. - License: MIT - Deps: Zero runtime dependencies. @cosyte/hl7 ```bash npm install @cosyte/hl7 ``` - [Overview](https://cosyte.com/standards/hl7-v2) - [Docs](https://docs.cosyte.com/hl7) - [GitHub](https://github.com/cosyte/hl7) - [npm](https://www.npmjs.com/package/@cosyte/hl7) @cosyte/mllp MLLP Live Minimal Lower Layer Protocol: the framing, ACK correlation, and reconnect behavior HL7 v2 needs over TCP. - License: MIT - Deps: Zero runtime dependencies. @cosyte/mllp ```bash npm install @cosyte/mllp ``` - [Overview](https://cosyte.com/standards/mllp) - [Docs](https://docs.cosyte.com/mllp) - [GitHub](https://github.com/cosyte/mllp) - [npm](https://www.npmjs.com/package/@cosyte/mllp) @cosyte/dicom DICOM Part 10 Live Read, navigate, and de-identify DICOM Part 10 files: the standard behind medical imaging across PACS and modality vendors. - License: MIT - Deps: Zero runtime dependencies. @cosyte/dicom ```bash npm install @cosyte/dicom ``` - [Overview](https://cosyte.com/standards/dicom) - [Docs](https://docs.cosyte.com/dicom) - [GitHub](https://github.com/cosyte/dicom) - [npm](https://www.npmjs.com/package/@cosyte/dicom) @cosyte/x12 ASC X12 / HIPAA 005010 Live Parse, serialize, and build the HIPAA 005010 healthcare transaction sets as typed models: claims (837), eligibility (270/271), remittance (835), enrollment (834), and the rest. - License: MIT - Deps: Zero runtime dependencies. @cosyte/x12 ```bash npm install @cosyte/x12 ``` - [Overview](https://cosyte.com/standards/x12) - [Docs](https://docs.cosyte.com/x12) - [GitHub](https://github.com/cosyte/x12) - [npm](https://www.npmjs.com/package/@cosyte/x12) @cosyte/ccda HL7 C-CDA R2.1 Live Parse and serialize Consolidated CDA clinical documents, and build three document types (CCD, Referral Note, and Discharge Summary): the format behind transitions of care, summaries, and document-based interoperability. - License: MIT - Deps: One runtime dependency: @xmldom/xmldom. @cosyte/ccda ```bash npm install @cosyte/ccda ``` - [Overview](https://cosyte.com/standards/c-cda) - [Docs](https://docs.cosyte.com/ccda) - [GitHub](https://github.com/cosyte/ccda) - [npm](https://www.npmjs.com/package/@cosyte/ccda) @cosyte/ncpdp NCPDP SCRIPT + Telecom Live Handle NCPDP ePrescribing messages (NewRx, RxRenewal, RxChange) and Telecom Standard pharmacy claims (B1/B2/B3): the formats behind Surescripts and PBM traffic. - License: MIT - Deps: Telecom has zero runtime dependencies; SCRIPT uses one XML parser. @cosyte/ncpdp ```bash npm install @cosyte/ncpdp ``` - [Overview](https://cosyte.com/standards/ncpdp) - [Docs](https://docs.cosyte.com/ncpdp) - [GitHub](https://github.com/cosyte/ncpdp) - [npm](https://www.npmjs.com/package/@cosyte/ncpdp) @cosyte/astm ASTM E1394 / E1381 Live Read and emit the ASTM record and framing layers behind lab-instrument interfaces: analyzer results and orders, and the checksummed frames they arrive in. - License: MIT - Deps: Zero runtime dependencies. @cosyte/astm ```bash npm install @cosyte/astm ``` - [Overview](https://cosyte.com/standards/astm) - [Docs](https://docs.cosyte.com/astm) - [GitHub](https://github.com/cosyte/astm) - [npm](https://www.npmjs.com/package/@cosyte/astm) @cosyte/fhir HL7 FHIR R4 Live Resource models, layered validation, and Bulk Data streaming for FHIR R4: the modern REST-based interoperability standard. R5 documents can be read, but are not validated. - License: MIT - Deps: Zero runtime dependencies. @cosyte/fhir ```bash npm install @cosyte/fhir ``` - [Overview](https://cosyte.com/standards/fhir) - [Docs](https://docs.cosyte.com/fhir) - [GitHub](https://github.com/cosyte/fhir) - [npm](https://www.npmjs.com/package/@cosyte/fhir) The tooling ## The libraries that build on the parsers. A higher layer of consumer libraries sits on top of the parser models: the parse → validate → transform → map → de-identify → synthesize lifecycle. There are six, all source-public on GitHub and on npm at 0.1, which means the public surface of each is now the surface we keep stable. @cosyte/terminology, @cosyte/transform, @cosyte/deid, @cosyte/synth, @cosyte/dates, and @cosyte/cli each carry an install line below. @cosyte/transform Transform Live Transform HL7 v2 messages into FHIR R4 on top of the Cosyte parser models, grounded on the HL7 Version 2 to FHIR implementation guide, so a transform is typed code rather than a brittle mapping sheet. - License: MIT - Deps: Zero runtime dependencies; @cosyte/hl7 and @cosyte/fhir are peer dependencies. @cosyte/transform ```bash npm install @cosyte/transform ``` - [Docs](https://docs.cosyte.com/transform) - [GitHub](https://github.com/cosyte/transform) - [npm](https://www.npmjs.com/package/@cosyte/transform) @cosyte/terminology Terminology Live Look up, validate, translate, and expand clinical codes over the code systems, value sets, and maps you supply (LOINC, SNOMED CT, RxNorm, ICD-10, and others). It ships the engine and no code-system release, and it never makes up a code. - License: MIT - Deps: Zero runtime dependencies. @cosyte/terminology ```bash npm install @cosyte/terminology ``` - [Overview](https://cosyte.com/standards/terminology) - [Docs](https://docs.cosyte.com/terminology) - [GitHub](https://github.com/cosyte/terminology) - [npm](https://www.npmjs.com/package/@cosyte/terminology) @cosyte/cli CLI + MCP Live The developer and LLM front door to the suite: a command-line interface and an MCP server that put parse, validate, and transform one command (or one tool call) away. - License: MIT - Deps: Two runtime dependencies, @cosyte/hl7 and @cosyte/terminology; the other @cosyte libraries and the MCP SDK are optional dependencies. @cosyte/cli ```bash npm install @cosyte/cli ``` - [Docs](https://docs.cosyte.com/cli) - [GitHub](https://github.com/cosyte/cli) - [npm](https://www.npmjs.com/package/@cosyte/cli) @cosyte/deid De-identification Live De-identify healthcare data toward HIPAA Safe Harbor: strip and surrogate the identifiers in a parsed message or document before it leaves a trusted boundary. - License: MIT - Deps: Zero runtime dependencies; the parser for each format is an optional peer dependency. @cosyte/deid ```bash npm install @cosyte/deid ``` - [Overview](https://cosyte.com/standards/de-identification) - [Docs](https://docs.cosyte.com/deid) - [GitHub](https://github.com/cosyte/deid) - [npm](https://www.npmjs.com/package/@cosyte/deid) @cosyte/synth Synthetic data Live Generate deterministic synthetic fixtures in six formats (HL7 v2, FHIR R4, C-CDA, X12, NCPDP, and ASTM; not DICOM or MLLP), each built through its parser’s own builder, with no real PHI, for conformance suites and demos. - License: MIT - Deps: Zero runtime dependencies; the parser for each format is an optional peer dependency. @cosyte/synth ```bash npm install @cosyte/synth ``` - [Docs](https://docs.cosyte.com/synth) - [GitHub](https://github.com/cosyte/synth) - [npm](https://www.npmjs.com/package/@cosyte/synth) @cosyte/dates Dates and times Live Date and time utilities for the @cosyte/* parsers: validate the date parts a parser gives you and convert them to Temporal or ISO 8601, keeping their precision and never guessing a timezone. - License: MIT - Deps: One runtime dependency: temporal-polyfill. @cosyte/dates ```bash npm install @cosyte/dates ``` - [Docs](https://docs.cosyte.com/dates) - [GitHub](https://github.com/cosyte/dates) - [npm](https://www.npmjs.com/package/@cosyte/dates) How it reads ## Lenient on the way in, spec-clean on the way out. A synthetic HL7 v2 walk-through with @cosyte/hl7: read tolerantly, keep every field, warn on the quirks, then emit strictly to spec. Invented identifiers, never real PHI. lenient-in-spec-clean-out.ts ```ts import { parseHL7 } from "@cosyte/hl7"; // A synthetic ADT^A01 as it came off the socket: MLLP framing // bytes still around it, and two stray spaces after the name. const raw = "\x0bMSH|^~\\&|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 \r" + "PV1|1|I|ICU^101^A^HOSP\r\x1c\r"; // Lenient on the way in: each quirk is tolerated and reported // with a stable code, never with the value that caused it. const msg = parseHL7(raw); console.log(msg.warnings.map((w) => w.code)); // Every field is kept. Read it; never log it. const name = msg.patient?.fullName; // "John Q Doe" (synthetic) // Spec-clean on the way out: no framing, no stray whitespace. // Log the shape of the message, never its segments. const wire = msg.toString(); console.log(parseHL7(wire).allSegments().map((segment) => segment.type)); console.log("framing bytes left:", /[\x0b\x1c]/.test(wire)); console.log("stray spaces left:", / \r/.test(wire)); ``` output ``` [ 'MLLP_FRAMING_STRIPPED', 'FIELD_WHITESPACE_TRIMMED' ] [ 'MSH', 'EVN', 'PID', 'PV1' ] framing bytes left: false stray spaces left: false ``` Integration services ## Need one of these in production? We build and run integrations on these libraries: an HL7 v2 feed, an X12 claims pipeline, a C-CDA exchange, a FHIR API, a pharmacy or lab interface. The libraries stay free and MIT-licensed; the integration work is what we sell. [Integration services →](https://cosyte.com/integration-services) --- Source: https://cosyte.com/consulting Consulting # We build your integrations, and we keep them running. 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 X12 eligibility, posting an 835 remittance, reading a C-CDA on referral, decoding a DICOM study, handling a Surescripts ePrescribing round-trip, or wiring a FHIR client to a payer API. Spec-grounded, honest about what is and is not solved, and run after it ships: in your environment, or in ours under a Business Associate Agreement. This page is how an engagement runs. The packages, from the build to Support and Managed hosting, and who each one is for, are on [integration services](https://cosyte.com/integration-services). [Email about an engagement](mailto:hello@cosyte.com) [See the packages](https://cosyte.com/integration-services) The work ## The integration work an engagement actually delivers. Concrete transactions across the standards the open-source suite covers, shown as the spec actually on the wire, not a capability deck. Every engagement starts from what a real message looks like. HL7 v2 · MLLP ### Ingest an HL7 v2 feed reliably Receive ADT, ORU, or ORM messages over MLLP from an EHR, lab, or upstream interface engine: parsed leniently, never silently dropped, acknowledged correctly, and routed downstream. HL7 v2 · MLLP ``` MSH|^~\&|EPIC|MERCYGEN|CLOVERLEAF|MERCYGEN|20240117093000||ADT^A01|MSG00001|P|2.5.1 EVN|A01|20240117093000 PID|1||MRN0012345^^^MERCYGEN^MR||DOE^JANE^Q||19800101|F ``` X12 270/271 · X12 835 ### Field eligibility and post remittance Respond to 270 eligibility requests in time and post 835 remittances to AR: claim-status, segment-level error reporting, and payer-quirk handling included. X12 270/271 · X12 835 ``` ISA*00* *00* *ZZ*AETNA *ZZ*MERCYGEN *240117*0930*^*00501*000000001*0*P*:~ ST*835*0001~ BPR*C*1250.00*C*ACH*CCP*01*011000015*DA*0000123456*1512345678~ ``` C-CDA R2.1 ### Read a C-CDA on referral Extract the clinically relevant facts from a referral or transition-of-care document (problems, medications, allergies, recent vitals) into a typed model your downstream code can trust. C-CDA R2.1 ```xml
``` DICOM Part 10 ### Decode a DICOM study and route it Parse the metadata, identify the SOP class, route the study to the right destination, and de-identify before anything leaves the boundary, without pulling in a 50 MB SDK. DICOM Part 10 ``` (0008,0016) UI SOPClassUID 1.2.840.10008.5.1.4.1.1.2 # CT Image Storage (0008,0060) CS Modality CT (0010,0020) LO PatientID ANON-0012345 ``` NCPDP SCRIPT ### Handle Surescripts ePrescribing NewRx and RxChange round-trips with a pharmacy or PBM: the XML envelope, the structured SIG, the prescriber/pharmacy NCPDP IDs, and the SCRIPT error semantics. NCPDP SCRIPT ```xml Amoxicillin 500 MG Oral Capsule ``` FHIR R4 · CMS-0057-F ### Wire a FHIR client to a payer API Implement the Prior-Authorization, Patient Access, or Provider Access API surfaces against a payer FHIR endpoint: US Core conformance, OperationOutcome error handling, and the right resource shapes. FHIR R4 · CMS-0057-F ```json { "resourceType": "Coverage", "status": "active", "subscriberId": "SUB0012345", "payor": [{ "reference": "Organization/aetna" }] } ``` Who we work with ## US labs, providers, and health-tech vendors. ### US labs Reference, hospital, and specialty labs that need LIS interop, results delivery to ordering providers, and clean ordering and billing pathways. ### Providers Hospitals, clinics, and ambulatory practices that need EHR integrations to ship correctly: claims, eligibility, referrals, results, and prescribing. ### Health-tech vendors Companies whose product exchanges clinical data with EHRs, payers, registries, or labs, and need their interop work to be spec-clean from the first release. Engagement model ## How an engagement runs. A bounded discovery call, a written scope, an implementation that ships as code you own, and then we run it: in your environment, or in ours under a signed BAA. Step 1 ### Discovery call A 30-minute working call. What you have, what has to come out the other side, the spec actually on the wire, and whether Cosyte is the right fit. Free. Step 2 ### Scoped engagement A written scope (deliverables, acceptance criteria, calendar bounds, price) that we both sign before any code is cut. BAA executed before any PHI touches our environment. Step 3 ### Implementation Code, fixtures, and tests written against the actual spec, with synthetic data in every fixture. Delivered as reviewable pull requests, not a black box: the code is yours. Step 4 ### Run We keep it running, in one of two models. Support: we keep what runs in your environment healthy, on a monthly retainer or hourly. Managed hosting: we host and operate it in our environment under a signed BAA, set up per engagement and named in the statement of work. Either way, a runbook and documentation come with it. Regulatory context ## The standards landscape, dated and honest. Three rule and program names a US healthcare-integration buyer's compliance team will already recognize, flagged as context, not as a reason to panic. ### CMS-0057-F Some provisions from January 1, 2026; the API requirements primarily from January 1, 2027 The CMS Interoperability and Prior Authorization final rule (finalized January 2024) requires impacted payers (Medicare Advantage, Medicaid managed care, CHIP managed care, and QHP issuers on federally facilitated exchanges) to stand up FHIR-based Prior-Authorization, Patient Access, Provider Access, and Payer-to-Payer APIs. Why it matters: If your product exchanges prior-auth or member data with a US payer in 2027, a conformant FHIR API surface stops being optional, and the engineering work for it is now. ### TEFCA Operational since 2023 The Trusted Exchange Framework and Common Agreement is the national-scale clinical-data exchange built on top of designated Qualified Health Information Networks (QHINs). Multiple QHINs are carrying production traffic, with FHIR-based exchange rolling in alongside the existing IHE document-based flows. Why it matters: TEFCA participation (directly as a QHIN participant or indirectly through a QHIN sub-participant) is increasingly the default way to reach a broad provider network without standing up dozens of point-to-point integrations. ### HTI-2 (proposed) NPRM issued 2024; finalization in process ONC's HTI-2 proposed rule continues to extend EHR certification: public-health reporting modules, USCDI version progression, additional FHIR API capabilities, and decision-support requirements. Why it matters: Each certified EHR your product or organization integrates with continues to surface more standardized FHIR endpoints. The integrations you build against those endpoints today get more reusable, not less, as certification widens. FAQ ## Questions a buyer's team asks before signing. - Do you work fixed-price or time-and-materials? Building an integration is fixed scope, fixed price, with milestones, once the scope is written. Running it is a monthly scope, for Support or Managed hosting. Smaller or open-ended work, and support outside a retainer, can be time-and-materials. - Do you sign a BAA? Yes. A Business Associate Agreement is executed before any protected health information touches our environment. Fixtures and reproductions use synthetic data only. - Can you work with our existing engine: Mirth, Rhapsody, or Cloverleaf? Yes. An engagement can extend what's already running, ship a parallel path, or replace a piece, whichever serves the integration best. - How does our code stay our code? The code we write for you is yours, under your license, whether it runs in your environment or we host it for you. Reusable primitives that emerge from the work may land back in the open-source @cosyte/* libraries; nothing client-specific does. - Can you host and run the integration for us? Yes. Both models are standard: we keep it running in your environment (Support), or we host and operate it in ours under a signed Business Associate Agreement (Managed hosting). Managed hosting is set up per engagement and named in the statement of work. - Do you take engagements outside the United States? US-first, because the standards and the regulatory surface are where we have the deepest reps. Non-US engagements are considered case by case: HL7 v2, MLLP, DICOM, X12, C-CDA, NCPDP, ASTM, and FHIR travel; jurisdictional knowledge does not, and we will say so. - How does an engagement start? With what is on the wire: send it through the contact form or by email. The first step is a discovery call; after it we write the scope and a fixed price for you to review. Implementation starts once the scope is signed and, if PHI is in scope, the BAA is in place. ## 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, keep it running, and stay honest about what's solved. [Email about an engagement](mailto:hello@cosyte.com) [Read the code first](https://cosyte.com/open-source) --- Source: https://cosyte.com/pathways Pathways # A code-first healthcare integration engine for Node.js. Pathways is what we are building beyond the parsers, and we are building it to be testable, modern, fast and yours to customize. Channels are YAML files in git, transforms are TypeScript functions, both are tested like any other code, and every behaviour is a setting. Pathways is early. We are building it in the open, and there is no release yet: the package is not on npm, and nothing in the repository is ready to run. We share more here as the engine takes shape. The landscape today ## Healthcare's interface engines today. Three integration engines a healthcare team may already run, and how each one is set up. ### Mirth Connect An integration engine with channels defined in a GUI and configuration exported as XML. NextGen Healthcare announced on March 19, 2025 that new versions are licensed commercially only; the last open-source release stays available. [Source: NextGen Healthcare, A new era for Mirth Connect](https://www.nextgen.com/blog/industry-news/a-new-era-for-mirth-connect-by-nextgen-healthcare), read 2026-11-07. ### Rhapsody A widely-deployed commercial integration engine: channels defined visually, routes and filters configured per environment in the product. ### Cloverleaf A long-running commercial integration engine: channels and translations configured in the product, with environment promotion handled by export and import. Each of these engines is a real, working tool that real teams ship real traffic on. They share one design assumption from the era they were built in: the channel is configured in a product, not authored in a repository. Pathways is a bet on the other side of that assumption. What we are building ## Code first, end to end. This is the design we are building toward: the four reasons we are building it, then how it handles messages and data. It describes the work, not features you can use today. ### Tested like any other code A channel is a YAML file in git that wires a source to its destinations, and its transform is a TypeScript function that receives the parsed message and returns what to send. The pathways test command will run synthetic messages through a channel and compare the output with saved snapshots. ### A modern engine, not a GUI A channel lives in your repository, is reviewed like any other change and runs on Node.js. HL7 v2, FHIR, X12 and C-CDA arrive parsed, through our open-source @cosyte/* libraries, and anything else passes through as text or JSON. Messages move over MLLP, HTTP and files, in and out. ### Performance we measure We are building Pathways for throughput. Each channel runs its transforms in its own worker thread, so one slow channel does not hold up the others. Our first figure, about 1,100 messages a second, came from the repository's closed-loop benchmark: 2,000 messages already waiting, one channel, file to file through SQLite on Node 26, on a developer machine's local disk. The same benchmark drains 630 to 750 messages a second on a GitHub-hosted runner. Under traffic arriving at a steady rate, one MLLP channel on SQLite holds 400 messages a second with every acknowledgment's p99 under 100 ms. These are advisory readings, not a promise for a deployment. Each message takes four durable commits, so batching those commits is the first place to gain speed. ### Yours to customize Every behaviour has a default and is a setting. A pathways.yaml sets engine-wide defaults, each channel overrides them, and each source or destination overrides its channel. Your own connectors, ACK builders, lifecycle hooks and storage adapters are TypeScript, each written against a public interface. ### Nothing lost Every message is stored before it is acknowledged. When a destination is down, Pathways retries and keeps that destination's messages in order, and a failed message can be replayed once the transform is fixed. Storage is SQLite to start with no setup, or PostgreSQL, MySQL or MariaDB, and SQL Server for production. ### Security controls TLS in transit, encryption at rest, an append-only audit log of operator actions with no update or delete path in the code, and no message contents in logs or errors. Compliance is a property of how an organization runs software, so we describe the controls Pathways provides rather than claim compliance for it. Honest status ## What Pathways is not yet. We would rather surprise a reader with capability than disappoint them with a missing feature. So the floor we set publicly is the floor we are sure about. - No release. No version. No demo. - Not on npm, and nothing in the repository is ready to run yet. - No drop-in replacement for Mirth, Rhapsody, or Cloverleaf today. - No hosted version yet. Pathways is an open engine, MIT-licensed and free to run yourself; hosted, managed Pathways from Cosyte is planned, and it is in development with the engine. - We'll say more about timing when there's more to say. ## Want to follow along? We build Pathways in the open. Watch or star the repository on GitHub to follow the work, or drop us a line and we will write back when Pathways has something a reader can actually try, and not before. [Follow on GitHub](https://github.com/cosyte/pathways) [Email us to follow along](mailto:hello@cosyte.com?subject=Follow%20Pathways) --- Source: https://cosyte.com/blog Writing # Notes from the interface layer Migration guides, interface how-tos, and honest notes on the healthcare standards, from building the parsers and the interfaces that use them. - October 20, 2026 [HL7 v2 over MLLP in Node](https://cosyte.com/blog/hl7-v2-over-mllp-in-node) A receiver that parses each HL7 v2 message, commits it, and only then answers AA, in one TypeScript file. - HL7 v2 - MLLP - October 19, 2026 [Cosyte 0.1: fourteen libraries for healthcare data](https://cosyte.com/blog/cosyte-0-1) Parsers for eight healthcare data standards and six libraries that build on them, all MIT-licensed and all on npm at 0.1. - Release - July 24, 2026 [Notes from the interface layer](https://cosyte.com/blog/notes-from-the-interface-layer) What this blog is for: practical healthcare-integration writing from building the open-source parsers and the interfaces that use them. - Cosyte --- Source: https://cosyte.com/blog/hl7-v2-over-mllp-in-node [← Blog](https://cosyte.com/blog) October 20, 2026 # HL7 v2 over MLLP in Node An HL7 v2 feed on a TCP socket arrives one message at a time, each message wrapped in three framing bytes and answered with an acknowledgment. The wrapper is MLLP, the Minimal Lower Layer Protocol. This post builds a receiver for it in Node.js with two of our libraries: `@cosyte/mllp` for the socket and `@cosyte/hl7` for the message. Code first. ```bash npm install @cosyte/mllp @cosyte/hl7 ``` ```ts import { createStarterClient, createStarterServer } from "@cosyte/mllp"; import { parseHL7 } from "@cosyte/hl7"; const committed: string[] = []; // The receiver. Port 0 lets the OS pick a free port; the host defaults to 127.0.0.1. const server = await createStarterServer({ port: 0, onMessage: async (payload) => { const msg = parseHL7(payload.toString("latin1")); console.log(msg.meta.controlId, msg.warnings.map((w) => w.code)); const mrn = msg.patient?.mrn; if (mrn === undefined) throw new Error("no patient identifier"); // the sender gets AE committed.push(`${msg.meta.type} ${mrn}`); // your durable write goes here }, }); // The sender, standing in for the upstream system. const client = await createStarterClient({ host: "127.0.0.1", port: server.getStats().port ?? 0, }); // Two synthetic admits. The second one arrives without its PID segment. const admit = (controlId: string, body: string) => Buffer.from( `MSH|^~\\&|ADT|HOSP|LIS|HOSP|20261020090000||ADT^A01^ADT_A01|${controlId}|P|2.5\r` + "EVN|A01|20261020090000\r" + body, ); for (const message of [ admit("MSG0001", "PID|1||MRN12345^^^HOSP^MR||ROE^SAM\rPV1|1|I\r"), admit("MSG0002", "PV1|1|I\r"), ]) { const ack = await client.send(message); const msa = ack .toString("latin1") .split("\r") .find((s) => s.startsWith("MSA|")) ?.split("|"); const [, ackCode, controlId] = msa ?? []; // MSA-1 and MSA-2 console.log(ackCode, controlId); // the acknowledgment code and the control ID it answers } console.log(committed.length); // what was stored holds a record number, so log a count await client.close(); await server.close(); ``` It prints: ``` MSG0001 [] AA MSG0001 MSG0002 [ 'MISSING_EXPECTED_GROUP' ] AE MSG0002 1 ``` The first admit is complete, so it parses with no warnings, the handler commits it, and the sender gets `AA`. The second is missing its PID segment. The parser still reads it and records what is wrong, the handler refuses it, and the sender gets `AE` with nothing committed. The acknowledgment’s own MSH-7 and MSH-10 change on every run, which is why the program prints only MSA-1 and MSA-2 from it. Nothing it prints names the patient: control IDs, warning codes, acknowledgment codes, and a count. ## What MLLP puts on the wire MLLP adds three bytes to a message and nothing else: a start block, `0x0B`, in front, and an end block, `0x1C`, followed by a carriage return, `0x0D`, behind. HL7 v2 needs it because the standard does not define a network protocol of its own, and the IHE IT Infrastructure framework requires applications to use MLLP. You can look at a frame without opening a socket: ```ts import { encodeFrame } from "@cosyte/mllp"; const frame = encodeFrame( Buffer.from("MSH|^~\\&|ADT|HOSP|LIS|HOSP|20261020090000||ADT^A01|MSG0001|P|2.5\r"), ); console.log(frame[0] === 0x0b, frame.subarray(1, 4).toString() === "MSH"); console.log(frame.at(-3) === 0x0d, frame.at(-2) === 0x1c, frame.at(-1) === 0x0d); ``` ``` true true true true true ``` The first byte is the start block, `0x0B`, and the message’s own `MSH` follows it. At the far end, `0x0D` is the carriage return that closes the last HL7 segment, and `0x1C` with a final `0x0D` closes the frame. The two carriage returns do different jobs, and a reader has to tell them apart. `FrameReader` does the reverse of `encodeFrame` for bytes in whatever chunks TCP delivers them. ## The acknowledgment comes after the commit The acknowledgment code goes in MSA-1: `AA` for application accept, `AE` for application error, and `AR` for application reject. MSA-2 carries the control ID of the message being answered, which is how a sender matches each answer to the message it sent. A sender treats `AA` as permission to forget the message, so a receiver that answers before its own write has succeeded can lose a message without anyone noticing. `@cosyte/mllp` makes the order structural. When the server has a handler, it awaits the handler and only then answers: `AA` if it resolves, `AE` if it throws, and `AR` if it throws an `MllpAckError` that asks for one. That is what happened to MSG0002 above. The text in MSA-3 comes from a fixed pair (“message could not be processed”, “message rejected”), so the error you throw, which may well name a patient, stays on your side of the socket. One more case answers `AE` even when the handler resolves: an inbound message the sender could not match an `AA` to, such as one with an empty MSH-10 or a batch in a single frame. The message is still committed, and the server emits a `nack` event naming the reason, because a positive acknowledgment the sender cannot correlate is one it will resend. MLLP with acknowledgments is at-least-once delivery at best, so a sender that times out will send the same message again. Keep your commit idempotent: the mllp README suggests de-duplicating on MSH-10 together with MSH-7. ## Warnings you can log `msg.warnings` is how the parser reports what it tolerated. A warning carries a stable code and a position rather than the value that caused it, so the handler above can log it as it is. In the message structure HL7 publishes for ADT_A01, PID is required, and MSG0002 has none, so it gets `MISSING_EXPECTED_GROUP`. The warning’s own text says what that usually means: the message may be truncated or misrouted. A receiver can route on the code without reading the message. The transport side reads even less. `@cosyte/mllp` locates the MSH segment to build the acknowledgment and stops at that segment’s terminator, so on the transport path PID is never read, decoded, or echoed. The parse in the handler is yours, and so is anything you log from it. ## What it does not do - Batch acknowledgment is not built. A batch envelope (FHS and BHS) or a frame carrying more than one MSH gets a warned `AE` rather than an `AA` for the first message alone. - MLLP Release 2 is not spoken. - Encryption is opt-in, because plain MLLP is cleartext on the wire. TLS is built on `node:tls` with certificate verification on by default, and the server binds 127.0.0.1 unless you allow a wildcard bind explicitly. ## Where to go next The [MLLP page](https://cosyte.com/standards/mllp) and the [HL7 v2 page](https://cosyte.com/standards/hl7-v2) list each library’s limits and alternatives. The quickstarts for [mllp](https://docs.cosyte.com/mllp/quickstart) and [hl7](https://docs.cosyte.com/hl7/quickstart) go further. If you would rather we build and run the interface itself, that is what [integration services](https://cosyte.com/integration-services) are for. ## Sources Read on October 7, 2026. - [IHE IT Infrastructure Technical Framework, Volume 2, Appendix C](https://profiles.ihe.net/ITI/TF/Volume2/ch-C.html), section C.2.1: “The HL7 2.5 standard does not define a network communications protocol”, and applications “shall use the Minimal Lower Layer Protocol defined in Appendix C of the HL7 Implementation Guide”. - [HL7 v2 refactored draft, Minimal Lower Layer Protocol](https://www.hl7.eu/refactored/transport01mllp.html): the start block `0x0B`, the end block `0x1C`, and the carriage return `0x0D`. - [HL7 Table 0008, Acknowledgment code](https://www.hl7.eu/refactored/tab0008.html): `AA`, `AE`, and `AR`. - [HL7 MSA segment](https://www.hl7.eu/refactored/segMSA.html): MSA-2 “contains the message control ID of the message sent by the sending system”. - [HL7 ADT^A01 message structure](https://www.hl7.eu/refactored/msgADT_A01.html): MSH, EVN, PID, and PV1 each `[1..1]`. - [The @cosyte/mllp 0.1.0 README](https://github.com/cosyte/mllp#readme): the commit contract, the downgrade to `AE`, the bounded MSH read, de-duplication on MSH-10 with MSH-7, batch acknowledgment, MLLP Release 2, and the TLS defaults; and its [acknowledgment source](https://github.com/cosyte/mllp/blob/main/src/server/ack.ts) for the fixed MSA-3 text. - [The @cosyte/hl7 0.1.0 README](https://github.com/cosyte/hl7#readme): warnings carry a stable code and a position, never the field value. ## Work with Cosyte We build the open-source tooling above, and the integration work that uses it. If you are migrating off a legacy engine or standing up an interface, we can help. [Work with Cosyte](https://cosyte.com/integration-services) --- Source: https://cosyte.com/standards Standards # Healthcare data standards, one library each. HL7 v2, FHIR, C-CDA, X12, NCPDP, ASTM, DICOM, and MLLP each have a parser; clinical terminology and de-identification each have an engine. Every page says what the standard is and where it shows up, with sources, then what our library does, what it does not do, and what else you could use. Need it integrated? [Talk to us](https://cosyte.com/contact). The pages ## Pick the standard on your wire. @cosyte/hl7 ### [HL7 v2](https://cosyte.com/standards/hl7-v2) The pipe-delimited messages hospital systems exchange for admissions, orders, and results. @cosyte/fhir ### [FHIR](https://cosyte.com/standards/fhir) The resource-based API standard that certified EHRs and many US payers must expose. @cosyte/ccda ### [C-CDA](https://cosyte.com/standards/c-cda) The XML clinical documents behind transitions of care, referrals, and discharge summaries. @cosyte/x12 ### [X12](https://cosyte.com/standards/x12) The HIPAA EDI transactions behind claims, remittance, eligibility, and enrollment. @cosyte/ncpdp ### [NCPDP](https://cosyte.com/standards/ncpdp) Pharmacy claims in the Telecommunication Standard, and ePrescribing in SCRIPT. @cosyte/astm ### [ASTM](https://cosyte.com/standards/astm) The framing and record formats lab analyzers use to send results to a laboratory information system. @cosyte/dicom ### [DICOM](https://cosyte.com/standards/dicom) The standard and file format behind medical imaging, from CT to ultrasound. @cosyte/mllp ### [MLLP](https://cosyte.com/standards/mllp) The TCP framing HL7 v2 feeds travel in, with acknowledgments on top. @cosyte/terminology ### [Terminology](https://cosyte.com/standards/terminology) LOINC, SNOMED CT, RxNorm, ICD-10-CM, and UCUM: the code systems every other standard points into. @cosyte/deid ### [De-identification](https://cosyte.com/standards/de-identification) HIPAA Safe Harbor and Expert Determination, applied to parsed healthcare data. Across the standards ## Libraries that work across several of them. - [@cosyte/transform](https://github.com/cosyte/transform) Maps parsed HL7 v2 messages to FHIR R4 resources, following HL7's v2-to-FHIR implementation guide. - [@cosyte/synth](https://github.com/cosyte/synth) Deterministic synthetic fixtures for six formats, each built through its parser's own serializer, so tests never need real patient data. - [@cosyte/cli](https://github.com/cosyte/cli) The parsers from a terminal, and the same commands as tools for an agent over MCP. ## Install the library, or hand us the integration. Every library is free and MIT-licensed. If you would rather have the integration built and run for you, that is what we sell. [Every package, with its install line](https://cosyte.com/open-source) [Integration services](https://cosyte.com/integration-services) --- Source: https://cosyte.com/standards/hl7-v2 HL7 v2 # Parse HL7 v2 in TypeScript, vendor quirks included. @cosyte/hl7 reads the HL7 v2 messages real systems send, hands you the fields by name, and reports every deviation it tolerated as a warning with a stable code. MIT-licensed, with zero runtime dependencies. @cosyte/hl7 ```bash npm install @cosyte/hl7 ``` [Star cosyte/hl7 on GitHub](https://github.com/cosyte/hl7) [Read the quickstart](https://docs.cosyte.com/hl7/quickstart) Need it integrated? [Talk to us](https://cosyte.com/contact). The standard ## HL7 v2 is the message format most hospital interfaces still speak. - HL7 International calls its Version 2.x messaging standard the workhorse of electronic data exchange in the clinical domain. It was first released in October 1987. [Source: HL7 International, V2 product brief](https://www.hl7.org/implement/standards/product_brief.cfm?product_id=185) - The same page reports that 95% of US healthcare organizations use HL7 v2, and that more than 35 countries have implementations. [Source: HL7 International, V2 product brief](https://www.hl7.org/implement/standards/product_brief.cfm?product_id=185) - A v2 message is built from reusable segments and passes between a sending and a receiving system, to share information or to trigger an action such as a patient transfer or a lab order. [Source: HL7 FHIR specification, comparison with v2](https://hl7.org/fhir/comparison-v2.html) - Common message types cover patient movement (admission, discharge, and transfer), orders, test results, clinical reports, billing, and scheduling. [Source: National Library of Medicine, health data standards course](https://www.nlm.nih.gov/oet/ed/healthdatastandards/03-300.html) @cosyte/hl7 ## Fields by name, with the full segment tree underneath. It is for the developer who has to consume HL7 v2 traffic without becoming an HL7 expert first. msg.patient?.mrn and msg.meta.timestamp are the whole learning curve, and the positional tree is one accessor away when you need it. - Three ways in: named helpers such as msg.patient and msg.observations(), dot-paths such as msg.get("PID.5.1"), and structural traversal. - Lenient by default: 20 stable warning codes record what was tolerated, strict mode turns every deviation into an error for CI, and only 4 structural failures are always fatal. - Round-trip safe: parse, modify, and serialize back to spec-clean HL7, with escape sequences re-emitted byte for byte. - Opt-in validation against HL7's published message structures, or against a conformance profile you write. - 8 built-in vendor profiles, and defineProfile() for your own trading partners. - parseStream reads batch files too large to hold in memory. - No logging, no network, and no file access. A warning carries a code and a position, never the field value. quickstart.ts ```ts 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)); ``` Adapted from the [@cosyte/hl7 README on GitHub](https://github.com/cosyte/hl7#install) so that it logs no value that identifies a person. Every value in it is synthetic. Limits ## What it does not do. Its README names what is out of scope. The short version: - It is a parser, not a transport. MLLP framing and acknowledgments are @cosyte/mllp. - It does not read HL7 v3 or CDA documents. C-CDA is @cosyte/ccda. - It does not convert to FHIR. That is @cosyte/transform. - It validates structure, not every HL7 table. Coded values need a domain validator of your own. - A fatal parse error carries up to 40 characters of the input, unredacted, so the error is actionable. Strip it before logging if your policy requires. - Storage, transport security, retention, audit, and access control stay with your application. [The full status and limits, in the README](https://github.com/cosyte/hl7#roadmap) Alternatives ## What else you could use. Each description comes from the project’s own page or npm listing, linked below. Where we name a difference, you can check it there. Java library ### HAPI HL7v2 An open-source, object-oriented HL7 2.x parser for Java; its site says JDK 11 or later is required. The natural choice when your service runs on the JVM. @cosyte/hl7 is for Node.js and TypeScript. [Source: HAPI HL7v2 project site](https://hapifhir.github.io/hapi-hl7v2/) Node.js library ### node-hl7-client An MIT-licensed Node.js client that sends HL7 messages to a server and can parse them; node-hl7-server is its receiving side. Transport and parsing come together there. We keep them apart, in @cosyte/mllp and @cosyte/hl7. [Source: npm, node-hl7-client](https://www.npmjs.com/package/node-hl7-client) JavaScript library ### hl7-standard An Apache-2.0 module for transforming, manipulating, and creating HL7 messages, usable on its own or inside an engine such as Mirth. Its latest npm release dates from May 2022, and it ships no type declarations. [Source: npm, hl7-standard](https://www.npmjs.com/package/hl7-standard) TypeScript SDK class ### Medplum Hl7Message Medplum's TypeScript SDK includes an Hl7Message class that represents one message as a collection of segments. [Source: Medplum documentation, Hl7Message](https://www.medplum.com/docs/sdk/core.hl7message) Integration engine ### Mirth Connect NextGen Healthcare's integration engine. From version 4.6 it moved to a single closed-source, proprietary license, and the source code for new releases is no longer public. An engine is a server you configure; a library is code inside your own service. [Source: NextGen Healthcare, Mirth Connect downloads](https://www.nextgen.com/solutions/interoperability/mirth-integration-engine/mirth-connect-downloads) Integration engine ### Rhapsody Rhapsody describes Rhapsody Integration as its API-centric healthcare integration product, working across FHIR, HL7, and APIs. [Source: Rhapsody, Rhapsody Integration](https://rhapsody.health/solutions/rhapsody/) Works with ## The rest of the suite, where it fits. - [MLLP](https://cosyte.com/standards/mllp) @cosyte/mllp moves HL7 v2 over TCP: framing, acknowledgments, and reconnects. - [@cosyte/transform](https://github.com/cosyte/transform) Maps parsed HL7 v2 messages to FHIR R4 resources, following HL7's v2-to-FHIR implementation guide. - [@cosyte/synth](https://github.com/cosyte/synth) Generates spec-clean synthetic HL7 v2 messages for your tests, the same bytes for the same seed. - [De-identification](https://cosyte.com/standards/de-identification) @cosyte/deid applies a HIPAA Safe Harbor policy to a parsed HL7 v2 message. - [@cosyte/cli](https://github.com/cosyte/cli) Parse an HL7 v2 file from a terminal, or give an agent the same parser over MCP. - [@cosyte/dates](https://www.npmjs.com/package/@cosyte/dates) Converts and validates the dates the @cosyte parsers return, without inventing a midnight or a timezone. ## Try @cosyte/hl7 on your own messages. It is free and MIT-licensed. If it saves you a day, a star on GitHub helps other engineers find it. [Star on GitHub](https://github.com/cosyte/hl7) [View on npm](https://www.npmjs.com/package/@cosyte/hl7) Need it integrated? [Talk to us](https://cosyte.com/contact), or see what our [integration services](https://cosyte.com/integration-services) cover. --- Source: https://cosyte.com/standards/fhir FHIR # Read and write FHIR without losing a decimal. @cosyte/fhir reads FHIR R4 JSON and XML into an immutable model and writes it back without dropping a trailing zero, a primitive extension, or a status flag, then validates structure, cardinality, and the profiles you supply. Its README lists exactly what is built and what is not yet. @cosyte/fhir ```bash npm install @cosyte/fhir ``` [Star cosyte/fhir on GitHub](https://github.com/cosyte/fhir) [Read the docs](https://docs.cosyte.com/fhir/intro) Need it integrated? [Talk to us](https://cosyte.com/contact). The standard ## FHIR is HL7's resource-based standard, and US rules now require it. - FHIR is a standard for healthcare data exchange published by HL7. FHIR solutions are built from modular components called resources. [Source: HL7 FHIR specification, summary](https://hl7.org/fhir/summary.html) - ONC's certification criterion (g)(10) requires certified health IT to answer requests for a single patient's data, and for multiple patients' data as a group, through a standardized FHIR API. It names the US Core Implementation Guide STU 6.1.0. [Source: ONC test method, 170.315(g)(10)](https://www.healthit.gov/test-method/standardized-api-patient-and-population-services) - US Core is based on FHIR R4 and defines the minimum constraints on FHIR resources that make up the US Core profiles. [Source: HL7 US Core Implementation Guide](https://hl7.org/fhir/us/core/) - CMS-0057-F requires Medicare Advantage organizations, state Medicaid and CHIP fee-for-service programs, Medicaid managed care plans, CHIP managed care entities, and Qualified Health Plan issuers on the Federally Facilitated Exchanges to implement FHIR APIs. Its Prior Authorization API must be implemented beginning January 1, 2027. [Source: CMS fact sheet, CMS-0057-F](https://www.cms.gov/newsroom/fact-sheets/cms-interoperability-prior-authorization-final-rule-cms-0057-f) @cosyte/fhir ## A no-data-loss core first, then validation in layers. A FHIR document should come back out exactly as it went in, and a validator should say where a problem is without repeating the patient data that caused it. That is the order this toolkit was built in. - decimal and integer64 values are string-backed and never pass through a JavaScript number, so 0.010 stays 0.010. - A JSON codec and a zero-dependency XML codec over the same model. The XML reader refuses any DTD or non-predefined entity rather than resolving it. - Validation in layers: structure, cardinality, value domains, and the R4 base constraints of the eight resource types it models. - Profiles you supply, such as US Core, validated from their StructureDefinitions: slicing, fixed and pattern values, and FHIRPath invariants through a bounded subset. - Status, negation, and unknown modifier extensions fail closed, so a record never reads as more certain than it is. - Bundles with transaction and batch semantics, reference resolution with a cycle guard, and Bulk Data NDJSON streaming with per-line error isolation. - Diagnostics shaped like OperationOutcome and free of values: a code and a location, never the value. read-and-validate.ts ```ts import { parseResource, readObservationValue, validateResource } from "@cosyte/fhir"; const document = `{ "resourceType": "Observation", "id": "syn-0001", "status": "final", "code": { "coding": [{ "system": "http://loinc.org", "code": "8480-6" }] }, "subject": { "reference": "Patient/syn-0001" }, "effectiveDateTime": "2026-01-05", "valueQuantity": { "value": 120.0, "unit": "mmHg", "system": "http://unitsofmeasure.org", "code": "mm[Hg]" } }`; const { resource, issues } = parseResource(document); // The magnitude was written 120.0: the read keeps that exact form and says the protection mattered. issues.map((issue) => issue.code); // => ["DECIMAL_PRECISION_AT_RISK"] // Branch on the value[x] type before touching a magnitude, and compare on the UCUM code. const reading = readObservationValue(resource); reading?.type; // => "Quantity" reading?.quantity?.value?.raw; // => "120.0" reading?.quantity?.code; // => "mm[Hg]" validateResource(resource).valid; // => true ``` From the [@cosyte/fhir README on GitHub](https://github.com/cosyte/fhir#usage), verbatim. Every value in it is synthetic. Limits ## What it does not do. Its README is specific about what is not built yet. The main points: - No typed per-resource models yet. The built-in structural schema covers the base elements and Patient; other resource types validate against a schema or profile you supply. - Slicing by type or profile discriminator, and reslicing, are not validated yet. They report PROFILE_SLICE_UNCHECKED. - No US Core package and no terminology content is bundled, so there is no value-set membership check without a terminology service you supply. - It never converts a unit and never evaluates a reference range. - FHIRPath is a bounded subset. An expression outside it reports INVARIANT_UNCHECKED instead of passing. - The XHTML inside a narrative is carried as a string, not validated. RDF and Turtle are out of scope. - Typed cross-format transcoding, emitting spec-clean JSON booleans and numbers from an XML-read model, is not done yet. [The full status and limits, in the README](https://github.com/cosyte/fhir#readme) Alternatives ## What else you could use. Each description comes from the project’s own documentation or npm listing, linked below. Java library ### HAPI FHIR Describes itself as a complete implementation of the HL7 FHIR standard for healthcare interoperability in Java, under the Apache Software License 2.0. If your stack is on the JVM, look there first. [Source: HAPI FHIR](https://hapifhir.io/) TypeScript library ### Medplum JS client (@medplum/core) A pure TypeScript library for calling a FHIR server, with FHIR validation and operations, FHIRPath evaluation, and no external dependencies, under Apache-2.0. It includes an HTTP client, which @cosyte/fhir does not. [Source: npm, @medplum/core](https://www.npmjs.com/package/@medplum/core) JavaScript library ### fhir-tool An ISC-licensed library for handling FHIR resources: serialization between JSON and XML, validation, and FHIRPath evaluation. [Source: npm, fhir-tool](https://www.npmjs.com/package/fhir-tool) JavaScript library ### SMART on FHIR JavaScript client A JavaScript library for connecting SMART apps to FHIR servers, in modern browsers and on Node 18 or later. Use it for the SMART launch and the server calls. [Source: SMART Health IT, client-js](https://docs.smarthealthit.org/client-js/) TypeScript types ### @types/fhir Community-maintained TypeScript type definitions for FHIR. Types check your code at compile time; they do not parse or validate a document at run time. [Source: npm, @types/fhir](https://www.npmjs.com/package/@types/fhir) Converter ### Microsoft FHIR Converter Converts HL7 v2, C-CDA, JSON, and FHIR STU3 data to FHIR R4 with Liquid templates, through the $convert-data operation of Azure's FHIR service. [Source: Microsoft Learn, $convert-data](https://learn.microsoft.com/en-us/azure/healthcare-apis/fhir/convert-data-overview) Works with ## The rest of the suite, where it fits. - [@cosyte/transform](https://github.com/cosyte/transform) Maps HL7 v2 messages to FHIR R4 resources. Its README publishes measured conformance against R4 and US Core, findings included. - [Terminology](https://cosyte.com/standards/terminology) @cosyte/terminology resolves code systems and translates codes through the ConceptMaps you supply. - [De-identification](https://cosyte.com/standards/de-identification) @cosyte/deid applies a HIPAA Safe Harbor policy to a FHIR R4 resource. - [@cosyte/synth](https://github.com/cosyte/synth) Generates spec-clean synthetic FHIR R4 and US Core resources and Bundles for your tests. ## Try @cosyte/fhir on your own messages. It is free and MIT-licensed. If it saves you a day, a star on GitHub helps other engineers find it. [Star on GitHub](https://github.com/cosyte/fhir) [View on npm](https://www.npmjs.com/package/@cosyte/fhir) Need it integrated? [Talk to us](https://cosyte.com/contact), or see what our [integration services](https://cosyte.com/integration-services) cover. --- Source: https://cosyte.com/standards/c-cda C-CDA # Read the C-CDA a vendor actually sent. @cosyte/ccda reads real, vendor-quirky C-CDA documents into typed clinical models and turns each deviation into a stable coded warning. Where a document contradicts itself, it withholds the value and says so instead of guessing. @cosyte/ccda ```bash npm install @cosyte/ccda ``` [Star cosyte/ccda on GitHub](https://github.com/cosyte/ccda) [Read the quickstart](https://docs.cosyte.com/ccda/quickstart) Need it integrated? [Talk to us](https://cosyte.com/contact). The standard ## C-CDA is the US template set for clinical documents on CDA R2. - HL7's Consolidated CDA guide is used with the CDA Release 2 standard to implement a set of clinical documents, including the Continuity of Care Document, Discharge Summary, Referral Note, Progress Note, and History and Physical. [Source: HL7 C-CDA implementation guide](https://hl7.org/cda/us/ccda/) - The guide was developed within ONC's Standards and Interoperability Framework to give the US Realm one harmonized set of CDA templates. [Source: HL7 C-CDA implementation guide](https://hl7.org/cda/us/ccda/) - ONC's transitions of care criterion requires certified health IT to create a transition of care or referral summary using the Continuity of Care Document, Referral Note and, in inpatient settings, Discharge Summary templates. [Source: ONC test method, 170.315(b)(1)](https://www.healthit.gov/test-method/transitions-care) @cosyte/ccda ## Typed clinical data out of a real document. A generic XML parser hands you a DOM and leaves every clinical judgment to you. A conformance validator rejects the document and returns nothing. This library reads what the sender produced and tells you what it had to tolerate. - Fourteen entry families: problems, medications, allergies, results, vital signs, immunizations, procedures, encounters, smoking status, plan of treatment, functional status, mental status, family history, and past medical history. - Every deviation becomes a stable coded warning, so a document a validator would reject still yields the data it carries. - Observation values are a discriminated union, with UCUM units checked and the document's own unit kept intact. - Required-section validation per document type, and each type reports how much of its obligation was verified. - buildCcda emits a CCD, a Referral Note, or an inpatient Discharge Summary; editCcda replaces whole sections. - Round-trip: re-parsing and re-serializing a document it wrote changes nothing. - A terminology adapter you supply checks codes at the problem, medication, allergen, route, and vaccine slots. build-and-read.ts ```ts import { buildCcda, parseCcda } from "@cosyte/ccda"; // A synthetic CCD, built here so the example stands on its own. In your integration this is the // document a sending system handed you. const xml = buildCcda({ patient: { mrn: "MRN001", given: ["Jane"], family: "Doe", gender: "F", birthTime: "19800101" }, problems: [{ problem: { code: "59621000", displayName: "Essential hypertension" } }], medications: [ { drug: { code: "314076", displayName: "Lisinopril 10 MG Oral Tablet" }, // RxNorm dose: { value: 1, unit: "{tablet}" }, route: { code: "C38288", displayName: "Oral" }, // NCI Thesaurus }, ], allergies: [ { allergen: { code: "7980", displayName: "Penicillin G" }, // RxNorm reaction: { code: "247472004", displayName: "Hives" }, // SNOMED CT }, ], }).toString(); const doc = parseCcda(xml); const problem = doc.getProblems()[0]; const allergen = doc.getAllergies()[0]?.allergies[0]?.allergen; // The patient's identifiers: read them, never log them. The values are synthetic. const mrn = doc.getMrn(); // "MRN001" (synthetic) const family = doc.getPatient()?.name?.family; // "Doe" (synthetic) console.log(doc.documentType, mrn !== undefined, family !== undefined); console.log("problem", problem?.problems[0]?.value?.code, problem?.status); console.log("medication", doc.getMedications()[0]?.drug?.code); console.log("allergy", allergen?.code, allergen?.displayName); console.log("warnings", doc.warnings.length); // The emit half is a fixed point: re-parsing and re-serializing changes nothing. console.log("round trip unchanged", parseCcda(doc.toString()).toString() === xml); // The values above, which the test suite asserts on every run: doc.documentType; // => "ccd" mrn; // => "MRN001" (synthetic) problem?.problems[0]?.value?.code; // => "59621000" problem?.status; // => "active" doc.getMedications()[0]?.drug?.code; // => "314076" allergen?.code; // => "7980" doc.warnings; // => [] parseCcda(doc.toString()).toString() === xml; // => true ``` Adapted from the [@cosyte/ccda README on GitHub](https://github.com/cosyte/ccda#install) so that it logs no value that identifies a person. Every value in it is synthetic. Limits ## What it does not do. Its README lists every limit, stated plainly. The main ones: - Building covers 3 of the 12 US Realm document types. The other nine throw rather than emit something that only resembles the type. - Editing is whole-section only: no entry-level append and no section removal. - Required-section validation under-warns. A quiet parse is not a conformance result. - A terminology adapter is consulted at five coded slots only, and no value-set member codes are bundled. - UCUM validation is grammatical, over a curated set of atoms, and LOINC deprecation is a curated list. - One runtime dependency: @xmldom/xmldom. [The full status and limits, in the README](https://github.com/cosyte/ccda#known-limitations) Alternatives ## What else you could use. Each description comes from the project’s own documentation or npm listing, linked below. JavaScript library ### BlueButton.js Helps developers parse and generate health data formats such as C-CDA. Its npm package, bluebutton, was last published in September 2015. [Source: npm, bluebutton](https://www.npmjs.com/package/bluebutton) Node.js library ### @amida-tech/blue-button An Apache-2.0 parser from Blue Button formats (C-CDA, C32, and CMS) to JSON. [Source: npm, @amida-tech/blue-button](https://www.npmjs.com/package/@amida-tech/blue-button) TypeScript converter ### Medplum C-CDA (@medplum/ccda) Converts between C-CDA and FHIR, using the International Patient Summary as a bridge. If FHIR is your target model, it goes there directly; @cosyte/ccda reads C-CDA into models of its own. [Source: Medplum documentation, C-CDA](https://www.medplum.com/docs/integration/c-cda) Converter ### Microsoft FHIR Converter Converts C-CDA (and HL7 v2, JSON, and FHIR STU3) to FHIR R4 with Liquid templates, through the $convert-data operation of Azure's FHIR service. [Source: Microsoft Learn, $convert-data](https://learn.microsoft.com/en-us/azure/healthcare-apis/fhir/convert-data-overview) Works with ## The rest of the suite, where it fits. - [De-identification](https://cosyte.com/standards/de-identification) @cosyte/deid applies a HIPAA Safe Harbor policy to a parsed C-CDA document. - [Terminology](https://cosyte.com/standards/terminology) @cosyte/terminology can back the terminology adapter @cosyte/ccda consults. - [@cosyte/synth](https://github.com/cosyte/synth) Generates spec-clean synthetic C-CDA documents (CCD and Referral Note) for your tests. ## Try @cosyte/ccda on your own messages. It is free and MIT-licensed. If it saves you a day, a star on GitHub helps other engineers find it. [Star on GitHub](https://github.com/cosyte/ccda) [View on npm](https://www.npmjs.com/package/@cosyte/ccda) Need it integrated? [Talk to us](https://cosyte.com/contact), or see what our [integration services](https://cosyte.com/integration-services) cover. --- Source: https://cosyte.com/standards/x12 X12 # Read the money out of an 835 without a TR3 open on your desk. @cosyte/x12 decodes the HIPAA 005010 transaction sets into typed models, keeps every amount in exact decimal arithmetic, and reports each vendor deviation it tolerated with a stable code instead of failing or guessing. @cosyte/x12 ```bash npm install @cosyte/x12 ``` [Star cosyte/x12 on GitHub](https://github.com/cosyte/x12) [Read the quickstart](https://docs.cosyte.com/x12/quickstart) Need it integrated? [Talk to us](https://cosyte.com/contact). The standard ## X12 5010 is how US claims, payments, and eligibility move. - HIPAA required HHS to establish national standards for electronic healthcare transactions, and they apply to all HIPAA covered entities. [Source: CMS, Adopted Standards and Operating Rules](https://www.cms.gov/priorities/key-initiatives/burden-reduction/administrative-simplification/hipaa/adopted-standards-operating-rules) - The adopted standards include ASC X12N 837 for claims, 270/271 for eligibility, 276/277 for claim status, 278 for prior authorization and referrals, 834 for enrollment, and 835 for claim payment, each at version 5010. [Source: CMS, Adopted Standards and Operating Rules](https://www.cms.gov/priorities/key-initiatives/burden-reduction/administrative-simplification/hipaa/adopted-standards-operating-rules) - X12 developed the implementation guides adopted under HIPAA for exchanging administrative data between payers, providers, and related organizations. [Source: X12, health care](https://ecommerce.x12.org/industry/health-care) @cosyte/x12 ## Typed models for the transaction sets, exact to the cent. Reading an X12 transaction correctly normally means buying its TR3 implementation guide and hand-mapping element positions no compiler checks. This library does that mapping once, with tests, for the engineer who has one 835 to post or one 271 to answer. - Typed read for 270, 271, 276, 277, 277CA, 278 request and response, 820, 834, 835, 837P, 837I, 837D, 999, and TA1. - Every amount in exact decimal arithmetic, never a binary float. - Vendor deviations become warnings with stable codes. Built-in profiles record whose companion-guide deviation they accept. - Your own profiles, through the same public defineProfile() API the built-ins use. - The base 006020 structure of the two claims attachments transactions: the 277 request for additional information and the 275 that answers it. - X12_TR3_CONFORMANCE states, in code, which implementation guide each transaction set follows. - Zero runtime dependencies. read-an-835.ts ```ts import { parseX12, get835 } from "@cosyte/x12"; const raw = `ISA*00* *00* *ZZ*MEDICARE *ZZ*SUBMITTER *260601*1200*^*00501*000000001*0*P*:~ GS*HP*MEDICARE*SUBMITTER*20260601*1200*1*X*005010X221A1~ ST*835*0001~ BPR*I*450.00*C*ACH*CCP*01*123456789*DA*987654321*1512345678**01*111111111*DA*222222222*20260601~ TRN*1*0012345*1512345678~ DTM*405*20260601~ N1*PR*MEDICARE PART A~ N3*123 PAYER WAY~ N4*BALTIMORE*MD*21244~ PER*BL*JANE COORDINATOR*TE*5551234567~ N1*PE*SAMPLE CLINIC INC~ N3*456 PROVIDER LN~ N4*CLEVELAND*OH*44113~ REF*TJ*123456789~ LX*1~ CLP*PT-ACCT-001*1*500.00*450.00*50.00*MC*PAYER-CLAIM-001*11*1~ NM1*QC*1*PATIENT*TEST*A***MI*MEMBER001~ NM1*82*2*RENDERING PROVIDER INC*****XX*1234567890~ DTM*232*20260501~ DTM*233*20260501~ SVC*HC:99213*500.00*450.00**1~ DTM*472*20260501~ CAS*PR*1*50.00~ REF*6R*LINE-CTRL-001~ SE*23*0001~ GE*1*1~ IEA*1*000000001~`; const ix = parseX12(raw); const tx = ix.groups[0]?.transactions.find((t) => t.st.elements[1] === "835"); if (tx === undefined) throw new Error("no 835 in this interchange"); const remit = get835(ix.delimiters, tx); if (remit === undefined) throw new Error("not an 835"); // The payment, the claim's split, and who owes the difference and why. const claim = remit.claims[0]; const adjustment = claim?.serviceLines[0]?.adjustments[0]; console.log("paid", remit.payment.totalActualPayment?.toString(), "by", remit.payment.method); // The patient control number is the provider's account number for the patient: read it, never log it. const accountNumber = claim?.patientControlNumber; // "PT-ACCT-001" (synthetic) console.log("claim has an account number", accountNumber !== undefined); console.log("charged", claim?.totalChargeAmount?.toString()); console.log("patient owes", claim?.patientResponsibilityAmount?.toString()); console.log("reason", adjustment?.groupCode, adjustment?.reasonCode); console.log("warnings", ix.warnings.length); // The values above, which the test suite asserts on every run: remit.payment.totalActualPayment?.toString(); // => "450.00" claim?.totalChargeAmount?.toString(); // => "500.00" claim?.patientResponsibilityAmount?.toString(); // => "50.00" adjustment?.groupCode; // => "PR" adjustment?.reasonCode; // => "1" // No CARC description text ships with the package, so this is undefined on purpose. adjustment?.reasonDescription; // => undefined ix.warnings; // => [] ``` Adapted from the [@cosyte/x12 README on GitHub](https://github.com/cosyte/x12#install) so that it logs no value that identifies a person. Every value in it is synthetic. Limits ## What it does not do. Its README states what is not covered, deliberately: - A byte-exact round trip is not guaranteed in general. Line breaks between segments, for one, are absorbed on parse. - The two attachments transactions are typed at the base structure only; no implementation-guide usage is checked for them. - Healthcare transaction sets only. 850, 856, 810, 204, and EDIFACT are out of scope. - No transport: AS2 and SFTP are out of scope. - No revisions before 005010. [The full status and limits, in the README](https://github.com/cosyte/x12#status) Alternatives ## What else you could use. Each description comes from the project’s own documentation or listing, linked below. Node.js library ### node-x12 A general ASC X12 parser, generator, query engine, and mapper for Node.js, MIT-licensed, with stream support. Its latest npm release dates from April 2022. [Source: npm, node-x12](https://www.npmjs.com/package/node-x12) Node.js library ### x12-parser An MIT-licensed X12 parser built on Node.js streams, for very large files, with no production dependencies. [Source: npm, x12-parser](https://www.npmjs.com/package/x12-parser) Python library ### pyx12 A BSD-licensed HIPAA X12 parser, validator, and converter for Python. It validates a file against a representation of the X12 implementation guidelines and can create a 999 acknowledgment for 5010. [Source: PyPI, pyx12](https://pypi.org/project/pyx12/) EDI toolkit ### EdiFabric A toolkit for translating EDI inside your own applications, covering ten EDI standards, from X12 and HIPAA to EDIFACT, HL7, and NCPDP. [Source: EdiFabric](https://www.edifabric.com/) Clearinghouse ### Stedi A clearinghouse you integrate with through APIs. A clearinghouse reaches payers; a library such as @cosyte/x12 works with the transactions inside your own code but connects you to no one. [Source: Stedi documentation](https://www.stedi.com/docs) Works with ## The rest of the suite, where it fits. - [NCPDP](https://cosyte.com/standards/ncpdp) Pharmacy claims use NCPDP Telecom rather than X12: @cosyte/ncpdp. - [De-identification](https://cosyte.com/standards/de-identification) @cosyte/deid applies a HIPAA Safe Harbor policy to an X12 interchange. - [@cosyte/synth](https://github.com/cosyte/synth) Generates synthetic 837P, 837I, 837D, 835, and 271 transactions for your tests. ## Try @cosyte/x12 on your own messages. It is free and MIT-licensed. If it saves you a day, a star on GitHub helps other engineers find it. [Star on GitHub](https://github.com/cosyte/x12) [View on npm](https://www.npmjs.com/package/@cosyte/x12) Need it integrated? [Talk to us](https://cosyte.com/contact), or see what our [integration services](https://cosyte.com/integration-services) cover. --- Source: https://cosyte.com/standards/ncpdp NCPDP # Read a pharmacy claim or an ePrescription in one line. @cosyte/ncpdp handles both NCPDP standards in one package: Telecom pharmacy claims and SCRIPT ePrescribing messages. Vendor quirks become positioned warnings, and money and quantities are handled as strings, so a float never touches a paid amount. @cosyte/ncpdp ```bash npm install @cosyte/ncpdp ``` [Star cosyte/ncpdp on GitHub](https://github.com/cosyte/ncpdp) [Read the quickstart](https://docs.cosyte.com/ncpdp/quickstart) Need it integrated? [Talk to us](https://cosyte.com/contact). The standard ## NCPDP is two standards: one for claims, one for prescriptions. - NCPDP's Telecommunication Standard is a format for submitting third-party drug claims and related transactions between pharmacies, insurers, and administrators, including eligibility checks, billing, and prior authorization. [Source: NCPDP, Access to Standards](https://standards.ncpdp.org/access-to-standards.aspx) - The SCRIPT standard carries prescription information between prescribers, pharmacies, and payers: new prescriptions, changes, refill requests, cancellations, medication history, and electronic prior authorization. [Source: NCPDP, Access to Standards](https://standards.ncpdp.org/access-to-standards.aspx) - Under HIPAA, Telecommunication Standard version D.0 is the retail pharmacy claims standard through August 14, 2027, and version F6 on and after April 14, 2028. Both are adopted in between. [Source: 45 CFR 162.1102, 2025 edition (govinfo)](https://www.govinfo.gov/content/pkg/CFR-2025-title45-vol2/pdf/CFR-2025-title45-vol2-sec162-1102.pdf) - For Medicare Part D, CMS requires NCPDP SCRIPT version 2023011 for e-prescribing beginning January 1, 2028, retiring version 2017071. [Source: CMS, e-prescribing adopted standard](https://www.cms.gov/medicare/regulations-guidance/electronic-prescribing/adopted-standard-and-transactions) @cosyte/ncpdp ## Two unrelated wire formats, one careful reader. The implementation guides for both standards are purchased products, so the usual route is a hand-rolled reader: an XML walk for SCRIPT and a split on control characters for Telecom. That works until real input arrives. This package is the other choice. - Telecom: build, serialize, and parse pharmacy claims, with the control-character framing and fixed-position fields handled for you. - SCRIPT: parse and build ePrescribing XML such as NewRx, RxRenewal, and RxChange. - A lenient reader: a vendor quirk becomes a positioned warning, never an exception in the middle of a dispense. - A conservative emitter that only writes spec-clean output. - Money and quantities handled string-wise, so binary floating point cannot corrupt a value. - Built-in profiles for Surescripts SCRIPT and PBM Telecom traffic, written with the same public defineProfile() API you have. - A conformance statement that names each standard version it decodes. telecom-claim.js ```js import { buildTelecomRequest, serializeTelecom, parseTelecom, claim } from "@cosyte/ncpdp/telecom"; // Emit a spec-clean Telecom B1 billing claim. Every value below is synthetic. const wire = serializeTelecom( buildTelecomRequest({ header: { transactionCode: "B1", binNumber: "999999", dateOfService: "20260115" }, segments: [ { segmentId: "04", fields: [{ id: "C2", value: "SYNTHCARD09" }] }, { segmentId: "07", fields: [ { id: "D2", value: "RX0000001" }, { id: "E1", value: "03" }, { id: "D7", value: "99999999999" }, { id: "E7", value: "30000" }, { id: "D5", value: "30" }, ], }, ], }), ); // Read it back. A vendor quirk becomes a positioned warning here, never a throw. const t = parseTelecom(wire); const c = claim(t); console.log(t.kind, t.header.transactionCode, t.warnings.length); // The cardholder ID and the prescription number point to a person: read them, never log them. const cardholderId = c?.cardholderId; // "SYNTHCARD09" (synthetic) const rxNumber = c?.prescriptionReferenceNumber; // "RX0000001" (synthetic) console.log(cardholderId !== undefined, rxNumber !== undefined); console.log(c?.product?.id, c?.product?.qualifier); console.log(c?.quantityDispensed?.source, c?.quantityDispensed?.impliedDecimal); ``` Adapted from the [@cosyte/ncpdp README on GitHub](https://github.com/cosyte/ncpdp#usage) so that it logs no value that identifies a person. Every value in it is synthetic. Limits ## What it does not do. Its README names the gaps rather than leaving them silent: - Electronic Prescribing of Controlled Substances is out of scope. - Parsing and emitting are whole-message only; there is no streaming mode. - The SCRIPT builder emits the SIG it is given and generates none. The structured SIG view is lossy by design; the free text stays authoritative. - Most wire-code labels do not ship, because no public source establishes them. - No third party has tested it, and there is no differential corpus against a reference implementation. - The SCRIPT side has one runtime dependency, fast-xml-parser, configured with entity resolution disabled. [The full status and limits, in the README](https://github.com/cosyte/ncpdp#compatibility) Alternatives ## What else you could use. Each description comes from the project’s own documentation or listing, linked below. E-prescribing network ### Surescripts The network pharmacists and prescribers use to exchange NCPDP-defined transactions such as NewRx, RxChange, RxRenewal, and CancelRx. A library formats and reads the messages; a network delivers them. [Source: Surescripts, E-Prescribing](https://surescripts.com/products/e-prescribing) Pharmacy claims switch ### Redsail PowerLine A claims switch that receives NCPDP transactions, sends them on to processors, and returns the responses to the pharmacy. [Source: Redsail Technologies, PowerLine](https://www.redsailtechnologies.com/powerline/services) EDI toolkit ### EdiFabric A toolkit for translating EDI inside your own applications, covering ten EDI standards, NCPDP among them. [Source: EdiFabric](https://www.edifabric.com/) Works with ## The rest of the suite, where it fits. - [X12](https://cosyte.com/standards/x12) Medical claims, remittance, and eligibility use X12: @cosyte/x12. - [De-identification](https://cosyte.com/standards/de-identification) @cosyte/deid applies a HIPAA Safe Harbor policy to an NCPDP Telecom transaction. SCRIPT is not supported. - [@cosyte/synth](https://github.com/cosyte/synth) Generates synthetic SCRIPT messages and Telecom claims for your tests. ## Try @cosyte/ncpdp on your own messages. It is free and MIT-licensed. If it saves you a day, a star on GitHub helps other engineers find it. [Star on GitHub](https://github.com/cosyte/ncpdp) [View on npm](https://www.npmjs.com/package/@cosyte/ncpdp) Need it integrated? [Talk to us](https://cosyte.com/contact), or see what our [integration services](https://cosyte.com/integration-services) cover. --- Source: https://cosyte.com/standards/astm ASTM # Read an analyzer's ASTM traffic, and never get a confident wrong value. @cosyte/astm reads the delimiters each header declares, decodes escapes before it splits a value, verifies frame checksums, and reports every deviation it tolerated as a stable, value-free warning. Zero runtime dependencies. @cosyte/astm ```bash npm install @cosyte/astm ``` [Star cosyte/astm on GitHub](https://github.com/cosyte/astm) [Read the quickstart](https://docs.cosyte.com/astm/quickstart) Need it integrated? [Talk to us](https://cosyte.com/contact). The standard ## ASTM E1381 and E1394 carry results from lab instruments to computers. - ASTM E1381 specifies the low-level protocol for exchanging data between clinical instruments and computer systems, over serial links and TCP/IP, and points to E1394 for the message content. ASTM lists it as withdrawn in 2002. [Source: ASTM, E1381-02](https://store.astm.org/e1381-02.html) - CLSI LIS01-A2 describes the electronic transmission of digital information between clinical laboratory instruments and computer systems. [Source: CLSI, LIS01](https://clsi.org/shop/standards/lis01/) - CLSI LIS02 defines the two-way transmission of test requests, results, and demographic information between laboratory instruments and information systems, and its revisions set it apart from the former ASTM version. [Source: CLSI, LIS02](https://clsi.org/shop/standards/lis02/) @cosyte/astm ## Both layers, framing and records, read without assumptions. Every analyzer reads the standard a little differently, and the usual answer is a hand-rolled split on | and ^ that returns a confidently wrong value the first time a vendor escapes a delimiter. This library surfaces a deviation it cannot resolve instead of resolving it for you. - Records per E1394 and LIS02-A2: H, P, O, R, C, Q, M, S, and L. An unrecognized record type is surfaced, never dropped. - Framing per E1381 and LIS01-A2: modulo-256 checksums, frame-number sequencing, the 240-byte multi-frame split, and a socket-free ENQ, ACK, NAK, and EOT receiver state machine. - Delimiters come from each header, never from an assumption, and escapes are decoded before a value is split. - Practice-assigned and laboratory-assigned patient IDs stay distinct. - Result status and abnormal flags are read fail-safe: a corrected or canceled result never reads as final. - Emit with computed checksums and frame numbers; both layers round-trip by construction. - Map an analyzer's local test codes to LOINC through an LIVD catalog you supply. read-results.ts ```ts import { parseAstmRecords, patient, results } from "@cosyte/astm"; // Synthetic ASTM records, CR-delimited. The header declares the delimiters. const stream = "H|\\^&|||analyzer^1|||||||P|LIS02-A2|20240115103000\r" + "P|1|PRACTICE-0001|LAB-0002|||||F\r" + "O|1|SPEC-7|ACC-42|^^^687|||20240115102500\r" + "R|1|^^^687|28.6|U/L|10-40|N||F\r" + "L|1|N\r"; const msg = parseAstmRecords(stream); const [first] = results(msg); const value = first?.value; // "28.6": a result, read and not logged console.log(first?.units, value !== undefined); console.log(first?.status.meaning, first?.status.isActiveFinal); console.log(first?.flag?.meaning); console.log(first?.universalTestId?.localCode); // The patient's identifiers: read them, never log them. The values are synthetic. const practiceId = patient(msg)?.practiceAssignedId; // "PRACTICE-0001" (synthetic) const labId = patient(msg)?.laboratoryAssignedId; // "LAB-0002" (synthetic) console.log(practiceId !== undefined, labId !== undefined); console.log(msg.warnings.length); ``` Adapted from the [@cosyte/astm README on GitHub](https://github.com/cosyte/astm#install) so that it logs no value that identifies a person. Every value in it is synthetic. Limits ## What it does not do. Its README names what is still moving and what is not covered: - No named per-vendor profile ships yet, only a default and a reference profile grounded in a public corpus. - Three behaviors are the library's reading of the standard rather than a quotation: the paywalled LIS02 sections were not read. - No citable published source binds the result-status letter set, and every interpreted status says so. - The wire is read as Latin-1, one byte per character. - No LOINC, SNOMED, or LIVD dictionary is bundled, and no LOINC is ever guessed. [The full status and limits, in the README](https://github.com/cosyte/astm#compatibility) Alternatives ## What else you could use. Each description comes from the project’s own documentation or listing, linked below. Python library ### python-astm A BSD-licensed Python implementation of the ASTM E1381 and E1394 protocol, published on PyPI as astm. Its last release on PyPI dates from March 2013. [Source: PyPI, astm](https://pypi.org/project/astm/) Node.js library ### node-astm An MIT-licensed Node.js package described as reading data from ASTM. Its latest npm release dates from February 2021. [Source: npm, node-astm](https://www.npmjs.com/package/node-astm) Platform agent ### Medplum Agent An application that runs inside your firewall and connects to devices over low-level protocols such as HL7/MLLP, ASTM, and DICOM, as part of the Medplum platform. [Source: Medplum documentation, Agent](https://www.medplum.com/docs/agent) Works with ## The rest of the suite, where it fits. - [HL7 v2](https://cosyte.com/standards/hl7-v2) Results often continue downstream as HL7 v2 ORU messages: @cosyte/hl7. - [Terminology](https://cosyte.com/standards/terminology) @cosyte/terminology works over the LOINC release you supply. - [@cosyte/synth](https://github.com/cosyte/synth) Generates synthetic ASTM records and framed transfers, including vendor-quirk fixtures. - [@cosyte/dates](https://www.npmjs.com/package/@cosyte/dates) Converts and validates the dates the @cosyte parsers return, without inventing a midnight or a timezone. ## Try @cosyte/astm on your own messages. It is free and MIT-licensed. If it saves you a day, a star on GitHub helps other engineers find it. [Star on GitHub](https://github.com/cosyte/astm) [View on npm](https://www.npmjs.com/package/@cosyte/astm) Need it integrated? [Talk to us](https://cosyte.com/contact), or see what our [integration services](https://cosyte.com/integration-services) cover. --- Source: https://cosyte.com/standards/dicom DICOM # DICOM metadata in one line, without a pixel pipeline. @cosyte/dicom reads the headers of real-world, vendor-quirky Part 10 files (patient, study, series, image, codes, and UIDs), records every deviation it tolerated as a stable warning code, and never decodes pixels. Zero runtime dependencies. @cosyte/dicom ```bash npm install @cosyte/dicom ``` [Star cosyte/dicom on GitHub](https://github.com/cosyte/dicom) [Read the quickstart](https://docs.cosyte.com/dicom/quickstart) Need it integrated? [Talk to us](https://cosyte.com/contact). The standard ## DICOM is the international standard for medical images. - DICOM is the international standard for medical images and related information. It defines the formats for images exchanged with the data and quality needed for clinical use. [Source: DICOM Standard, About](https://www.dicomstandard.org/about) - It is implemented in almost every radiology, cardiology imaging, and radiotherapy device, and increasingly in other domains such as ophthalmology and dentistry. [Source: DICOM Standard, About](https://www.dicomstandard.org/about) - ISO recognizes DICOM as ISO 12052, and NEMA serves as the DICOM Secretariat. [Source: DICOM Standard, About](https://www.dicomstandard.org/about) - Part 15, Annex E defines attribute confidentiality profiles: which attributes to remove or replace so a data set does not leak identifying information. [Source: DICOM PS3.15, Annex E](https://dicom.nema.org/medical/dicom/current/output/chtml/part15/chapter_E.html) @cosyte/dicom ## The metadata half, on its own. Most software that touches imaging needs a handful of header fields: who the patient is, which study and series an instance belongs to, and how the pixels are to be interpreted. Getting them usually means adopting a toolkit built around a pixel pipeline you will not use. This library is the metadata half only. - Views for patient, study, series, and image. An absent value reads as absent, never as a substituted default. - Lazy typed value decode across all 34 value representations. - The four native transfer syntaxes and every encapsulation syntax in PS3.5 section A.4 are read, with pixel fragments returned as raw bytes. - A spec-clean serializer that writes an object back in its source transfer syntax. - Metadata de-identification with deidentify(), driven by the PS3.15 action table. - Source and vendor profiles, and a stable warning code for everything tolerated. - Zero runtime dependencies. read-headers.ts ```ts import { parseDicom } from "@cosyte/dicom"; // A synthetic CT object, saved without its 128-byte preamble: an invented patient and example-root // UIDs, no real PHI. In your integration these are the bytes of the file you read. const buf = Buffer.from( "AgAAAFVMBAAcAAAAAgAQAFVJFAAxLjIuODQwLjEwMDA4LjEuMi4xAAgAFgBVSRoAMS4yLjg0MC4xMDAwOC41LjEuNC4xLjEuMgAIABgAVUkeADEuMi44MjYuMC4xLjM2ODAwNDMuOC40OTguMTExAAgAIABEQQgAMTkwMDAxMDEIAGAAQ1MCAENUEAAQAFBOCABEb2VeSmFuZRAAIABMTwYATVJOLTQyEAAhAExPDABTQU1QTEUtSE9TUCAgAA0AVUkeADEuMi44MjYuMC4xLjM2ODAwNDMuOC40OTguMS4xACAADgBVSR4AMS4yLjgyNi4wLjEuMzY4MDA0My44LjQ5OC4xLjIAIAARAElTAgAyICgAEABVUwIAAAIoABEAVVMCAAACKAAAAVVTAgAQACgAAwFVUwIAAQAoAFIQRFMGAC0xMDI0ICgAUxBEUwIAMSAoADAARFMIADAuNVwwLjUg", "base64", ); const ds = parseDicom(buf); // The patient ID and the study UID point to a person: read them, never log them. Both are synthetic. const patientId = ds.patient.id; // "MRN-42" (synthetic) const studyUid = ds.study.instanceUid; // "1.2.826.0.1.3680043.8.498.1.1" (synthetic) console.log("patient id present", patientId !== undefined, "issuer", ds.patient.issuerOfId); console.log("study uid present", studyUid !== undefined); console.log("series", ds.series.modality, "image", ds.image.rows, "x", ds.image.columns); console.log("rescale slope", ds.image.rescaleSlope, "intercept", ds.image.rescaleIntercept); console.log("tolerated", ds.warnings.length, ds.warnings[0]?.code); // The values above, which the test suite asserts on every run. // NOT globally unique on its own: pair it with ds.patient.issuerOfId. patientId; // => "MRN-42" (synthetic) // The global study anchor. studyUid; // => "1.2.826.0.1.3680043.8.498.1.1" (synthetic) ds.series.modality; // => "CT" ds.image.rows; // => 512 // number | undefined: undefined means "absent", never a substituted 1. ds.image.rescaleSlope; // => 1 // What the parser tolerated, as stable codes. ds.warnings.map((w) => w.code); // => ["DICOM_MISSING_PREAMBLE"] ``` Adapted from the [@cosyte/dicom README on GitHub](https://github.com/cosyte/dicom#install) so that it logs no value that identifies a person. Every value in it is synthetic. Limits ## What it does not do. It is metadata-first by design. Its README says not to rely on it for: - Pixel data: nothing is decoded, decompressed, or rendered. - Burned-in annotations: they are not removed, so de-identified output is metadata-only, and the library warns about it. - Networking: no DIMSE (C-STORE, C-FIND, C-MOVE) and no DICOMweb. - Transcoding: no transfer-syntax conversion. - Terminology: coded values are surfaced, not validated against SNOMED or LOINC. - Its README measures and discloses the open de-identification residuals. Read them before pointing it at real data. [The full status and limits, in the README](https://github.com/cosyte/dicom#known-limitations--non-goals) Alternatives ## What else you could use. Each description comes from the project’s own documentation or listing, linked below. JavaScript library ### dcmjs An MIT-licensed JavaScript implementation of DICOM manipulation. Its latest npm release dates from May 2026. [Source: npm, dcmjs](https://www.npmjs.com/package/dcmjs) JavaScript library ### dicom-parser An MIT-licensed JavaScript parser for DICOM Part 10 data, from the Cornerstone project. Its latest npm release dates from February 2023. [Source: npm, dicom-parser](https://www.npmjs.com/package/dicom-parser) Node.js library ### dcmjs-dimse An MIT-licensed DICOM DIMSE implementation for Node.js, built on dcmjs. If you need DIMSE networking, which @cosyte/dicom does not do, this is where to look. [Source: npm, dcmjs-dimse](https://www.npmjs.com/package/dcmjs-dimse) Python library ### pydicom A pure Python package for reading and writing DICOM data. [Source: PyPI, pydicom](https://pypi.org/project/pydicom/) DICOM server ### Orthanc An open-source DICOM server for healthcare and medical research. A server stores and serves studies; @cosyte/dicom reads and writes files inside your own code. [Source: Orthanc, about](https://www.orthanc-server.com/static.php?page=about) Works with ## The rest of the suite, where it fits. - [De-identification](https://cosyte.com/standards/de-identification) @cosyte/deid applies a policy to DICOM metadata through the same manifest as every other format. - [HL7 v2](https://cosyte.com/standards/hl7-v2) Imaging orders and results travel as HL7 v2 alongside the DICOM objects: @cosyte/hl7. ## Try @cosyte/dicom on your own messages. It is free and MIT-licensed. If it saves you a day, a star on GitHub helps other engineers find it. [Star on GitHub](https://github.com/cosyte/dicom) [View on npm](https://www.npmjs.com/package/@cosyte/dicom) Need it integrated? [Talk to us](https://cosyte.com/contact), or see what our [integration services](https://cosyte.com/integration-services) cover. --- Source: https://cosyte.com/standards/mllp MLLP # HL7 v2 over MLLP, with the hard parts handled. @cosyte/mllp is an MLLP client and server for Node.js: framing, acknowledgment correlation, and reconnects, with zero runtime dependencies and one guarantee it will not trade away. A positive acknowledgment never goes out before your commit succeeds. @cosyte/mllp ```bash npm install @cosyte/mllp ``` [Star cosyte/mllp on GitHub](https://github.com/cosyte/mllp) [Read the quickstart](https://docs.cosyte.com/mllp/quickstart) Need it integrated? [Talk to us](https://cosyte.com/contact). The standard ## MLLP is the thin frame around every HL7 v2 message on a socket. - The HL7 2.5 standard does not define a network protocol. The IHE IT Infrastructure framework requires applications to use the Minimal Lower Layer Protocol defined in Appendix C of the HL7 Implementation Guide. [Source: IHE ITI Technical Framework, Volume 2, Appendix C](https://profiles.ihe.net/ITI/TF/Volume2/ch-C.html) - A frame is a start block byte (0x0B), the HL7 content, an end block byte (0x1C) and a carriage return (0x0D). [Source: HL7 v2+ working draft on hl7.eu, Minimal Lower Layer Protocol](https://www.hl7.eu/refactored/transport01mllp.html) @cosyte/mllp ## The transport on its own, as a library you import. The protocol stops at the frame. Everything that decides whether an interface survives a bad night is left to the integrator, so every integration ends up writing its own acknowledgment correlator and reconnect loop. This is that code, written once and tested. - A client, a server, a standalone framing codec, and an in-memory transport so your tests never open a socket. - Acknowledgments are correlated to the message they answer. A throw in your commit handler answers AE, never AA. - Reconnects and backpressure are handled for you. - TLS through node:tls, with certificate verification on by default and mutual TLS available. - Checked differentially against Mirth Connect and the Google Cloud Healthcare MLLP adapter, and runDifferential ships so you can aim the same harness at your own engine. - An optional ack-from-hl7 bridge builds acknowledgments with @cosyte/hl7. - Zero runtime dependencies, with ESM and CommonJS builds. send-and-acknowledge.ts ```ts import { createStarterClient, createStarterServer } from "@cosyte/mllp"; const committed: Buffer[] = []; // Port 0: the OS picks a free port. The host defaults to loopback, 127.0.0.1. const server = await createStarterServer({ port: 0, onMessage: async (payload) => { committed.push(payload); // your durable commit: a throw here answers AE, never AA }, }); const client = await createStarterClient({ host: "127.0.0.1", port: server.getStats().port ?? 0 }); const ack = await client.send( Buffer.from( "MSH|^~\\&|SENDING_APP|SENDING_FAC|RECEIVING_APP|RECEIVING_FAC|20260101120000||ADT^A01|CTRL0001|P|2.5.1\r", ), ); // Log the shape of the acknowledgement, never its field values. const msa = ack .toString("utf8") .split("\r") .find((segment) => segment.startsWith("MSA|")) ?.split("|"); const [, ackCode, controlId] = msa ?? []; console.log("acknowledgement code:", ackCode); console.log("MSA-2 echoes the control id sent:", controlId === "CTRL0001"); console.log("messages committed:", committed.length); await client.close(); await server.close(); ``` Adapted from the [@cosyte/mllp README on GitHub](https://github.com/cosyte/mllp#install) so that it logs no value that identifies a person. Every value in it is synthetic. Limits ## What it does not do. Its README names what is not built: - No batch acknowledgment. A batch envelope, or a frame with more than one MSH, gets a warned, non-positive AE. - MLLP Release 2 is not spoken. - No queue or replay of unacknowledged messages. - No clinical acceptance decision: that stays with your application. - No PKI. - Epic and Cerner are not part of the verification harness, and no claim is made about either. [The full status and limits, in the README](https://github.com/cosyte/mllp#status) Alternatives ## What else you could use. Each description comes from the project’s own documentation or npm listing, linked below. Node.js library ### node-hl7-server An MIT-licensed TypeScript HL7 listener for Node.js that accepts, parses, and acknowledges HL7 v2 messages over MLLP, with node-hl7-client for sending. [Source: npm, node-hl7-server](https://www.npmjs.com/package/node-hl7-server) Java library ### HAPI HL7v2 HAPI's Java implementation of the Minimal Lower Layer Protocol from Appendix C of the HL7 Implementation Guide. [Source: HAPI HL7v2 API documentation](https://hapifhir.github.io/hapi-hl7v2/base/apidocs/ca/uhn/hl7v2/llp/MinLowerLayerProtocol.html) Integration engine ### Mirth Connect NextGen Healthcare's integration engine, and one of the two engines @cosyte/mllp is checked against. From version 4.6 it ships under a single closed-source, proprietary license. [Source: NextGen Healthcare, Mirth Connect downloads](https://www.nextgen.com/solutions/interoperability/mirth-integration-engine/mirth-connect-downloads) Platform agent ### Medplum Agent An application that runs inside your firewall and connects to devices over HL7/MLLP, ASTM, and DICOM, as part of the Medplum platform. [Source: Medplum documentation, Agent](https://www.medplum.com/docs/agent) Works with ## The rest of the suite, where it fits. - [HL7 v2](https://cosyte.com/standards/hl7-v2) @cosyte/hl7 parses what arrives in the frame, and powers the optional ack-from-hl7 bridge. - [@cosyte/synth](https://github.com/cosyte/synth) Generates synthetic HL7 v2 traffic to push through a connection in tests. ## Try @cosyte/mllp on your own messages. It is free and MIT-licensed. If it saves you a day, a star on GitHub helps other engineers find it. [Star on GitHub](https://github.com/cosyte/mllp) [View on npm](https://www.npmjs.com/package/@cosyte/mllp) Need it integrated? [Talk to us](https://cosyte.com/contact), or see what our [integration services](https://cosyte.com/integration-services) cover. --- Source: https://cosyte.com/standards/terminology Terminology # A terminology engine that never fabricates a code. @cosyte/terminology mirrors FHIR's terminology operations ($lookup, $validate-code, $translate, and $expand) over the code-system releases and FHIR resources you supply. An unmapped code comes back as unmapped, never as a guess. @cosyte/terminology ```bash npm install @cosyte/terminology ``` [Star cosyte/terminology on GitHub](https://github.com/cosyte/terminology) [Read the quickstart](https://docs.cosyte.com/terminology/quickstart) Need it integrated? [Talk to us](https://cosyte.com/contact). The standard ## Clinical codes come from a few systems, each with its own steward. - LOINC provides universal codes and structured names that identify things you can measure or observe, so clinical results can be exchanged and aggregated. [Source: Regenstrief Institute, LOINC](https://www.regenstrief.org/real-world-solutions/loinc/) - SNOMED CT is one of the standards designated for US federal systems that exchange clinical health information electronically. [Source: National Library of Medicine, SNOMED CT](https://www.nlm.nih.gov/healthit/snomedct/index.html) - RxNorm is a normalized naming system for generic and branded drugs, and a tool for moving between drug terminologies. The National Library of Medicine produces it. [Source: National Library of Medicine, RxNorm overview](https://www.nlm.nih.gov/research/umls/rxnorm/overview.html) - UCUM is a code system meant to include all units of measure in contemporary use, so quantities and their units can be exchanged without ambiguity. [Source: UCUM](https://ucum.org/ucum) - ONC lists LOINC, RxNorm, and SNOMED CT among the applicable vocabulary standards in USCDI version 7. [Source: ONC, USCDI applicable vocabulary standards](https://isp.healthit.gov/uscdi-applicable-vocabulary-standards) @cosyte/terminology ## The engine, with your releases. It ships the engine and no code-system release: SNOMED CT, CPT, LOINC, RxNorm, and VSAC value sets are licensed by their stewards, so you bring them. What it does bundle is listed, with its copyright, in the README. - resolveSystem turns an OID, a mnemonic, or a URI into the canonical code-system URI, or a typed unknown. - ConceptMap $translate, read only in the map's authored direction, returning every candidate for a one-to-many map. - CodeSystem loading from RRF, CSV, fixed-width, and FHIR JSON, with $lookup and $validate-code. - ValueSet $expand and $validate-code, measured against HL7's own terminology ecosystem test cases. - UCUM validation and canonicalization, checked against the official UCUM functional tests. - The CMS ICD-9 and ICD-10 GEMs, the NLM SNOMED CT to ICD-10-CM map, and an RxNorm drug graph, each over files you supply. - Zero runtime dependencies. A release you load is frozen. resolve-a-system.ts ```ts import { resolveSystem, isUnknownSystem } from "@cosyte/terminology"; const r = resolveSystem("2.16.840.1.113883.6.1"); // OID, mnemonic, or URI console.log(isUnknownSystem(r) ? "unknown" : r.url); // http://loinc.org ``` From the [@cosyte/terminology README on GitHub](https://github.com/cosyte/terminology#install), verbatim. Every value in it is synthetic. Limits ## What it does not do. Its README is explicit about what it will not do: - No code-system release is bundled. SNOMED CT, CPT, LOINC, RxNorm, and VSAC value sets are yours to supply, under their stewards' terms. - UCUM support is recognition and canonicalization only: no magnitude conversion. - A directional map is never inverted. Reverse translation needs a map of its own. - An unrecognized system resolves to a typed unknown, never a guessed URI. - It does bundle the UCUM unit table, reproduced verbatim under its license, and code-system identity facts. The README names both. [The full status and limits, in the README](https://github.com/cosyte/terminology#what-is-bundled) Alternatives ## What else you could use. Each description comes from the project’s own documentation or listing, linked below. JavaScript library ### ucum-lhc The National Library of Medicine's JavaScript library for validating and converting UCUM unit strings. It converts units, which @cosyte/terminology deliberately does not. [Source: npm, @lhncbc/ucum-lhc](https://www.npmjs.com/package/@lhncbc/ucum-lhc) Hosted API ### RxNorm API The National Library of Medicine's web service for the RxNorm data set. It is a network call; @cosyte/terminology runs in your process over an RxNorm release you supply. [Source: NLM, RxNorm API](https://lhncbc.nlm.nih.gov/RxNav/APIs/RxNormAPIs.html) Terminology server ### Snowstorm SNOMED International's SNOMED CT terminology server, built on Elasticsearch. [Source: SNOMED International, terminology services](https://www.implementation.snomed.org/terminology-services) FHIR terminology server ### Ontoserver A FHIR terminology server developed by the Australian e-Health Research Centre at CSIRO. [Source: CSIRO, Ontoserver](https://ontoserver.csiro.au/) Java FHIR server ### HAPI FHIR JPA server Loads terminology through standard FHIR REST APIs or its command-line upload-terminology command, and serves it from a Java FHIR server. [Source: HAPI FHIR, terminology](https://hapifhir.io/hapi-fhir/docs/server_jpa/terminology.html) Works with ## The rest of the suite, where it fits. - [FHIR](https://cosyte.com/standards/fhir) @cosyte/fhir validates binding strength and takes a terminology service you supply. - [C-CDA](https://cosyte.com/standards/c-cda) @cosyte/ccda consults a terminology adapter at its coded slots. - [@cosyte/transform](https://github.com/cosyte/transform) Translates coded HL7 v2 fields through the ConceptMaps the v2-to-FHIR guide publishes. ## Try @cosyte/terminology on your own messages. It is free and MIT-licensed. If it saves you a day, a star on GitHub helps other engineers find it. [Star on GitHub](https://github.com/cosyte/terminology) [View on npm](https://www.npmjs.com/package/@cosyte/terminology) Need it integrated? [Talk to us](https://cosyte.com/contact), or see what our [integration services](https://cosyte.com/integration-services) cover. --- Source: https://cosyte.com/standards/de-identification De-identification # De-identification with a manifest that never holds a value. @cosyte/deid applies a de-identification policy, HIPAA Safe Harbor by default, to the fields you locate in a document and returns them transformed, with a manifest of everything it acted on. Clinical values are kept, and the manifest never holds a value. @cosyte/deid ```bash npm install @cosyte/deid ``` [Star cosyte/deid on GitHub](https://github.com/cosyte/deid) [Read the quickstart](https://docs.cosyte.com/deid/quickstart) Need it integrated? [Talk to us](https://cosyte.com/contact). The standard ## HIPAA defines two ways to de-identify health information. - Under Expert Determination, a person with appropriate knowledge of statistical and scientific methods determines that the risk of identifying an individual is very small, and documents the methods and results. [Source: 45 CFR 164.514, 2025 edition (govinfo)](https://www.govinfo.gov/content/pkg/CFR-2025-title45-vol2/pdf/CFR-2025-title45-vol2-sec164-514.pdf) - Under Safe Harbor, eighteen listed identifiers, lettered (A) names through (R) any other unique identifying number, characteristic, or code, are removed for the individual and for relatives, employers, and household members. [Source: 45 CFR 164.514, 2025 edition (govinfo)](https://www.govinfo.gov/content/pkg/CFR-2025-title45-vol2/pdf/CFR-2025-title45-vol2-sec164-514.pdf) - Safe Harbor also requires that the covered entity has no actual knowledge that what remains could identify the individual. [Source: 45 CFR 164.514, 2025 edition (govinfo)](https://www.govinfo.gov/content/pkg/CFR-2025-title45-vol2/pdf/CFR-2025-title45-vol2-sec164-514.pdf) - For imaging, DICOM Part 15, Annex E defines which attributes to remove or replace so a data set does not leak identifying information. [Source: DICOM PS3.15, Annex E](https://dicom.nema.org/medical/dicom/current/output/chtml/part15/chapter_E.html) @cosyte/deid ## A policy engine that is conservative where a parser is lenient. Identifiers are addressed by their place in the document structure, never found by pattern-matching raw bytes. Results are described as transformed per the configured policy, never as certified: the certification is always yours. - HIPAA Safe Harbor by default, covering all eighteen categories, the open-ended catch-all included. - Five transforms: redact, generalize (a date to its year, a ZIP code to three digits), keyed date shift, keyed HMAC pseudonym, and keyed hash. - A value-free manifest: category, transform, location, count, and disposition, never a value, a key, or a date-shift offset. - A longitudinal registry keeps one person's surrogates consistent across documents. - Profiles can only tighten a policy, never loosen it. - An Expert Determination support report structures the manifest for a statistician and never renders a determination. - Zero third-party runtime dependencies: every primitive is node:crypto. deidentify.ts ```ts import { deidentify, SAFE_HARBOR_CATEGORIES } from "@cosyte/deid"; // Synthetic inputs: placeholders in the shape of an HL7 v2 name and date of birth, not a person. const name = "ZZFAMILY^ZZGIVEN"; const dob = "19900215"; const { document, manifest } = deidentify( { loci: [ { path: "PID-5", kind: "identifier", category: SAFE_HARBOR_CATEGORIES.NAMES, value: name }, { path: "PID-7", kind: "date", category: SAFE_HARBOR_CATEGORIES.DATES, value: dob }, { path: "OBX-5", kind: "clinical", value: "5.4 mmol/L" }, ], }, {}, ); // The de-identified values stay out of the log: [null, "1990", "5.4 mmol/L"] for these inputs. const values = document.loci.map((locus) => locus.value); // The manifest names each field and what was done to it, never a value, so it is safe to log. console.log(manifest.map((entry) => `${entry.locus} ${entry.category} ${entry.disposition}`)); console.log("fields returned:", values.length); ``` Adapted from the [@cosyte/deid README on GitHub](https://github.com/cosyte/deid#de-identify) so that it logs no value that identifies a person. Every value in it is synthetic. Limits ## What it does not do. Its README draws the honesty line itself: - It never certifies. Output is Safe-Harbor-transformed per the configured policy, and the actual-knowledge condition is yours. - Expert Determination is supported, never rendered: the determination and its documentation are the expert's. - Free text is blocked by default. Redacting it needs a redactor you supply. - DICOM support is metadata-only: burned-in pixel annotations are flagged, not cleaned. - NCPDP SCRIPT is refused outright rather than partly processed. [The full status and limits, in the README](https://github.com/cosyte/deid#known-limitations--honesty) Alternatives ## What else you could use. Each description comes from the project’s own documentation or listing, linked below. Python library ### Presidio Open-source identification and anonymization modules for private entities in text and images, such as names, locations, and phone numbers. It works on free text; @cosyte/deid works on structured documents and blocks free text by default. [Source: Presidio](https://presidio.dataprivacystack.org/) Python library ### deid (pydicom) Best-effort de-identification for medical images in Python, built on pydicom. [Source: PyPI, deid](https://pypi.org/project/deid/) Desktop tool ### RSNA DICOM Anonymizer A tool from the Radiological Society of North America for processing DICOM files for research by removing or changing personal identifiers. [Source: RSNA, imaging research tools](https://www.rsna.org/research/imaging-research-tools) Microsoft project ### Tools for Health Data Anonymization A Microsoft project that provides tools for de-identifying FHIR and DICOM data. [Source: Microsoft Learn, Azure Health Data Services projects](https://learn.microsoft.com/en-us/azure/healthcare-apis/github-projects) Hosted service ### Amazon Comprehend Medical DetectPHI A hosted operation that detects protected health information in clinical text. Its documentation notes that the entities it detects do not map one to one to the Safe Harbor list. [Source: AWS documentation, DetectPHI](https://docs.aws.amazon.com/comprehend-medical/latest/dev/textanalysis-phi.html) Works with ## The rest of the suite, where it fits. - [HL7 v2](https://cosyte.com/standards/hl7-v2) The @cosyte/deid/hl7 adapter works on a message parsed by @cosyte/hl7. - [C-CDA](https://cosyte.com/standards/c-cda) The @cosyte/deid/ccda adapter works on a document parsed by @cosyte/ccda. - [FHIR](https://cosyte.com/standards/fhir) The @cosyte/deid/fhir adapter works on an R4 resource read by @cosyte/fhir. - [X12](https://cosyte.com/standards/x12) The @cosyte/deid/x12 adapter works on an interchange parsed by @cosyte/x12. - [NCPDP](https://cosyte.com/standards/ncpdp) The @cosyte/deid/ncpdp adapter works on a Telecom transaction parsed by @cosyte/ncpdp. - [DICOM](https://cosyte.com/standards/dicom) The @cosyte/deid/dicom adapter works on a data set parsed by @cosyte/dicom. - [@cosyte/synth](https://github.com/cosyte/synth) Plants synthetic identifiers in generated data and checks that @cosyte/deid removes every one. ## Try @cosyte/deid on your own messages. It is free and MIT-licensed. If it saves you a day, a star on GitHub helps other engineers find it. [Star on GitHub](https://github.com/cosyte/deid) [View on npm](https://www.npmjs.com/package/@cosyte/deid) Need it integrated? [Talk to us](https://cosyte.com/contact), or see what our [integration services](https://cosyte.com/integration-services) cover. --- Source: https://cosyte.com/ai-agents AI agents # Use Cosyte with AI agents. Our command-line tool, @cosyte/cli, includes an MCP server, so an agent can parse, validate, inspect, and convert healthcare messages with the same code the terminal runs. This page shows how to register it, what it does with your data, and where an agent finds the rest of what we publish. [Register the MCP server](https://cosyte.com/ai-agents#mcp-server) [Read the @cosyte/cli docs](https://docs.cosyte.com/cli) The MCP server ## cosyte-mcp, in @cosyte/cli The Model Context Protocol (MCP) is how an AI agent’s client, such as a coding assistant, calls tools. cosyte-mcp is an MCP server that runs on your machine, as a local subprocess your client starts and talks to over standard input and output. It is not a hosted service. [About the Model Context Protocol](https://modelcontextprotocol.io/) Register it in your MCP client’s configuration: MCP client configuration ```json { "mcpServers": { "cosyte": { "command": "npx", "args": ["-y", "--package", "@cosyte/cli", "cosyte-mcp"] } } } ``` - The --package flag is required. The shorter ["-y", "@cosyte/cli", "mcp"] does not work: it fails with "could not determine executable to run", because the package ships two executables, cosyte and cosyte-mcp, and npx has to be told which one to run. - Versions 0.0.1 and 0.0.2 of @cosyte/cli are on npm but cannot be installed, so this registration fails on them. Every later version installs. - Where @cosyte/cli is already installed, cosyte mcp starts the same server. ### Its four tools Each tool calls the same command the terminal runs, so an agent and a person at the terminal get the same result. #### parse Detects the format from the content, or takes the one you name, and returns the parsed message as typed JSON with value-free warnings. #### validate Parses, then runs the validation of the library that owns the format. A message that parses but is invalid is a successful call that reports the verdict, not a tool error. #### inspect Returns a structural summary with no field values in it: type and classification codes, and structural counts. #### convert Converts an HL7 v2 message to a FHIR R4 Bundle through @cosyte/transform. The command adds no mapping of its own. Every tool publishes an outputSchema, so a client can check a result against a declared contract. Each result carries ok, a status of success, verdict, or failed, the exit code, a stable code on a failure, and the tool’s own payload under data. Your data ## What the server does with your data - It runs locally. npx downloads @cosyte/cli from the npm registry to run it; the messages you parse go to that subprocess on your machine and back to your client. Nothing is sent to us. - A tool error carries only value-free diagnostics: a stable code and a position, never a value from your input. - There is no --unsafe-show-values option on the agent surface. In the terminal, that flag is the one opt-in way to see an excerpt of the input in a diagnostic; through MCP it cannot be turned on. - A tool result carries the data you asked for. Whatever you parse reaches your agent, and the model behind it, in that result. Synthetic data only ## Give an agent synthetic data, never real patient data. Point an agent at synthetic messages and fixtures. A tool result goes to the agent and the model behind it, and that is not a place for protected health information. @cosyte/synth generates deterministic synthetic fixtures for this, in six formats (HL7 v2, FHIR R4, C-CDA, X12, NCPDP, and ASTM; not DICOM or MLLP), with no real patient data in them. When the work needs real data, it belongs under a signed agreement, not in an agent session. We sign Business Associate Agreements. [Read the @cosyte/synth docs](https://docs.cosyte.com/synth) [Talk to us](https://cosyte.com/contact) Machine-readable files ## The files an agent reads first Plain text in the llms.txt format, so an agent does not have to crawl HTML to learn what we publish. - [cosyte.com/llms.txt](https://cosyte.com/llms.txt) A map of this site: every page worth reading, one line each, with what the page is for, and a link to the documentation’s own map. - [cosyte.com/llms-full.txt](https://cosyte.com/llms-full.txt) The full text of every page that llms.txt lists, in one file, each page preceded by its URL. It is written from the pages themselves every time the site is built. - [docs.cosyte.com/llms.txt](https://docs.cosyte.com/llms.txt) The map of the developer documentation: one entry per package, linking its guides and API reference. Agent skills ## Skills that teach an agent the libraries [cosyte/agent-skills on GitHub](https://github.com/cosyte/agent-skills) cosyte/agent-skills is a public, MIT-licensed repository of Agent Skills for the @cosyte packages: one SKILL.md per package, and one that picks the right package for a task. Each skill gives the install line, a checked example with synthetic data, the key API names, the package’s limits and known defects, and how to handle protected health information. It also ships Cursor project rules and an AGENTS.md routing summary. In Claude Code, it installs as a plugin: Claude Code ```bash claude plugin marketplace add cosyte/agent-skills claude plugin install cosyte@cosyte ``` The README gives the install for Claude Code, OpenAI Codex, and Cursor, each method taken from that tool’s own documentation. It says that an install has not yet been run in every tool, and asks for an issue if one does not work as written. The libraries ## Every library installs by its npm name. The @cosyte/* libraries are MIT-licensed TypeScript packages on npm: one for each standard, and the libraries that build on them. Each installs with one line. [What each library does](https://cosyte.com/open-source) [The standards, one page each](https://cosyte.com/standards) npm ```bash npm install @cosyte/hl7 npm install @cosyte/mllp npm install @cosyte/dicom npm install @cosyte/x12 npm install @cosyte/ccda npm install @cosyte/ncpdp npm install @cosyte/astm npm install @cosyte/fhir npm install @cosyte/transform npm install @cosyte/terminology npm install @cosyte/cli npm install @cosyte/deid npm install @cosyte/synth npm install @cosyte/dates ``` --- Source: https://cosyte.com/integration-services Integration services # We build, host and run healthcare integrations on our own open-source libraries. HL7, FHIR, X12, NCPDP, ASTM, and DICOM. We build the integration, and we keep it running: in your environment, or in ours under a Business Associate Agreement. The libraries stay free and MIT-licensed, so you can read every line the work is built on, and the code we run for you. [Talk to us](https://cosyte.com/contact) [Read the libraries first](https://cosyte.com/standards) What we do ## Two halves of one job. ### We build it The interface, the mappings, the validation, and the tests, written on our open-source libraries as code you own. We start with an assessment of your traffic when the scope is not yet clear. - Interface assessment - HL7 v2 interface - FHIR API integration - X12 transaction flow - Pharmacy flow - Lab or imaging interface - Engine migration ### We host and run it Monitoring, upgrades, and the changes that follow when a trading partner changes what they send. Support keeps what runs in your environment healthy. Managed hosting runs it in our environment under a signed Business Associate Agreement, set up per engagement and named in the statement of work. - Support - Managed hosting Start here ## Two problems we take on first. ### X12 and revenue cycle Claims, eligibility, claim status, and remittance in X12 005010, for billing startups, provider revenue-cycle teams, and RCM vendors. Built on @cosyte/x12, with every amount kept exact. [Claims and remittance work](https://cosyte.com/revenue-cycle) ### Leaving Mirth Connect Mirth Connect is commercially licensed from version 4.6. We help you weigh licensing, staying, and moving, and we migrate channels one at a time, each proven on replayed traffic first. [Mirth Connect migration](https://cosyte.com/leaving-mirth-connect) Who it is for ## Four kinds of teams, one set of libraries. ### Health-tech engineers building in Node and TypeScript Your product has to exchange data with a customer’s EHR, a payer, or a lab. We build the interface in your repository, in TypeScript, as pull requests with tests, and we can run it for you after, so your developers stay on the product. If you would rather build it yourself, the libraries are free to install. [HL7 v2](https://cosyte.com/standards/hl7-v2) [FHIR](https://cosyte.com/standards/fhir) ### Hospital and health-system interface teams You run the interfaces between an EHR, labs, imaging, and everything downstream. We build new HL7 v2 feeds over MLLP, C-CDA document exchange, and FHIR endpoints, alongside the engine you already run or as code your developers own, and we can keep them running. [MLLP](https://cosyte.com/standards/mllp) [C-CDA](https://cosyte.com/standards/c-cda) ### Payers, clearinghouses, and pharmacy Claims, remittance, eligibility, and enrollment in X12 005010, and pharmacy claims and ePrescribing in NCPDP. We build the parsing, the validation, and the reconciliation around them, with every amount kept in exact decimal arithmetic. [X12](https://cosyte.com/standards/x12) [NCPDP](https://cosyte.com/standards/ncpdp) ### Lab and imaging vendors and integrators Analyzer interfaces over ASTM, results and orders in HL7 v2, and DICOM metadata and routing. We connect an instrument or a modality to the system that needs its data, and we test it on synthetic traffic first. [Lab integration](https://cosyte.com/labs) [ASTM](https://cosyte.com/standards/astm) [DICOM](https://cosyte.com/standards/dicom) Packages ## Packages, scoped before we start. Each build package is a fixed scope at a fixed price, and Support and Managed hosting are a monthly scope, each agreed in writing before any work begins. Tell us which one fits and what is on the wire, and we send you the price for your scope. ### Interface assessment We run a sample of your traffic through our parsers and report every deviation from the standard, what your current integration does with each one, and what to fix first. Real traffic under a signed BAA, or a synthetic sample if you prefer. You get: A written report, the parser warnings grouped by cause, and a fix list in priority order. [Ask about this package](https://cosyte.com/contact?package=interface-assessment) ### HL7 v2 interface One HL7 v2 interface over MLLP, inbound or outbound: the connection, acknowledgments, parsing, the mapping to your target system or format, and error handling. You get: Code in your repository, a test suite on synthetic messages, and a runbook. [Ask about this package](https://cosyte.com/contact?package=hl7-v2-interface) ### FHIR API integration One FHIR R4 connection to an EHR or a payer API: the client, the resource mappings you need, validation against the profiles you use, and handling of OperationOutcome errors. You get: Code in your repository, a test suite on synthetic resources, and a runbook. [Ask about this package](https://cosyte.com/contact?package=fhir-api-integration) ### X12 transaction flow One X12 005010 flow, such as posting 835 remittances, answering 270 eligibility requests, or sending 837 claims: parsing and building, validation, and the reconciliation logic around it. You get: Code in your repository, a test suite on synthetic interchanges, and a runbook. [Ask about this package](https://cosyte.com/contact?package=x12-transaction-flow) ### Pharmacy flow One NCPDP flow: Telecom claims (billing, reversal, and rebill) or SCRIPT ePrescribing messages (new prescriptions, renewals, and changes), with reject handling. You get: Code in your repository, a test suite on synthetic transactions, and a runbook. [Ask about this package](https://cosyte.com/contact?package=pharmacy-flow) ### Lab or imaging interface One analyzer connected over ASTM framing and records, or one DICOM flow: reading the metadata you need, routing studies, and applying a de-identification policy to their metadata before they leave your boundary. You get: Code in your repository, a test suite on synthetic traffic, and a runbook. [Ask about this package](https://cosyte.com/contact?package=lab-or-imaging-interface) ### Engine migration Move channels off Mirth Connect or another interface engine. Each channel is rebuilt on the target you choose, then run beside the original on the same replayed traffic and compared message by message before it cuts over. Quoted per channel after an interface assessment. You get: Each channel rebuilt and verified against the original on replayed traffic, a cutover plan per channel, and a runbook. [Ask about this package](https://cosyte.com/contact?package=engine-migration) ### Support We keep the integrations running in your environment healthy: monitoring, library and dependency upgrades, and the changes that follow when a trading partner or a vendor changes what they send. A monthly retainer, or hourly. You get: A monthly scope, written down, and a record of every change we make. [Ask about this package](https://cosyte.com/contact?package=run-it) ### Managed hosting We host and operate the integrations we build in our environment, under a signed Business Associate Agreement. It is set up per engagement and named in the statement of work, with the same monitoring, upgrades, and partner changes as Support. You get: The integration hosted and run by us, a monthly scope written down, and a record of every change we make. [Ask about this package](https://cosyte.com/contact?package=managed-hosting) How it runs ## From the first message to an interface we keep running. 1. Step 1 Tell us what is on the wire The contact form is enough: the standard, the systems on each side, and what has to come out the other end. 2. Step 2 Agree the scope in writing Deliverables, acceptance criteria, and a fixed price, signed before any work starts. If protected health information is in scope, we sign a Business Associate Agreement first. 3. Step 3 We build it Pull requests you can review, on our open-source libraries, with tests on synthetic data. The code is yours. 4. Step 4 We run it In your environment with Support, or in ours under a signed Business Associate Agreement with Managed hosting. You own the code either way. The full engagement model and the questions buyers ask before signing are on [How we work](https://cosyte.com/consulting). Open source ## The libraries stay free. Every integration we build runs on the same MIT-licensed @cosyte/* packages anyone can install. When a fix is general, it goes back into the library for everyone. Your integration code stays yours. [The standards and the libraries](https://cosyte.com/standards) Protected health information We sign Business Associate Agreements. [How we handle data](https://cosyte.com/trust) ## Need it integrated? Tell us what is on the wire and what has to come out the other side. [Talk to us](https://cosyte.com/contact) [Start with the standards](https://cosyte.com/standards) --- Source: https://cosyte.com/revenue-cycle X12 and revenue cycle # Claims, eligibility, and remittance, built on our own X12 library. We build the X12 side of your revenue cycle: 837 claims out, 835 remittances in, 270 and 271 eligibility, 276 and 277 claim status, and the 999 and 277CA acknowledgments in between. The work runs on @cosyte/x12, which is MIT-licensed and keeps every amount in exact decimal arithmetic. We build the integration with your clearinghouse, and we can host and run it for you. [Talk about your claims flow](https://cosyte.com/contact?package=x12-transaction-flow) [Read about the X12 library](https://cosyte.com/standards/x12) Who it is for ## Three kinds of teams that own the X12 nobody else wants. ### Health-tech billing startups Your product files claims, checks eligibility, or posts payments for practices, and the X12 under it is the part nobody on the team wants to own. We build it in your repository, in TypeScript, as pull requests with tests on synthetic interchanges. ### Provider revenue-cycle engineering teams You run the code between your practice management or billing system and a clearinghouse: claim batches out, remittances back, eligibility before the visit. We build or fix the pieces that break, such as 835 posting, claim status, and acknowledgment handling. ### RCM vendors and services You process claims and remittances for many clients against many payers. We build the parsing, validation, and reconciliation that has to hold across all of them, with every vendor deviation reported as a warning instead of a silent guess. Where things stand ## Almost every claim is electronic. What comes back is where the work is. - The 2025 CAQH Index estimates 68.8 billion medical administrative transactions a year nationally, up from 62.3 billion in the 2024 Index. [Source: CAQH, 2025 CAQH Index Executive Report](https://index.caqh.org/hubfs/Index/CAQH_IndexReport_2025_Executive%20Report_v6.pdf) - The same report puts medical plan adoption of fully electronic claim submission at 98% and eligibility verification at 96%, while remittance advice is at 87%, claim status inquiry at 81%, and claim payment at 78%. [Source: CAQH, 2025 CAQH Index Executive Report](https://index.caqh.org/hubfs/Index/CAQH_IndexReport_2025_Executive%20Report_v6.pdf) - The claims attachments rule, CMS-0053-F, adopts the X12 275 and 277 transactions at version 006020. It took effect on May 26, 2026, and compliance is required by May 26, 2028. [Source: Federal Register, CMS-0053-F, March 24, 2026](https://www.govinfo.gov/content/pkg/FR-2026-03-24/html/2026-05676.htm) Every source above was read on November 7, 2026. Sending a claim is a solved problem for most teams. The work that is left sits after it: remittances that post cleanly and reconcile to the payment, claim status that is read by your system rather than looked up in a portal, and acknowledgments that are acted on rather than filed. What we build ## The X12 work we take on. Each of these is one X12 transaction flow, built in your repository on @cosyte/x12 and scoped in writing before we start. ### 835 remittance posting Read each 835 into typed claim payments and adjustments, post them to your system, and reconcile them against the payment, with the adjustment and remark codes kept exactly as sent. Amounts stay exact decimals from the file to your ledger. ### 837 claims Build 837P, 837I, or 837D claims from your own data model, check them against the guide before they leave, and read the 999 and 277CA acknowledgments that come back. ### Eligibility and claim status Send 270 inquiries and read the 271 answers into a model your product can use. Send 276 claim-status inquiries and act on the 277 answer instead of a portal lookup. ### A second clearinghouse, or a switch Run a second clearinghouse beside the first, plan the payer enrollments one payer at a time, and compare what each one returns before anything cuts over. We work with your clearinghouse. Where to start ## Not sure where it breaks? Start with an interface assessment. We run a sample of your interchanges through @cosyte/x12 and report every deviation from the guide, what your current integration does with each one, and what to fix first. A synthetic or de-identified sample is the default; real interchanges only under a signed Business Associate Agreement. The library is public, so you can read the code the work is built on before you talk to us. It reads and builds the HIPAA 005010 transaction sets (270, 271, 276, 277, 277CA, 278, 820, 834, 835, 837P, 837I, 837D, 999, and TA1), each with a reader and a matching builder. Every amount decodes as an exact decimal and is never parsed as a floating-point number, every deviation it tolerates arrives as a warning with a stable code, and it has zero runtime dependencies. [Ask about an assessment](https://cosyte.com/contact?package=interface-assessment) [X12 and @cosyte/x12](https://cosyte.com/standards/x12) [All integration packages](https://cosyte.com/integration-services) What we do not do ## Said up front, so nobody finds out later. - We do not submit claims to payers on your behalf; your clearinghouse does, and we build the integration with it. - We do not promise a denial rate, a clean-claim rate, or an auto-posting rate. They depend on your payers and your data, and an assessment measures them rather than guessing them. - @cosyte/x12 covers the 005010 guides and, at the base X12 structure only, the two 006020 attachments transactions the 2028 rule adopts. Other 006020 guides, earlier revisions, and transport such as AS2 or SFTP are out of its scope. - We sign Business Associate Agreements. We make no other compliance claim, for the library or for us. ## Tell us what your claims flow looks like. Which transactions, which clearinghouse, which system on your side, and where it breaks today. [Talk about your claims flow](https://cosyte.com/contact?package=x12-transaction-flow) [See every package](https://cosyte.com/integration-services) --- Source: https://cosyte.com/leaving-mirth-connect Leaving Mirth Connect # Moving off Mirth Connect, one verified channel at a time. Mirth Connect moved to a single commercial license with version 4.6. If you run the open-source version, you now choose between licensing it, staying where you are, and moving. If you move, we rebuild each channel and show that it behaves like the original on replayed traffic before anything cuts over. [Talk about a migration](https://cosyte.com/contact?package=engine-migration) [Weigh the three choices](https://cosyte.com/leaving-mirth-connect#choices) Who it is for ## Interface teams with channels that have to keep running. ### Hospital and health-system interface teams You run the channels between the EHR, the lab, imaging, and everything downstream, some of them older than anyone on the team. You need a decision you can defend and a move that does not drop a message. ### Labs and imaging groups Your results, orders, and instrument feeds run through Mirth Connect channels, and an interruption is a delayed result. You need each feed proven on its own traffic before it moves. ### Vendors who ship Mirth Connect channels Your product installs channels at each customer site. You need to know which engines they can run on next, and what changes for your customers when they do. Where things stand ## What changed, in the words of the people who changed it. - On March 19, 2025, NextGen Healthcare announced it was moving Mirth Connect from a dual open-source and commercial license to a single commercial and proprietary license, starting with Mirth Connect 4.6. [Source: NextGen Healthcare, A new era for Mirth Connect](https://www.nextgen.com/blog/industry-news/a-new-era-for-mirth-connect-by-nextgen-healthcare) - The same post names 4.5.2 as the last published open-source version, says open-source users can stay on their current version, and says the GitHub source code and community threads stay available. [Source: NextGen Healthcare, A new era for Mirth Connect](https://www.nextgen.com/blog/industry-news/a-new-era-for-mirth-connect-by-nextgen-healthcare) - NextGen's downloads page says the source code for releases from 4.6 on is no longer publicly available, and that those releases need a purchased license. [Source: NextGen Healthcare, Mirth Connect downloads](https://www.nextgen.com/solutions/interoperability/mirth-integration-engine/mirth-connect-downloads) - Open Integration Engine, a community open-source engine that describes itself as fully compatible with Mirth Connect, released version 4.7.0 on October 21, 2026, as a project of the Eclipse Foundation. [Source: Open Integration Engine](https://openintegrationengine.org/) Every source above was read on November 7, 2026. None of the three choices is wrong for everyone, and each one has the same risk underneath: a channel that behaves differently on real traffic after the change. That risk is what we test for. The three choices ## License, stay, or move. ### License Mirth Connect 4.6 or later You keep the engine your channels were built for, with NextGen's releases and support, under a commercial license and its price. Your channels still move to a newer version, so test them before you upgrade. ### Stay on the open-source version Nothing changes on the day and nothing is paid. No newer open-source release of Mirth Connect will come from NextGen, so every fix and upgrade after 4.5.2 is yours to find and apply. ### Move To an open-source fork, to another engine, or to integration code your team owns. A channel that imports into its new home is not yet a channel that behaves the same, so each one still has to be proven. Whichever you choose, the same side-by-side check applies, and we can run it for an upgrade as well as for a move. How a migration runs ## Every channel proven on its own traffic before it moves. A migration is quoted per channel, after an interface assessment. Each channel goes through the same five steps. 1. Step 1 Inventory We list every channel with its source, its destinations, its filters and transformers, and the code templates and global scripts it depends on, and we mark which ones carry protected health information. 2. Step 2 Record We capture a sample of each channel's traffic and what the channel sent on for it. Synthetic or de-identified by default; real messages only under a signed Business Associate Agreement, and only where a finding needs them. 3. Step 3 Rebuild Each channel is rebuilt on the target you chose: an open-source fork, a licensed upgrade, or TypeScript on our open-source libraries in your own repository, run in your environment or hosted and run by us. 4. Step 4 Replay and compare The old channel and the new one run on the same recorded traffic, and we compare their output message by message and field by field. Every difference is fixed, or written down and accepted by you. 5. Step 5 Cut over One channel at a time, with the old channel kept ready to take its traffic back. Where to start ## Start with an interface assessment. We read your channel export and run a sample of your traffic through our parsers, then report what each channel does, what it depends on, and where your traffic and the standard disagree. You get a written report and a fix list in priority order. It is also the plan for a migration: the inventory, the order to move channels in, and the per-channel quote all come out of it. [Ask about an assessment](https://cosyte.com/contact?package=interface-assessment) [HL7 v2 and @cosyte/hl7](https://cosyte.com/standards/hl7-v2) [MLLP and @cosyte/mllp](https://cosyte.com/standards/mllp) [All integration packages](https://cosyte.com/integration-services) What we do not do ## Said up front, so nobody finds out later. - We do not resell or license Mirth Connect or any other engine, and we have no arrangement with NextGen Healthcare or with any fork. - We do not promise a migration with no differences. We promise to find them before your traffic does, and to show you each one. - We sign Business Associate Agreements. We make no other compliance claim. ## Tell us what you run. The Mirth Connect version, roughly how many channels, the standards they carry, and when your decision is due. [Talk about a migration](https://cosyte.com/contact?package=engine-migration) [See every package](https://cosyte.com/integration-services) Mirth Connect is a product of NextGen Healthcare. Cosyte is not affiliated with NextGen Healthcare or with any engine named on this page. --- Source: https://cosyte.com/labs Labs # From the analyzer to the chart, and on to the claim. We build the interfaces a lab runs on: instruments into your LIS over ASTM, results and orders to and from ordering providers in HL7 v2, and the claims and remittances that pay for the work in X12. Each one runs on our open-source libraries and is tested on synthetic traffic before it touches yours. [Talk about a lab interface](https://cosyte.com/contact?package=lab-or-imaging-interface) [Read about ASTM](https://cosyte.com/standards/astm) Who it is for ## Labs, and the teams that connect them. ### Reference, hospital, and specialty labs Your instruments, your LIS, and your ordering providers each speak their own dialect of the same standards. We build and fix the interfaces between them one connection at a time, with every deviation reported rather than silently dropped. ### LIS and middleware teams You own the system in the middle. We add the instrument interface, the HL7 feed, or the billing export you have not had time to write, in your codebase, with tests on synthetic traffic. ### Lab-facing health-tech vendors Your product orders tests or receives results. We build the HL7 v2 orders and results exchange your customers' labs expect, and keep it working as each lab adds its own variations. Where things stand ## Two standards on the bench, one on the wire to the provider. - CLSI LIS01 covers the electronic transmission of digital information between medical laboratory instruments and computer systems. [Source: CLSI, LIS01](https://clsi.org/shop/standards/lis01/) - CLSI LIS02 defines the two-way transmission of test requests, results, and demographic information between medical laboratory instruments and information systems. [Source: CLSI, LIS02](https://clsi.org/shop/standards/lis02/) - HL7 International reports that 95% of US healthcare organizations use HL7 v2. [Source: HL7 International, V2 product brief](https://www.hl7.org/implement/standards/product_brief.cfm?product_id=185) Every source above was read on November 7, 2026. An analyzer, an LIS, and an EHR each implement these standards their own way, and a lab sits between all three. The work is in the differences: a frame that fails its checksum, a result code the receiving system does not expect, a claim that leaves without the code a payer needs. What we build ## The lab interfaces we take on. Each is one interface, built on our libraries in your repository and scoped in writing before we start. ### Analyzer interfaces Connect an instrument to your LIS over ASTM and CLSI LIS01 and LIS02: the framing, the checksums, the acknowledgments, and the records, with only frames whose checksum verifies reaching the record parser. ### Results to ordering providers Send HL7 v2 results to each ordering provider's EHR over MLLP, mapped to what that EHR expects, with every acknowledgment tracked and nothing silently dropped. ### Orders in Receive HL7 v2 orders from providers and portals, check them, and turn them into requests your LIS can work. ### Lab billing Build the 837 claims for your tests and post the 835 remittances that come back, with every amount kept exact. The X12 side has its own page. Where to start ## Start with an interface assessment. We run a sample of your instrument, HL7, or X12 traffic through our parsers and report every deviation from the standard, what your current interface does with each one, and what to fix first. A synthetic or de-identified sample is the default; real traffic only under a signed Business Associate Agreement. The libraries the work runs on are public: @cosyte/astm for instrument traffic, @cosyte/hl7 and @cosyte/mllp for results and orders, and @cosyte/x12 for billing. You can read them before you talk to us. [Ask about an assessment](https://cosyte.com/contact?package=interface-assessment) [ASTM and @cosyte/astm](https://cosyte.com/standards/astm) [HL7 v2 and @cosyte/hl7](https://cosyte.com/standards/hl7-v2) [X12 and revenue cycle](https://cosyte.com/revenue-cycle) What we do not do ## Said up front, so nobody finds out later. - We are not an LIS or middleware vendor, and we resell no instrument interface software. - We do not promise a result turnaround time. It depends on your instruments, your LIS, and the systems you send to, and an assessment measures it. - We sign Business Associate Agreements. We make no other compliance claim. ## Tell us what is on the bench and on the wire. Which instruments, which LIS, which EHRs you send results to, and where it breaks today. [Talk about a lab interface](https://cosyte.com/contact?package=lab-or-imaging-interface) [See every package](https://cosyte.com/integration-services) --- Source: https://cosyte.com/trust Trust # What we do with your data, and what we do not claim. Healthcare teams ask the same questions before they send us anything. These are our answers, each one something you can check, and a plain list of what we do not have. ## Protected health information We sign Business Associate Agreements. One is signed before any protected health information reaches us. We start from synthetic or de-identified data. An interface assessment runs on a synthetic or de-identified sample by default, and on real traffic only under a signed agreement and only where a finding needs it. The integration code we write for you is yours either way, delivered as pull requests you review. Where it runs is your choice, per engagement. It runs in your environment, or, under Managed hosting, in ours under a signed Business Associate Agreement. Managed hosting is set up per engagement and named in the statement of work, and we describe that environment in the engagement's security documentation. Please do not send patient data through the contact form or to hello@cosyte.com. If a real message would explain a problem, ask us first and we will agree a safe way to share it. ## The open-source libraries Our @cosyte/* libraries, installed on your machines, run there and send us nothing. Every fixture in their repositories is synthetic: invented patients and invented identifiers, never real data. What their repositories run, read from each one's workflow files on November 7, 2026: - All fourteen published library repositories run CodeQL code scanning and the OpenSSF Scorecard. - Thirteen of them run a PHI scan in continuous integration over their source and tests. The fourteenth, @cosyte/dates, reads no healthcare message format. - Five also run fuzz tests: the X12, NCPDP, and ASTM parsers, the synthetic data generator, and the command-line tool. ## What is safe to log A log line is copied, shipped, and kept in places patient data should not go. So the examples on this site never log a value that identifies a patient or another person: a name, a record or member number, a date of birth, an address, a phone number, an email address, a free-text note, or a whole message, segment, document, or resource. An example that shows such a field reads it into a variable, with its synthetic value in a comment beside it. Our parsers report what they tolerated as warnings, and what they could not read as errors, each with a stable code and a position rather than the value that caused it. One field is the exception: the parse errors of @cosyte/hl7, @cosyte/x12, and @cosyte/dicom carry a snippet, a few characters or bytes of the raw input, which can hold a patient's details. Log an error's code and position, never its snippet, and never the error object whole, which carries the snippet with it. What our examples do log, and what is safe to log from code you build on our libraries: - Message types and segment names. - Codes from a code system, such as a LOINC or SNOMED CT code. - Counts, lengths, and positions. - The precision of a date, but not the date. - Warning and error codes. - True or false, such as whether a field is present. - Amounts that identify no one on their own, such as what a claim paid. ## Services that touch data on this site The full account of what this site collects, and how long it is kept, is the privacy policy. - This website: Amazon Web Services: static pages served from Amazon S3 through Amazon CloudFront. - The contact form and email list: Amazon Web Services: endpoints we run ourselves on Amazon API Gateway and AWS Lambda, sending through Amazon Simple Email Service. - Our email: Google Workspace. - Analytics: Google Analytics 4, on cosyte.com and docs.cosyte.com. - Open-source code: GitHub, for the public repositories. Integration code we write for a client is the client’s, and is not published here. [Read the privacy policy](https://cosyte.com/privacy) ## What we do not have We hold no SOC 2 report, no HITRUST certification, and no ISO 27001 certification. We do not call our software or our services HIPAA compliant. Compliance is a property of how a system is run and the agreements around it, not a label on a library. ## Your security questionnaire If your organization sends vendors a security questionnaire, send it to hello@cosyte.com. We answer it in writing, and where the answer is no, it says no. To report a security problem in one of our libraries, write to security@cosyte.com, and leave real patient data out of the report. [Read our security policy](https://github.com/cosyte/.github/security/policy) --- Source: https://cosyte.com/about About # We wrote the tools, we build on them, and we keep it running. Cosyte builds, hosts and runs healthcare integrations, on open-source libraries we wrote and maintain in public. We build the integration, and we run it in your environment or in ours under a Business Associate Agreement. The libraries are how we build, and where our credibility comes from: read them on GitHub. Who we are ## A healthcare-data engineering company you talk to directly. We write the libraries, and we take your discovery call, scope the engagement, build the integration, and keep it running, in your environment or in ours under a Business Associate Agreement. The engineering you can read on GitHub is the engineering on your project and the code we run for you, with no account managers and no handoffs in between. We build on open source we wrote, and keep it public, because that is how you can check us. An integration firm that has never read the HL7 v2 grammar or the X12 envelope rules is hard to evaluate. One whose libraries are public, MIT-licensed, and standards-conformant is easy to evaluate: read the repository, run the tests, decide. It also means no lock-in: the code we run for you sits on libraries anyone can install. Healthcare-integration work has to be right the first time. A silently-dropped lab result, a wrong dose on an order, a denied claim from a malformed 837. These are not engineering preferences, they are clinical and financial harms. The engineering bar has to set the company posture, not the other way around. Who you work with ## Noah Schatz Founder, Cosyte · Atlanta, Georgia Noah founded Cosyte and leads its engineering. Before Cosyte, Noah built healthcare integrations at a health-IT vendor: lead engineer for a Metro Atlanta health information exchange serving more than 60 Georgia Department of Corrections facilities, more than 45 integrations with EHRs including Epic, Cerner, athenahealth, eClinicalWorks, and Netsmart, the exchange's links to the eHealth Exchange and Carequality networks, and a billing platform connecting more than 15 clinics to modern billing software. Noah wrote the @cosyte/* libraries to fix what that work kept running into: engines configured through a GUI, and no typed, well-tested open-source libraries for the standards underneath. On a Cosyte engagement, you work with Noah directly. LinkedIn: [linkedin.com/in/noahschatz](https://www.linkedin.com/in/noahschatz) How we work ## The operating principles. Each principle is a claim you can evaluate against the open-source code and the engagement experience, not an aspiration. ### Spec-grounded Every parser and every integration starts from the standard actually on the wire (HL7 v2, MLLP, DICOM, X12, C-CDA, NCPDP, ASTM, FHIR), read first, coded second. ### Lenient where the world is messy, strict where the spec is clear Parsers tolerate real-world quirks without silently dropping data; emitters refuse to ship a message that does not conform. Postel's Law, applied to clinical data. ### PHI-safe by default Fixtures are synthetic. Logs are redacted. A BAA is executed before any protected health information touches our environment. PHI discipline is a design constraint, not an afterthought. ### Built on open source Our credibility is earned in public, under MIT. Reusable primitives land back in the open-source @cosyte/* libraries; integration code we write for a client is the client's, wherever it runs. ### Honest about limits Every parser ships with a KNOWN-LIMITATIONS file and a capability surface. Every engagement names what is and is not in scope, before the BAA is signed. What we ship ## Three parts, one engineering bar. The same standards work that grounds the open-source libraries grounds the integrations we build and the ones we run. Fixes that are general go back into the libraries for everyone. ### Open-source libraries The @cosyte/* suite: HL7 v2, MLLP, DICOM, X12, C-CDA, NCPDP, ASTM, and FHIR, and the libraries built on them. MIT-licensed, standards-conformant, near-zero runtime dependencies. [See the open-source suite →](https://cosyte.com/open-source) ### We build integrations Spec-grounded integration work for US labs, providers, payers, and health-tech teams: scoped in writing, delivered as pull requests you review, BAA before any PHI. [See how an engagement runs →](https://cosyte.com/consulting) ### We host and run them Support for what runs in your environment, or Managed hosting in ours under a signed Business Associate Agreement, set up per engagement. [See Support and Managed hosting →](https://cosyte.com/integration-services) ## Have a healthcare-integration problem to talk about? We answer our own email. Tell us what is on the wire and what has to come out the other side. [Get in touch](https://cosyte.com/contact) [Read the code first](https://cosyte.com/open-source) --- Source: https://cosyte.com/contact Contact # Get in touch. Book a call, send a message, or email us directly. Whichever route you take, it reaches the same inbox, and an engineer reads it. Schedule ## Book a 30-minute discovery call. A bounded working call about an engagement: what you have on the wire today, what has to come out the other side, the spec actually involved, and whether Cosyte is the right fit. Free, no preparation deck required. [Email about a discovery call](mailto:hello@cosyte.com?subject=Discovery%20call) Message ## Send a message. The message form needs JavaScript, which is off in this browser. Email hello@cosyte.com instead. It reaches the same inbox. Email ## Or email us directly. The mailbox is read by an engineer who works on the code. [hello@cosyte.com](mailto:hello@cosyte.com) What to include ## Helpful context for a first message. None of this is required. It just helps us write back with the right answer the first time. - What is on the wire today (HL7 v2 ADT, X12 270/271, a C-CDA from a referral partner, a DICOM modality, a Surescripts feed, a FHIR endpoint). - What has to come out the other side: the downstream system, the format it expects, and the rough volume. - Whether protected health information is in scope. If it is, we sign a BAA before any PHI touches our environment. - Your timeline: a rough delivery window, or "exploratory" if you are still scoping. Response time ## Honest about response time. We answer our own email and typically respond within a few business days. For an active engagement, a faster channel is established in the kickoff call. --- Source: https://cosyte.com/privacy Privacy # Privacy policy Last updated: November 8, 2026 This page describes what our two websites, cosyte.com and docs.cosyte.com, collect when you visit them, what happens to a message you send us or an address on our email list, and what we do not do with any of it. It describes how the sites work. It is not legal advice. “We” on this page means Cosyte LLC. ## What this policy covers This policy covers cosyte.com, the site you are reading, and docs.cosyte.com, our documentation site, and nothing else. It says what each site collects when you visit it, what happens to a message you send through the contact form or an address on our email list, and how long any of it lasts. It does not cover the open-source software we publish. That software runs on your own machines and sends us nothing. It does not cover a consulting engagement either: the written agreement for that engagement governs what happens to anything you share with us under it. ## What we collect Four things reach us, and nothing else. The first is the analytics described in the next section. The second is a short access log of the requests the sites answer, described after it. The third is a message you send through the contact form, with the details that section lists. The fourth is an email address on our email list. The sign-up page that adds to it is closed for now. There are no accounts on either site and no profile to fill in. The pages of both are static, with no database behind them. One thing is kept on a server: the email list, described in its own section below and holding only what that section names. A message you send through the contact form arrives as email in our mailbox, as its section says. We do not know your name unless you choose to tell us. The analytics cookies described in the next section sit on your device as well. So does your theme choice: if you switch the site between light and dark, your browser stores that choice in local storage under the name theme, so the next page you open starts the way you left it. Nothing sends that choice anywhere, and clearing site data for cosyte.com removes it. On the first page you open in a tab, your browser also keeps a note of how you arrived, in session storage under the name cosyte.firstTouch: the path of that page, and the campaign tags of the link that brought you if it carried any (the five tags described in the next section, under the same rule). It leaves your browser only inside a message you choose to send through the contact form. On docs.cosyte.com your browser keeps a light or dark choice the same way, under the same name, and if you pick a version of a library’s documentation from the version menu, it keeps that choice in local storage under a name that begins docs-preferred-version, so the next page opens at that version. Neither choice is sent anywhere. ## Analytics A Google Analytics 4 tag runs on cosyte.com. It sends a page view for each page you open, carrying the page title, the page address and the page path. The analytics property can also record events of its own, such as scrolling to the end of a page or how long a page was in view; which ones is set in the property, outside this site. Every event carries the page address with the query string and the fragment removed, and the address you came from shortened the same way, so the parameters on a link you followed are not carried into the measurement. There is one exception, and it covers five parameters only. When the link you followed to this site carries campaign tags (utm_source, utm_medium, utm_campaign, utm_content and utm_term), the page view for your arrival also carries those values, so we can tell which of our posts and links brought you here. We put those tags on the links we publish. A value is sent only if it is a short label of letters, digits, dots, hyphens, underscores or tildes, no longer than 100 characters, and nothing else in the query string is sent. Once the page has read the tags, it removes the query string from the address bar, so nothing the tag reads afterwards can carry it. The site sends two events of its own. When a message you send through the contact form is accepted, it sends one event named generate_lead, carrying the name of the form, the package you asked about if you came from one on the services page, and the answer you picked for how you heard about us if you picked one. It never carries your message, your name, your email address, anything you typed, or the campaign tags. When you click an email address on this site, it sends one event named contact_email_click, carrying nothing but the page it happened on. The same analytics property runs on docs.cosyte.com, through the Google Analytics tag of the framework the documentation is built with. It sends a page view for each page you open there, carrying the page title and the page address, and the property records events of its own there as it does here. The page address and the address you came from are sent with the query string and the fragment removed, so a search you run in the documentation is not sent; the search itself runs in your browser. When the link that brought you to the documentation carries the five campaign tags, the page view for your arrival carries them, under the same rule as on this site. The documentation site sends no events of its own. On both sites the last byte of your IP address is truncated. The two sites write the same analytics cookies, first-party to cosyte.com and its subdomains. Both sites configure them to expire after 13 months, rather than the two years a tag that configures nothing inherits by default. There is no experimentation code, no personalization code, and no advertising code on either site. What the receiving analytics property is configured to do with what it receives is set outside this site, so we describe what we send rather than what happens to it afterwards. ## Access logs The service that delivers this site keeps a log of each request it answers: the date, the page path, the response code and the user agent your browser or crawler sends. We keep it to count how often AI crawlers such as GPTBot and ClaudeBot read the site, which they do without running the analytics tag. The log holds no IP address, nothing derived from one, no cookie, no query string, no referring page and no time of day. Each log file expires 30 days after it is written and the storage service then deletes it, and only administrators of our cloud account can read it. Our documentation site, docs.cosyte.com, keeps the same log on the same terms. ## The contact form The contact form posts what you typed to an endpoint we run ourselves, so a message describing an integration problem does not travel through a form service run by somebody else. We rent the cloud infrastructure that endpoint runs on rather than owning the machines, so the provider hosting it carries your message on the way to us. No form product, no customer record system and no marketing tool is in that path. With your message, the form sends what the page already knows about how you reached it: the package you asked about, if you came from one on the services page; your answer to how you heard about us and anything you added to it, if you answered; the campaign tags of the link that first brought you to the site in this tab; and the path of the first page you opened. They arrive in the same email as your message, so we can tell which of our pages and posts led to it. Your message arrives as email in our mailbox, which runs on Google Workspace, and it stays there. We keep no other copy of it: no record of it on a server of ours, in a customer record system or in a marketing tool. A successful submission means our mail service accepted the message. It does not mean the message was delivered, and we do not promise a reply time. You can write to hello@cosyte.com instead, which is a route that does not involve the form at all. Please do not put patient data or other sensitive personal data in a message. This site touches none of it today and should not start receiving it. If you need to show us a real message to explain a problem, ask us first and we will agree a safe way to do it. [Read how the contact form works](https://cosyte.com/contact) ## Email updates The sign-up page is closed for now, and this section describes the list as it stands. While the page was open, it posted the address you entered to an endpoint we run ourselves, the same way the contact form does. That endpoint keeps the address on our own email list, held in Amazon Simple Email Service, the email service we rent. No newsletter product and no marketing tool is in that path. Signing up sends one email to that address with a link to confirm. Nothing is subscribed until the link is clicked, and the link stops working after 48 hours. An address that is never confirmed stays on the list marked unconfirmed and receives nothing more from us, unless someone signs it up again, which sends one more confirmation email and never more than one every ten minutes. With the address, the list records whether it is confirmed and when the confirmation email went out and was confirmed. It records nothing else about you. Once you confirm, we send occasional email about Cosyte releases and news. Every one of those emails carries a one-click unsubscribe link, run by the same email service, which records the choice on the list straight away. ## What we do not do We do not sell personal data. We do not run an advertising network and we ship no advertising code. We do not track you across other sites and we build no profile of you. We do not combine what the analytics tag reports with anything else: not with the email list, and not with a message you send us. We read the analytics only as totals, and nothing that identifies your visit in the analytics travels with a message. Apart from the cloud provider that carries it, described above, we do not pass a message you send through the form to anyone outside Cosyte, and we do not sell the email list or give it to anyone. ## How long we keep information The access log of the requests the sites answer expires 30 days after each file is written, and is then deleted. The analytics cookies both sites write are configured to expire after 13 months rather than the two years that configuring nothing would mean. A cookie already on your device keeps the expiry it was written with until a later visit rewrites it, so nothing we change here shortens one that is already there. How long the analytics vendor keeps the events it receives is set in that property, outside our sites, and we describe it here rather than assert it. A message you send us arrives as email and stays in our mailbox until we delete it. We delete it 24 months after the last message in its conversation, unless you become a client, when the written agreement for that engagement governs it instead. To have it deleted sooner, write to hello@cosyte.com and we will delete it. We apply both of these by hand. An address on the email list stays there until you ask us to delete it. Unsubscribing stops the email at once and leaves the address on the list marked unsubscribed, so that we do not email it again. To have the address deleted from the list entirely, confirmed or not, write to hello@cosyte.com. The theme choice your browser stores, and on docs.cosyte.com the version choice, are not cookies and carry no expiry date. Each stays on your device until you clear site data for the site that stored it, and neither reaches us at any point. The note of how you arrived is kept in session storage, so your browser removes it when you close the tab. ## Your choices Neither site has a consent banner or an opt-out control. We would rather say that plainly than imply a control we do not offer. Your routes to declining are your own browser controls: a setting that blocks cookies or scripts, a private window, or an extension that blocks the analytics tag. All of them work here. Every route serves its text as HTML, so the reading you came for does not depend on a script, and the footer links at the bottom of every page work with scripts off. Some parts of this site need JavaScript, and naming the ones you are most likely to meet is more use to you than a blanket promise. The message form on the contact page posts what you typed as JSON, so with scripts off the form is hidden and the page offers the direct address in its place. Writing to hello@cosyte.com needs no scripts and reaches the same inbox. On a narrow screen the menu button in the header opens with a script, so the footer links are the way around the site instead. The header also carries a button that switches the site between light and dark, and a code block carries a button that copies it. Both of those run in a script. With scripts off they stay on screen and do nothing when you press them: the site stays dark, and selecting a code block by hand is the way to copy it. ## Changes to this policy We change this page when what the site does changes. The date at the top of the page records the last time we changed it, and the version published here is the current one. We do not keep earlier versions on the site and we do not notify anyone of a change: there are no accounts to notify, and the email list is for Cosyte releases and news, not for notices about this page. If this page matters to your decision, the date at the top is the thing to check. ## Contact Write to hello@cosyte.com with a question about this policy or about what the site holds. That address reaches us directly and we answer our own email. We do not promise a reply time. If your question is about a consulting engagement, the written agreement for that engagement governs it and nothing on this page changes it. [hello@cosyte.com](mailto:hello@cosyte.com) --- Source: https://cosyte.com/terms Terms # Terms of service Last updated: November 7, 2026 These are the terms on which we publish cosyte.com. They cover this site. They do not replace the license on the software we publish or the agreement behind a consulting engagement. “We” on this page means Cosyte LLC. ## What these terms cover These terms cover your use of cosyte.com, the site you are reading. They are the terms on which we publish it, and they apply to reading it, linking to it, and writing to us through it. They do not govern the open-source software we publish, which carries its own license in its own repository, and they do not govern a consulting engagement, which is governed by the written agreement for that engagement. Where a license or an agreement says something different from this page, that license or that agreement is the one that applies. ## Using this site You are welcome to read this site, link to it, and quote it with attribution. There is nothing to sign in to: the site has no accounts, and ordinary reading needs no permission from us. Please do not use it in a way that stops anyone else reading it. That means no attempt to break the site, no attempt to reach parts of it we have not published, and no automated traffic heavy enough to degrade it for other people. If you want a bulk copy of something here, ask us and we will tell you the easiest way to get it. ## The open-source software The software we publish under the @cosyte namespace is offered under its own license, in its own repository, and that license governs what you may do with it. Nothing on this page adds to those terms, removes anything from them, or changes them. Read the license in the repository you are installing from. It is the one that applies to the code you run, and it is the document to hand to whoever reviews your dependencies. We publish the code so you can evaluate our work before you talk to us. [See what we publish](https://cosyte.com/open-source) ## Consulting engagements Consulting work is governed by the written agreement for that engagement and by nothing on this page. An inquiry through the contact form or by email creates no engagement and no obligation on either side, and it settles nothing about scope, price, or timing. What this site says about how we work describes our practice. It is not an offer and it is not a commitment. An engagement starts when both sides have signed an agreement that says it has started. ## What this site is not This site is not legal advice and it is not clinical advice. Nothing here is a representation about the regulatory position of any organization, including yours. The correct way to read what we publish about the software is that it provides capable technical controls. Whether a system built with it meets an obligation is a property of that deployment, and it belongs to whoever runs the deployment. We can describe what our code does; we cannot certify your system, and nothing on this site attempts to. ## No warranty This site and its content are provided as they are. We do not warrant that the site will be available, that it will be free of errors, or that anything published here fits a purpose you have in mind for it. We check what we publish and we correct what we find wrong. That is a practice rather than a guarantee. The software we publish carries its own warranty terms in its own license, and those terms govern it. ## Limitation of liability We are not liable for what anyone does with this site or with what they read on it. That covers a decision taken on the basis of something published here, and a loss that follows from the site being unavailable or from a page being wrong. If you need something on this site to be reliable for a decision that matters, ask us about it directly and get the answer in writing under an agreement that covers it. That is what an engagement is for, and this page is not a substitute for one. ## Changes to these terms We change this page when what we publish, or how we publish it, changes. The date at the top of the page records the last change, and the version published here is the current one. We do not keep earlier versions on the site and we do not notify anyone of a change. If you keep using the site after a change, the version you are reading is the one that applies to you. ## Contact Write to hello@cosyte.com with a question about these terms. That address reaches us directly and we answer our own email. We do not promise a reply time. If your question is about a license for the published software, the license in that repository is the answer, and we are happy to talk it through with you. [hello@cosyte.com](mailto:hello@cosyte.com)