public async Task<LG.Data.Models.Clinical.VitalReading> UpdateVitalReadingWeight(LG.Data.Models.Clinical.VitalReading entity) { var action = new ActionHelper() { ClincalAction = ClinicalAction.UpdateWeight, ClincalActionType = ClinicalType.VitalReading }; entity.ActionHelper = action; return await LG.Data.Clinical.ClinicalServices.VitalReading(entity); }
public async Task<LG.Data.Models.Clinical.VitalReading> LoadVitalReadingsTask( LG.Data.Models.Clinical.VitalReading entity) { var temp = LoadVitalReadingsHeight(entity); await temp; if (!temp.IsCompleted) return null; var action = new ActionHelper() { ClincalAction = ClinicalAction.LoadWeight, ClincalActionType = ClinicalType.VitalReading }; var newEntity = temp.Result; newEntity.ActionHelper = action; return await LG.Data.Clinical.ClinicalServices.VitalReading(newEntity); }
public async Task<LG.Data.Models.Clinical.FamilyCondition> UpdateFamilyHistory(LG.Data.Models.Clinical.FamilyCondition entity) { var action = new ActionHelper() { ClincalAction = ClinicalAction.Update, ClincalActionType = ClinicalType.FamilyHistory }; entity.ActionHelper = action; return await LG.Data.Clinical.ClinicalServices.FamilyHistory(entity); }
public async Task<LG.Data.Models.Clinical.MedicationTaken> LoadMedicationTaken(LG.Data.Models.Clinical.MedicationTaken entity) { var action = new ActionHelper() { ClincalAction = ClinicalAction.LoadAll, ClincalActionType = ClinicalType.Medication }; entity.ActionHelper = action; return await LG.Data.Clinical.ClinicalServices.Medication(entity); }
public async Task<LG.Data.Models.Clinical.Condition> InsertCondition(LG.Data.Models.Clinical.Condition entity) { var action = new ActionHelper() { ClincalAction = ClinicalAction.Add, ClincalActionType = ClinicalType.Condition }; entity.ActionHelper = action; return await LG.Data.Clinical.ClinicalServices.Condition(entity); }
public async Task<LG.Data.Models.Clinical.Allergy> UpdateAllergy(LG.Data.Models.Clinical.Allergy entity) { var action = new ActionHelper() { ClincalAction = LG.Data.Models.Enums.ClinicalAction.Update, ClincalActionType = ClinicalType.Allergy }; entity.ActionHelper = action; return await LG.Data.Clinical.ClinicalServices.Allergy(entity); }