Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
senaranya committed Jan 25, 2025
1 parent b3111a1 commit 3bacbe2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@
</p>

## Important
- "new Message()" is deprecated and could be removed in a future release. Use HL7 factory class instead. See documents below** <br><br>
- "_**new Message()**_" is deprecated and could be removed in a future release. Use _**HL7 factory**_ class instead. See documents below <br><br>
- The global setting `SEGMENT_ENDING_BAR` is deprecated and will be removed in a future release. If you're using this in your code, replace it with `WITH_SEGMENT_ENDING_FIELD_SEPARATOR`.
- Minimum supported PHP version has been updated to 8.0 <br>
Last supported versions: <br>
- PHP 7.0 or 7.1 => [1.5.4](https://github.com/senaranya/HL7/tree/1.5.4)<br>
- PHP 7.2 => [2.0.2](https://github.com/senaranya/HL7/tree/2.0.2)<br>
- PHP 7.4 => [2.1.7](https://github.com/senaranya/HL7/tree/2.1.7)
- PHP 8.1 => [3.1.7](https://github.com/senaranya/HL7/tree/3.1.8)
- The global setting `SEGMENT_ENDING_BAR` is deprecated and will be removed in a future release. Use
`WITH_SEGMENT_ENDING_FIELD_SEPARATOR` instead.

## Introduction

Expand Down Expand Up @@ -158,7 +157,7 @@ Handle ACK message returned from a remote HL7 listener...
use Aranyasen\HL7\Connection;
$ack = (new Connection($ip, $port))->send($message); // Send a HL7 to remote listener
$returnString = $ack->toString(true);
if (strpos($returnString, 'MSH') === false) {
if (str_contains($returnString, 'MSH') === false) {
echo "Failed to send HL7 to 'IP' => $ip, 'Port' => $port";
}
$msa = $ack->getFirstSegmentInstance('MSA');
Expand Down
3 changes: 3 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@
- Using `new Message()` is deprecated, and might be removed in a future version. Use HL7 factory to create a new HL7 object instead. See readme on how to use it
- `setSegment` method is deprecated. Use `insertSegment` instead
- In `insertSegment`, added a replace parameter to replace a current segment in place
- Updated API docs
- Added `replaceSegment` method
- PhpUnit bumped to v11
- Added `create` method in HL7 factory that is an alias to `createMessage`
- Code has been significantly cleaned up, especially in Message class

0 comments on commit 3bacbe2

Please sign in to comment.