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.
// 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
if (resourceId.startsWith(myResourceType + "/")) {
resourceId = resourceId.substring(myResourceType.length() + 1);
int slashIdx = resourceId.indexOf('/');
if (slashIdx != -1) {
resourceId = resourceId.substring(slashIdx + 1);
}
} else {
resourceId = nextResourceId.toString();