Skip to content

Commit

Permalink
issue #3641 - disable the QuestionnaireResponse constraint sdcqr-2
Browse files Browse the repository at this point in the history
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
lmsurpre committed May 18, 2022
1 parent fd60a03 commit 3a89d70
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion conformance/fhir-ig-us-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>fhir-registry</artifactId>
<artifactId>fhir-profile</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
Expand Down
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"));
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
com.ibm.fhir.ig.us.core.USCore500ConstraintModifier

0 comments on commit 3a89d70

Please sign in to comment.