Test cleanup

This commit is contained in:
James Agnew 2024-11-14 07:38:46 -05:00
parent bd0502e368
commit c79a705124
1 changed files with 3 additions and 2 deletions

View File

@ -172,8 +172,9 @@ public class HistoryBuilder {
// For that reason, strip the prefix before setting the transientForcedId below. // For that reason, strip the prefix before setting the transientForcedId below.
// If not stripped this messes up the id of the resource as the resourceType would be repeated // If not stripped this messes up the id of the resource as the resourceType would be repeated
// twice like Patient/Patient/1234 in the resource constructed // twice like Patient/Patient/1234 in the resource constructed
if (resourceId.startsWith(myResourceType + "/")) { int slashIdx = resourceId.indexOf('/');
resourceId = resourceId.substring(myResourceType.length() + 1); if (slashIdx != -1) {
resourceId = resourceId.substring(slashIdx + 1);
} }
} else { } else {
resourceId = nextResourceId.toString(); resourceId = nextResourceId.toString();