Skip to content
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

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Conversation

partikule
Copy link

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.

@@ -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
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
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
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
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
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.

src/HL7.php Outdated Show resolved Hide resolved
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