String locationValue = locationHeaders.get(0); IdDt locationValueId = new IdDt(locationValue); if (locationValueId.hasBaseUrl() && locationValueId.hasIdPart()) { locationValue = locationValueId.toUnqualified().getValue();
private void populateBundleEntryFullUrl(IResource next, Entry entry) { if (next.getId().hasBaseUrl()) { entry.setFullUrl(next.getId().toVersionless().getValue()); } else { if (isNotBlank(myBase) && next.getId().hasIdPart()) { IdDt id = next.getId().toVersionless(); id = id.withServerBase(myBase, myContext.getResourceDefinition(next).getName()); entry.setFullUrl(id.getValue()); } } }
IResource nextRes = (IResource) nextRef.getResource(); if (nextRes != null) { if (nextRes.getId().hasIdPart()) { if (containedIds.contains(nextRes.getId().getValue())) {
if (nextRes.getId().hasIdPart()) { if (containedIds.contains(nextRes.getId().getValue())) {
if (!nextResourceId.hasIdPart()) { if (isNotBlank(nextReqEntry.getFullUrl())) { nextResourceId = new IdDt(nextReqEntry.getFullUrl()); if (nextResourceId.hasIdPart() && nextResourceId.getIdPart().matches("[a-zA-Z]+\\:.*") && !isPlaceholder(nextResourceId)) { throw new InvalidRequestException("Invalid placeholder ID found: " + nextResourceId.getIdPart() + " - Must be of the form 'urn:uuid:[uuid]' or 'urn:oid:[oid]'"); if (nextResourceId.hasIdPart() && !nextResourceId.hasResourceType() && !isPlaceholder(nextResourceId)) { nextResourceId = new IdDt(toResourceName(res.getClass()), nextResourceId.getIdPart()); res.setId(nextResourceId); throw new InvalidRequestException(getContext().getLocalizer().getMessage(BaseHapiFhirSystemDao.class, "transactionContainsMultipleWithDuplicateId", nextResourceId)); } else if (nextResourceId.hasResourceType() && nextResourceId.hasIdPart()) { IdDt nextId = nextResourceId.toUnqualifiedVersionless(); if (!theAllIds.add(nextId)) { for (BaseResourceReferenceDt nextRef : allRefs) { IdDt nextId = nextRef.getReference(); if (!nextId.hasIdPart()) { continue;
RequestDetails theRequestDetails) { boolean haveId = theId != null && theId.hasIdPart(); boolean haveIdentifier = theIdentifier != null && isNotBlank(theIdentifier.getValue()); boolean haveValueSet = theValueSet != null && theValueSet.isEmpty() == false;
String locationValue = locationHeaders.get(0); IdDt locationValueId = new IdDt(locationValue); if (locationValueId.hasBaseUrl() && locationValueId.hasIdPart()) { locationValue = locationValueId.toUnqualified().getValue();
if (nextRes.getId().hasIdPart()) { if (containedIds.contains(nextRes.getId().getValue())) {
private void populateBundleEntryFullUrl(IResource next, Entry entry) { if (next.getId().hasBaseUrl()) { entry.setFullUrl(next.getId().toVersionless().getValue()); } else { if (isNotBlank(myBase) && next.getId().hasIdPart()) { IdDt id = next.getId().toVersionless(); id = id.withServerBase(myBase, myContext.getResourceDefinition(next).getName()); entry.setFullUrl(id.getValue()); } } }
if (nextRes.getId().hasIdPart()) { if (containedIds.contains(nextRes.getId().getValue())) {
IResource nextRes = (IResource) nextRef.getResource(); if (nextRes != null) { if (nextRes.getId().hasIdPart()) { if (containedIds.contains(nextRes.getId().getValue())) {
if (!nextResourceId.hasIdPart()) { if (isNotBlank(nextReqEntry.getFullUrl())) { nextResourceId = new IdDt(nextReqEntry.getFullUrl()); if (nextResourceId.hasIdPart() && nextResourceId.getIdPart().matches("[a-zA-Z]+\\:.*") && !isPlaceholder(nextResourceId)) { throw new InvalidRequestException("Invalid placeholder ID found: " + nextResourceId.getIdPart() + " - Must be of the form 'urn:uuid:[uuid]' or 'urn:oid:[oid]'"); if (nextResourceId.hasIdPart() && !nextResourceId.hasResourceType() && !isPlaceholder(nextResourceId)) { nextResourceId = new IdDt(toResourceName(res.getClass()), nextResourceId.getIdPart()); res.setId(nextResourceId); throw new InvalidRequestException(getContext().getLocalizer().getMessage(BaseHapiFhirSystemDao.class, "transactionContainsMultipleWithDuplicateId", nextResourceId)); } else if (nextResourceId.hasResourceType() && nextResourceId.hasIdPart()) { IdDt nextId = nextResourceId.toUnqualifiedVersionless(); if (!theAllIds.add(nextId)) { for (BaseResourceReferenceDt nextRef : allRefs) { IdDt nextId = nextRef.getReference(); if (!nextId.hasIdPart()) { continue;
@Read(type = OperationDefinition.class) public OperationDefinition readOperationDefinition(@IdParam IdDt theId) { if (theId == null || theId.hasIdPart() == false) { throw new ResourceNotFoundException(theId);
RequestDetails theRequestDetails) { boolean haveId = theId != null && theId.hasIdPart(); boolean haveIdentifier = theIdentifier != null && isNotBlank(theIdentifier.getValue()); boolean haveValueSet = theValueSet != null && theValueSet.isEmpty() == false;