health
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Health] Record Rules


From: Khurram Shahzad
Subject: Re: [Health] Record Rules
Date: Mon, 30 May 2016 09:01:02 +0500

Dear Cedric,

Thanks a lot. I worked like a magic.

Can I further bother you by asking how can I refine this rule so that instead of hard-coding the id of the health professional, it picks the id of currently logged in user, finds the corresponding Party and then the Health Professional for the condition?

Thanking you in anticipation.

On Fri, May 27, 2016 at 3:04 PM, Cédric Krier <address@hidden> wrote:
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/




--
 
Regards,
Khurram.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]