Manual Consultation Upload Consultation


"; // var newstr = document.all.item(printdetais).innerHTML; // var oldstr = document.body.innerHTML; // //var myStyle = ''; // //document.body.innerHTML = myStyle + headstr + newstr + footstr; // //window.print(); // //document.body.innerHTML = oldstr; // document.body.innerHTML = headstr + newstr + footstr; // window.print(); // document.body.innerHTML = oldstr; // window.close(RedirectToDashboard()); // return false; //} //indowObject.print(); // WindowObject.close(Redirectcompleteconsultscrn()); //} String.prototype.replaceAll = function (search, replacement) { var target = this; return target.replace(new RegExp(search, 'g'), replacement); }; function PrintContent(printdetais) { $("#consulttitle").hide(); $("#dvprintbtn").hide(); $("#dvclosebtn").hide(); $("#constltattacment").hide(); var headstr = " "; var footstr = ""; var oldstr = document.body.innerHTML; $("#printdetais").find(".table").each(function () { $(this).addClass("temp-table").removeClass("table"); }); $("#printdetais").find(".table-bordered").not(".inv-table").each(function () { $(this).addClass("temp_table-bordered").removeClass("table-bordered"); }); $("#printdetais").find(".table-bordered").not(".med-table").each(function () { $(this).addClass("temp_table-bordered").removeClass("table-bordered"); }); //$("#Patientconsultdetails").addClass(".temp-consult-footer"); //pgande var newstr = document.all.item(printdetais).innerHTML.replace(/table-bordered/g, "temp_table-bordered"); var newstr = document.all.item(printdetais).innerHTML; /* $(".med-table").each(function () { $(this).addClass("table-bordered").removeClass("temp_table-bordered"); }); */ console.log(newstr); //var myStyle = ''; //document.body.innerHTML = myStyle + headstr + newstr + footstr; //var myStyle = ''; document.body.innerHTML = headstr + '' + newstr + footstr; window.print(); document.body.innerHTML = oldstr; //window.close(Redirectcompleteconsultscrn()); window.close(RedirectToDashboard()); return false; } function RedirectToDashboard() { var url = '/DashBoard/DashBoard'; } function MoveToFinishServiceAttchment(e) { alert("lll"); $("#OkPopUp").modal('show'); $('#btnOK').click(function () { if (e != undefined) { //$(e).parents(".active").next().addClass("active in"); //$(e).parents(".active").removeClass("active in"); //$("#myTab").find("li.active").next().addClass("active"); // RedirectToDashboard(); var $active = $('.nav-tabs li.active'); $active.next().removeClass('disabled'); if ($.cookie("mrn") != null) { // LoadtableGrid(); // LoadPatientBannervitalshistory(); LoadPatientInvestigation(); } nextTabFinishserviceattach($active); } else { GetConsultationDetailsforpatient(); LoadPatientInvestigation(); //btnclosepop } }); } function nextTabFinishserviceattach() { $("#consulattachmenthistory").css("display", "none"); $("#consulattachmenthistory").attr("display", "none"); $('.nav-tabs a[href="#' + 'Finsihservice' + '"]').tab('show'); } //function MoveToNextTabInvestigation(e) { // $("#OkPopUp").modal('show'); // $('#btnOK').click(function () { // if (e != undefined) { // //$(e).parents(".active").next().addClass("active in"); // //$(e).parents(".active").removeClass("active in"); // //$("#myTab").find("li.active").next().addClass("active"); // // RedirectToDashboard(); // var $active = $('.nav-tabs li.active'); // $active.next().removeClass('disabled'); // if ($.cookie("mrn") != null) { // // LoadtableGrid(); // // LoadPatientBannervitalshistory(); // LoadPatientInvestigation(); // } // nextTabattachment($active); // } // else { // GetConsultationDetailsforpatient(); // LoadPatientInvestigation(); // //btnclosepop // } // }); //} //function nextTab(elem) { // $(elem).next().find('a[data-toggle="tab"]').click(); //} function ClearData() { //$('#txtmedhi').val(''); //$('#txtaller').val(''); //$('#txtdiag').val(''); //$('#txtinvestigation').val(''); //$('#txttreatmentplan').val(''); //$('#txtfromvac').val(''); //$('#txtdoctorname').val(''); $("input[type=text], textarea").val(""); $('#tbmedi tr').remove("tr:gt(0)"); $('#tbmedi tr td').remove('td:last'); $('#tbmedi tr').append(''); $('input:radio[id=radweek]').prop('checked', false); $('input:radio[id=raddays]').prop('checked', false); $('input:radio[id=radmonth]').prop('checked', false); $('input:radio[id=radspecificdate]').prop('checked', false); $('select').val(0); } function BPMinErrorFlg() { var BPMin = $('[id*=txtBPMin]').val(); var BPMax = $('[id*=txtBPMax]').val(); if (BPMin > 300) { $('#lblErrormsg').text("BP Sys should be less than 300"); Errorpopupcode(); $('[id*=txtBPMin]').val(''); } if (BPMax != "") { if (parseInt(BPMin) < parseInt(BPMax)) { $('#lblErrormsg').text("BP Dias Should be less than BP Sys"); Errorpopupcode(); } } } function BPMaxErrorFlg() { var BPMax = $('[id*=txtBPMax]').val(); var BPMin = $('[id*=txtBPMin]').val(); if (BPMax > 300) { $('#lblErrormsg').text("BP Dias should be less than 300"); Errorpopupcode(); $('[id*=txtBPMax]').val(''); } if (BPMin != "") { if (parseInt(BPMin) < parseInt(BPMax)) { $('#lblErrormsg').text("BP Dias Should be less than BP Sys"); Errorpopupcode(); } } } //var BPMin = $('[id*=txtBPMin]').val(); //var BPMax = $('[id*=txtBPMax]').val(); //if (BPMin < BPMax) { // $('#lblErrormsg').text("BP Dias be less than BP Sys"); // Errorpopupcode(); //} function TempratureErrorFlg() { var Temprature = $("#txtTemp").val(); if (Temprature < 60) { $('#lblErrormsg').text("Temperature should be greater than 60"); Errorpopupcode(); $('[id*=txtTemp]').val(''); } else if (Temprature > 110) { $('#lblErrormsg').text("Temperature should be less than 110"); Errorpopupcode(); $('[id*=txtTemp]').val(''); } } function WeightErrorFlg() { var weight = $("#txtWeight").val(); if (weight > 300) { $('#lblErrormsg').text("Weight should be less than 300"); Errorpopupcode(); $('[id*=txtWeight]').val(''); } } function blockSpecialChar(evt) { var iKeyCode = (evt.which) ? evt.which : evt.keyCode if (iKeyCode == 36 || iKeyCode == 94) return false; } function HeightErrorFlg() { var height = $("#txtHeight").val(); if (height > 300) { $('#lblErrormsg').text("Height should be less than 300"); Errorpopupcode(); $('[id*=txtHeight]').val(''); } } function PulseErrorFlg() { var pulse = $("#txtPulse").val(); if (pulse > 300) { $('#lblErrormsg').text("Pulse should be less than 300"); Errorpopupcode(); $('[id*=txtPulse]').val(''); } } function LoadImage() { var extension = $('#txtReportAttachements').val().split('.').pop().toLowerCase(); if (extension != "") { if (~$.inArray(extension, ['jpg', 'jpeg', 'gif', 'png'])) { // correct file type... $('#dvimage').hide(); $('#dvimage').html(""); return 0; } else { // incorrect file type... $('#dvimage').show(); $('#dvimage').html("Please select jpg or jpeg or png or gif file"); return 1; } } else return 0; } //Method for InsertConsultationDetails function InsertConsultationDetailsattachment(e) { debugger; var d = new Date(); var timeStamp = d.getTime(); var investigation = ''; var diagnosis = ''; var EnInvestigation = $('input[name=optInv]:checked').val(); if (EnInvestigation == 'true') { investigation = $('#txtinvestigation').val(); } else { AppendInvestigationDataToString(); } var EnDiagnosis = $('input[name=optDia]:checked').val(); if (EnDiagnosis == 'true') { diagnosis = $('#txtdiag').val(); } else { AppendDiagnosisDataToString(); } AppendMediDataToString(); var medicalhistory = $('#txtmedhi').val().trim(); var presentillnes = $('#txtillness').val(); var physcalexamination = $('#txtexami').val(); //var allergies = $('#txtaller').val(); //var diagnosis = $('#txtdiag').val(); // var treatment = $('#txttreatmentplan').val(); //strGenericData = strGenericData; var strSource = "W"; //var rweek = $('input:radio[id=radweek]:checked').val(); //var rdays = $('input:radio[id=raddays]:checked').val(); //var rmonth = $('input:radio[id=radmonth]:checked').val(); var followupDate = $('#txtfromvac').val(); var followupdatearry = followupDate.split("/"); var followupday = followupdatearry[0]; var followupmonth = followupdatearry[1]; var followupyear = followupdatearry[2]; var finalfollowupdate = followupmonth + '/' + followupday + '/' + followupyear; var medhistoryerrorflag = 0; var presentillneserrorflag = 0; var physcalexaminationerrorflag = 0; var followuperrorflag = 0; //var allergieserrorflag = 0; var diagnosiserrorflag = 0; var investigationerrorflag = 0; var treatmenterrorflag = 0; var BPMin = $('[id*=txtBPMin]').val(); var BPMax = $('[id*=txtBPMax]').val(); if (parseInt(BPMin) < parseInt(BPMax)) { $('#lblErrormsg').text("BP Dias Should be less than BP Sys"); Errorpopupcode(); } if (medicalhistory == "") { //$('#dvmedhi').show(); //$('#dvmedhi').html("Please Enter Chief Complaint"); //$('#txtmedhi').val(''); //medhistoryerrorflag = 1; $('#lblErrormsg').text("Please Enter Chief Complaint"); Errorpopupcode(); medhistoryerrorflag = 1; } else { $('#dvmedhi').hide(); $('#dvmedhi').html(""); medhistoryerrorflag = 0; } //if (presentillnes == "") { // $('#dvillness').show(); // $('#dvillness').html("Please Enter History of Present illnes"); // presentillneserrorflag = 1; //} //else { // $('#dvillness').hide(); // $('#dvillness').html(""); // presentillneserrorflag = 0; //} //if (physcalexamination == "") { // $('#dvexami').show(); // $('#dvexami').html("Please Enter Physcal Examination"); // physcalexaminationerrorflag = 1; //} //else { // $('#dvexami').hide(); // $('#dvexami').html(""); // physcalexaminationerrorflag = 0; //} //if (allergies == "") { // $('#dvaller').show(); // $('#dvaller').html("Please Enter Allergies"); // allergieserrorflag = 1; //} //else { // $('#dvaller').hide(); // $('#dvaller').html(""); // allergieserrorflag = 0; //} //if (diagnosis == "") { // $('#dvdiag').show(); // $('#dvdiag').html("Please Enter Diagnosis"); // diagnosiserrorflag = 1; //} //else { // $('#dvdiag').hide(); // $('#dvdiag').html(""); // diagnosiserrorflag = 0; //} //if (investigation == "") { // $('#dvinvestigation').show(); // $('#dvinvestigation').html("Please Enter Investigation"); // investigationerrorflag = 1; //} //else { // $('#dvinvestigation').hide(); // $('#dvinvestigation').html(""); // investigationerrorflag = 0; //} //if (treatment == "") { // $('#dvtreatmentplan').show(); // $('#dvtreatmentplan').html("Please Enter Treatment Plan"); // treatmenterrorflag = 1; //} //else { // $('#dvtreatmentplan').hide(); // $('#dvtreatmentplan').html(""); // treatmenterrorflag = 0; //} //if (followupDate == "") { // $('#dvFollowUp').show(); // $('#dvFollowUp').html("Please Enter followup date"); // followuperrorflag = 1; //} //else { // $('#dvFollowUp').hide(); // $('#dvFollowUp').html(""); // followuperrorflag = 0; //} var doctorname = $('#txtdoctorname').val(); //if ($.cookie("UserBranchid") != null) { // var UstBranchid = $.cookie("UserBranchid"); //} var constimage = ""; var files = $("#txtReportAttachements").get(0).files; //Add the uploaded image content to the form data collection ;if (files.length > 0) { for (i = 0; i < files.length; i++) { //constimage += files[i].name.replace(" ", "") + ","; constimage += files[i].name + ","; } } // if ($.cookie("Userid") != null) { uid = $.cookie("Userid"); } if ($.cookie("mrn") != null) { var mrn = $.cookie("mrn"); } if ($.cookie("AppointmentId") != null) { var appID = $.cookie("AppointmentId"); } var objPatientDetails = { strMrnNo: mrn, intAppointmentId: appID, //strAllergies: allergies, strDiagnosis: diagnosis, strDiagnosisPlan: strDiagnosisData, intBranchId: branchId, strInvestigationText: investigation, strInvestigationPlan: strInvestigationData, strTreatmentPlan: treatment, strMedicationDetails: strGenericData, dtFollowUp: finalfollowupdate, strReferral: doctorname, intCreatedBy: uid, strSourceOne: 'W', strPatientMedicalHistory: medicalhistory, strPresentIllnes: presentillnes, strPhyscalExamination: physcalexamination, strSourceOne: strSource, strWeight: $('#txtWeight').val(), strHeight: $('#txtHeight').val(), strBMI: $('#txtBMI').val(), strTemp: $('#txtTemp').val(), strPulse: $('#txtPulse').val(), strBPMin: $('#txtBPMin').val(), strBPMax: $('#txtBPMax').val(), strReportAttachements: constimage, strTimeStamp: timeStamp }; //var objPatientDetails = { // strMrnNo: mrn, // intAppointmentId: appID, // //strAllergies: allergies, // strDiagnosis: diagnosis, // strInvestigationPlan: investigation, // strTreatmentPlan: treatment, // strMedicationDetails: strGenericData, // dtFollowUp: followupDate, // strReferral: doctorname, // intCreatedBy: uid, // strSourceOne: 'W', // strPatientMedicalHistory: medicalhistory, // strPresentIllnes: presentillnes, // strPhyscalExamination: physcalexamination, // strSourceOne: strSource, // strWeight: $('#txtWeight').val(), // strHeight: $('#txtHeight').val(), // strBMI: $('#txtBMI').val(), // strTemp: $('#txtTemp').val(), // strPulse: $('#txtPulse').val(), // strBPMin: $('#txtBPMin').val(), // strBPMax: $('#txtBPMax').val() //}; //if (medhistoryerrorflag == 0 && allergieserrorflag == 0 && diagnosiserrorflag == 0 && investigationerrorflag == 0 && treatmenterrorflag == 0) { if (medhistoryerrorflag == 0) { if (genericnameErrorFlag == 0 && brandnameErrorFlag == 0 && testcodeErrorFlag == 0 && testnameErrorFlag == 0 && diagnosiscodeErrorFlag == 0 && diagnosisnameErrorFlag == 0) { $.ajax({ url: apiPath + '/ConsultationDetails/InsertConsultation', type: 'POST', data: JSON.stringify(objPatientDetails), contentType: "application/json;charset=utf-8", success: function (data) { debugger; if (data.Status.indexOf('Successful') >= 0) { debugger; var ConsultationId; ConsultationId = data.Status.split('^')[1]; localStorage.setItem("consultationid", ConsultationId); $('#hdnConsultid').val(ConsultationId); //To save image in API server path - venkat var imageFile = new FormData() var files = $("#txtReportAttachements").get(0).files; var varcaregiverid = localStorage.getItem("caregiverid"); var varpatid = localStorage.getItem("Patientid"); var varappointmentid = localStorage.getItem("Assessmentid"); var x = angular.element(document.getElementById("txtInvetsigation")); var value = x.val(); var vardocumentid = localStorage.getItem("documentid"); var varReportid = localStorage.getItem("Reportid"); varpatid = varpatid + "^" + value; imageFile.append("file", value); imageFile.append("Id", varpatid) imageFile.append("appointmentId", varappointmentid) imageFile.append("dcoumnetid", vardocumentid); imageFile.append("ReportId", varReportid); imageFile.append("CaregiverId", varReportid); //Add the uploaded image content to the form data collection if (files.length > 0) { for (i = 0; i < files.length; i++) { imageFile.append("UploadedConImage" + i + "_" + appID + "-" + timeStamp, files[i]); } // Make Ajax request with the contentType = false, and procesDate = false var ajaxRequest = $.ajax({ type: "POST", //url: apiPath + '/ConsultationDetails/ConsultationImage', //url: apiPath + '/Registration/UploadFile', url: apiPath + 'dynamicform/UploadAssessmentfile', enctype: 'multipart/form-data', contentType: false, processData: false, data: imageFile }); ajaxRequest.done(function (xhr, textStatus) { localStorage.setItem("Attachment","Sucess") }); ajaxRequest.error(function (XMLHttpRequest, textStatus, errorThrown) { $('#lblErrormsg').html(textStatus + ': ' + errorThrown); Errorpopupcode(); }); } // //$('#lblsuces').text(data.Status); $('#lblsuces').text("Consultation Details Saved Successfully.."); // if (localStorage.getItem("Attachment") == "Sucess") { MoveToFinishServiceAttchment(e); // } //else { // MoveToNextTabInvestigation(e); //} } //$('#lblsuces').text(data.Status); //$('#lblsuces').text("Consultation Details Saved Successfully.."); //MoveToNextTabw(e); }, }); } else { if (genericnameErrorFlag == 1) { $('#lblErrormsg').text("Please enter Generic Name"); Errorpopupcode(); genericnameErrorFlag = 0; } else if (brandnameErrorFlag == 1) { $('#lblErrormsg').text("Please enter Brand Name"); Errorpopupcode(); brandnameErrorFlag = 0; } else if (testnameErrorFlag == 1) { $('#lblErrormsg').text("Please enter Test Name"); Errorpopupcode(); testnameErrorFlag = 0; } else if (testcodeErrorFlag == 1) { $('#lblErrormsg').text("Please enter Test Code"); Errorpopupcode(); testcodeErrorFlag = 0; } else if (diagnosisnameErrorFlag == 1) { $('#lblErrormsg').text("Please enter Diagnosis Name"); Errorpopupcode(); diagnosisnameErrorFlag = 0; } else if (diagnosiscodeErrorFlag == 1) { $('#lblErrormsg').text("Please enter Diagnosis Code"); Errorpopupcode(); diagnosiscodeErrorFlag = 0; } } } else { //alert("please enter data"); } } function Getdoctorprofiledetails() { if ($.cookie("Userid") != null) { var userid = $.cookie("Userid"); } if ($.cookie("UserBranchid") != null) { var Branchid = $.cookie("UserBranchid"); } var doctordetails = { intDoctorId: userid, intBranchId: Branchid }; if (doctordetails != null) { $.ajax({ url: apiPath + '/Common/GetDoctorDetails', type: 'POST', data: JSON.stringify(doctordetails), contentType: "application/json;charset=utf-8", dataType: 'json', success: function (data) { //doctordetailsResponses(data); $("#lbldoctorname").text(data[0].strDoctorName); $("#lbldocqualification").text(data[0].strDoctorQualification); $("#lblmcinumber").text(data[0].strDoctorMCINo); $("#lbldocaddress").text(data[0].strDoctorAddress); }, error: function (x, y, z) { $('#lblErrormsg').text("Please try again, server not connected."); Errorpopupcode(); } }); } } function GetConsultationDetailsforpatient() { $("#Patientconsultdetails").modal({ backdrop: 'static', keyboard: false }); //$('#Patientconsultdetails').modal('show'); // alert($('#hdnConsultid').val()); if ($('#hdnConsultid').val() != null) { var Consultid = $('#hdnConsultid').val(); //49;// } $.ajax({ url: apiPath + '/Common/GetPatientConsultationDetails/' + Consultid, type: 'GET', dataType: 'json', //contentType: "application/json;charset=utf-8", success: function (objPatientConsultationDetails) { if (objPatientConsultationDetails.intConsultationId != "0") { ConsultationDetailsResponse(objPatientConsultationDetails); function ConsultationDetailsResponse(objPatientConsultationDetails) { $("#tablemedication").html(""); //$("#tblConsultAttachments").html(""); $('[id*=lblpatientname]').text(objPatientConsultationDetails.strFirstName); $('[id*=lblmrnno]').text(objPatientConsultationDetails.strMRNo); $('[id*=lblpatientage]').text(objPatientConsultationDetails.strAge); $('[id*=lblpatientgender]').text(objPatientConsultationDetails.strGender); $('[id*=lblChiefComplaint]').text(objPatientConsultationDetails.strMedicalHistory); $('[id*=lblPresentillnes]').text(objPatientConsultationDetails.strPresentIllnes); $('[id*=lblPhyscalExamination]').text(objPatientConsultationDetails.strPhyscalExamination); //$('[id*=lblDiagnosis]').text(objPatientConsultationDetails.strDiagnosis); //$('[id*=lblInvestigation]').text(objPatientConsultationDetails.strInvestigationPlan); if (objPatientConsultationDetails.strDiagnosis != null && objPatientConsultationDetails.strDiagnosis != "") { $('#diaText').show(); $('[id*=lblDiagnosis]').text(objPatientConsultationDetails.strDiagnosis); } else $('#diaText').hide(); if (objPatientConsultationDetails.strInvestigationText != null && objPatientConsultationDetails.strInvestigationText != "") { $('#invText').show(); $('[id*=lblInvestigation]').text(objPatientConsultationDetails.strInvestigationText); } else $('#invText').hide(); $('[id*=lblTreatmentPlan]').text(objPatientConsultationDetails.strTreatmentPlan); $('#lblReferraldoc').text(objPatientConsultationDetails.strReferralDoctor); $('[id*=lblWeight]').text(objPatientConsultationDetails.strWeight); $('[id*=lblHeight]').text(objPatientConsultationDetails.strHeight); $('[id*=lblBMI]').text(objPatientConsultationDetails.strBMI); $('[id*=lblTemprature]').text(objPatientConsultationDetails.strTemperature); $('[id*=lblPulse]').text(objPatientConsultationDetails.strPulse); $('[id*=lblBPSys]').text(objPatientConsultationDetails.strBPMin); $('[id*=lblBPDias]').text(objPatientConsultationDetails.strBPMax); var strdate = objPatientConsultationDetails.strBookDate; var preferedDate = strdate.slice(0, 10); var datearrayfrm = preferedDate.split("-"); var year = datearrayfrm[0]; var day = datearrayfrm[2]; var month = datearrayfrm[1]; var date = day + '/' + month + '/' + year; $('[id*=lblbkdate]').text(date); $('[id*=lblbktime]').text(objPatientConsultationDetails.strBookTime); if (objPatientConsultationDetails.strFollowUp != null) { var followupDate = objPatientConsultationDetails.strFollowUp.slice(0, 10); $('#lblFollowupDate').text(followupDate); } else { $('#lblFollowupDate').text(''); } if (objPatientConsultationDetails.strDiagnosisPlan != null) { $('#diagnosis').show(); ReadDiagnosisDetails(objPatientConsultationDetails.strDiagnosisPlan); } else { $('#diagnosis').hide(); $("#tbldiagnosisdetails").html(""); } if (objPatientConsultationDetails.strInvestigationPlan != null) { $('#investigation').show(); ReadInvestigationDetails(objPatientConsultationDetails.strInvestigationPlan); } else { $('#investigation').hide(); $("#tblinvestigationdetails").html(""); } //ReadMedicationDetails(objPatientConsultationDetails.strMedication); if (objPatientConsultationDetails.strMedication != null) { $('#medication').show(); ReadMedicationDetails(objPatientConsultationDetails.strMedication); } else { $('#medication').hide(); $("#tblmedicationdetails").html(""); } function ReadDiagnosisDetails(strDiagnosis) { $("#tbldiagnosisdetails").html(""); var totalDiagnosis = strDiagnosis; if (countDia !== null) { var countDia = totalDiagnosis.split('$'); } //var strResult = ''; for (var i in countDia) { Diadata = countDia[i].split('^'); var sno = parseInt(i) + 1; $('#tbldiagnosisdetails').append('' + sno + '' + Diadata[0] + '' + Diadata[1] + '' + Diadata[2] + ''); } $('#tbldiagnosisdetails').prepend(' S. No Diagnosis CodeDiagnosis NameDescription') } function ReadInvestigationDetails(strInvestigation) { $("#tblinvestigationdetails").html(""); var totalInvestigation = strInvestigation; if (countInv !== null) { var countInv = totalInvestigation.split('$'); } //var strResult = ''; for (var i in countInv) { Invdata = countInv[i].split('^'); var sno = parseInt(i) + 1; $('#tblinvestigationdetails').append('' + sno + '' + Invdata[0] + '' + Invdata[1] + '' + Invdata[2] + '' + Invdata[3] + '' + Invdata[4] + ''); } $('#tblinvestigationdetails').prepend(' S. No Test CodeTest NameDescriptionAss Test CodeDepartment') } function ReadMedicationDetails(strMedication) { $("#tblmedicationdetails").html(""); var totaltotalMedication = strMedication; if (countMedi !== null) { var countMedi = totaltotalMedication.split('$'); } //var strResult = ''; for (var i in countMedi) { Medidata = countMedi[i].split('^'); var sno = parseInt(i) + 1; $('#tblmedicationdetails').append('
' + sno + '
' + Medidata[0] + '
' + Medidata[1] + '
' + Medidata[2] + '
' + Medidata[3] + '
' + Medidata[4] + '
' + Medidata[5] + '
' + Medidata[6] + '
'); } $('#tblmedicationdetails').prepend(' S.No GenericName BrandName Dosage Frequency Duration ROA Instructions ') } ReadConsultAttachments(objPatientConsultationDetails.strimagepath, objPatientConsultationDetails.strReportAttachements); function ReadConsultAttachments(strimagepath, strReportAttachements) { $("#tblConsultAttachments").html(""); var totalimagepath = strimagepath; var totalReport = strReportAttachements; if (totalimagepath !== null || totalReport != null) { var countimages = totalimagepath.split(','); var comReport = totalReport.split(','); } for (var i in countimages) { var s = countimages[i].trim(); var r = comReport[i].trim(); //$('#tblConsultAttachments').append('
'); $('#tblConsultAttachments').append(''); } //$('#tblConsultAttachments').prepend(' Attachments ') } } } else { $('#lblErrormsg').text("No Record Found"); Errorpopupcode(); } }, error: function (x, y, z) { $('#lblErrormsg').text("Invalid MRN Number"); Errorpopupcode(); } }); //} } //seting number limit function SetNumberLimit(e) { if (e.val() > 106) return false; } // Declaring function for allowing numerics -- vamshi function isNumber(evt) { var iKeyCode = (evt.which) ? evt.which : evt.keyCode if (iKeyCode != 46 && iKeyCode > 31 && (iKeyCode < 48 || iKeyCode > 57)) return false; } // Declaring function for Hiding all the error divs-- vamshi function HideDdlErrorDivs(e) { var Id = e.id; var dvId = Id.replace('ddl', 'dv'); $('#' + dvId).hide(); } // Declaring function for Hiding all the error divs-- vamshi function HideErrorDiv(e) { var Id = e.id; var dvId = Id.replace('txt', 'dv'); $('#' + dvId).hide(); } function DateFollowUp(e) { var cntrlid = e.id; var today = new Date(); var oneWeek = new Date(today.getTime() + (60 * 60 * 24 * 7 * 1000)); var fifteendays = new Date(today.getTime() + (60 * 60 * 24 * 15 * 1000)); var oneMonth = new Date(today.getTime() + (60 * 60 * 24 * 30 * 1000)); var specificdate = new Date(today.getTime()); if (cntrlid == 'radweek') { var oneweek = systemDateFormat(oneWeek); var weekdate = oneweek.split("/"); var weekday = weekdate[1]; var weekmonth = weekdate[0]; var weekyear = weekdate[2]; var finalweekdate = weekday + '/' + weekmonth + '/' + weekyear; $('#txtfromvac').val(finalweekdate); $('#txtfromvac').datepicker('setStartDate', finalweekdate); } else if (cntrlid == 'raddays') { var fifdays = systemDateFormat(fifteendays); var fifdate = fifdays.split("/"); var fifday = fifdate[1]; var fifmonth = fifdate[0]; var fifyear = fifdate[2]; var finalfifdate = fifday + '/' + fifmonth + '/' + fifyear; $('#txtfromvac').val(finalfifdate); $('#txtfromvac').datepicker('setStartDate', finalfifdate); } else if (cntrlid == 'radmonth') { var oneMonth = systemDateFormat(oneMonth); var oneMonthdate = oneMonth.split("/"); var oneMonthday = oneMonthdate[1]; var oneMonthmonth = oneMonthdate[0]; var oneMonthyear = oneMonthdate[2]; var finaloneMonthdate = oneMonthday + '/' + oneMonthmonth + '/' + oneMonthyear; $('#txtfromvac').val(finaloneMonthdate); $('#txtfromvac').datepicker('setStartDate', finaloneMonthdate); } else { var specificDate = systemDateFormat(specificdate); var oneSpecificDate = specificDate.split("/"); var oneSpecificday = oneSpecificDate[1]; var oneSpecificmonth = oneSpecificDate[0]; var oneSpecificyear = oneSpecificDate[2]; var finaloneSpecificdate = oneSpecificday + '/' + oneSpecificmonth + '/' + oneSpecificyear; $('#txtfromvac').val(finaloneSpecificdate); $('#txtfromvac').datepicker('setStartDate', finaloneSpecificdate); } } function systemDateFormat(fullDateformat) { var month = fullDateformat.getUTCMonth() + 1; var day = fullDateformat.getUTCDate(); var year = fullDateformat.getUTCFullYear(); var sysDateformat = day + "/" + month + "/" + year; return sysDateformat; } function validage() { var vage = $('[id*=txtAge]').val(); if (vage > 100) { //alert("Age should be less than 109"); $('#lblErrormsg').text("Age should be less than 100"); Errorpopupcode(); $("[id*=txtAge]").val(''); $("[id*=txtdob]").val(''); } } function validages() { var vage = $('[id*=txtAges]').val(); if (vage > 100) { // alert("Age should be less than 109"); $('#lblErrormsg').text("Age should be less than 100"); Errorpopupcode(); $("[id*=txtAges]").val(''); $("[id*=txtdobs]").val(''); } } function ClearForm(form) { $("[id*=txtmrnnumber]").val(''), $("[id*=ddlgender]").val('0'), $("[id*=txtfirtname]").val(''), $("[id*=txtlastname]").val(''), $("[id*=txtdob]").val(''), $("[id*=txtAge]").val(''), $("[id*=txtemail]").val(''), $("[id*=txtmobile]").val(''), $("#tbldynamic").html(""); $("#tablemedication").html(""); } function ClearFormredirectionn(frm) { $("[id*=txtmrnnumber]").val(''), $("[id*=ddlgender]").val('0'), $("[id*=txtfirtname]").val(''), $("[id*=txtlastname]").val(''), $("[id*=txtdob]").val(''), $("[id*=txtAge]").val(''), $("[id*=txtemail]").val(''), $("[id*=txtmobile]").val(''), $("#tbldynamic").html(""); $("#tablemedication").html(""); var $active = $('.nav-tabs li.active'); $active.next().removeClass('disabled'); nextTab($active); // RedirectToDashboard(); } ;
Weight (kgs) Height (cms) BMI Temperature (F) Pulse (BPM) BP Sys (MM Hg) BP Dias (MM Hg)


;
;
Generic Name Brand Name Dosage Frequency Duration ROA Instructions
Vitals:
Weight (kgs) Height (cms) BMI Temperature (F) Pulse (BPM) BP Sys (MM Hg) BP Dias (MM Hg)
Diseases:


Medication :


Allergies:
Allergy Type Observed Date End Date Reactions Source Info Comments


{{attributes.ObjSubAttributeName}}

{{SubCareEntityList.strCarePlanEntityName}}

.
Appointment Report
Date UHID Patient Name Age Gender Location Status
Appointment Id Name MRN Service Name File Name DateTime Action
{{m.fld_AppointmentId}} {{"TTTT"}} {{m.fld_PatientId}} {{m.StrDocumentName}} {{m.strserviceName}} {{m.fld_CreatedDatetime| date }} View Reports
  • Dept. of Neurology
  • Osmania Medical College, Niloufer Hospital.
  • Rge. No. 44675
  • Consultant Neuro Physician
  • Century Hospital
  • Road No. 12, Banjara Hills, Hyd
  • Timinings: 2:00 pm - 4:00 pm
  • Mobile: 9440096461
  • Email: [email protected]

Assessments

 

Investigations

Print

{{SubCareEntityList.strCarePlanEntityName}}

{{SubCarePlanEntityList1.strCarePlanEntityName}}
Print
Id Name MRN Service Name File Name DateTime Action
{{k.fld_AppointmentId}} {{"TTTT"}} {{k.fld_PatientId}} {{k.StrDocumentName}} {{k.strserviceName}} {{k.fld_CreatedDatetime| date }} View Reports