Skip to content

Version/v2.5.1#67

Open
partikule wants to merge 11 commits intosenaranya:masterfrom
partikule:version/v2.5.1
Open

Version/v2.5.1#67
partikule wants to merge 11 commits intosenaranya:masterfrom
partikule:version/v2.5.1

Conversation

@partikule
Copy link
Copy Markdown

Upgrade to HL7 2.5.1 version.

  • Doc has been updated
  • Add of some segments (ROL, ARQ, ...)
  • MSH has been modified to set MSH.9.1 to 3 datatypes.

Comment thread src/HL7/Message.php Outdated
@@ -87,7 +87,7 @@ public function __construct(
$this->subcomponentSeparator = $hl7Globals['SUBCOMPONENT_SEPARATOR'] ?? '&';
$this->repetitionSeparator = $hl7Globals['REPETITION_SEPARATOR'] ?? '~';
$this->escapeChar = $hl7Globals['ESCAPE_CHAR'] ?? '\\';
$this->hl7Version = $hl7Globals['HL7_VERSION'] ?? '2.3';
$this->hl7Version = $hl7Globals['HL7_VERSION'] ?? '2.5.1';
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please retain v2.3 as the default, as most of the users of this library are still on that.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm... 2.5..1 is backward compatible.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have a look at the HL7 history.
Version 2.3 is more than 23 years old:
https://lyniate.com/wp-content/uploads/image-5.webp

Btw, in fact, it doesn't matter if the segments are more recent.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But...
Keeping the default version to 2.3 is inconsistant, because some methods changed their names from 2.5.
In the case you really want to keep it to 2.3 by default, some method aliases should be added to ensure the users of older version will not get issues.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We really need to keep 2.3 for now, as otherwise all users of this library have to update their Message() constructor. We're still not ready for this breaking change.

We can support 2.5.1 provided 2.3 continues to work as it is, at least for now until a full upgrade plan is prepared.

Comment thread src/HL7.php Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants