-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version/v2.5.1 #67
base: master
Are you sure you want to change the base?
Version/v2.5.1 #67
Conversation
# Conflicts: # composer.json # composer.lock # docs/Message.md # docs/Segments/AIP.md # docs/Segments/MSH.md # src/HL7/Messages/ACK.php # src/HL7/Segments/MSH.php
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'; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Upgrade to HL7 2.5.1 version.