if(typeof Mediscribe == "undefined") Mediscribe={};
if(typeof Mediscribe.WebUI == "undefined") Mediscribe.WebUI={};
Mediscribe.WebUI.AjaxMgr_class = function() {};
Object.extend(Mediscribe.WebUI.AjaxMgr_class.prototype, Object.extend(new AjaxPro.AjaxClass(), {
	getPatientData: function(page, mrNumber, dob, name, siteCode) {
		return this.invoke("getPatientData", {"page":page, "mrNumber":mrNumber, "dob":dob, "name":name, "siteCode":siteCode}, this.getPatientData.getArguments().slice(5));
	},
	getDoctorData: function(page, name, code, siteCode) {
		return this.invoke("getDoctorData", {"page":page, "name":name, "code":code, "siteCode":siteCode}, this.getDoctorData.getArguments().slice(4));
	},
	getVisitData: function(page, mrNumber, accountNum, dateTime, siteCode) {
		return this.invoke("getVisitData", {"page":page, "mrNumber":mrNumber, "accountNum":accountNum, "dateTime":dateTime, "siteCode":siteCode}, this.getVisitData.getArguments().slice(5));
	},
	getDocumentData: function(page, siteCode, displaySite, departmentCode, medicalRecordNumber, accountNum, doctorCode, jobNumber, startDictatedDate, endDictatedDate, startTransDate, endTransDate) {
		return this.invoke("getDocumentData", {"page":page, "siteCode":siteCode, "displaySite":displaySite, "departmentCode":departmentCode, "medicalRecordNumber":medicalRecordNumber, "accountNum":accountNum, "doctorCode":doctorCode, "jobNumber":jobNumber, "startDictatedDate":startDictatedDate, "endDictatedDate":endDictatedDate, "startTransDate":startTransDate, "endTransDate":endTransDate}, this.getDocumentData.getArguments().slice(12));
	},
	GetDepartments: function(siteCode) {
		return this.invoke("GetDepartments", {"siteCode":siteCode}, this.GetDepartments.getArguments().slice(1));
	},
	GetApprovals: function(siteCode, doctorCode) {
		return this.invoke("GetApprovals", {"siteCode":siteCode, "doctorCode":doctorCode}, this.GetApprovals.getArguments().slice(2));
	},
	SignApproval: function(documentID, blockNumber, responsibleDoctor) {
		return this.invoke("SignApproval", {"documentID":documentID, "blockNumber":blockNumber, "responsibleDoctor":responsibleDoctor}, this.SignApproval.getArguments().slice(3));
	},
	SaveUpdate: function() {
		return this.invoke("SaveUpdate", {}, this.SaveUpdate.getArguments().slice(0));
	},
	UnsignDocument: function(documentID, blockNumber, doctorCode) {
		return this.invoke("UnsignDocument", {"documentID":documentID, "blockNumber":blockNumber, "doctorCode":doctorCode}, this.UnsignDocument.getArguments().slice(3));
	},
	GetDoctorGroups: function(siteCode) {
		return this.invoke("GetDoctorGroups", {"siteCode":siteCode}, this.GetDoctorGroups.getArguments().slice(1));
	},
	GetDocumentFile: function(documentid) {
		return this.invoke("GetDocumentFile", {"documentid":documentid}, this.GetDocumentFile.getArguments().slice(1));
	},
	GetInquiryReloadData: function() {
		return this.invoke("GetInquiryReloadData", {}, this.GetInquiryReloadData.getArguments().slice(0));
	},
	StatPrintDialog: function(returnValues, documentid) {
		return this.invoke("StatPrintDialog", {"returnValues":returnValues, "documentid":documentid}, this.StatPrintDialog.getArguments().slice(2));
	},
	SendStat: function(documentid, deviceID, additionalInfo, method) {
		return this.invoke("SendStat", {"documentid":documentid, "deviceID":deviceID, "additionalInfo":additionalInfo, "method":method}, this.SendStat.getArguments().slice(4));
	},
	GetComments: function(returnValues, documentid) {
		return this.invoke("GetComments", {"returnValues":returnValues, "documentid":documentid}, this.GetComments.getArguments().slice(2));
	},
	GetDocumentFlags: function(documentid) {
		return this.invoke("GetDocumentFlags", {"documentid":documentid}, this.GetDocumentFlags.getArguments().slice(1));
	},
	UsePDFViewer: function() {
		return this.invoke("UsePDFViewer", {}, this.UsePDFViewer.getArguments().slice(0));
	},
	DownloadDocument: function(documents) {
		return this.invoke("DownloadDocument", {"documents":documents}, this.DownloadDocument.getArguments().slice(1));
	},
	Logout: function() {
		return this.invoke("Logout", {}, this.Logout.getArguments().slice(0));
	},
	url: '/MediScribe.NET/Portal/ajaxpro/Mediscribe.WebUI.AjaxMgr,Mediscribe.WebUI.ashx'
}));
Mediscribe.WebUI.AjaxMgr = new Mediscribe.WebUI.AjaxMgr_class();

