Exemplo n.º 1
0
 public PatientNoteData GetPatientNote(GetPatientNoteDataRequest request)
 {
     try
     {
         PatientNoteData             response = null;
         IMongoPatientNoteRepository repo     = Factory.GetRepository(RepositoryType.PatientNote);
         response = repo.FindByID(request.Id) as PatientNoteData;
         return(response);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 2
0
        public PatientNoteData UpdatePatientNote(UpdatePatientNoteDataRequest request)
        {
            PatientNoteData result = null;

            try
            {
                IMongoPatientNoteRepository repo = Factory.GetRepository(RepositoryType.PatientNote);
                if (request.PatientNoteData != null)
                {
                    bool status = (bool)repo.Update(request);
                    if (status)
                    {
                        result = (PatientNoteData)repo.FindByID(request.PatientNoteData.Id);
                    }
                }
                return(result);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }