Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
 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);
 }
Exemplo n.º 5
0
 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);
 }
Exemplo n.º 6
0
 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);
 }