Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed type of FhirEvalContext.TerminologyService #2909

Merged
merged 5 commits into from
Oct 22, 2024

Conversation

Kasdejong
Copy link
Contributor

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
@@ -69,7 +69,7 @@ public FhirEvaluationContext(ScopedNode node)
/// </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
Contributor 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
Contributor 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
@ewoutkramer ewoutkramer enabled auto-merge October 22, 2024 14:39
@ewoutkramer ewoutkramer merged commit 5e16472 into develop-6.0 Oct 22, 2024
16 checks passed
@ewoutkramer ewoutkramer deleted the feature/change-terminology-service-type branch October 22, 2024 15:15
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.

3 participants