-
Notifications
You must be signed in to change notification settings - Fork 345
Breaking changes in 3.0
Ewout Kramer edited this page Feb 25, 2021
·
10 revisions
- In class
FhirEvaluationContext
the constructorFhirEvaluationContext(Resource resource)
has been removed. You can still use the other constructorpublic FhirEvaluationContext(ITypedElement resource)
by first converting theresource
to a TypedElement (resource.ToTypedElement()
) and then call the constructor ofFhirEvaluationContext
. - The obsolete member
Default
of classFhirEvaluationContext
has been removed. Use theCreateDefault()
instead. - In class
ResourceIdentity
the static functionResourceIdentity Core(FHIRAllTypes type)
has been removed. You can replace this call using the existingCore(string)
overload; to get the name of the type from the enum, just useGetLiteral()
, e.g.FHIRAllTypes.HumanName.GetLiteral()
.
- The following extension methods coming from the static class
Hl7.Fhir.FhirPath.ElementNavFhirExtensions
have been moved to another static classHl7.Fhir.FhirPath.FhirPathExtensions
. The impact is quite low, because these are extension methods which normally don't need the class where they reside in mentioned explicitly: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)
- The following extension methods coming from the static class
Hl7.Fhir.ElementModel.PoocBuilderExtensions
has been moved to another static classHl7.Fhir.ElementModel.TypedElementParseExtensions
. The impact is quite low, because these are extension methods which normally don't need the class where they reside in mentioned explicitly::public static Element ParseBindable(this ITypedElement instance)
public static Model.Quantity ParseQuantity(this ITypedElement instance)
public static T ParsePrimitive<T>(this ITypedElement instance) where T : PrimitiveType, new()
public static Coding ParseCoding(this ITypedElement instance)
public static ResourceReference ParseResourceReference(this ITypedElement instance)
public static CodeableConcept ParseCodeableConcept(this ITypedElement instance)
public static string GetString(this IEnumerable<ITypedElement> instance)
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
- ElementNavFhirExtensions (partly)
- PocoBuilderExtensions (partly)