mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-02-20 11:55:17 +00:00
Address leftover code review feedback from the upgrade to core 5.6.97. (#4585)
This commit is contained in:
parent
baa494cd91
commit
b2ebdec183
@ -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.startsWith;
|
||||||
import static org.apache.commons.lang3.StringUtils.trim;
|
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 abstract class BaseSearchParamExtractor implements ISearchParamExtractor {
|
||||||
|
|
||||||
public static final Set<String> COORDS_INDEX_PATHS;
|
public static final Set<String> COORDS_INDEX_PATHS;
|
||||||
|
@ -22,12 +22,10 @@ import java.util.Optional;
|
|||||||
|
|
||||||
public class FhirPathR4 implements IFhirPath {
|
public class FhirPathR4 implements IFhirPath {
|
||||||
|
|
||||||
private FHIRPathEngine myEngine;
|
private final FHIRPathEngine myEngine;
|
||||||
|
|
||||||
public FhirPathR4(FhirContext theCtx) {
|
public FhirPathR4(FhirContext theCtx) {
|
||||||
IValidationSupport validationSupport = theCtx.getValidationSupport();
|
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));
|
myEngine = new FHIRPathEngine(new HapiWorkerContext(theCtx, validationSupport));
|
||||||
// These changes are to make the FP evaluation non-strict
|
// These changes are to make the FP evaluation non-strict
|
||||||
myEngine.setDoNotEnforceAsCaseSensitive(true);
|
myEngine.setDoNotEnforceAsCaseSensitive(true);
|
||||||
|
@ -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) {
|
public static FhirVersionEnum getFhirVersionEnum(@Nonnull FhirContext theFhirContext, @Nonnull IBaseResource theResource) {
|
||||||
FhirVersionEnum structureFhirVersionEnum = theResource.getStructureFhirVersionEnum();
|
FhirVersionEnum structureFhirVersionEnum = theResource.getStructureFhirVersionEnum();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user