{"success":true,"data":{"ext":"hl7","name":"Health Level-7 data","description":"Health Level Seven (HL7) data is a healthcare interoperability standard created and maintained by Health Level Seven International for the exchange of clinical and administrative information. It is used in messaging between hospitals, laboratories, electronic health record systems, and other medical software to transmit patient demographics, orders, results, and encounter data. The format is generally safe, though its contents may include sensitive health information and should be handled according to privacy and compliance requirements.","mime":[],"risk_level":"Safe","signatures":[{"hex":"4D 53 48 7C","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"42 53 48 7C","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"4D 53 48 7C 5E 7E 5C 26 7C","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":[],"usage":{"python":"def is_hl7(file_path: str) -> bool:\n    \"\"\"Check if file is a valid HL7 by magic bytes.\"\"\"\n    signature = bytes([0x4D, 0x53, 0x48, 0x7C])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isHL7(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x4D, 0x53, 0x48, 0x7C]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsHL7(data []byte) bool {\n    signature := []byte{0x4D, 0x53, 0x48, 0x7C}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"}}}