Add modelconfig toggle
@@ -99,6 +99,7 @@ public class ModelConfig {
private Map<String, Set<String>> myTypeToAutoVersionReferenceAtPaths = Collections.emptyMap();
private boolean myRespectVersionsForSearchIncludes;
private boolean myIndexOnContainedResources = false;
+ private boolean myAllowMdmExpansion = false;
/**
* Constructor
@@ -159,6 +160,24 @@ public class ModelConfig {
return myAllowContainsSearches;
}
+ /**
+ * If enabled, the server will support the use of :mdm search parameter qualifier on Reference Search Parameters.
+ * This Parameter Qualifier is HAPI-specific, and not defined anywhere in the FHIR specification. Using this qualifier
+ * will result in an MDM expansion being done on the reference, which will expand the search scope. For example, if Patient/1
+ * is MDM-matched to Patient/2 and you execute the search:
+ * Observation?subject:mdm=Patient/1 , you will receive observations for both Patient/1 and Patient/2.
+ * <p>
+ * Default is <code>false</code>
+ * </p>
+ * @since 5.4.0
+ */
+ public boolean isAllowMdmExpansion() {
+ return myAllowMdmExpansion;
+ }
+ public void setAllowMdmExpansion(boolean theAllowMdmExpansion) {
+ myAllowMdmExpansion = theAllowMdmExpansion;
+ }
+
/**
* If enabled, the server will support the use of :contains searches,
* which are helpful but can have adverse effects on performance.
