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

Mask hidden resource fields with data absent extension #2444

Open
mattwiller opened this issue Jul 12, 2023 · 0 comments
Open

Mask hidden resource fields with data absent extension #2444

mattwiller opened this issue Jul 12, 2023 · 0 comments
Labels
fhir-datastore Related to the FHIR datastore, includes API and FHIR operations

Comments

@mattwiller
Copy link
Member

mattwiller commented Jul 12, 2023

Currently, hidden fields are simply stripped from resources when the resources are rendered into an API response. This is potentially confusing, and we could instead insert the Data Absent Reason extension with code masked to clearly indicate that the field is not being shown due to the user's access policy. To prevent information leakage, the extension should generally always be set as the value of that field when rendering the response, regardless of whether that field originally had a value. For nested fields, any intermediate nested objects should not be created to place the extension into if not already present — in this case it's acceptable to leave the entire absent parent field blank in the rendered resource JSON.

@mattwiller mattwiller added the fhir-datastore Related to the FHIR datastore, includes API and FHIR operations label Jul 12, 2023
@rahul1 rahul1 added this to the Milestone Quality milestone Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fhir-datastore Related to the FHIR datastore, includes API and FHIR operations
Projects
Status: No status
Development

No branches or pull requests

2 participants