Parse, validate, and transform FHIR and HL7 v2 messages. Connect EHRs, lab systems, and clinical applications with clean, typed Python APIs.
Every HL7 v2 segment, FHIR resource, and datatype is a real Python class with autocompletion and type checking.
Parse, validate, transform, and exchange clinical messages across HL7 v2 and FHIR, all in Python.
Go from zero to exchanging clinical data with your healthcare partners.
Step-by-step guides for every healthcare integration pattern.
Admissions, lab orders, results - carried between every hospital, clinic, and laboratory. Zato parses every segment and field into typed Python objects.
JSON resources over REST. Patient, Observation, Encounter - all 144 R4 resource types as real Python classes with full autocompletion.
Map HL7 v2 messages to FHIR bundles and back. Clean code, no middleware configuration, no XML mapping layers, no vendor lock-in.
Zato supports HL7 v2.9, which is backward compatible with earlier versions. All standard segments, datatypes, and message structures are available as typed Python classes.
Zato supports FHIR (4.0.1), the current normative release. All 144 resource types are available with full datatype support.
Use HL7Message.parse(raw_message) to parse ER7 format. Access segments like msg.pid and fields like msg.pid.patient_name.
Use semantic names - msg.pid.patient_name instead of msg.pid.pid_5. Component access works too - msg.pid.patient_name.family_name.
Import the resource class and set attributes - patient = Patient(), then patient.id = "123". Use patient.to_json() to serialize.
Use Patient.from_json(json_string) or Patient.from_dict(data) to create typed resource instances from JSON.
Yes - use validate(resource) to check required fields, cardinality, and types. Use validate_valueset_binding(resource) for terminology validation.
Use get_extension(resource, url) and set_extension(resource, url, value). Nested extensions are supported with get_nested_extension().
Yes - use HL7Batch and HL7File classes to parse and create batch wrappers with BHS/BTS and FHS/FTS segments.
Get started with Zato and connect your healthcare systems in minutes.