This commit is contained in:
James 2017-08-12 06:21:46 -04:00
parent 209752cd63
commit 52388c11c1
1 changed files with 1 additions and 5 deletions

View File

@ -1681,6 +1681,7 @@ public class GenericClient extends BaseClient implements IGenericClient {
@Override
public OUTPUT execute() {
Validate.notNull(myReturnBundleType, "Return bundle type mustbe specified");
Map<String, List<String>> params = getParamMap();
@ -1755,11 +1756,6 @@ public class GenericClient extends BaseClient implements IGenericClient {
}
}
if (myReturnBundleType == null && myContext.getVersion().getVersion().isRi()) {
throw new IllegalArgumentException("When using the client with HL7.org structures, you must specify "
+ "the bundle return type for the client by adding \".returnBundle(org.hl7.fhir.instance.model.Bundle.class)\" to your search method call before the \".execute()\" method");
}
IClientResponseHandler<? extends IBase> binding;
binding = new ResourceResponseHandler(myReturnBundleType, getPreferResponseTypes(myResourceType));