HL7 icon indicating copy to clipboard operation
HL7 copied to clipboard

Call to undefined method Aranyasen\HL7::from()

Open josiahke opened this issue 1 year ago • 1 comments

$message = HL7::from($file_data)->createMessage();

i am trying to create a Message, getting the error below

Call to undefined method Aranyasen\HL7::from()

laravel 9.52 PHP 8.2 "aranyasen/hl7": "^2.1"

josiahke avatar Sep 21 '23 08:09 josiahke

Hi,

The method from() was not available in the 2.1 version. In fact, the class HL7 was undocumented and unsupported in that. You may use Message() class though. See the readme for examples on that.

Recommend you to upgrade to the latest version, since you're using PHP 8.2.

senaranya avatar Sep 21 '23 08:09 senaranya