function addVitals($weight, $height, $systolic, $diastolic, $pulse, $temp) { //This is based on code from /openemr/interface/forms/vitals/C_FormVitals.class.php //if it doesn't work, look there for changes. $_POST['process'] = 'true'; $_POST['weight'] = $weight; $_POST['height'] = $height; $_POST['bps'] = $systolic; $_POST['bpd'] = $diastolic; $_POST['pulse'] = $pulse; $_POST['temperature'] = $temp; include_once "../../../library/api.inc"; require "../vitals/C_FormVitals.class.php"; $c = new C_FormVitals(); echo $c->default_action_process($_POST); }
<?php include_once "../../globals.php"; include_once "{$srcdir}/api.inc"; require "C_FormVitals.class.php"; $c = new C_FormVitals(); #echo $c->view_action(0); echo $c->default_action(0);
<?php include_once "../../globals.php"; include_once "{$srcdir}/api.inc"; require "C_FormVitals.class.php"; $c = new C_FormVitals(); echo $c->default_action_process($_POST); @formJump();
<?php include_once "../../globals.php"; include_once "{$srcdir}/api.inc"; require "C_FormVitals.class.php"; $c = new C_FormVitals(); echo $c->default_action($_GET['id']);
<?php include_once "../../globals.php"; include_once "{$srcdir}/api.inc"; require "C_FormVitals.class.php"; $c = new C_FormVitals(); $c->setFormId($_GET['id']); echo $c->default_action();