public AddPatientViewController (Patient patientProfile,PatientProcedureDetails patientProcedureDetails) : base ("AddPatientViewController", null)
		{
			this.patientProcedureDetails = patientProcedureDetails;
			this.patientProfile = patientProfile;
		}
Example #2
0
        public string LoadHtml1(string Content,PatientProcedureDetails patientProcedure)
        {
            patientProcedureDetails = patientProcedure;
            if (patientProcedureDetails == null)
                patientProcedureDetails = new PatientProcedureDetails ();

            string orNumStr = @"<option value='0'>-Select-</option>";

            List<ORList> orlist = Consts.Personnel.results.ORList;
            foreach (var item in orlist) {
                orNumStr = orNumStr + @"<option value='"+item.ORID+"'>'"+item.ORNO+"'</option>";
            }

            Content = Content.Replace (@"{{{ORNumber}}}", orNumStr);
            Content = Content.Replace (@"{{{Facility}}}", cmn.getCurrentFacilityName());

            cmn.updateCurrentFacility ();
            if (Consts.ProvidersOption == "Y")
                Content = Content.Replace (@"{{{ProvidersOptionStyle}}}", "");
            else
                Content = Content.Replace (@"{{{ProvidersOptionStyle}}}", @"display:none");

            if(patientProcedureDetails!=null&& string.IsNullOrEmpty(patientProcedureDetails.ProcID.ToString()))
                Content = Content.Replace (@"{{{title}}}", @"New Patient");
            else
                Content = Content.Replace (@"{{{title}}}", @"Edit Patient");

            if (patientProcedureDetails!=null&&string.IsNullOrEmpty (patientProcedureDetails.DOB))
                Content = Content.Replace (@"{{{DOB}}}", @"");
            else {
                if (patientProcedureDetails == null && patientProcedureDetails.DOB == @"00010101" || patientProcedureDetails.DOB == @"") {
                    Content = Content.Replace (@"{{{DOB}}}", @"01/01/1960");
                }else {
                    DateTime dob = Convert.ToDateTime (patientProcedureDetails.DOB);
                    Content = Content.Replace (@"{{{DOB}}}", dob.ToString("MM/dd/yyyy"));
                    int age = DateTime.Now.Year - dob.Year;
                    Content = Content.Replace (@"{{{Age}}}", age.ToString());
                }
            }
            // Hidden Carry Over
            //Content = Content.Replace("","");
            //			Content = Content.Replace(@"{{{Sex}}}",mPatient.Sex);
            Content = Content.Replace(@"{{{MRN}}}",patientProcedureDetails.Mrn);
            Content = Content.Replace(@"{{{Firstname}}}",patientProcedureDetails.FirstName);
            Content = Content.Replace(@"{{{Lastname}}}",patientProcedureDetails.LastName);
            //			Content = Content.Replace(@"{{{Height}}}",mPatient.Height);
            //			Content = Content.Replace(@"{{{Weight}}}",mPatient.Weight);
            //			Content = Content.Replace(@"{{{Allergies}}}",mPatient.Allergies);
            //			Content = Content.Replace(@"{{{AccountNo}}}",mPatient.AccountNo);
            if (string.IsNullOrEmpty (patientProcedureDetails.ProcID.ToString())) {
                Content = Content.Replace (@"{{{OperationDate}}}", Consts.DataRetrieveDate);
                Content = Content.Replace (@"{{{ScheduleStartTime}}}", "");
            } else {
                Content = Content.Replace (@"{{{OperationDate}}}", patientProcedureDetails.OperationDate);
            //				Content = Content.Replace (@"{{{ScheduleStartTime}}}", mPatient.ScheduleStartTime);
            }

            Content = Content.Replace(@"{{{Anesthesiologist1}}}","0");
            Content = Content.Replace(@"{{{Anesthesiologist1_label}}}",patientProcedureDetails.Anestheologist);
            Content = Content.Replace(@"{{{Anesthesiologist2}}}","1");
            Content = Content.Replace(@"{{{Anesthesiologist2_label}}}","");
            Content = Content.Replace(@"{{{Anesthesiologist3}}}","2");
            Content = Content.Replace(@"{{{Anesthesiologist3_label}}}","");
            Content = Content.Replace(@"{{{Anesthesiologist4}}}","3");
            Content = Content.Replace(@"{{{Anesthesiologist4_label}}}","");

            Content = Content.Replace(@"{{{AnesStrtTime1}}}","");
            Content = Content.Replace(@"{{{AnesStrtTime2}}}","");
            Content = Content.Replace(@"{{{AnesStrtTime3}}}","");
            Content = Content.Replace(@"{{{AnesStrtTime4}}}","");

            //			Content = Content.Replace(@"{{{AnesStrtTime1}}}",mPatient.AnesStrtTime1);
            //			Content = Content.Replace(@"{{{AnesStrtTime2}}}",mPatient.AnesStrtTime2);
            //			Content = Content.Replace(@"{{{AnesStrtTime3}}}",mPatient.AnesStrtTime3);
            //			Content = Content.Replace(@"{{{AnesStrtTime4}}}",mPatient.AnesStrtTime4);
            //
            Content = Content.Replace(@"{{{CrnaStrtTime1}}}","");
            Content = Content.Replace(@"{{{CrnaStrtTime2}}}","");
            Content = Content.Replace(@"{{{CrnaStrtTime3}}}","");
            Content = Content.Replace(@"{{{CrnaStrtTime4}}}","");

            //			Content = Content.Replace(@"{{{CrnaStrtTime1}}}",mPatient.CrnaStrtTime1);
            //			Content = Content.Replace(@"{{{CrnaStrtTime2}}}",mPatient.CrnaStrtTime2);
            //			Content = Content.Replace(@"{{{CrnaStrtTime3}}}",mPatient.CrnaStrtTime3);
            //			Content = Content.Replace(@"{{{CrnaStrtTime4}}}",mPatient.CrnaStrtTime4);
            //
            Content = Content.Replace(@"{{{AnesEndTime1}}}","");
            Content = Content.Replace(@"{{{AnesEndTime2}}}","");
            Content = Content.Replace(@"{{{AnesEndTime3}}}","");
            Content = Content.Replace(@"{{{AnesEndTime4}}}","");

            //			Content = Content.Replace(@"{{{AnesEndTime1}}}",mPatient.AnesEndTime1);
            //			Content = Content.Replace(@"{{{AnesEndTime2}}}",mPatient.AnesEndTime2);
            //			Content = Content.Replace(@"{{{AnesEndTime3}}}",mPatient.AnesEndTime3);
            //			Content = Content.Replace(@"{{{AnesEndTime4}}}",mPatient.AnesEndTime4);
            //
            Content = Content.Replace(@"{{{CrnaEndTime1}}}","");
            Content = Content.Replace(@"{{{CrnaEndTime2}}}","");
            Content = Content.Replace(@"{{{CrnaEndTime3}}}","");
            Content = Content.Replace(@"{{{CrnaEndTime4}}}","");

            //			Content = Content.Replace(@"{{{CrnaEndTime1}}}",mPatient.CrnaEndTime1);
            //			Content = Content.Replace(@"{{{CrnaEndTime2}}}",mPatient.CrnaEndTime2);
            //			Content = Content.Replace(@"{{{CrnaEndTime3}}}",mPatient.CrnaEndTime3);
            //			Content = Content.Replace(@"{{{CrnaEndTime4}}}",mPatient.CrnaEndTime4);
            //
            Content = Content.Replace(@"{{{SrnaStrtTime1}}}","");
            Content = Content.Replace (@"{{{SrnaEndTime1}}}", "");

            //			Content = Content.Replace(@"{{{SrnaStrtTime1}}}",mPatient.SrnaStrtTime1);
            //			Content = Content.Replace(@"{{{SrnaEndTime1}}}",mPatient.SrnaEndTime1);
            //
            Content = Content.Replace(@"{{{Diagnosis1}}}","");
            Content = Content.Replace(@"{{{Diagnosis2}}}","");
            Content = Content.Replace(@"{{{Diagnosis3}}}","");
            Content = Content.Replace(@"{{{Diagnosis4}}}","");

            //			Content = Content.Replace(@"{{{Diagnosis1}}}",mPatient.Diagnosis1);
            //			Content = Content.Replace(@"{{{Diagnosis2}}}",mPatient.Diagnosis2);
            //			Content = Content.Replace(@"{{{Diagnosis3}}}",mPatient.Diagnosis3);
            //			Content = Content.Replace(@"{{{Diagnosis4}}}",mPatient.Diagnosis4);

            Content = Content.Replace(@"{{{DiagnosisCode1}}}","");
            Content = Content.Replace(@"{{{DiagnosisCode2}}}","");
            Content = Content.Replace(@"{{{DiagnosisCode3}}}","");
            Content = Content.Replace(@"{{{DiagnosisCode4}}}","");

            //			Content = Content.Replace(@"{{{DiagnosisCode1}}}",mPatient.DiagnosisCode1);
            //			Content = Content.Replace(@"{{{DiagnosisCode2}}}",mPatient.DiagnosisCode2);
            //			Content = Content.Replace(@"{{{DiagnosisCode3}}}",mPatient.DiagnosisCode3);
            //			Content = Content.Replace(@"{{{DiagnosisCode4}}}",mPatient.DiagnosisCode4);
            //
            Content = Content.Replace(@"{{{Procedures1}}}","");
            Content = Content.Replace(@"{{{Procedures2}}}","");
            Content = Content.Replace(@"{{{Procedures3}}}","");
            Content = Content.Replace(@"{{{Procedures4}}}","");

            //			Content = Content.Replace(@"{{{Procedures1}}}",mPatient.Procedures1);
            //			Content = Content.Replace(@"{{{Procedures2}}}",mPatient.Procedures2);
            //			Content = Content.Replace(@"{{{Procedures3}}}",mPatient.Procedures3);
            //			Content = Content.Replace(@"{{{Procedures4}}}",mPatient.Procedures4);
            //
            Content = Content.Replace(@"{{{ProcedureCode1}}}","");
            Content = Content.Replace(@"{{{ProcedureCode2}}}","");
            Content = Content.Replace(@"{{{ProcedureCode3}}}","");
            Content = Content.Replace(@"{{{ProcedureCode4}}}","");

            //			Content = Content.Replace(@"{{{ProcedureCode1}}}",mPatient.ProcedureCode1);
            //			Content = Content.Replace(@"{{{ProcedureCode2}}}",mPatient.ProcedureCode2);
            //			Content = Content.Replace(@"{{{ProcedureCode3}}}",mPatient.ProcedureCode3);
            //			Content = Content.Replace(@"{{{ProcedureCode4}}}",mPatient.ProcedureCode4);
            return Content;
        }
		void WvPatientProcedure_LoadFinished (object sender, EventArgs e)
		{
			if (patientProcedureDetails == null)
				patientProcedureDetails = new PatientProcedureDetails ();


			SetTextboxValue ("MRN", patientProcedureDetails.Mrn);
			SetTextboxValue ("Firstname", patientProcedureDetails.FirstName);
			SetTextboxValue ("Lastname", patientProcedureDetails.LastName);
//			SetTextboxValue ("Allergies", mPatient.Allergies);
//			SetTextboxValue ("AccountNo", mPatient.AccountNo);
//			SetTextboxValue ("Height", mPatient.Height);
//			SetTextboxValue ("Weight", mPatient.Weight);
//			SetTextboxValue ("Sex", mPatient.Sex);
//			SetTextboxValue ("ddlASAType", mPatient.ddlASAType);
//			SetTextboxValue ("ddlHghtType", mPatient.ddlHghtType);
//			wvpatient.EvaluateJavascript ("calcBMI()");

//			if (!string.IsNullOrEmpty (mPatient.cbEmergency)) {
//				if (mPatient.cbEmergency.Equals (@"ON")) {
//					wvpatient.EvaluateJavascript (@"setCheck('cbEmergency')");
//				} else {
//					wvpatient.EvaluateJavascript (@"setCheckOff('cbEmergency')");
//				}
//			}
//			if (!string.IsNullOrEmpty (mPatient.cbNKDA)) {
//				if(mPatient.cbNKDA.Equals(@"ON"))
//					wvpatient.EvaluateJavascript (@"setCheck('cbNKDA')");
//				else
//					wvpatient.EvaluateJavascript (@"setCheckOff('cbNKDA')");
//			}

//			SetTextboxValue ("AnesStrtTime1", mPatient.AnesStrtTime1);
//			SetTextboxValue ("AnesStrtTime2", mPatient.AnesStrtTime2);
//			SetTextboxValue ("AnesStrtTime3", mPatient.AnesStrtTime3);
//			SetTextboxValue ("AnesStrtTime4", mPatient.AnesStrtTime4);
//			SetTextboxValue ("AnesEndTime1", mPatient.AnesEndTime1);
//			SetTextboxValue ("AnesEndTime2", mPatient.AnesEndTime2);
//			SetTextboxValue ("AnesEndTime3", mPatient.AnesEndTime3);
//			SetTextboxValue ("AnesEndTime4", mPatient.AnesEndTime4);
//			SetTextboxValue ("CrnaStrtTime1", mPatient.CrnaStrtTime1);
//			SetTextboxValue ("CrnaStrtTime2", mPatient.CrnaStrtTime2);
//			SetTextboxValue ("CrnaStrtTime3", mPatient.CrnaStrtTime3);
//			SetTextboxValue ("CrnaStrtTime4", mPatient.CrnaStrtTime4);
//			SetTextboxValue ("CrnaEndTime1", mPatient.CrnaEndTime1);
//			SetTextboxValue ("CrnaEndTime2", mPatient.CrnaEndTime2);
//			SetTextboxValue ("CrnaEndTime3", mPatient.CrnaEndTime3);
//			SetTextboxValue ("CrnaEndTime4", mPatient.CrnaEndTime4);
//			SetTextboxValue ("SrnaStrtTime1", mPatient.SrnaStrtTime1);
//			SetTextboxValue ("SrnaEndTime1", mPatient.SrnaEndTime1);

			SetTextboxValue ("AnesStrtTime1", "");
			SetTextboxValue ("AnesStrtTime2", "");
			SetTextboxValue ("AnesStrtTime3", "");
			SetTextboxValue ("AnesStrtTime4", "");
			SetTextboxValue ("AnesEndTime1", "");
			SetTextboxValue ("AnesEndTime2", "");
			SetTextboxValue ("AnesEndTime3", "");
			SetTextboxValue ("AnesEndTime4", "");

			SetTextboxValue ("Anesthesiologist1", "0");
			SetTextboxValue ("Anesthesiologist1_label", patientProcedureDetails.Anestheologist);
			SetTextboxValue ("Anesthesiologist2", "1");
			SetTextboxValue ("Anesthesiologist2_label", "");
			SetTextboxValue ("Anesthesiologist3", "2");
			SetTextboxValue ("Anesthesiologist3_label", "");
			SetTextboxValue ("Anesthesiologist4", "3");
			SetTextboxValue ("Anesthesiologist4_label", "");

//			if (iProPQRSPortableLib.Consts.Role.Equals ("Anesthesiologist") && !string.IsNullOrEmpty (mPatient.Anesthesiologist1.ToString()) && isFutureDate (mPatient.OperationDate)) {
//				SetTextboxValue ("Anesthesiologist1", iProPQRSPortableLib.Consts.mId);
//				SetTextboxValue ("Anesthesiologist1_label", iProPQRSPortableLib.Consts.Getpersonnel(iProPQRSPortableLib.Consts.mId,"Anesthesiologist"));
//			} else {
//				SetTextboxValue ("Anesthesiologist1", mPatient.Anesthesiologist1.ToString());
//				SetTextboxValue ("Anesthesiologist1_label", iProPQRSPortableLib.Consts.Getpersonnel(mPatient.Anesthesiologist1.ToString(),"Anesthesiologist"));
//			}
//
//			SetTextboxValue ("Anesthesiologist2", mPatient.Anesthesiologist2.ToString());	
//			SetTextboxValue ("Anesthesiologist2_label", iProPQRSPortableLib.Consts.Getpersonnel(mPatient.Anesthesiologist2.ToString(),"Anesthesiologist"));	
//			SetTextboxValue ("Anesthesiologist3", mPatient.Anesthesiologist3.ToString());	
//			SetTextboxValue ("Anesthesiologist3_label", iProPQRSPortableLib.Consts.Getpersonnel(mPatient.Anesthesiologist3.ToString(),"Anesthesiologist"));	
//			SetTextboxValue ("Anesthesiologist4", mPatient.Anesthesiologist4.ToString());	
//			SetTextboxValue ("Anesthesiologist4_label",  iProPQRSPortableLib.Consts.Getpersonnel(mPatient.Anesthesiologist4.ToString(),"Anesthesiologist"));	


			SetTextboxValue ("CRNA1", patientProcedureDetails.CRNA);
//			if (iProPQRSPortableLib.Consts.Role == "CRNA" && string.IsNullOrEmpty (mPatient.CRNA1.ToString()) && !isFutureDate (mPatient.OperationDate)) {
//				SetTextboxValue ("CRNA1", iProPQRSPortableLib.Consts.mId);
//				SetTextboxValue ("CRNA1_label", iProPQRSPortableLib.Consts.Getpersonnel(iProPQRSPortableLib.Consts.mId,"CRNA"));
//			} else {
//				SetTextboxValue ("CRNA1", mPatient.CRNA1.ToString());
//				SetTextboxValue("CRNA1_label", iProPQRSPortableLib.Consts.Getpersonnel(mPatient.CRNA1.ToString(),"CRNA"));
//			}
//
//			SetTextboxValue ("CRNA2", mPatient.CRNA2.ToString ());
//			SetTextboxValue ("CRNA2_label", iProPQRSPortableLib.Consts.Getpersonnel(mPatient.CRNA2.ToString(),"CRNA"));
//			SetTextboxValue ("CRNA3", mPatient.CRNA3.ToString ());
//			SetTextboxValue ("CRNA3_label", iProPQRSPortableLib.Consts.Getpersonnel(mPatient.CRNA2.ToString(),"CRNA"));
//			SetTextboxValue ("CRNA4", mPatient.CRNA4.ToString ());
//			SetTextboxValue ("CRNA4_label", iProPQRSPortableLib.Consts.Getpersonnel(mPatient.CRNA2.ToString(),"CRNA"));

//			if (iProPQRSPortableLib.Consts.Role == "SRNA" && string.IsNullOrEmpty (mPatient.SRNA1.ToString ()) && isFutureDate (mPatient.OperationDate)) {
//				SetTextboxValue ("SRNA1", iProPQRSPortableLib.Consts.mId);
//				SetTextboxValue ("SRNA1_label", iProPQRSPortableLib.Consts.Getpersonnel(iProPQRSPortableLib.Consts.mId,"SRNA"));
//			} else {
//
//				SetTextboxValue ("SRNA1",mPatient.SRNA1.ToString());
//				SetTextboxValue ("SRNA1_label", iProPQRSPortableLib.Consts.Getpersonnel(mPatient.SRNA1.ToString(),"SRNA"));
//			}
//			SetTextboxValue ("SRNA2", mPatient.SRNA2.ToString ());
//			SetTextboxValue ("SRNA2_label", iProPQRSPortableLib.Consts.Getpersonnel(mPatient.SRNA2.ToString(),"SRNA"));

			SetTextboxValue ("Surgeon_label", patientProcedureDetails.surgeon);
//			SetTextboxValue ("Surgeon_label", iProPQRSPortableLib.Consts.Getpersonnel(mPatient.Surgeon.ToString(),"Surgeon"));
//			SetTextboxValue ("Surgeon2", mPatient.Surgeon2.ToString ());
//			SetTextboxValue ("Surgeon2_label", iProPQRSPortableLib.Consts.Getpersonnel(mPatient.Surgeon2.ToString(),"Surgeon"));
//			SetTextboxValue ("Surgeon3", mPatient.Surgeon3.ToString ());
//			SetTextboxValue ("Surgeon3_label", iProPQRSPortableLib.Consts.Getpersonnel(mPatient.Surgeon3.ToString(),"Surgeon"));


			//start BILLING info
			SetTextboxValue ("AnesthesiaTech", "");
			SetTextboxValue ("Lines", "");
			SetTextboxValue ("CVCSterileTec", "");
			SetTextboxValue ("NerveBlack", "");

			string cbUltrasound = "OFF";
			if (!string.IsNullOrEmpty (cbUltrasound)) {
				if(cbUltrasound.Equals(@"ON"))
					wvpatient.EvaluateJavascript (@"setCheck('cbUltrasound')");
				else
					wvpatient.EvaluateJavascript (@"setCheckOff('cbUltrasound')");
			}

			string cbContCatheter = "OFF";
			if (!string.IsNullOrEmpty (cbContCatheter)) {
				if(cbContCatheter.Equals(@"ON"))
					wvpatient.EvaluateJavascript (@"setCheck('cbContCatheter')");
				else
					wvpatient.EvaluateJavascript (@"setCheckOff('cbContCatheter')");
			}

			string cbIndication = "OFF";
			if (!string.IsNullOrEmpty (cbIndication)) {
				if(cbIndication.Equals(@"ON"))
					wvpatient.EvaluateJavascript (@"setCheck('cbIndication')");
				else
					wvpatient.EvaluateJavascript (@"setCheckOff('cbIndication')");
			}

			string cboperativeanesthesia = "OFF";
			if (!string.IsNullOrEmpty (cboperativeanesthesia)) {
				if(cboperativeanesthesia.Equals(@"ON"))
					wvpatient.EvaluateJavascript (@"setCheck('cboperativeanesthesia')");
				else
					wvpatient.EvaluateJavascript (@"setCheckOff('cboperativeanesthesia')");
			}

			SetTextboxValue ("SterileTec", "");
			SetTextboxValue ("SpecialTech", "");

			//end billing info
			wvpatient.EvaluateJavascript ("initDD()");

			if(patientProcedureDetails.StatusID==2)
				wvpatient.EvaluateJavascript ("bindForInProcessRecord()");
			else
				wvpatient.EvaluateJavascript ("bindForNewRecord()");

//			SetTextboxValue ("ddlEncounterType", mPatient.ddlEncounterType);
//			SetTextboxValue ("ORNumber", mPatient.ORNumber.ToString());
		}
Example #4
0
		public void ShowPatientEditor(PatientProcedureDetails patientProcedureDetails)
		{
			AppDelegate.pb.Start(this.View,"");
			isViewPushed = false;
			InvokeOnMainThread (async () => {				
				ReceiveContext context = new ReceiveContext ();

				PatientProcedureFullDetails  procedureDetails = null;
				ReceiveContext procdetailsontext = await AppDelegate.Current.pqrsMgr.GetPatientProcFullDetails(patientProcedureDetails.ProcID);
				if(procdetailsontext != null && procdetailsontext.result != null && procdetailsontext.status !=null && procdetailsontext.status.ToUpper() =="OK" ) 
				{
					procedureDetails= (PatientProcedureFullDetails)JsonConvert.DeserializeObject (procdetailsontext.result.ToString (), typeof(PatientProcedureFullDetails));
					

					context = await serv.GetPatientDetails (patientProcedureDetails.PatientID);
					Patient selectedPatientDetails=null;
					if(context != null && context.result != null && context.status !=null && context.status.ToUpper() =="OK" ) 
						 selectedPatientDetails = (Patient)JsonConvert.DeserializeObject (context.result.ToString (), typeof(Patient));
					else
						NavigationController.PopToRootViewController(true);
					

					var rootobject = await AppDelegate.Current.pqrsMgr.GetProcedureDiagnosticMaster(patientProcedureDetails.ProcID);
					List<DataResults> DiagnosticList = rootobject.result.FindAll(u=>u.ProcCodeTypeID == 2);
					selectedPatientDetails.DiagnosticList = DiagnosticList;
					List<DataResults> ProcedureList = rootobject.result.FindAll(u=> u.ProcCodeTypeID == 1);
					selectedPatientDetails.ProcedureList = ProcedureList;
					selectedPatientDetails.MACCodesList = rootobject.result.FindAll(u=> u.ProcCodeTypeID == 418);

					iProPQRSPortableLib.Consts.SelectedProcAttribtslist  = await AppDelegate.Current.pqrsMgr.GetAllAttribTypesOfAProcedure(patientProcedureDetails.ProcID);		


					AddPatientViewController addpatient = new AddPatientViewController (selectedPatientDetails,procedureDetails);
					//ReceiveContext users = await AppDelegate.Current.pqrsMgr.GetUsers();
				//	List<UserDetails> lstOfUsers = new List<UserDetails>();
					//if(users != null && users.result != null) {
						//lstOfUsers = (List<UserDetails>)JsonConvert.DeserializeObject (users.result.ToString (), typeof(List<UserDetails>));

				//	}
					if(iProPQRSPortableLib.Consts.lstOfUsers != null)
					{
					addpatient.listOfAnestheologists = iProPQRSPortableLib.Consts.lstOfUsers .FindAll(x => x.Role == "Anesthesiologist");
					addpatient.listOfCRNAs = iProPQRSPortableLib.Consts.lstOfUsers .FindAll(x => x.Role == "CRNA");
					}
					this.NavigationController.PushViewController(addpatient,true);
			   }
				else
					NavigationController.PopToRootViewController(true);

			});		
		}
		public AddEditPatientViewController (PatientProcedureDetails patientProcedureDetails) : base ("AddEditPatientViewController", null)
		{
			this.patientProcedureDetails=patientProcedureDetails;
		}