Skip to content

Creating an OBX.5 field with ED data type breaks on toString #102

Description

@andrezipf94

Greetings!

I've been using the library to parse ORUs and ORMs, and have found out that when creating an OBX segment using the ED data type for OBX.5, it tries to implode() the segment array, but as ED.1 is also a complex data type (therefore an array), the implode fails causing an array to string conversion exception to be thrown.

Here's how the OBX structure looks like.
Screenshot 2023-08-10 at 17 33 46

From what I've gathered looking arround the conversion code, the implode happens at HL7/Message.php:336, and doesn't seem to support an complex data type inside a repetition.

Am I doing something wrong or should I work on a fix for this?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions