Re: [Dhis2-users] Restricting Org Units In Tracker Org Unit Data Element

2018-11-28 Thread Markus Bekken
Hey Pierre - no not presently. The org unit data element shows all org units that the user can see(I.E. the "Search" org units). Please feel free to add a jira ticket and describe your use case. Markus Want to tip you about the great community.dhis2.org website -

Re: [Dhis2-users] Tracker capture: Complete button performance decreased since 2.30

2018-11-27 Thread Markus Bekken
from > our last build. Let me update our version to the latest build and see how is > it going. > > Yours, > > Eric > > > El lun., 26 nov. 2018 a las 21:40, Markus Bekken ( <mailto:mar...@dhis2.org>>) escribió: > Hi there Eric! > Is your 2.30 build mo

Re: [Dhis2-users] Tracker capture: Complete button performance decreased since 2.30

2018-11-26 Thread Markus Bekken
Hi there Eric! Is your 2.30 build more than 14 days old? We did some tracker client performance fixes on nov 14 and nov 16. Markus > 26. nov. 2018 kl. 18:05 skrev Eric Barreda Prades : > > Dear users, > > Since we have upgraded our system to version 2.30 we have observed that after >

Re: [Dhis2-users] [Dhis2-devs] Data set not showing from user end

2018-11-26 Thread Markus Bekken
Hi there Mahbubul, In 2.29 and later, you have to also share the data set with the user groups that should have access to the data set - giving them the "Data: Can capture data" access level. If you haven't already, take a look at this:

Re: [Dhis2-users] [Dhis2-devs] Relationships - relationship link not showing on TE #2

2018-11-14 Thread Markus Bekken
es Control (GARC) > Pan-African Rabies Control Network (PARACON) Steering Committee > terence.sc...@rabiesalliance.org <mailto:terence.sc...@rabiesalliance.org> > https://paracon.rabiesalliance.org <https://paracon.rabiesalliance.org/> > Skype: tpscott1987 > >

Re: [Dhis2-users] File Uploads Tracked Entity Attributes

2018-11-14 Thread Markus Bekken
Hey there Ranvir! Are you trying to retrieve the file from the API/directly from the backend? Or does the user log in, open the tracker and try downloading the file from within the tracker app? Markus P.S. we are moving these topics to the community.dhis2.org -

Re: [Dhis2-users] [Dhis2-devs] Relationships - relationship link not showing on TE #2

2018-11-14 Thread Markus Bekken
Hey Terence, you mention programs are you making relations from one enrollment to another? How is your relationship type set up? The only relationship type that is supported in the tracker clients is tracked entity instance to tracked entity instance. The rich possibilities in the new

Re: [Dhis2-users] Request

2018-11-02 Thread Markus Bekken
Hi there Pradeep, can you give some more details on the indicator you want to make, and how you want to evaluate the date? Its great if you provide the details in a new post in community.dhis2.org Markus > 2. nov. 2018 kl. 14:12 skrev Pradeep Kumar Thakur : > >

Re: [Dhis2-users] [Dhis2-devs] 404 response from the API when using Event Capture

2018-11-02 Thread Markus Bekken
Hey Carlos and Kevin, The eventCaptureGridColumns call is likely not the problem - this error is just a bit of log noise that comes in the console for everyone that has never rearranged the columns in the event capture. Have you tried clearing the cache with the cache cleaner app? Is there any

Re: [Dhis2-users] Help needed: Checking a string with single quote in program rule...

2018-10-31 Thread Markus Bekken
Hey MSP - escaping single quotes is not supported as of now, it would be great if you create a feature request for it. As Terence says, there might be workarounds - one suggested below. If "don't know" is one of the options in an option set, I am guessing that there is a code for this option

Re: [Dhis2-users] Future Dates Not Allowed in Tracker Sections

2018-10-17 Thread Markus Bekken
Hey there, can you try to reproduce on the play.dhis2.org server? Which server are you running on? > 17. okt. 2018 kl. 12:10 skrev Walusiku Muyunda >: > > Dear All, > > I have an issue in one of our Tracker programs where a date field in a

Re: [Dhis2-users] Tracker Referral Behaviour

2018-10-04 Thread Markus Bekken
Hei there Nick, thank you for bringing it up. We had it identified an reported in Jira, and we are working on a solution for it in the current development Milestone for Tracker: https://jira.dhis2.org/browse/DHIS2-4587 Best regards, Markus > 4. okt. 2018 kl. 06:46 skrev Shurajit Dutta : > >

[Dhis2-users] Require validation of event data

2018-10-02 Thread Markus Bekken
Dear community, We are working on proper back-end validation of required fields for events, as part of Jira issue: https://jira.dhis2.org/browse/DHIS2-4433 In this effort we are replacing a flag that is set in the program stage metadata called "Complete only if validation passes". We are

Re: [Dhis2-users] Tracker Program Stages order

2018-09-13 Thread Markus Bekken
? Markus > 13. sep. 2018 kl. 15:56 skrev Walusiku Muyunda : > > > > On Thu, Sep 13, 2018 at 3:42 PM Markus Bekken <mailto:mar...@dhis2.org>> wrote: > The timeline data entry (should)use the dates of the event for sorting of the > individual events. The tabular entry

Re: [Dhis2-users] Tracker Program Stages order

2018-09-13 Thread Markus Bekken
but that too does not seem to be of any effect In > Data Entry timeline. When I remove the Data entry timeline and use the > Tabular Data Entry, they come in the correct order. > > Walusiku J. Muyunda > > > On Thu, Sep 13, 2018 at 10:07 AM Markus Bekken <mailto:mar...@d

Re: [Dhis2-users] Tracker Program Stages order

2018-09-13 Thread Markus Bekken
Hi there Walusiku, I presume you have ordered the program stages in the maintenance app, in the "4. Program stages" step of the Program wizard. Can you provide some details on where is the ordering appears differently than in the maintenance app? Can you also submit the deftails of the DHIS2

Re: [Dhis2-users] [Dhis2-devs] Event Sync Error From Dhis2 Mobile App V2.29

2018-08-24 Thread Markus Bekken
Hey Calle, Sourabh, others. Thanks for reporting, we are looking at this on priority. You can follow the progress in Jira here: https://jira.dhis2.org/browse/DHIS2-4480 > 24. aug. 2018 kl. 11:12 skrev Calle Hedberg >:

Re: [Dhis2-users] [Dhis2-devs] HOW TO DOWNLOAD TEI'S FROM 2.29 TRACKER CAPTURE

2018-08-22 Thread Markus Bekken
ansen > Senior Engineer, DHIS 2 > Team Integration Lead > University of Oslo > http://www.dhis2.org > <http://www.dhis2.org/> > > On Wed, Aug 22, 2018 at 2:13 PM Markus Bekken <mailto:markus.bek...@gmail.com>> wrote: > Hey again! > Can you s

Re: [Dhis2-users] [Dhis2-devs] HOW TO DOWNLOAD TEI'S FROM 2.29 TRACKER CAPTURE

2018-08-22 Thread Markus Bekken
keep getting this error > What could be the problem.I am using version 2.29 > HTTP Status 404 - /2.29/api/29/trackedEntityInstances/query.csv > > > On Thu, Jul 5, 2018 at 9:32 AM Markus Bekken <mailto:mar...@dhis2.org>> wrote: > Hey Stanley, > thanks for the feedbac

Re: [Dhis2-users] Program rule Assign

2018-07-23 Thread Markus Bekken
Hey Riddy - program rules use the values true and false for yes/no data elements. Try assigning true instead of 1. The display format indicates that the field is read only. Any assigned field is shown as a read only field by the data entry widget. Markus > 23. jul. 2018 kl. 05:21 skrev

Re: [Dhis2-users] [Dhis2-devs] Error while adding Relationship in tracker capture v27

2018-07-17 Thread Markus Bekken
Hey Wasib, please report a Jira bug on this. Markus > 17. jul. 2018 kl. 12:38 skrev Wasib Tariq >: > > Hi All, > > I am trying to add a relationship in tracker capture v27 while saving it > throws an error. I've attached the screenshot of the error. > > I've

Re: [Dhis2-users] [Dhis2-devs] HOW TO DOWNLOAD TEI'S FROM 2.29 TRACKER CAPTURE

2018-07-05 Thread Markus Bekken
would simply List All and download the list of TEI's. > > If there is a way i can do that,then thats fine. > > Thank you > > Stanley > > On Thu, Jul 5, 2018 at 9:06 AM Markus Bekken <mailto:mar...@dhis2.org>> wrote: > Hey Stanley, > You are right - the "Lis

Re: [Dhis2-users] [Dhis2-devs] HOW TO DOWNLOAD TEI'S FROM 2.29 TRACKER CAPTURE

2018-07-05 Thread Markus Bekken
Hey Stanley, You are right - the "List all" button is no longer there in the reworked UI of 2.29. We are actively working on making the Tracker data more secure, and the use case for the list all function was perhaps not understood properly by us when we designed 2.29. Can you let us know a bit

Re: [Dhis2-users] Change enrollment date in tracker

2018-04-20 Thread Markus Bekken
Hi Thierry, this is not currently possible - but we have this jira for allowing it: https://jira.dhis2.org/browse/DHIS2-1720 Feel free to vote and add details from your use case to the issue. Markus > 19. apr.

Re: [Dhis2-users] data level sharing and access control in 2.29

2018-04-16 Thread Markus Bekken
Hi there! To capture data for a given organization unit in the tree a user will need to have access to capture data for the organization or a parent, and you would also need Can capture data authority for the program, program stage or data set. The new data sharing levels work much the same as

Re: [Dhis2-users] Cohort and referrals

2018-04-16 Thread Markus Bekken
Hi there Sakibou! You are correct. When permanently referring a patient, this will update the enrolling orgunit of the current enrollment. Each enrollment can only be counted in one orgunit, and your enrollment program indicator would now consider this enrollment part of facility B. There is

Re: [Dhis2-users] Program indicator expressions

2018-04-13 Thread Markus Bekken
y > "false". like below: > > > > > On Thu, Apr 12, 2018 at 5:34 PM, Markus Bekken <mar...@dhis2.org > <mailto:mar...@dhis2.org>> wrote: > the below expression should work, yes :) > > >> 12. apr. 2018 kl. 11:13 skrev Jane Greig <jane.gr...@

Re: [Dhis2-users] Program indicator expressions

2018-04-12 Thread Markus Bekken
work?: > d2:condition('#{qaDVwQUHD0j.g4bPEQ4a7WM} == 2 ',1,0) + > d2:condition('#{qaDVwQUHD0j.FFpJ2FZU7rJ} == 2 ',1,0) + > d2:condition('#{qaDVwQUHD0j.dLKjtfo7GD3} == 2 ',1,0) > >   <> > From: Markus Bekken [mailto:mar...@dhis2.org] > Sent: 12 April 2018 19:09 > To: Jane

Re: [Dhis2-users] Program indicator expressions

2018-04-12 Thread Markus Bekken
icators to combine them. We were trying to avoid that! > Thanks > Jane > >   <> > From: Markus Bekken [mailto:mar...@dhis2.org] > Sent: 12 April 2018 19:02 > To: Jane Greig <jane.gr...@london.msf.org> > Cc: dhis2-users@lists.launchpad.net > Subject: Re:

Re: [Dhis2-users] Program indicator expressions

2018-04-12 Thread Markus Bekken
Hi there Jane! The problem with the below condition is that we are using single quotes inside a single quoted statement. This is not supported at the moment. Not really knowing enough about the use case, I venture into suggeting a possible workaround: If you are able to use the condition below

Re: [Dhis2-users] Using age-type attributes in program indicator calculations

2018-04-03 Thread Markus Bekken
a.dhis2.org/browse/DHIS2-1309?jql=text%20~%20%22Age%22> > > > Issue Navigator - DHIS 2 JIRA > <https://jira.dhis2.org/browse/DHIS2-1309?jql=text%20~%20%22Age%22> > > > Regards > > Sele > On Tuesday, April 3, 2018, 9:30:31 AM GMT+3, Markus Bekken <mar...@dhis

Re: [Dhis2-users] Using age-type attributes in program indicator calculations

2018-04-03 Thread Markus Bekken
Nayeem, thanks for the workaround. Nick, the proposed usage should have worked. Age should be treated as a normal date data type in the program indicators. Can you create a bug in jira? Markus > 3. apr. 2018 kl. 03:41 skrev Nayeem Al Mifthah : > > Hi Nick > I have also

Re: [Dhis2-users] [Dhis2-devs] how about the performance for dhis2 tracker to manage large number of entity data?

2018-03-19 Thread Markus Bekken
Hi Lin! There is a few tracker implementations in this size range. These numbers of tracked entity instances should not be a problem in itself, but requires a well-maintained database and application server. Generally, newer versions of DHIS2 will perform stronger than older versions. In 2.30

Re: [Dhis2-users] Insight on program indicator and rule

2018-03-15 Thread Markus Bekken
Hi there Natalie! Your program indicator looks all good. Can it be that the aggregation type is not "Count"? If your expression is a count, then the aggregation type needs to be "Count" or "Custom" for advanced cases. Tip: There is also a d2:yearsBetween function. For the program rule, I

Re: [Dhis2-users] [Dhis2-devs] ACCESS TO DATA FROM MULTIPLE STAGES IN EVENT REPORTS

2018-03-10 Thread Markus Bekken
Hi Stanley, this is currently not possible. It is however something that is being requested, and we have created these epics to capture the functional area: - https://jira.dhis2.org/browse/DHIS2-3140 - https://jira.dhis2.org/browse/DHIS2-2106 Can you please have a look at the epics and possibly

Re: [Dhis2-users] [Dhis2-devs] 2.29 upgrade script error

2018-03-09 Thread Markus Bekken
g <https://www.pu-ami.org/> > > > From: Dhis2-users > [mailto:dhis2-users-bounces+lib.ima=pu-ami@lists.launchpad.net > <mailto:dhis2-users-bounces+lib.ima=pu-ami@lists.launchpad.net>] On > Behalf Of Bernard Sadaka (IM Advisor) > Sent: Friday, M

Re: [Dhis2-users] [Dhis2-devs] 2.29 upgrade script error

2018-03-09 Thread Markus Bekken
ms > dco...@baosystems.com <mailto:dco...@baosystems.com> | > http://www.baosystems.com <http://www.baosystems.com/> | 2900 K Street, > Suite 406, Washington D.C. 20007 > >> On Mar 9, 2018, at 7:31 AM, Markus Bekken <mar...@dhis2.org >> <mailto:mar.

Re: [Dhis2-users] [Dhis2-devs] 2.29 upgrade script error

2018-03-09 Thread Markus Bekken
Hi there Bernard, that was strange - your 2.28 database should have contained the table userroleprogram. Assuming you are running 2.28, can you try running this query on your command line? \dt userrole* Expecting that one of the lines output is: public | userroleprogram | table | dhis

Re: [Dhis2-users] Event - report : Range set for program indicator 2.28

2018-03-08 Thread Markus Bekken
Hi Hakim! Legends is not available in the event reports for program indicators at the moment. Please consider creating a Jira issue asking for this functionality. Best Markus > 8. mar. 2018 kl. 08:56 skrev DJIBRIL Hakim : > > Hi all, > Please Does Range set is applicable

Re: [Dhis2-users] [Dhis2-devs] how to refer patient from one site to another in DHIS2 tracker

2018-03-02 Thread Markus Bekken
Hi there Hakim, There is currently no way of doing analytics on the referral itself. To achieve this in the current solution you would have to capture some data relevant to the transfer. One strategy can be to have a separate "Transfer" program stage that is used for the purpose of moving a

Re: [Dhis2-users] [Dhis2-devs] Data Entry Error about Category Combination

2018-02-26 Thread Markus Bekken
Hey there, did you backup and restore the entire database, or did you do a metadata export and import? If you exported and imported, how did you do the export? Markus > 26. feb. 2018 kl. 17:04 skrev gerald thomas : > > Dear All, > i did a backup and i restored the

Re: [Dhis2-users] HOW TO CREATE PROGRAM INDICATOR IN DHIS2 2.27 TO 2.28

2018-02-20 Thread Markus Bekken
Hi there Stanley, the program indicators is now located in the maintenance app. The program indicator section of the maintenance app contains the same fields as the old app did, but the fields are spread out on three pages that is navigated like a wizard. Markus > 20. feb. 2018 kl. 17:31

Re: [Dhis2-users] [Dhis2-devs] Program Indicator using data from multiple event stages to find TEA

2018-02-14 Thread Markus Bekken
Hi Martin, to my knowledge the parenthesis work in general, with the exception of passing parenthesis into the d2:condition() function: DHIS2-2813 You would be able to write parenthesis in program indicators expressions and filters. What is not

Re: [Dhis2-users] using parenthesis d2:condition

2018-02-12 Thread Markus Bekken
Hi Victor, the below expression contains parenthesis, and will not work in program indicators: https://jira.dhis2.org/browse/DHIS2-2813 Can I suggest to write the below indicator as: - aggregate type: COUNT - expression: V{event_count} - filter:

Re: [Dhis2-users] [Dhis2-devs] Using program rule expressions in Program indicator expressions

2018-02-09 Thread Markus Bekken
sor > Première Urgence - Aide Médicale Internationale > Nehmeh Building, Sanine Street, Chiyah, 3rd Floor > Ain el Remmaneh, Beirut, Lebanon > E-mail: lib@pu-ami.org <mailto:lib@pu-ami.org> > Cell: +961 71 004 881 (208) > Skype: imapuami > Website: https://

Re: [Dhis2-users] how to use condition

2018-02-09 Thread Markus Bekken
Hi there Victor! Can you please supply the expression that you are using when you get the message you mentioned? Markus > 8. feb. 2018 kl. 14:21 skrev Victor Tabu : > > Hello Team, > > Could you tell me if I can use logic function like and,or in >

Re: [Dhis2-users] Problem with the d2:condition function in program operator

2018-02-07 Thread Markus Bekken
gt; to add this to the doc - if the doc is on GitHub I'll gladly submit a PR. > > Martin > > On Wed, Feb 7, 2018 at 9:05 AM, Markus Bekken <mar...@dhis2.org > <mailto:mar...@dhis2.org>> wrote: > Hi Martin, > I think it is the parenthesis within the con

Re: [Dhis2-users] Problem with the d2:condition function in program operator

2018-02-07 Thread Markus Bekken
Hi Martin, I think it is the parenthesis within the condition that breaks the evaluation. When I would always argue for adding the parenthesis for the clarity of reading the expression, I think you are in luck here - if you remove all the parenthesis your numerical operators will be applied in

Re: [Dhis2-users] [Dhis2-devs] Using program rule expressions in Program indicator expressions

2018-02-07 Thread Markus Bekken
Hi there Bernard, We aim to support more and hopefully all the program rule functions in program indicators. Unfortunately we are not there yet, and the list of supported functions in program indicators can be found here: 19.4.5. Reference information: Functions, variables and operators to use

Re: [Dhis2-users] Program Rule Expression Executing Before being Called

2018-01-12 Thread Markus Bekken
Hi there Oladiran! I assume that the score is assigned client side to a "score" field, thus making it visible to the person entering the data. It sounds like you have used d2:hasValue('#{optionDataElementName}') to ensure that the assignment should not happen until the #{optionDataElementName}

Re: [Dhis2-users] using report date in the program rule

2018-01-05 Thread Markus Bekken
Hi Nada, there is a variable that you can use to get the orgunit code in program rules, but not the orgunit name. The variable is addressed with V{orgunit_code}. For tracker programs this will be the enrolling orgunit, while for single event programs this will be the event orgunit. See table

Re: [Dhis2-users] Issue with program indicators

2017-11-30 Thread Markus Bekken
Hi there Thierry, the indicator as you describe it below would count every enrollment that happened within the reporting period. The same indicator works on the WHO RMNCH Demo. What is your version? Can you test it with several reporting periods, including a period where no enrollments

Re: [Dhis2-users] how to delete org?

2017-11-27 Thread Markus Bekken
There is some SQL resources to delete orgunits here: https://github.com/dhis2/dhis2-utils/tree/master/resources/sql > 27. nov. 2017 kl. 09.01 skrev Nayeem Al Mifthah : > > You may delete from database after deleting constrains. > > Nayeem Al Mifthah > Consultant for HSS,

Re: [Dhis2-users] [WISCENTDs] Program indicators

2017-11-14 Thread Markus Bekken
Hi Lise! 1. You are right. It turned out there is a small problem with the expression validator, but the program indicator should still work. A fix is checked in for the , please let me know if the indicator does not work. 2. If you are on 2.27 or later you can use program rules instead. There

Re: [Dhis2-users] [WISCENTDs] User role > Authorities

2017-11-09 Thread Markus Bekken
To add to this, in the tracker space we are currently working on an epic to improve the authorization model for programs: DHIS2-2105 We work to replace the many user authorities that govern the tracker with a model where each program is shared with

Re: [Dhis2-users] Generate scores using program rules, tracker capture web app

2017-11-05 Thread Markus Bekken
for the help. > > -Siva > >> On Fri, Nov 3, 2017 at 9:49 AM, Markus Bekken <mar...@dhis2.org> wrote: >> Hi there Siva, >> An important principle for the assign rules is that they should produce the >> same result every time if the input is unchanged. >

Re: [Dhis2-users] Generate scores using program rules, tracker capture web app

2017-11-03 Thread Markus Bekken
Hi there Siva, An important principle for the assign rules is that they should produce the same result every time if the input is unchanged. Here is a suggested approach to acheive this. It will require that you create a programRuleVariable for each data element that is going to be scored, and

Re: [Dhis2-users] Patterns for unique tracked entity attributes

2017-11-01 Thread Markus Bekken
Hi there Nick! Currently only integers is supported, and the pattern signifies how many digits to use in the pattern. We have this Jira planned for 2.29: https://jira.dhis2.org/browse/DHIS2-434 Markus > 1. nov. 2017 kl. 12.30 skrev Shurajit Dutta : > > Hi, > > Could

Re: [Dhis2-users] [Dhis2-devs] Program rule to hide Tracked entity attribute field show a warning in console

2017-10-16 Thread Markus Bekken
Hi there Rady, Nicely spotted. Which version of DHIS are you running? This message is noise from a runtime validation that is a bit too strict, and can be disregarded for the purposes of the users. Log noise is still important to clean up, so it would be great if you can submit a Jira with the

Re: [Dhis2-users] [Dhis2-devs] Save TEI Dashboard as Default not working

2017-09-14 Thread Markus Bekken
Hey! Only users that does not have their own dashboard saved will see the default layout. Most changes a user does to her own dashboard will cause such a user-specific dashboard to be saved. We have created a Jira that will mitigate this problem by allowing the administrator to override the

Re: [Dhis2-users] [Dhis2-devs] Disabling Complete for Some Users

2017-09-14 Thread Markus Bekken
Hi! The complete enrollment button is disabled if: - The orgunit is closed - The current tracked entity instance is inactive - The current enrollment is active The only thing that will hide the complete enrollment button is if the current enrollment has status cancelled. Markus > 14. sep. 2017

Re: [Dhis2-users] [Dhis2-devs] Switch enrolling organisation unit

2017-08-29 Thread Markus Bekken
> I've been trying to use the referral feature on 2.27 but it seems not to be > there See attached Screen Shot. > Is there any setting I need to enable to make it available? > > Your usual prompt response'll be appreciated. > > Regards > > On Mon, Aug 28, 201

Re: [Dhis2-users] [Dhis2-devs] Showing Identifiers in Relationship box

2017-08-29 Thread Markus Bekken
ike three attributes to display without program but I can > only see one. > > > > Thank you and Kind Regards > Immarcqulate. A (Emma Kassy) > > "You miss 100% of the shots you don't take." > > On Mon, Aug 28, 2017 at 12:06 PM, Markus Bekken <mark

Re: [Dhis2-users] Switch enrolling organisation unit

2017-08-28 Thread Markus Bekken
: > > Hi, > > It’s available only in Timeline data entry and we are using Tabular data > entry (for a good reason). > Can the Referral button be added to the Tabular data entry as well? > > Georgi > > From: Markus Bekken [mailto:mar...@dhis2.org] > Sent: Monday, Aug

Re: [Dhis2-users] Switch enrolling organisation unit

2017-08-28 Thread Markus Bekken
Hi :) Assuming this is on 2.27 - you could open these records in Tracker Capture and use the "Referral" functionality. The button for referral is located below the schedule event button. Select the correct organization unit to move the enrollment to, and select "Move permanently" in the

Re: [Dhis2-users] Assign value to a tracked entity attribute with an option set

2017-08-28 Thread Markus Bekken
> On another note, “Yes only” data elements work with both “1” and “true” in > expressions. > > Thanks for your input! > > Georgi > > From: Markus Bekken [mailto:mar...@dhis2.org] > Sent: Monday, August 28, 2017 11:05 AM > To: Georgi Chakarov <geo...@logicalout

Re: [Dhis2-users] [Dhis2-devs] Showing Identifiers in Relationship box

2017-08-28 Thread Markus Bekken
Sorry, I misunderstood your original question. To display an attribute in the relationship table, you have to open the tracked entity attribute and select the "display in list without program" option. Markus > 27. aug. 2017 kl. 08.48 skrev Immaculate Ayebazibwe : > > Hi

Re: [Dhis2-users] HELP with program indicator/report

2017-08-28 Thread Markus Bekken
Hi there Georgi, We do not have a function that does exactly what you asked for, but hopefully we can find a way if we examine the data elements in your stages. Do the stages have a data element that is mandatory, or at least so pivotal that you can sue that data element to determine wether the

Re: [Dhis2-users] [Dhis2-devs] Showing Identifiers in Relationship box

2017-08-28 Thread Markus Bekken
. A (Emma Kassy) > > "You miss 100% of the shots you don't take." > > On Mon, Aug 28, 2017 at 10:44 AM, Markus Bekken <markus.bek...@gmail.com > <mailto:markus.bek...@gmail.com>> wrote: > Hi Emma, > splitting the relationship into tables(one for each pr

Re: [Dhis2-users] Assign value to a tracked entity attribute with an option set

2017-08-28 Thread Markus Bekken
Hi there Gorgi! You mention a "Yes only" data element, but did you mean a "Yes only" tracked entity attribute? Meaning, is the checkbox and the dropdown both located inside same registration/profile form? If they are, you can make a rule in the way you describe below. The correct expression

Re: [Dhis2-users] [Dhis2-devs] Downloading Event Reports and Picot Tables

2017-08-28 Thread Markus Bekken
Hey there, seems like a feature you can request in Jira! Markus > 27. aug. 2017 kl. 09.20 skrev Immaculate Ayebazibwe : > > Hi All, > When I download event reports or program indicators in pivot tables under > Table Layout as Csv or Microsoft excel they have, the orgUnits

Re: [Dhis2-users] [Dhis2-devs] Showing Identifiers in Relationship box

2017-08-28 Thread Markus Bekken
Hi Emma, splitting the relationship into tables(one for each program) is a pretty new improvement. Have your local instance(assuming it is 2.27) been updated recently? Best regards, Markus > 27. aug. 2017 kl. 08.48 skrev Immaculate Ayebazibwe : > > Hi Everyone, > I am

Re: [Dhis2-users] Unable to Register TEI from the Relationship link

2017-08-11 Thread Markus Bekken
> <https://jira.dhis2.org/browse/DHIS2-1949> > > > > Thank you and Kind Regards > Immarcqulate. A (Emma Kassy) > > "You miss 100% of the shots you don't take." > > On Mon, Jul 24, 2017 at 12:18 PM, Markus Bekken <markus.bek...@gmail.com

Re: [Dhis2-users] d2: daysbetween AND d2:yearsbetween not working properly in 2.27 build revision b6e8cde

2017-08-10 Thread Markus Bekken
the program rule started working. > > Is there anything specific that needs to be taken into consideration when > working with Age value type? > > Regards, > > Georgi > > From: Markus Bekken [mailto:mar...@dhis2.org] > Sent: Wednesday, August 9, 2017 11:01 AM >

Re: [Dhis2-users] got error in tracker capture

2017-08-09 Thread Markus Bekken
s, > i have one attribute field use "unique" is ID attribute. > > thanks, > channara > > On Wed, Aug 9, 2017 at 3:29 PM, Markus Bekken <mar...@dhis2.org > <mailto:mar...@dhis2.org>> wrote: > Hi Channara! > Are you using the "unique in program&q

Re: [Dhis2-users] got error in tracker capture

2017-08-09 Thread Markus Bekken
Hi Channara! Are you using the "unique in program" scope for any of your tracked entity attributes? Best regards, Markus > 9. aug. 2017 kl. 10.27 skrev channara rin : > > Hi All, > when i open existing tracker and i update new value of attribute or change > value of

Re: [Dhis2-users] FW: d2: daysbetween AND d2:yearsbetween not working properly in 2.27 build revision b6e8cde

2017-08-09 Thread Markus Bekken
Hi there Georgi! The expression d2:yearsBetween(A{Date of Birth}, V{ enrollment _date}) <18 should be the correct one. I would change the V{ enrollment _date} to V{enrollment _date} Note that before the birth date is not entered, the expression will evaluate to 0 - which will be less than 18.

Re: [Dhis2-users] Help with a program rule

2017-08-08 Thread Markus Bekken
Hi there Georgi! Thanks for the feedback. It seems you got it almost right except for one little detail on the usage of the substring function. To get the fifth character you would have to change your expression to: d2:substring(A{Client ID}, 5, 6) == '2' There was an error in the doc, so a

Re: [Dhis2-users] how to design model or form to collect master-detail information?

2017-07-25 Thread Markus Bekken
Hi there Lin, One way of modeling the data you describe below can be: - In the programs app, make one program(with registration) and tracked entity attributes Name and Age. - In this program, add one repeatable program stage with data elements Name, Dose, Frequency. In the tracker data entry

Re: [Dhis2-users] program indicators - function

2017-07-25 Thread Markus Bekken
Dear Lise, unfortunately I can not think of any elegant way of achieving this within the current functionality of the program indicators. We could make a d2:max() function that would take in a list of data elements and return the highest value represented within the list of arguments. Can you

Re: [Dhis2-users] Unable to Register TEI from the Relationship link

2017-07-24 Thread Markus Bekken
e. > Please note I am testing on Demo instance. See image attached. > > > > Thank you and Kind Regards > Immarcqulate. A (Emma Kassy) > > "You miss 100% of the shots you don't take." > > On Thu, Jul 20, 2017 at 10:43 AM, Markus Bekken <markus.bek...@gma

Re: [Dhis2-users] Program rules - Hide program stages

2017-07-24 Thread Markus Bekken
Dear Lise, thanks for the feedback :) I think we might get this to work the way you want by an update of the rules. All the rules are executed on every stage. However, when the rules are using program rule variables that has source type "Data element in current event", then these variables

Re: [Dhis2-users] Finding the days between 2 events (different program stages) in the same program

2017-07-13 Thread Markus Bekken
Hi Nick! This is unfortunately not possible at the moment, but there is a Jira issue you can vote for here: https://jira.dhis2.org/browse/DHIS2-1397?jql=text%20~%20%22event%20dates%22 Best regards, Markus > 12. jul. 2017 kl. 11.24 skrev Shurajit Dutta : > > Hi there,

Re: [Dhis2-users] Bulk removing DEs and Orgunits

2017-07-12 Thread Markus Bekken
Hi there, Here is a sql function for deleting the whole or parts of your orgunit tree: https://github.com/dhis2/dhis2-utils/blob/master/resources/sql/delete_orgunittree_with_data.sql If you create this function, you can invoke it with select delete_orgunittree_with_data(''); Best regards,

Re: [Dhis2-users] [Dhis2-devs] Help needed: Show/hide previous DE entry based on a selection

2017-07-10 Thread Markus Bekken
Dear Jean, which version og DHIS are you using? On 2.27 you can do this with program rules. - The easiest way would be to make a rule that triggers a "Display text" or "Display key/value pair" to the user in case the user answers Yes on the designated data field. These texts can be shown in

Re: [Dhis2-users] [Dhis2-devs] UNABLE TO DOWNLOAD DATA FROM TRACKER CAPTURE STAGE

2017-06-20 Thread Markus Bekken
l.com > <mailto:skaly...@gmail.com>> wrote: > Thanks Markus for returning my mail.I am.using version 2.26 and my program > has 4 stages. > > I have not reproduced the problem on play > > Thanks > > Stanley > > On Jun 20, 2017 8:35 AM, "Markus Bekken&

Re: [Dhis2-users] Tracker DE data export

2017-06-20 Thread Markus Bekken
Hi there Georgi, In later versions of DHIS2 there is a selection for "ID Scheme" in the event export user interface. If you select "Code", the (possibly) readable codes of your orgUnits and data elements will be used instead of the UIDs. If you are on earlier versions, or if you want to do

Re: [Dhis2-users] [Dhis2-devs] UNABLE TO DOWNLOAD DATA FROM TRACKER CAPTURE STAGE

2017-06-20 Thread Markus Bekken
Hi there Stanley, Sorry for the delayed response. I was not able to reproduce the problem on the play dev instance. Which version are you on? Did you try and reproduce the problem in play? Best regards, Markus > 20. jun. 2017 kl. 06.51 skrev Stanley Kalyati : > > Any help

Re: [Dhis2-users] [Dhis2-devs] Skip-logic on Events with Option Codes - can't seem to get it to work...

2017-06-13 Thread Markus Bekken
back though > because the org tree wasn't displaying in the data entry or event capture > screens but would display once we did a 'search' for the root node. Haven't > had time to document this or fully test things as we are on a deadline. > > Cheers > > David > >

Re: [Dhis2-users] [Dhis2-devs] Skip-logic on Events with Option Codes - can't seem to get it to work...

2017-06-13 Thread Markus Bekken
Hi David! There is a flag when you create the source field that lets you control wether the value or code should be used in the comparisons. Unfortunately the source fields is not editable once created until version 2.27 onwards. You can check the settings of your source field in the API:

Re: [Dhis2-users] Program Indicator with Period as Condition

2017-06-07 Thread Markus Bekken
{current_date})<120) > > Kindly assist > > Stanley > > > > On Fri, Jun 2, 2017 at 8:14 AM, Immaculate Ayebazibwe <ekass...@gmail.com > <mailto:ekass...@gmail.com>> wrote: > Thank you Markus, > Will get back to you. > > > > Thank yo

Re: [Dhis2-users] [Dhis2-devs] Potential Bug? (skip-logic rules fire on drop-down select but not on radio-button)

2017-06-02 Thread Markus Bekken
Hey David, a build is triggering now for 2.26 where this should be fixed. Markus > 1. jun. 2017 kl. 14.04 skrev Markus Bekken <mar...@dhis2.org>: > > Hi there David! > I might also be a bit sleep deprived, but have independently confirmed what > you describe below. >

Re: [Dhis2-users] [Dhis2-devs] Potential Bug? (skip-logic rules fire on drop-down select but not on radio-button)

2017-06-01 Thread Markus Bekken
Hi there David! I might also be a bit sleep deprived, but have independently confirmed what you describe below. Will fix and get back to you! Markus > 1. jun. 2017 kl. 12.28 skrev David Hagan : > > Hey there community ... > > Someone slap me if I've got this wrong

Re: [Dhis2-users] Program Indicator with Period as Condition

2017-06-01 Thread Markus Bekken
17 at 12:54 PM, Stanley Kalyati <skaly...@gmail.com > <mailto:skaly...@gmail.com>> wrote: > Markus, > > You have just hit the nail on the head.All those conditions are what am > looking for. > > Please guide. > > Thanks > > Stanley > > On

Re: [Dhis2-users] Programme Rules

2017-05-31 Thread Markus Bekken
Hi there Samuel! Let me try and help on the points you mention. Auto assigning the data entry date is a bit hard to do before 2.27. I assume you are working on 2.26 or older? For the other points: 1. I assume you are entering the age as a number? If so I would start by assigning the age data

Re: [Dhis2-users] Program Indicator with Period as Condition

2017-05-31 Thread Markus Bekken
identify if one was already tested > like 120days ago or more than 120 days.And we call these repeat tests. > > I hope this makes sense. > > Secondly, if one tested negative,the two stages must be closed.Only those > positive the other stages must be enabled. > > > I ho

Re: [Dhis2-users] Create Program indicator to sum DE across events

2017-05-22 Thread Markus Bekken
Hi there Joao, At the moment this is not possible to do within standard DHIS2 functionality. We are working on a change that might enable this kind of calculation, but this is not detailed and planned to a specific release yet. It would be possible to make a custom SQL view that retrieves this.

Re: [Dhis2-users] [Dhis2-devs] Error creation new stage on 2.26

2017-05-15 Thread Markus Bekken
Hi There Pepe, Are you able to reproduce this issue on the demo server? https://play.dhis2.org/demo/ How are you adding the event? The error message you are getting seems to indicate that you are trying to create more than one event in non-repeatable program stage. This should not be possible

Re: [Dhis2-users] d2:validatePattern

2017-05-12 Thread Markus Bekken
Hi Simon. The expression below seems all correct. Tested the same in 2.27 snapshot and it works. Which version are you on? Do you have other rules working for the same variable A{index_id}? Markus > 12. mai 2017 kl. 09.28 skrev simon mugisa : > > Hi there evryone, > >

Re: [Dhis2-users] Auto-Generated Client UICs in Tracker v2.25

2017-04-26 Thread Markus Bekken
Also, you can vote for this issue, and add your specific requirements in the comments: https://jira.dhis2.org/browse/DHIS2-434 > 25. apr. 2017 kl. 17.49 skrev Em Le Hong : > > You can use script on custom form. Until now, there's no way for default form > to

  1   2   >