Address leftover code review feedback from the upgrade to core 5.6.97. (#4585)

This commit is contained in:
Luke deGruchy 2023-02-24 11:32:54 -05:00 committed by GitHub
parent baa494cd91
commit b2ebdec183
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 5 deletions

View File

@ -102,7 +102,6 @@ import static org.apache.commons.lang3.StringUtils.isNotBlank;
import static org.apache.commons.lang3.StringUtils.startsWith;
import static org.apache.commons.lang3.StringUtils.trim;
// TODO: come back to this and scrutinize the changes James did to this class
public abstract class BaseSearchParamExtractor implements ISearchParamExtractor {
public static final Set<String> COORDS_INDEX_PATHS;

View File

@ -22,12 +22,10 @@ import java.util.Optional;
public class FhirPathR4 implements IFhirPath {
private FHIRPathEngine myEngine;
private final FHIRPathEngine myEngine;
public FhirPathR4(FhirContext theCtx) {
IValidationSupport validationSupport = theCtx.getValidationSupport();
// add the flag to make the FP evaluation not be strict. david shouuld be able to point to it - the class where this needs to be done is FhirPathR4 - in there we construct a new instance of FHIRPathEngine . the latter is a core library, and it's the thing that needs to be configured with this new flag
myEngine = new FHIRPathEngine(new HapiWorkerContext(theCtx, validationSupport));
// These changes are to make the FP evaluation non-strict
myEngine.setDoNotEnforceAsCaseSensitive(true);

View File

@ -560,7 +560,7 @@ public class CommonCodeSystemsTerminologyService implements IValidationSupport {
}
/**
* TODO: This method can be removed once we have bumped the R4B version in core
* N.B.: We are keeping this as a shim due to the upgrade we did to core 5.6.97+
*/
public static FhirVersionEnum getFhirVersionEnum(@Nonnull FhirContext theFhirContext, @Nonnull IBaseResource theResource) {
FhirVersionEnum structureFhirVersionEnum = theResource.getStructureFhirVersionEnum();