This is the info from the add new patient frame on allscripts. The script is listed on greeseyfork under allscripts.
Veradigm ePrescribe - Add Patient .auto-style1 { width: 61px; }<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="E3BA02E7" />
<input type="hidden" name="____Ticket" id="____Ticket" value="1" />
<script type="text/javascript">
var sysApplication = Sys.WebForms.PageRequestManager.getInstance();
ignoreIeEvents();
sysApplication.add_initializeRequest(beginRequest);
sysApplication.add_endRequest(endRequest);
function beginRequest() {
document.getElementById("divLoading").style.display = "inline";
//You can show a div or
}
function endRequest() {
document.getElementById("divLoading").style.display = "none";
}
RegisterPopupOvelay('');
</script>
<table id="Content" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td style="width: 80%">
<script type="text/javascript" language="javascript">
function CalculateLbsAndOzsFromKgs()
{
var kgValue = $('#ctl00_ContentPlaceHolder1_txtWeightKg').val();
if (kgValue == "")
kgValue = 0;
var ozs = Math.round(((kgValue * 2.20462) % 1) * 16);
var lbs = Math.floor(kgValue * 2.20462);
if(ozs === 16)
{
ozs = 0;
lbs = lbs+1;
}
$('#ctl00_ContentPlaceHolder1_txtWeightLbs').val(lbs);
$('#ctl00_ContentPlaceHolder1_txtWeightOzs').val(ozs);
}
function UpdateKgFromLbsAndOzs()
{
var lbs = document.getElementById( 'ctl00_ContentPlaceHolder1_txtWeightLbs').value;
var ozs = document.getElementById('ctl00_ContentPlaceHolder1_txtWeightOzs').value;
if (lbs == "")
lbs = 0;
if (ozs == "")
ozs = 0;
var kgs = lbs * .45359237;
var kgs = kgs + (ozs / 16) * .45359237;
$('#ctl00_ContentPlaceHolder1_txtWeightKg').val(kgs.toFixed(2));
}
function UpdateCmFromFtAndIns()
{
var feet = document.getElementById('ctl00_ContentPlaceHolder1_txtHeightFt').value;
var inches = document.getElementById('ctl00_ContentPlaceHolder1_txtHeightIn').value;
if (feet == "")
feet = 0;
if (inches == "")
inches = 0;
var cm = (feet * 30.48) + (inches * 2.54);
$('#ctl00_ContentPlaceHolder1_txtHeightCm').val(cm.toFixed(1));
}
function CalculateFtAndInsFromCm()
{
var cm = document.getElementById('ctl00_ContentPlaceHolder1_txtHeightCm').value;
if (cm == "") {
$('#ctl00_ContentPlaceHolder1_txtHeightFt').val(0);
$('#ctl00_ContentPlaceHolder1_txtHeightIn').val(0);
}
//Begin conversions
var cmValue = $('#ctl00_ContentPlaceHolder1_txtHeightCm').val();
if (cmValue !== "") {
cmValue /= 2.54;
var feet = parseInt(Math.floor(cmValue / 12));
var inches = parseInt(Math.round(cmValue % 12));
if(inches === 12)
{
inches = 0;
feet++;
}
$('#ctl00_ContentPlaceHolder1_txtHeightFt').val(feet);
$('#ctl00_ContentPlaceHolder1_txtHeightIn').val(inches);
}
}
function digitValidation(evt)
{
if (evt.charCode > 31 && (evt.charCode < 48 || evt.charCode > 57))
{
return false;
}
if (evt.keyCode > 31 && (evt.keyCode < 48 || evt.keyCode > 57))
{
return false;
}
}
function digitDecimalValidation(evt) {
if (evt.charCode == 46)
return true;
if (evt.keyCode == 46)
return true;
if (evt.charCode > 31 && (evt.charCode < 48 || evt.charCode > 57)) {
return false;
}
if (evt.keyCode > 31 && (evt.keyCode < 48 || evt.keyCode > 57))
{
return false;
}
}
</script>
<script type="text/javascript" language="javascript" src="js/formUtil.js"></script>
<input type="hidden" name="ctl00$ContentPlaceHolder1$isFromAngularModal" id="isFromAngularModal" value="false" />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr class="h1title indnt">
<td colspan="2">
<span id="ctl00_ContentPlaceHolder1_heading" class="highlight">Add New Patient</span>
</td>
</tr>
<tr class="h4title">
<td colspan="2" style="padding:5px">
<input type="submit" name="ctl00$ContentPlaceHolder1$btnBack" value="Back" id="ctl00_ContentPlaceHolder1_btnBack" title="Click to go back to the Choose Patient page." class="btnstyle" />
<input type="submit" name="ctl00$ContentPlaceHolder1$btnPatientAdd" value="Save" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$ContentPlaceHolder1$btnPatientAdd", "", true, "", "", false, false))" id="ctl00_ContentPlaceHolder1_btnPatientAdd" title="Click to save details." class="btnstyle" />
<input type="submit" name="ctl00$ContentPlaceHolder1$btnAddAllergy" value="Patient Allergy" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$ContentPlaceHolder1$btnAddAllergy", "", true, "", "", false, false))" id="ctl00_ContentPlaceHolder1_btnAddAllergy" title="Click to view list of medications to which patient is allergic or to add a new allergy." class="btnstyle" />
</td>
</tr>
<tr>
<td colspan="2">
<table width="100%" border="0" cellpadding="0" style="width:100%">
<tr>
<td style="height: inherit;">
<table width="100%" border="0" cellpadding="0">
<tr>
<td>
</td>
</tr>
<tr>
<td>
<div id="ctl00_ContentPlaceHolder1_ValidationSummary1" style="display:none;">
Phone: | * | Mobile Phone: | * | |||||
* First Name: | ** | Middle Name: | * | |||||
Patient allows Disclosures to Health Plan: | Yes No | |||||||
* Date of Birth: |
*
|
|||||||
* Gender: |
--Select--
Male
Female
Unknown
*
*
|
Insurance Plan Information | ||||
---|---|---|---|---|
No records to display. |
</td>
</tr>
<tr>
<td><input type="submit" name="ctl00$ContentPlaceHolder1$btChangeInsurance" value="Add Plan" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$ContentPlaceHolder1$btChangeInsurance", "", true, "", "", false, false))" id="ctl00_ContentPlaceHolder1_btChangeInsurance" class="btnstyle" /></td>
</tr>
</table>
</td>
</tr>
</table>
<script type="text/javascript">
RegisterBackButton("ctl00_ContentPlaceHolder1_btnBack");
setAngulrModalStatus();
$(document).keypress(function (e) {
if (e.keyCode === 13) {
e.preventDefault();
return false;
}
});
</script>
</td>
<!-- 27/10/06 HA/Kumar.V css class added for right side content color -->
</tr>
</table>