@Test public void testGetPid() throws Exception { PatientIds idsWithIcn = createMockPatientIds(TEST_ICN, TEST_EDIPI); Assert.assertEquals(TEST_ICN, command.getPid(idsWithIcn)); PatientIds idsWithEdipi = createMockPatientIds(null, TEST_EDIPI); Assert.assertEquals(TEST_EDIPI, command.getPid(idsWithEdipi)); }
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();  }