public PreConditionsPageViewModel(INavigationService navigationService, IStoreService storeService) : base(navigationService) { _storeService = storeService; ComorbidityItems = new ObservableCollection <Comorbidity>(); ComorbidityItems = Comorbidity.GetList(); IsBusy = false; _navigationService = navigationService; NavegarNext = new Command(async() => await NavegarNextCommand()); HipertensaoCommand = new Command(() => HipertensaoCommandExecute("label")); RespiratoriaCommand = new Command(() => RespiratoriaCommandExecute("label")); DiabetesCommand = new Command(() => DiabetesCommandExecute("label")); ImunodefCommand = new Command(() => ImunodefCommandExecute("label")); CardioCommand = new Command(() => CardioCommandExecute("label")); RenalCommand = new Command(() => RenalCommandExecute("label")); lbHipertensao = false; lbRespiratoria = false; lbDiabetes = false; LbImunodef = false; lbCardio = false; lbRenal = false; AlreadyInitialized = true; }
public int ModifyComorbidity(Comorbidity objc) { try { SqlParameter[] parameter = new SqlParameter[] { new SqlParameter("@ComorbidityID", objc.ComorbidityID), new SqlParameter("@CustomerID", objc.CustomerID), new SqlParameter("@Hypertension", objc.Hypertension), new SqlParameter("@Diabetes", objc.Diabetes), new SqlParameter("@CHF", objc.CHF), new SqlParameter("@Asthma", objc.Asthma), new SqlParameter("@IHD", objc.IHD), new SqlParameter("@Thyroid", objc.Thyroid), new SqlParameter("@ThyroidType", objc.ThyroidType), new SqlParameter("@SleepApnea", objc.SleepApnea), new SqlParameter("@FunctionalStatus", objc.FunctionalStatus), new SqlParameter("@ComorbidityOthers", objc.ComorbidityOthers), new SqlParameter("@ComorbidityNotes", objc.ComorbidityNotes), new SqlParameter("@CardiacDisorders", objc.CardiacDisorders), new SqlParameter("@KidneyDisorders", objc.CardiacDisorders), new SqlParameter("@LeverDisorders", objc.LeverDisorders), new SqlParameter("@FollowedParticularDietForProb", objc.FollowedParticularDietForProb), new SqlParameter("@ReturnVal", SqlDbType.Int) }; return(DBOperate.ExecuteProcedure("usp_ModifyComorbidity", parameter)); } catch { throw; } }
public int ModifyComorbidity(Comorbidity objcomor) { ComorbidityDataManager obj = new ComorbidityDataManager(); try { return(obj.ModifyComorbidity(objcomor)); } catch { throw; } }
public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as MedicinalProductIndication; if (dest == null) { throw new ArgumentException("Can only copy to an object of the same type", "other"); } base.CopyTo(dest); if (Subject != null) { dest.Subject = new List <Hl7.Fhir.Model.ResourceReference>(Subject.DeepCopy()); } if (DiseaseSymptomProcedure != null) { dest.DiseaseSymptomProcedure = (Hl7.Fhir.Model.CodeableConcept)DiseaseSymptomProcedure.DeepCopy(); } if (DiseaseStatus != null) { dest.DiseaseStatus = (Hl7.Fhir.Model.CodeableConcept)DiseaseStatus.DeepCopy(); } if (Comorbidity != null) { dest.Comorbidity = new List <Hl7.Fhir.Model.CodeableConcept>(Comorbidity.DeepCopy()); } if (IntendedEffect != null) { dest.IntendedEffect = (Hl7.Fhir.Model.CodeableConcept)IntendedEffect.DeepCopy(); } if (Duration != null) { dest.Duration = (Hl7.Fhir.Model.Quantity)Duration.DeepCopy(); } if (OtherTherapy != null) { dest.OtherTherapy = new List <Hl7.Fhir.Model.MedicinalProductIndication.OtherTherapyComponent>(OtherTherapy.DeepCopy()); } if (UndesirableEffect != null) { dest.UndesirableEffect = new List <Hl7.Fhir.Model.ResourceReference>(UndesirableEffect.DeepCopy()); } if (Population != null) { dest.Population = new List <Hl7.Fhir.Model.Population>(Population.DeepCopy()); } return(dest); }
public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as MedicinalProductContraindication; if (dest == null) { throw new ArgumentException("Can only copy to an object of the same type", "other"); } base.CopyTo(dest); if (Subject != null) { dest.Subject = new List <Hl7.Fhir.Model.ResourceReference>(Subject.DeepCopy()); } if (Disease != null) { dest.Disease = (Hl7.Fhir.Model.CodeableConcept)Disease.DeepCopy(); } if (DiseaseStatus != null) { dest.DiseaseStatus = (Hl7.Fhir.Model.CodeableConcept)DiseaseStatus.DeepCopy(); } if (Comorbidity != null) { dest.Comorbidity = new List <Hl7.Fhir.Model.CodeableConcept>(Comorbidity.DeepCopy()); } if (TherapeuticIndication != null) { dest.TherapeuticIndication = new List <Hl7.Fhir.Model.ResourceReference>(TherapeuticIndication.DeepCopy()); } if (OtherTherapy != null) { dest.OtherTherapy = new List <Hl7.Fhir.Model.MedicinalProductContraindication.OtherTherapyComponent>(OtherTherapy.DeepCopy()); } if (Population != null) { dest.Population = new List <Hl7.Fhir.Model.Population>(Population.DeepCopy()); } return(dest); }