HL7 version 2 has been used inside hospitals for decades. Each message is text made of segments separated by pipes: MSH for the header, PID for the patient, OBR for the order and OBX for each result. ADT messages carry admissions and transfers; ORU messages carry results.
Lab analysers, bedside monitors and older hospital systems still send HL7 v2. It works well inside one hospital, but every site uses it a little differently, so each interface needs mapping and testing.
FHIR is the newer HL7 standard, built on web APIs and JSON. Newer national programmes, including ABDM in India, use FHIR. Most hospitals run both for years.
A plain-language explanation for people choosing software, not legal or clinical advice. Tell us if something here is wrong.