@Test public void testFetchDodNotesOutpatient() { try { when(this.mockJMeadowsClient.getPatientProgressNotes(any(JMeadowsQuery.class))).thenReturn(createTestData()); JMeadowsQuery query = new JMeadowsQueryBuilder() .user(user) .patient(patient) .build(); PatientIds patientIds = new PatientIds.Builder() .pid(pid) .icn(icn) .uid(uid) .edipi(edipi) .build(); testTransformations(jMeadowsNoteService.fetchDodNotes(OUTPATIENT, query, patientIds)); } catch (JMeadowsException_Exception e) { fail(e.getMessage()); } }
@Override public List<VistaDataChunk> fetchDodNotes(NoteType eNoteType, JMeadowsQuery oQuery, PatientIds oPatientIds) throws JMeadowsException_Exception { LOG.debug("JMeadowsClinicalNoteService.fetchDodNotes - Entering method..."); if (eNoteType == null) throw new IllegalArgumentException("eNoteType is null"); validateParams(oQuery, oPatientIds, USER, PATIENT); switch (eNoteType) { case OUTPATIENT: return processProgressNote(eNoteType, jMeadowsClient.getPatientProgressNotes(oQuery), oPatientIds); case INPATIENT: return processProgressNote(eNoteType, jMeadowsClient.getPatientDischargeSummaries(oQuery), oPatientIds); } throw new IllegalArgumentException("Unsupported NoteType: " + eNoteType.getName()); }
JMeadowsNoteService implements IJMeadowsNoteService { @Override public List<VistaDataChunk> fetchDodNotes(NoteType eNoteType, JMeadowsQuery oQuery, PatientIds oPatientIds) throws JMeadowsException_Exception { LOG.debug("JMeadowsClinicalNoteService.fetchDodNotes - Entering method..."); if (eNoteType == null) throw new IllegalArgumentException("eNoteType is null"); validateParams(oQuery, oPatientIds, USER, PATIENT); switch (eNoteType) { case OUTPATIENT: return processProgressNote(eNoteType, jMeadowsClient.getPatientProgressNotes(oQuery), oPatientIds); case INPATIENT: return processProgressNote(eNoteType, jMeadowsClient.getPatientDischargeSummaries(oQuery), oPatientIds); } throw new IllegalArgumentException("Unsupported NoteType: " + eNoteType.getName()); } }
JMeadowsNoteService implements IJMeadowsNoteService { @Override public List<VistaDataChunk> fetchDodNotes(NoteType eNoteType, JMeadowsQuery oQuery, PatientIds oPatientIds) throws JMeadowsException_Exception { LOG.debug("JMeadowsClinicalNoteService.fetchDodNotes - Entering method..."); if (eNoteType == null) throw new IllegalArgumentException("eNoteType is null"); validateParams(oQuery, oPatientIds, USER, PATIENT); switch (eNoteType) { case OUTPATIENT: return processProgressNote(eNoteType, jMeadowsClient.getPatientProgressNotes(oQuery), oPatientIds); case INPATIENT: return processProgressNote(eNoteType, jMeadowsClient.getPatientDischargeSummaries(oQuery), oPatientIds); } throw new IllegalArgumentException("Unsupported NoteType: " + eNoteType.getName()); } @Autowired  JMeadowsNoteService(JMeadowsConfiguration jMeadowsConfiguration); }
JMeadowsNoteService implements IJMeadowsNoteService { @Override public List<VistaDataChunk> fetchDodNotes(NoteType eNoteType, JMeadowsQuery oQuery, PatientIds oPatientIds) throws JMeadowsException_Exception { LOG.debug("JMeadowsClinicalNoteService.fetchDodNotes - Entering method..."); if (eNoteType == null) throw new IllegalArgumentException("eNoteType is null"); validateParams(oQuery, oPatientIds, USER, PATIENT); switch (eNoteType) { case OUTPATIENT: return processProgressNote(eNoteType, jMeadowsClient.getPatientProgressNotes(oQuery), oPatientIds); case INPATIENT: return processProgressNote(eNoteType, jMeadowsClient.getPatientDischargeSummaries(oQuery), oPatientIds); } throw new IllegalArgumentException("Unsupported NoteType: " + eNoteType.getName()); } @Autowired  JMeadowsNoteService(JMeadowsConfiguration jMeadowsConfiguration); @Autowired void setDodDocumentService(IDodDocumentService dodDocumentService); void setJMeadowsClient(JMeadowsData jMeadowsClient); @Override List<VistaDataChunk> fetchDodNotes(NoteType eNoteType, JMeadowsQuery oQuery, PatientIds oPatientIds); }
JMeadowsNoteService implements IJMeadowsNoteService { @Override public List<VistaDataChunk> fetchDodNotes(NoteType eNoteType, JMeadowsQuery oQuery, PatientIds oPatientIds) throws JMeadowsException_Exception { LOG.debug("JMeadowsClinicalNoteService.fetchDodNotes - Entering method..."); if (eNoteType == null) throw new IllegalArgumentException("eNoteType is null"); validateParams(oQuery, oPatientIds, USER, PATIENT); switch (eNoteType) { case OUTPATIENT: return processProgressNote(eNoteType, jMeadowsClient.getPatientProgressNotes(oQuery), oPatientIds); case INPATIENT: return processProgressNote(eNoteType, jMeadowsClient.getPatientDischargeSummaries(oQuery), oPatientIds); } throw new IllegalArgumentException("Unsupported NoteType: " + eNoteType.getName()); } @Autowired  JMeadowsNoteService(JMeadowsConfiguration jMeadowsConfiguration); @Autowired void setDodDocumentService(IDodDocumentService dodDocumentService); void setJMeadowsClient(JMeadowsData jMeadowsClient); @Override List<VistaDataChunk> fetchDodNotes(NoteType eNoteType, JMeadowsQuery oQuery, PatientIds oPatientIds); static final String DOMAIN_DOCUMENT; }