001/*- 002 * #%L 003 * HAPI FHIR - Master Data Management 004 * %% 005 * Copyright (C) 2014 - 2024 Smile CDR, Inc. 006 * %% 007 * Licensed under the Apache License, Version 2.0 (the "License"); 008 * you may not use this file except in compliance with the License. 009 * You may obtain a copy of the License at 010 * 011 * http://www.apache.org/licenses/LICENSE-2.0 012 * 013 * Unless required by applicable law or agreed to in writing, software 014 * distributed under the License is distributed on an "AS IS" BASIS, 015 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 016 * See the License for the specific language governing permissions and 017 * limitations under the License. 018 * #L% 019 */ 020package ca.uhn.fhir.mdm.api; 021 022import ca.uhn.fhir.mdm.api.paging.MdmPageRequest; 023import ca.uhn.fhir.mdm.api.params.MdmHistorySearchParameters; 024import ca.uhn.fhir.mdm.api.params.MdmQuerySearchParameters; 025import ca.uhn.fhir.mdm.model.MdmTransactionContext; 026import ca.uhn.fhir.mdm.model.mdmevents.MdmLinkJson; 027import ca.uhn.fhir.mdm.model.mdmevents.MdmLinkWithRevisionJson; 028import org.hl7.fhir.instance.model.api.IIdType; 029import org.springframework.data.domain.Page; 030 031import java.util.List; 032 033/** 034 * This service supports the MDM operation providers for those services that return multiple MDM links. 035 */ 036public interface IMdmLinkQuerySvc { 037 @Deprecated 038 Page<MdmLinkJson> queryLinks( 039 IIdType theGoldenResourceId, 040 IIdType theSourceResourceId, 041 MdmMatchResultEnum theMatchResult, 042 MdmLinkSourceEnum theLinkSource, 043 MdmTransactionContext theMdmContext, 044 MdmPageRequest thePageRequest); 045 046 @Deprecated 047 Page<MdmLinkJson> queryLinks( 048 IIdType theGoldenResourceId, 049 IIdType theSourceResourceId, 050 MdmMatchResultEnum theMatchResult, 051 MdmLinkSourceEnum theLinkSource, 052 MdmTransactionContext theMdmContext, 053 MdmPageRequest thePageRequest, 054 List<Integer> thePartitionId); 055 056 Page<MdmLinkJson> queryLinks( 057 MdmQuerySearchParameters theMdmQuerySearchParameters, MdmTransactionContext theMdmContext); 058 059 Page<MdmLinkJson> getDuplicateGoldenResources(MdmTransactionContext theMdmContext, MdmPageRequest thePageRequest); 060 061 Page<MdmLinkJson> getDuplicateGoldenResources( 062 MdmTransactionContext theMdmContext, 063 MdmPageRequest thePageRequest, 064 List<Integer> thePartitionId, 065 String theRequestResourceType); 066 067 List<MdmLinkWithRevisionJson> queryLinkHistory(MdmHistorySearchParameters theMdmHistorySearchParameters); 068}