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

Implementing full encoding and decoding support for References #1786

Merged
merged 7 commits into from
May 21, 2024

Conversation

piotrszul
Copy link
Collaborator

Resolves #1784

…ncludes the 'identifier' fields with 0 level nesting ('assigner' removed from Identifiers used in references).
@piotrszul piotrszul self-assigned this Apr 10, 2024
@johngrimes johngrimes added new feature New feature or request breaking change Introduces a change in expectations within one or more public interfaces labels Apr 10, 2024
Copy link
Member

@johngrimes johngrimes left a comment

Choose a reason for hiding this comment

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

I don't seem to be able to traverse into identifier within a Reference within the context of a FHIRPath query, even though this field has been encoded in the schema.

data.extract("Condition", ["id", "subject.identifier.value"])

Would you mind giving this a go and seeing if you can reproduce?

@johngrimes
Copy link
Member

This is the error that occurs if you try to traverse to assigner within an Identifier within a Reference:

pyspark.errors.exceptions.captured.AnalysisException: [FIELD_NOT_FOUND] No such struct field `assigner` in `id`, `use`, `type`, `system`, `value`, `period`, `_fid`.

I think this is fine for now.

Copy link
Member

@johngrimes johngrimes left a comment

Choose a reason for hiding this comment

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

Thanks @piotrszul! The traversal problem is now fixed for me.

I've added a few further items of feedback.

@piotrszul piotrszul added this to the v7.0.0 milestone May 13, 2024
@johngrimes johngrimes merged commit 9c38295 into main May 21, 2024
20 checks passed
@johngrimes johngrimes deleted the issue/1784 branch May 21, 2024 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change Introduces a change in expectations within one or more public interfaces new feature New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Reference.identifier is not encoded
2 participants