Skip to content

Breaking changes in 3.0

Marco Visser edited this page Feb 24, 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.
  • The obsolete member Default of class FhirEvaluationContext has been removed. Use the CreateDefault() instead.
  • 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)

Classes moved to Common assembly

The following classes have been moved to the common assembly Hl7.Fhir.Support.Poco:

  • ContactDetail
  • ContactPoint
  • OperationOutcome
  • Parameters
  • Quantity
  • Range
  • UsageContext
  • ResourceIdentity
  • Issues
  • FhirEvaluationContext
  • ValidationOutcomeExtensions
  • ScopedNodeExtensions
Clone this wiki locally