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

Array to string conversion when processing ADT message #77

Open
maxxer opened this issue Apr 5, 2022 · 3 comments
Open

Array to string conversion when processing ADT message #77

maxxer opened this issue Apr 5, 2022 · 3 comments

Comments

@maxxer
Copy link

maxxer commented Apr 5, 2022

Processing the following message (and calling toString()) throws Array to string conversion in src/HL7/Message.php:388:

MSH|^~\&|SAC|PIVA|DIP_SAC|Dipartimentale|20190531204652||ADT^A40|0d9834c0-6efa-4153-aa10-e349017057c9|P|2.5
EVN||20190531204652
PID|||D298B31F-53E2-4FCD-9246-240B61792023^55^^PK~9143224^^^ABC|| COGNOME^NOME||19310525|F|||&VIA   MEUCCI 3^^020066^^46019^^H~&VIA   MEUCCI 3^^020066^^46019^^L~&^^020035^^^^BDL||^^PH~^^CP|||||CF|7289721||||020035|||||100^Italia
MRG|936815CB-75C2-45BD-BBB7-F5BEACED3D63
@maxxer
Copy link
Author

maxxer commented Apr 5, 2022

This can be avoided by setting doNotSplitRepetition to true.

@senaranya
Copy link
Owner

That's true. Let me know if doNotSplitRepetition is not giving you the desired output. If it's working for you, we can close the ticket

@maxxer
Copy link
Author

maxxer commented Apr 7, 2022

Yes, using it is a solution to me, but I was wondering if that's a correct behavior. If the library splits the field into subcomponents, then why isn't it able to recompose it later on to build the string?

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

No branches or pull requests

2 participants