-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
issue #3641 - pre-expand select valuesets via the VSAC Term Service
Added a fledgling VSACRegistryResourceProvider and used it to expand US Core ValueSets which were composed from VSAC value sets. The expansion step was added to the ResourceProcessor. Additionally, we were failing to validate the QuestionnaireResponse examples due to a new constraint that uses an unsupported FHIRPath function. I added a workaround and opened #3646 to get proper support added. Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>
- Loading branch information
Showing
20 changed files
with
8,475 additions
and
4 deletions.
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
29 changes: 29 additions & 0 deletions
29
...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,29 @@ | ||
/* | ||
* (C) Copyright IBM Corp. 2022 | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
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 |
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
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
Oops, something went wrong.