コード例 #1
0
        // private int result;

        public int AddPatientHIVEducation(HIVEducationFollowup HEF)
        {
            using (UnitOfWork unitOfWork = new UnitOfWork(new GreencardContext()))
            {
                unitOfWork.PatientHIVEducationFollowupRepository.Add(HEF);
                unitOfWork.Complete();
                unitOfWork.Dispose();
                return(HEF.Id);
            }
        }
コード例 #2
0
 public int AddPatientHIVEducation(int patientId, DateTime visitdate, int councellingTypeId, string councellingType, int councellingTopicId, string councellingTopic, string comments, string other)
 {
     try
     {
         var PHEF = new HIVEducationFollowup()
         {
             PatientId             = patientId,
             VisitDate             = visitdate,
             CouncellingTypeId     = councellingTypeId,
             CouncellingType       = councellingType,
             CouncellingTopicId    = councellingTopicId,
             CouncellingTopic      = councellingTopic,
             Comments              = comments,
             CouncellingTopicOther = other
         };
         return(_hiveducation.AddPatientHIVEducation(PHEF));
         // }
         //}
         //else
         //{
         //    var PCN = new PatientClinicalNotes()
         //    {
         //        PatientId = patientId,
         //        PatientMasterVisitId = patientMasterVisitId,
         //        ServiceAreaId = serviceAreaId,
         //        ClinicalNotes = clinicalNotes,
         //        CreatedBy = userId,
         //        //VersionStamp = DateTime.UtcNow,
         //        NotesCategoryId = notesCategoryId
         //    };
         //    return _patientNotes.AddPatientClinicalNotes(PCN);
         //}
     }
     catch (Exception)
     {
         throw;
     }
 }
コード例 #3
0
 public int UpdatePatientHIVEducation(HIVEducationFollowup HEF)
 {
     throw new NotImplementedException();
 }