Fix compile

This commit is contained in:
James Agnew 2015-12-14 18:22:21 -05:00
parent 9ef0498775
commit 2eaa1eddae
1 changed files with 3 additions and 3 deletions

View File

@ -853,10 +853,10 @@ public class GenericClient extends BaseClient implements IGenericClient {
} }
@Override @Override
public IDeleteTyped resource(IResource theResource) { public IDeleteTyped resource(IBaseResource theResource) {
Validate.notNull(theResource, "theResource can not be null"); Validate.notNull(theResource, "theResource can not be null");
IdDt id = theResource.getId(); IIdType id = theResource.getIdElement();
Validate.notNull(id, "theResource.getId() can not be null"); Validate.notNull(id, "theResource.getIdElement() can not be null");
if (id.hasResourceType() == false || id.hasIdPart() == false) { if (id.hasResourceType() == false || id.hasIdPart() == false) {
throw new IllegalArgumentException("theResource.getId() must contain a resource type and logical ID at a minimum (e.g. Patient/1234), found: " + id.getValue()); throw new IllegalArgumentException("theResource.getId() must contain a resource type and logical ID at a minimum (e.g. Patient/1234), found: " + id.getValue());
} }