Skip to content

Breaking changes in 3.0

Marco Visser edited this page Feb 23, 2021 · 10 revisions

Removed methods from classes

  • In class FhirEvaluationContext the constructor FhirEvaluationContext(Resource resource) has been removed. You can still use the other constructor public FhirEvaluationContext(ITypedElement resource) by first converting the resource to a TypedElement (resource.ToTypedElement()) and then call the constructor of FhirEvaluationContext.
  • In class ResourceIdentity the static function ResourceIdentity Core(FHIRAllTypes type) has been removed.

Moved methods to a new class

  • The following extension methods coming from the static class Hl7.Fhir.FhirPath.ElementNavFhirExtensions has been moved to another static class Hl7.Fhir.FhirPath.FhirPathExtensions. The impact is quite low, because these are extension methods which normally don't need the class where they reside in:
    • Func<string, ITypedElement> ToFhirPathResolver(this Func<string, Resource> resolver)
    • IEnumerable<Base> Select(this Base input, string expression, FhirEvaluationContext ctx = null)
    • object Scalar(this Base input, string expression, FhirEvaluationContext ctx = null)
    • bool Predicate(this Base input, string expression, FhirEvaluationContext ctx = null)
    • bool IsBoolean(this Base input, string expression, bool value, FhirEvaluationContext ctx = null)
Clone this wiki locally