Download the PHP package aranyasen/hl7 without Composer
On this page you can find all versions of the php package aranyasen/hl7. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aranyasen/hl7
More information about aranyasen/hl7
Files in aranyasen/hl7
Informations about the package hl7
Release announcement:
Version 4.0 (Breaking Release)
⚠️ This release contains breaking changes. If you are upgrading from 3.x, please read the Guide before upgrading.
Key Changes
- Minimum supported PHP version is now 8.2
Messagemust start with aMSHsegmentInvalidArgumentExceptionreplaced withHL7Exceptionnew Message()is now deprecated (useHL7factory instead)setSegment()is deprecated (useinsertSegment()instead)- In
insertSegment()method, only MSH can be inserted now in the 0th index withSegmentSeparator()in HL7 factory accepts CRLF (\r\n) as argument. Any other multi-character separator will continue to throw exception
If something breaks after upgrading:
- Report bugs or request features at Issues
- Submit fixes at Pull Requests
Important
- The global setting
SEGMENT_ENDING_BARis deprecated and will be removed in a future release. If you're using this in your code, replace it withWITH_SEGMENT_ENDING_FIELD_SEPARATOR
PHP Compatibility
| PHP Version | Package Version |
|---|---|
| 8.2+ | 4.x |
| 8.0 – 8.1 | 3.2.2 |
| 7.4 | 2.1.7 |
| 7.2 | 2.0.2 |
| 7.0 – 7.1 | 1.5.4 |
Introduction
This is a PHP package to create, parse and send HL7 v2 messages. This was originally inspired from Net-HL7 Perl package.
Installation
Usage
Parsing
Composing new messages
Configuring HL7 messages
Handling segments and fields
Send messages to remote listeners
Side note: In order to run Connection you need to install PHP ext-sockets https://www.php.net/manual/en/sockets.installation.php
ACK
Handle ACK message returned from a remote HL7 listener...
Create an ACK response from a given HL7 message:
Options can be passed while creating ACK object:
APIs
This package exposes a number of public methods for convenient HL7 handling. Some examples are:
1) Considering you have a Message object (say, $msg = new Message(file_get_contents('somefile.hl7'));)
Visit docs\README for details on available APIs
All segment level getter/setter APIs can be used in two ways -
-
If a position index isn't provided as argument (1st argument for getters, 2nd for setters), a standard index is used.
$pid->setPatientName('John Doe')-> Set patient name at position 5 as per HL7 v2.3 standard$pid->getPatientAddress()-> Get patient address from standard 11th position - To use a custom position index, provide it in the argument:
$pid->setPatientName('John Doe', 6)-> Set patient name at 6th position in PID segment$pid->getPatientAddress(12)-> Get patient address from 12th position
Issues
Bug reports and feature requests can be submitted on the Github Issue Tracker.
Contributing
See CONTRIBUTING.md for information.
All versions of hl7 with dependencies
ext-mbstring Version *