Skip to content

Conversation

@Kasdejong
Copy link
Member

Description

Changed the type of FhirEvaluationContext.TerminologyService to ICodeValidationTerminologyService

Related issues

Closes #2590

@Kasdejong Kasdejong added the breaking change This issue/commit causes a breaking change, and requires a major version upgrade label Oct 10, 2024
/// </summary>
public static new FhirEvaluationContext WithResourceOverrides(ITypedElement? resource, ITypedElement? rootResource = null) =>
(FhirEvaluationContext)EvaluationContext.WithResourceOverrides(resource, rootResource);
public ITerminologyService? TerminologyService { get; set; }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't this hurt us when trying to implement the other terminology-related fhirpath functions except member-of?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See discussion in #2590. I am not sure, just doing what I'm told :)

@alexzautke
Copy link
Member

Haha. See, I had the same argument last year.

@ewoutkramer
Copy link
Member

Yeah, and I think you are right. We should probably pick an interface that has memberOf() as well. Of course, it's just a matter of time before people want more, though. But that does not mean all termservices also implement it. That's the beauty of making it explicit.

@alexzautke
Copy link
Member

Would it make sense to add a way for the ITerminologyService to report which methods are supported by the service?

@Kasdejong
Copy link
Member Author

Both ValueSetValidateCode (memberOf) and Subsumes are defined in ICodeValidationTerminologyService. It is just operations like Closure and Expand which are not in this interface.

@Kasdejong Kasdejong requested a review from ewoutkramer October 22, 2024 09:08
# Conflicts:
#	src/Hl7.Fhir.Base/CompatibilitySuppressions.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change This issue/commit causes a breaking change, and requires a major version upgrade

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants