Exemplo n.º 1
0
        public void GetPatientNote_Test_Fails()
        {
            GetPatientNoteDataRequest request = new GetPatientNoteDataRequest {
                Id = "52f5589c072ef709f84e7798"
            };

            PatientNoteData response = m.GetPatientNote(request);

            Assert.IsNull(response);
        }
Exemplo n.º 2
0
        public void GetPatientNote_Test_Passes()
        {
            GetPatientNoteDataRequest request = new GetPatientNoteDataRequest {
                Id = "530fb4d9d433230ea4e8bdfa"
            };

            PatientNoteData response = m.GetPatientNote(request);

            Assert.IsNotNull(response);
        }
Exemplo n.º 3
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.º 4
0
        public GetPatientNoteDataResponse Get(GetPatientNoteDataRequest request)
        {
            GetPatientNoteDataResponse response = new GetPatientNoteDataResponse();

            try
            {
                RequireUserId(request);
                response.PatientNote = Manager.GetPatientNote(request);
                response.Version     = request.Version;
            }
            catch (Exception ex)
            {
                RaiseException(response, ex);
            }
            return(response);
        }
Exemplo n.º 5
0
 public PatientNoteData GetPatientNote(GetPatientNoteDataRequest request)
 {
     throw new NotImplementedException();
 }