This is a test page, intended to be used from within Medtech, but as a popup. This is to show that we can make use of the installed browser’s features beyond the IE7 limitations which are forced upon us by default through the WebBrowser controls used by Medtech.
This site does not run properly inside of the Embedded browser within Medtech, it errors when it if forced into IE7 compatibility mode.
This is the popup window content / a test:
Command to send to MT via Parent window:
Results from last response:
Some examples of MT functions to try:
patient OBJECT methods/properties The patient object exposes basic facts about the patient, it is accessed via MedTech.patient or form.patient. (If additional information is required see the "concept" object) e.g. JavaScript var patient = MedTech.patient; // Show the patients internal id alert(window.external.patient.patientid); // Show the patients NHI number alert(window.external.patient.nhi) // Show attributes about the patient alert(window.external.patient.dob) alert(window.external.patient.age) alert(window.external.patient.gender) alert(window.external.patient.ethnicity) Examples which will manipulate the result back to this frame: // Show attributes about the patient $('#currentResult').val(window.external.patient.nhi); alert(window.external.patient.dob) alert(window.external.patient.age) alert(window.external.patient.gender) alert(window.external.patient.ethnicity) concept OBJECT methods/properties window.external.concept("BPD").toString; window.external.concept("BPD").value; window.external.concept("BPD").toNumber; window.external.concept("TCHDL_DATE").toDate; // "TASTHMA" - Read Code of problem starting with H33 (asthma) var asthma = MedTech.concept("TASTHMA"); // Show BP values alert('bp '+bps.toString+'/'+bpd.toString) alert('systolic '+bps.toNumber) alert('systolic '+bps.value) alert('bp date '+bpdate.toDate // Show asthma read code. (Blank if does not have asthma) alert('asthma '+asthma.toString) With the syntax to add a recall etc, you should be able to perform those functions through this too. :) - Even save a document addInbox etc..