private IIdType store(@ResourceParam T theResource, String theIdPart, Long theVersionIdPart) { IIdType id = myFhirContext.getVersion().newIdType(); String versionIdPart = Long.toString(theVersionIdPart); id.setParts(null, myResourceName, theIdPart, versionIdPart); if (theResource != null) { theResource.setId(id);
if (!nextTargetId.hasResourceType()) { String resourceType = myContext.getResourceDefinition(nextTarget).getName(); nextTargetId.setParts(null, resourceType, nextTargetId.getIdPart(), null);
} else { id = myFhirContext.getVersion().newIdType(); id.setParts(null, resourceName, UrlUtil.unescape(nextString), null); throw new InvalidRequestException("Don't know how to handle request path: " + theRequestPath); id.setParts(null, resourceName, id.getIdPart(), UrlUtil.unescape(versionString)); } else { operation = Constants.PARAM_HISTORY;
} else { id = getFhirContext().getVersion().newIdType(); id.setParts(null, resourceName, UrlUtil.unescape(nextString), null); throw new InvalidRequestException("Don't know how to handle request path: " + theRequestPath); id.setParts(null, resourceName, id.getIdPart(), UrlUtil.unescape(versionString)); } else { operation = Constants.PARAM_HISTORY;
private IIdType store(@ResourceParam T theResource, String theIdPart, Long theVersionIdPart) { IIdType id = myFhirContext.getVersion().newIdType(); String versionIdPart = Long.toString(theVersionIdPart); id.setParts(null, myResourceName, theIdPart, versionIdPart); if (theResource != null) { theResource.setId(id);
if (!nextTargetId.hasResourceType()) { String resourceType = myContext.getResourceDefinition(nextTarget).getName(); nextTargetId.setParts(null, resourceType, nextTargetId.getIdPart(), null);
} else { id = myFhirContext.getVersion().newIdType(); id.setParts(null, resourceName, UrlUtil.unescape(nextString), null); throw new InvalidRequestException("Don't know how to handle request path: " + theRequestPath); id.setParts(null, resourceName, id.getIdPart(), UrlUtil.unescape(versionString)); } else { operation = Constants.PARAM_HISTORY;