 Hello everyone, my name is Jaime, I'm part of the under 18 as well. Today I'm going to present to you program indicators and legends. For this session we are assuming that you already know program indicators and you have, you know how to create them and have played with them. This is a short presentation. Okay. It will be like five slides, but then I will do a demo. Very similar to the exercise that you have to do. And later, we will give you 15 minutes to do the exercise. Remember, you don't have to finish it today. I think you have more time until next Wednesday, if I'm not wrong. So yeah, let's start. Program indicators in the Android app live in the domain of the track identity instance. Okay. So they are calculated with the, with the data from the day enrollment. So it doesn't make sense for us cohorts group indicators. None of that. Okay. So where can you see the program indicators in the app in the track entities and instant dashboard. When you go to the, your TI, there is a bottom bar, and you will see in the bottom bar, bottom similar to, to this one with the red circle. And if you click there, you will see right here on top, the indicators. And what is quite important that you need to know is that when you are. If you want to display and show your indicators in the Android app. When you are creating them on the server, you need to mark this option. This plain form. If you don't market the indicate you will not see the indicator. Okay. So I will show you later in the demo. And I will go step by step. What are we supporting and what not. So aggregation types are not supported in the, in the context of the TI only the last value. When it comes to that elements and constant. We support all of them and for variables, only the ones that you see in the right image. You can also find this in the documentation. But these are the ones that we support at the moment. For the two functions, we support all of them except relationship town. And analytics periods boundary, we do not support them as they apply to multiple TI and we're talking about the context of a specific TI. So when it comes to legends, well, legends are very useful because you can show them together with the indicators. Let's say, for example, you have an indicator risk patient, and you have like a high risk, medium risk and low risk. And you want to show red color for higher high risk, you want to show yellow color for medium risk and green color for low risk. And you want to show it with a legend and an indicator. There are a couple of things, important things about the legends. When it comes to boundaries and stuff like that, but I will explain it to you specifically later during the demo. So yeah, let me. So this is for now. So I'm going to create an indicator. Okay, and I'm going to go step by step. Okay, can you see this. So in your exercise, don't worry about the details because we will, I will give it to you later, but you will have to log in with your admin account. And then you will have to go to maintenance in indicator section, and you will need to click right here on the top button. So you can create an indicator. I have already created mine. Let's explore it. So the first thing, when you're creating an indicator, again, we are assuming that you know this but just to give you a quick explanation. If you have three sections, you need to fill the indicator details on the expression on the filter. So for the details, you need to choose the program. Okay, so you need to choose your specific program in this case, it will be like ST 00 whatever is yours. COVID-19 case based surveillance. You will need, you will also need to choose a name. Please remember to add your code here, the ST code, because if everyone is going to create an indicator, it's going to be a bit, it's going to be a bit of a mess. So remember that you will also need to put a short name. For analytics types, you can choose enrollment. It was work for him for this exercise. Forget about analytics period boundaries, we don't support them. And right here, you need to click on this plain form. Okay, this is the key. If you don't click here, you will not see the indicator in the Android app. Another thing that you need to do is to assign the legend. You don't need to create a legend for this exercise. We are giving you the legend. I will show you later the legend, but you don't need to create the legend. So you, when you're creating the program indicator, you will see the legend like this, and you assign it. That's all. So that will be for our, so for our indicator details. The next thing is the expression. Okay, so the expression is basically the calculated value as you know, we will give you the expression. I'm going to copy that. And later we can go through the exercise. That's it. So you will copy the, the, you will copy the, the expression here. Let me go through the expression because if maybe some of you have never seen this before it might be a bit tricky. So we are using a D to condition function. This function basically received evaluate has a Boolean expression that written through or false. So in our case, let me go through the expression. Basically, if the age is greater or equal than 65 return to. Now we are nesting another condition, which basically say if the age is greater or equal than 45 written one else written zero. So let me go through the expression again. If the age is greater than 65. It will return to if the age is greater than 45. It will return one else. It will return zero. Okay. It says that the expression is not valid and is not valid because you need to put here your attribute age. So you will be able to find your attribute age just right here in the attribute section. And you have here your, it will show your attribute age you click here. And now you have your attribute age. You can just copy this right here. And you will be able to now you the expression is valid. It does compile. So the finally, you will need to add a filter. In our case, we don't want to filter anything. So you need to put through. If you don't put anything, it will say expression is empty. So we're going to put through. Okay. For some other cases you might want to filter about sex, female male male or anything but for this case and this SSI you won't need to filter anything. Okay. So this is the indicator. Now, as you as you, as I said before. Remember that our indicators can return to one or zero. So, and if you remember also we assign a legend or let the legend risk patient. Okay. So, let me go through the legend. Again, you don't need to create any legend. If you can see the legend has three periods. Okay. This is important. So, one period, which is the first one goes from minus field dot one to zero dot nine. The next period are the end value of a period on the start value of the next period they have to have the same value. Okay. If you don't put the same value, I believe you won't be able to save it in the server. You need to have the same end and start value. One, another important thing is that our indicator can return to one zero. Okay, so two will fall into the red color, which is greater than 65. One will fall into the light green right here, which will be a greater or equal than 45. So, all the remaining cases will fall here, which is zero. So, it's important to know that if at some point you return instead of one, if I return zero dot nine, the Android app won't know what to do. So, it doesn't know if it fall in this in this period or this period so it will be painted in gray color. So, the Android app doesn't know what to do. So, now we have created our indicator with expression. We have our legend. And if you go to the Android app, okay. I can go to my program, just right here. I can just create a TI. Okay. And as you can see, this TI called Ferdi has an attribute age of 66. Okay. If I go back here, remember the bottom bar with this one I click. And now you can see that this patient has is a has red color and has the result of the indicator is two. Okay. Why is to because, as I said before, the age is greater than 65. Therefore, it returns to and therefore it falls into the red category because two is between these two values. So, let me give you an example. Pablo in this case has an age of 46. In this case, you will see the light green. On the last case, which is Jaime, you have an age is Jaime is 30. So, you see the dark green. Okay. So, for this session. Let me go through the exercise. You need to create a program indicator called risk patient. Okay, for your three student program. You need to, you need to assign analytics type enrollment with default boundaries do not touch them please. You need to select display inform. You need to assign the legend that you already have. And after you have filled all the indicator details, you can go to the expression is right here, the same that a copy. You can use that one. And then for filter, you just you through. And another important thing, remember, when you when you create your program indicator, you, you need to check the share settings. Okay, I always forget this. You check the share settings and give permissions. So, let me go back. You need to go to give permission to your, to your user group. Okay, so you can later see in the app. And later, once you think if you're finished. You can just submit to a screenshot screenshots showing the indicator tab with two different colors. Okay. Remember, you don't need to finish it now. You have more days, but yeah, that's from my side. Just give you some time to perform this exercise and if you have any questions you can ask them in a slack or or here in some