|
I have a need to parse a HL7 data file and map data to a Database table I am new to PHP, have setup the PHP environment on Ubuntu, can someone guide me how Thanks in advance Nagen |
Answered by
senaranya
Jul 8, 2022
Replies: 1 comment
<?php
declare(strict_types=1);
namespace src;
require_once 'vendor/autoload.php';
use Aranyasen\HL7\Message;
$msg = new Message("MSH|^~\\&|1|\rPV1|1|O|^AAAA1^^^BB|", null, true); // Create Message object from a HL7 string
echo $msg->toString(true); // Print it to make sure the object was created successfully
Note: This is a bare-minimum script to demonstrate how to use this library. For details on functionalities, check out the documentation |
0 replies
Answer selected by
senaranya
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
srcinside itcomposer require aranyasen/hl7(this installs the library in vendor/ directory)src/hl7_demo.php:php src/hl7_demo.phpto run itNote: This is a bare-minimum script to demonstrate how to …