-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
issue #3641 - disable the QuestionnaireResponse constraint sdcqr-2
this is intended to be a temporary override until we get around to implementing support for the FHIRPath "repeat" function (#3646) Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>
- Loading branch information
Showing
3 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...ce/fhir-ig-us-core/src/main/java/com/ibm/fhir/ig/us/core/USCore500ConstraintModifier.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.ibm.fhir.ig.us.core; | ||
|
||
import java.util.List; | ||
import java.util.function.Predicate; | ||
|
||
import com.ibm.fhir.model.annotation.Constraint; | ||
import com.ibm.fhir.profile.constraint.spi.AbstractProfileConstraintProvider; | ||
|
||
public class USCore500ConstraintModifier extends AbstractProfileConstraintProvider { | ||
private static final String targetUrl = "http://hl7.org/fhir/us/core/StructureDefinition/us-core-questionnaireresponse"; | ||
private static final String targetVersion = "5.0.0"; | ||
|
||
@Override | ||
public boolean appliesTo(String url, String version) { | ||
return targetUrl.equals(url) && targetVersion.equals(version); | ||
} | ||
|
||
@Override | ||
protected void addRemovalPredicates(List<Predicate<Constraint>> removalPredicates) { | ||
removalPredicates.add(idEquals("sdcqr-2")); | ||
} | ||
|
||
} |
1 change: 1 addition & 0 deletions
1
...resources/META-INF/services/com.ibm.fhir.profile.constraint.spi.ProfileConstraintProvider
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
com.ibm.fhir.ig.us.core.USCore500ConstraintModifier |