Replies: 2 comments
-
|
That's right, it won't return an object. If there are more than one non-null subfields in a field, it'll return an array, else it'll return a string. However, you can pass That is, $msg = new Message($hl7String, null, true); // Or, with PHP-8: new Message($hl7String, keepEmptySubFields: true);
$orc = $msg->getFirstSegmentInstance('ORC');
$orc->getEnteringOrganization(); // This will now return ['', '', '', '123456'] for the ORC.17 field `^^^123456` |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Great Thank you for your help. Good day |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Can we easily get the third level of an object?
Example :
$orc->getEnteringOrganization()->getAlternateIdentifier() ?
Because I feel like it's not possible.
^^^123456
So how to recover ORC17.4 because $orc->getEnteringOrganization() returns a string.
Thanks you!
Beta Was this translation helpful? Give feedback.
All reactions