composer packages update (#6006)
[openemr.git] / controllers / C_Hl7.class.php
blobe65bfe5c971a1de16d1ec967edccf91ef9a8d30b
1 <?php
3 /**
4 * C_HL7 Class.
6 * @package OpenEMR
7 * @link https://www.open-emr.org
8 * @author Stephen Waite <stephen.waite@cmsvt.com>
9 * @copyright Copyright (c) 2021 Stephen Waite <stephen.waite@cmsvt.com>
10 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
13 class C_Hl7 extends Controller
15 function __construct($template_mod = "general")
17 parent::__construct();
18 $this->template_mod = $template_mod;
19 $this->assign("STYLE", $GLOBALS['style']);
22 function default_action()
24 return $this->fetch($GLOBALS['template_dir'] . "hl7/" . $this->template_mod . "_parse.html");
26 function default_action_process()
28 $msg = '';
29 if ($_POST['process'] == "true") {
30 $msg = $_POST['hl7data'];
33 $hp = new Parser_HL7v2($msg);
34 $this->assign("hl7_array", $hp->parse());
35 return;