* @copyright Copyright (c) 2021 Stephen Waite * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 */ class C_Hl7 extends Controller { function __construct($template_mod = "general") { parent::__construct(); $this->template_mod = $template_mod; $this->assign("STYLE", $GLOBALS['style']); } function default_action() { return $this->fetch($GLOBALS['template_dir'] . "hl7/" . $this->template_mod . "_parse.html"); } function default_action_process() { $msg = ''; if ($_POST['process'] == "true") { $msg = $_POST['hl7data']; } $hp = new Parser_HL7v2($msg); $this->assign("hl7_array", $hp->parse()); return; } }