Personal tools
Navigation
 

eform example of writing to the encounter pane html file

HTML icon CopytoEncounter.html — HTML, 2 kB (2552 bytes)

File contents

<html>
    <title>Encounter Transfer Script</title>
    <meta charset="UTF-8">
<head>
  <script type="text/javascript">
     function Form(ElementId) {
          return document.getElementById(ElementId);
     }
     /* function to update encounter note */
     function copyToEncounter() {
          try {
               if (window.parent.opener.document.forms["caseManagementEntryForm"] != undefined) {
                    window.parent.opener.document.getElementById("newNoteImg").onclick();
                    TextAreaId = window.parent.opener.document.getElementsByTagName('textarea')[0];
                    window.parent.opener.document.getElementById(TextAreaId.id).value = window.parent.opener.document.getElementById(TextAreaId.id).value + Form("transferBox").value;
                    window.parent.opener.document.getElementById(TextAreaId.id).style.height = window.parent.opener.document.getElementById(TextAreaId.id).scrollHeight + "px";
               } else if (window.parent.opener.window.parent.opener.document.forms["caseManagementEntryForm"] != undefined) {
                    window.parent.opener.window.parent.opener.document.getElementById("newNoteImg").onclick();
                    TextAreaId = window.parent.opener.window.parent.opener.document.getElementsByTagName('textarea')[0];
                    window.parent.opener.window.parent.opener.document.getElementById(TextAreaId.id).value = window.parent.opener.window.parent.opener.document.getElementById(TextAreaId.id).value + Form("transferBox").value;
                    window.parent.opener.window.parent.opener.document.getElementById(TextAreaId.id).style.height = window.parent.opener.window.parent.opener.document.getElementById(TextAreaId.id).scrollHeight + "px";
               }
          } catch(e) {
               alert("The note could not be copied to the encounter note.");
          }
     }
  </script>
</head>
<body>
    <div id="demonstration">
	  <p> Type into this box and then click "Copy to Encounter". If you have started with the encounter note it will ask you to "Click OK to save it or Cancel to continue editing the current note." Generally you will want to click CANCEL.</p>
	    <textarea name="transferBox" id="transferBox" cols="120" rows="6"></textarea>
    </div>
	
	<div id="BottomButtons">
	<table>
	<tr>
	    <td>
         <input  value="Copy to Encounter" name="CopyButton" id="CopyButton" type="button" onclick="copyToEncounter();">		 
	    </td>
	</tr>
	</table>
</div>
</body>
</html>

Document Actions

 

Download button

DOWNLOAD OSCAR FOR TESTING

 

eForms button

DOWNLOAD SHARED E-FORMS


 Customize button

FIND PLUG-INS AND TWEAKS
FOR YOUR OSCAR EMR

 

Subscribe Button

SUBSCRIBE TO DISCUSSION LIST 
(SEE ALL LISTS)

  

Help button

ACCESS THE ONLINE MANUALS
(PAID SUPPORT)