|
From: | Edgar Hagenbichler |
Subject: | Re: [Health] Restricting doctors access to patient history |
Date: | Tue, 1 Sep 2020 11:29:24 +0200 |
User-agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 |
Hello Humberto,
There could be different levels of doctors, e.g. intern, senior physician, medical head of department, medical head of hospital and so on who could have different access privileges to patient evaluations then. One has to create at Administration/User a new Group, I guess. And then probably you have to finetune at Administration/Models/Fields and /Record Rules (maybe similar to Calendar(?)).Yeah, that was my first thought, and no matter how I tweak the Administration/Models/Fields and /Record Rules, I cannot set the restriction I am looking for :SWhat do you mean when you say: (maybe similar to Calendar(?))
At Administration/Models/Record Rules/Calendar (the second one in
the federation demo-database with only read privileges)
there is a rule
"[[""owner"", ""="", {""__class__"": ""Get"", ""v"":
{""__class__"": ""Eval"", ""v"": ""user"", ""d"": {}}, ""k"":
""id"", ""d"": -1}]]"
"[[""read_users"", ""="", {""__class__"": ""Get"", ""v"":
{""__class__"": ""Eval"", ""v"": ""user"", ""d"": {}}, ""k"":
""id"", ""d"": -1}]]"
Since I am no programmer I do not know what this means, but as I
guess the calendar should be for each doctor with "his own"
patients.
Yes indeed. It’s the least I can do ;)Unfortunately I do not know either, I would be interested in the solution too. Could you please share it if you find a way?
Right now, I experimenting with group configuration, setting rules on the patient evaluation records with the following domain:[['healthprof', '=', Get(Eval('user', {}), 'healthprof', None)]]
Any thoughts?
see above, it looks somehow similar for me
All the best
Edgar
[Prev in Thread] | Current Thread | [Next in Thread] |