public void GetPatientNote_Test_Fails() { GetPatientNoteDataRequest request = new GetPatientNoteDataRequest { Id = "52f5589c072ef709f84e7798" }; PatientNoteData response = m.GetPatientNote(request); Assert.IsNull(response); }
public void GetPatientNote_Test_Passes() { GetPatientNoteDataRequest request = new GetPatientNoteDataRequest { Id = "530fb4d9d433230ea4e8bdfa" }; PatientNoteData response = m.GetPatientNote(request); Assert.IsNotNull(response); }
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; } }
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); }
public PatientNoteData GetPatientNote(GetPatientNoteDataRequest request) { throw new NotImplementedException(); }