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()
29 if ($_POST['process'] == "true") {
30 $msg = $_POST['hl7data'];
33 $hp = new Parser_HL7v2($msg);
34 $this->assign("hl7_array", $hp->parse());