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

[FhirPath] Add memberOf() function. #1630

Closed
ewoutkramer opened this issue Feb 16, 2021 · 5 comments
Closed

[FhirPath] Add memberOf() function. #1630

ewoutkramer opened this issue Feb 16, 2021 · 5 comments

Comments

@ewoutkramer
Copy link
Member

Is your feature request related to a problem? Please describe.
The us core profiles (e.g. http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition) contain invariants using the memberOf() function (an extension on the standard FhirPath functions, see here https://hl7.org/fhir/fhirpath.html#functions),

Describe the solution you'd like
We should implement these additional functions, as much as possible, to make sure the .NET library is useable with these profiles.

@ewoutkramer
Copy link
Member Author

We have a "we don't support this function" quickfix now as a PR: FirelyTeam/firely-net-common#105

@marcovisserFurore
Copy link
Member

Discussed in the standup today:

  • The EvaluationContext of FhirPath should be extended with a ITerminologyService.
  • The function memberOf() should then take the valueset (argument of memberOf) and check whether the input is a valid code in the valueset (ITerminologyService.ValueSetValidateCode()) or not.

@cheng13231
Copy link

I noticed that memberOf() function is used in CARIN profiles as well. For example, it is used in following constraints:

@marcovisserFurore
Copy link
Member

See also #2404

@marcovisserFurore marcovisserFurore added this to the FhirPath functions milestone Mar 30, 2023
@marcovisserFurore
Copy link
Member

Resolved by PR #2450

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

3 participants