Skip to content

Implementing full encoding and decoding support for References#1786

Merged
johngrimes merged 7 commits intomainfrom
issue/1784
May 21, 2024
Merged

Implementing full encoding and decoding support for References#1786
johngrimes merged 7 commits intomainfrom
issue/1784

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
@piotrszul piotrszul requested a review from johngrimes April 10, 2024 04:25
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?

@piotrszul piotrszul requested a review from johngrimes April 11, 2024 04:55
@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
@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