diff --git a/src/FhirStore.CommonVersioned/Search/EvalStringSearch.cs b/src/FhirStore.CommonVersioned/Search/EvalStringSearch.cs index b077224..bfc906a 100644 --- a/src/FhirStore.CommonVersioned/Search/EvalStringSearch.cs +++ b/src/FhirStore.CommonVersioned/Search/EvalStringSearch.cs @@ -34,7 +34,7 @@ public static bool TestStringStartsWith(ITypedElement valueNode, ParsedSearchPar continue; } - if (sp.Values[i].StartsWith(value, StringComparison.OrdinalIgnoreCase)) + if (value.StartsWith(sp.Values[i], StringComparison.OrdinalIgnoreCase)) { return true; } @@ -63,7 +63,7 @@ public static bool TestStringContains(ITypedElement valueNode, ParsedSearchParam continue; } - if (sp.Values[i].Contains(value, StringComparison.OrdinalIgnoreCase)) + if (value.Contains(sp.Values[i], StringComparison.OrdinalIgnoreCase)) { return true; } @@ -92,7 +92,7 @@ public static bool TestStringExact(ITypedElement valueNode, ParsedSearchParamete continue; } - if (sp.Values[i].Equals(value, StringComparison.Ordinal)) + if (value.Equals(sp.Values[i], StringComparison.Ordinal)) { return true; }