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

resourceType is not a part of the ObjectModel, and cannot be used in FhirPath #143

Open
bdc-ehealth opened this issue Jun 9, 2023 · 2 comments

Comments

@bdc-ehealth
Copy link

See remarks by @brianpos on Zulip: https://chat.fhir.org/#narrow/stream/179167-hapi/topic/resourceType.20and.20fhirpath

@plynchnlm
Copy link
Collaborator

It is not part of the FHIR object model, but FHIRPath is more general that just FHIR; there could be cases where "resourceType" is valid. In general, fhirpath.js does not limit you to paths known from the object model. That would require extra checking which would make it slower. That being said, I admit it is tempting to use the resourceType field which everyone can see in the JSON of a FHIR resource. Perhaps we should output a warning in that case if a FHIR model is supplied.

@bdc-ehealth
Copy link
Author

Anything diminishing the variability between implementations is welcome...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants