Access policy Hidden Elements: Hide 'display' but ...
# support
m
Is it possible to hide the display contents within a reference but not the reference itself as part of a Hidden Element? https://www.medplum.com/docs/access/access-policies#hidden-elements For my specific case, we wrote a GraphQL query to pull the data we need from the database. Administative users don't need access to PHI but do need Dashboard views. I use hidden elements on ServiceRequest to hide
subject
because subject.display has the Patient's name which is PHI. This breaks the GraphQL query because Subject is needed. How can I write the Hidden Element Access Policy to just hide subject.display? Is this possible?
r
HI @molecularlife , you should be able to use a
.
separated path to a specific value. For example :
"hidden" : ["subject.display"]
171 Views