Thank you for great job. @phil, I have downloaded update and faced immediately problem:
my program rules, which marked to run inside program stages, are not working . This is what I have now.
Hey @Ulanbek !
It seems you found a bug that might be triggered on some program rules with ASSIGN actions attached. I reproduced it and created a jira here; [DHIS2-11403] - Jira
There is a possible workaround described in the issue. Please add to the issue if you have another way of reproducing than I described, and please test wether the workaround will work for you as well.
Markus here is the my original expression: d2:concatenate(β20β,A{Last two numbers of the clients year of birth},β-β,d2:left(A{Month of birth},2),β-β,A{Day of birth})
and another one: #{Client case number --previous-event} + 1
I have tried many different ways, including:
d2:concatenate(β20β,ββ,A{Last two numbers of the clients year of birth},β-β,d2:left(d2:concatenate(ββ,A{Month of birth}),2),β-β,d2:concatenate(ββ,A{Day of birth}))
By the JS logic d2:concatenate(ββ,#{Client case number --previous-event}) + 1 will be equal β1β+β1β=β11β not β2β. So how we will fix this one?
The same result. Any suggestions?
Additionally all my programStage PRs are collapsed and not working
Hey @Ulanbek , thanks for getting back so quickly.
Just to be clear, the expressions you paste above is assignment expressions that will be evaluated and assigned to another program rule variable?
Can you try; d2:concatenate(ββ,β20β,A{Last two numbers of the clients year of birth},β-β,d2:left(A{Month of birth},2),β-β,A{Day of birth})
and d2:concatenate(ββ,(#{Client case number --previous-event} + 1))
Additionally all my programStage PRs are collapsed and not working
Can you provide a little more detail on this? I assume you mean program rules that is assigned to run in one specific program stage? It would also be great with some more details on what you mean by βcollapsedβ - do you see them executing but failing? Does it look like they are not executed at all?
d2:concatenate(ββ,β20β,A{Last two numbers of the clients year of birth},β-β,d2:left(A{Month of birth},2),β-β,A{Day of birth}) this one as well doesnβt workβ¦
By the βcollapsedβ I meant entire PRs are crushed as soon as the PR engine pass any ASSIGN PRactions. So from that point the PR-engine completely stop to work. Everything, which were hidden stay unhidden, no PRs are working at all.
So it seems you need set the priority higher on JIRA and fix the issue ASAP.