@Test public void testGetPidInvalidIds() { PatientIds emptyIcn = createMockPatientIds("", ""); PatientIds emptyIcnAndEdipi = createMockPatientIds("", ""); try { command.getPid(emptyIcn); Assert.fail("Expected VlerDasException"); } catch (VlerDasException iae) { } try { command.getPid(emptyIcnAndEdipi); Assert.fail("Expected VlerDasException"); } catch (VlerDasException iae) { } }
protected String getPid(PatientIds ids) throws VlerDasException { String pid = ids.getIcn(); if (pid == null || pid.length() == 0) { pid = ids.getEdipi(); } if (pid == null || pid.length() == 0) { throw new VlerDasException("Patient does not have an ICN or EDIPI - unable to query VLER DAS"); } return pid; }
VlerDasDataFetchCommand { protected String getPid(PatientIds ids) throws VlerDasException { String pid = ids.getIcn(); if (pid == null || pid.length() == 0) { pid = ids.getEdipi(); } if (pid == null || pid.length() == 0) { throw new VlerDasException("Patient does not have an ICN or EDIPI - unable to query VLER DAS"); } return pid; } }
VlerDasDataFetchCommand { protected String getPid(PatientIds ids) throws VlerDasException { String pid = ids.getIcn(); if (pid == null || pid.length() == 0) { pid = ids.getEdipi(); } if (pid == null || pid.length() == 0) { throw new VlerDasException("Patient does not have an ICN or EDIPI - unable to query VLER DAS"); } return pid; } VlerDasDataFetchCommand(VlerDasConfiguration config, VlerDasQuery query); }
VlerDasDataFetchCommand { protected String getPid(PatientIds ids) throws VlerDasException { String pid = ids.getIcn(); if (pid == null || pid.length() == 0) { pid = ids.getEdipi(); } if (pid == null || pid.length() == 0) { throw new VlerDasException("Patient does not have an ICN or EDIPI - unable to query VLER DAS"); } return pid; } VlerDasDataFetchCommand(VlerDasConfiguration config, VlerDasQuery query); void setWsClient(AbderaClient wsClient); AbderaClient getWsClient(); Document<Feed> fetchData(); }
VlerDasDataFetchCommand { protected String getPid(PatientIds ids) throws VlerDasException { String pid = ids.getIcn(); if (pid == null || pid.length() == 0) { pid = ids.getEdipi(); } if (pid == null || pid.length() == 0) { throw new VlerDasException("Patient does not have an ICN or EDIPI - unable to query VLER DAS"); } return pid; } VlerDasDataFetchCommand(VlerDasConfiguration config, VlerDasQuery query); void setWsClient(AbderaClient wsClient); AbderaClient getWsClient(); Document<Feed> fetchData();  }