[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Health] Record Rules
From: |
Cédric Krier |
Subject: |
Re: [Health] Record Rules |
Date: |
Fri, 27 May 2016 12:04:01 +0200 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
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/