Making sure that we are not accidentally overwriting an existing resource with the same ID from another IG by comparing identifier, url or whatever constitutes uniqueness.
This commit is contained in:
parent
02d38bce14
commit
72ba7cd1c2
|
@ -497,9 +497,10 @@ public class PackageInstallerSvcImpl implements IPackageInstallerSvc {
|
|||
|
||||
IIdType id = theResource.getIdElement();
|
||||
RequestDetails requestDetails = createRequestDetails();
|
||||
String query = createSearchParameterMapFor(theResource).toNormalizedQueryString(myFhirContext);
|
||||
|
||||
try {
|
||||
outcome = theDao.update(theResource, requestDetails);
|
||||
outcome = theDao.update(theResource, query, requestDetails);
|
||||
} catch (ResourceVersionConflictException exception) {
|
||||
final Optional<IBaseResource> optResource = readResourceById(theDao, id);
|
||||
|
||||
|
|
Loading…
Reference in New Issue