|
From: | Khurram Shahzad |
Subject: | Re: [Health] Record Rules |
Date: | Fri, 27 May 2016 18:49:51 +0500 |
On 2016-05-27 14:54, Khurram Shahzad wrote:
> Dear All,
>
> I am trying to add record rules but failing with flying colours.
>
> We want that "A Doctor should be able to see ONLY those appointments which
> have been entered as that doctor being the health professional.
>
> I created a record rule with model "Patient Appointments" with "read"
> access. Now when I create a new Test under domain and try to save the rule,
> an error message "Invalid domain in rule "70" " is displayed and the record
> rule is not saved.
>
> Snapshot is attached.
>
> Can anybody please guide me on what is being done wrong by me?
Domain must be a PYSON statement (JSON), so it should be something like:
[["healthprof.id", "=", 10]]
--
Cédric Krier - B2CK SPRL
Email/Jabber: address@hidden
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/
[Prev in Thread] | Current Thread | [Next in Thread] |