 Yeah, hello everyone. Welcome to the second session of the day. Today I will explain to you relationships in the Android app. So yeah, let's start with it. When we talk about relationships in the Android app, it's important to mention that we only support relationships between TI's, okay, and relationships between events and TI's. We do not support the other way around. Events have to be on the left side of the relationships. Also, we don't support enrollment either, but there are no constraints when it comes to programs or unit or track entity type. For example, you could have a relationship between two persons in different programs or, for example, a relationship between a person and an area that are different track entity types, so no problem about that. Where can you see the relationships? Basically, if you go to the day dashboard, you can see here the bottom bar in the third bottom that has a circle. If you click on it, you will see a list like this one. In this list, you see that Victor Garcia has two relationships, one with Pablo and another one with Andres. If you click, for example, on this item on Pablo, you could see some enrollment details and you could even navigate to Pablo's day dashboard. I will show it to you later. Another thing that you can do is to delete the TI. Okay, so let me just show you. I have here my application. I'm going to go to COVID-19 case registration, so I'm going to click, for example, on Hymen. This is my day dashboard. I'm going to click on relationship, which is the third button. And now you can see that I have a relationship with Helen. If I click on Helen, I can just navigate by clicking here. I can navigate to Helen day dashboard. So that's one thing you can do. Another thing we could do is to delete the relationship if I click here. Okay, so how can you create the relationship type? So let me go to the server and explain to you step by step how can you create a relationship type. It's important to mention that for the next exercise, you don't need to create a relationship type. We're giving it to you. So it's already there for you. But let me explain in more details. So if you go to maintenance, okay, and you go to program section, you log in as an app user, you click on relationship type, you can create a new one. The first thing that you have to do is to put a name to the relationship. In my case, I have chosen has been in contact with. I have clicked here B-directional. B-directional means that you can navigate from the left side to the right side, and then from the right side to the left side. You can navigate both ways, the relationship. This text that you see here, it just is the same text that you see here. This person has been in contact with. In this specific case, Jaime is the initiating entity and Helen is the receiving entity. So this is the text that is showing up here. Another thing you have to do is to define the constraints. Both left side and right side. In the case of left side, you have three options. You can choose between track entity instance, enrollment program, and events. In this case, for the left side, we can only choose between track entity instance and events, okay? We do not support enrollment. For the right side, you can only choose track entity instance, okay? Because we don't support these two for the right side. Then you choose a track entity type. We want to create a relationship between two persons. These two persons belong to the same program, okay? I choose here my program and that's it for the relationship. Also very important, when you create a relationship type, remember everything in DHS2 has share settings. You have to go to share settings and give the specific permissions. But again, you don't need to create this relationship type. It is there for you in the exercise, okay? Just to let you know how you can create a relationship type. So let me just go back to the slides. Yes. One second. So, well, sorry, I forgot to mention something. I forgot to show you how to create a relationship. So let me just go to Heime here to the relationship screen. And now if you want to create a relationship in the Android app, okay, you click on this button on the plus and now it's going to show me all the relationships, all the relationship types available. In this case, we have here has been in contact with, which is the relationship that I just show you on the server. So I can click here, okay? And then I have to choose a program because you can have a relationship between different programs. So in my case, I choose ST00, which is my user. And then I can choose a TI. Once I click on one of these, there will be a new relationship created. So yeah, that's how you create a relationship just by going to your day dashboard and then just going to the relationship screen and clicking here and then choosing a program, okay? So there are different ways you can visualize a relationship. The list is one way, but you can also visualize them with a map, okay? In the same screen, in the list screen, I will show you later, there is this button, a map. If you click here, you can see that for example, Victor has two relationships, these two relationships, and the two arrows indicates that it's a bidirectional relationship. So this is one way of seeing it. You have another way of seeing it. It's by going to the search screen and then clicking just right here in the bottom bar in the right bottom. This is the same that Andres showed you before, but I will show it to you again. Then you can click on the map layers and you can say, hey, I want to see this relationship has been in contact with. So you will be able to see the relationships in the map. So just let me show you. For example, here, just let me go back to everything again. So I can go to Helen, for example. Helen has two relationships, okay? And here there is a map, okay? I can click on this map and then I can see the two relationships. Helen is just right here and has a relationship with Jaime and another with Alberto. As you can see, there are two arrows because it's a bidirectional relationship. Another way of seeing your relationships is let me go back again. I'm here in the search screen. You can just go to the bottom bar and just click on this button. You can just click on map layers and then you can say, hey, I want to see has been in contact with, okay? So you click here. So let me zoom in. You can see that here is Helen. It has a relationship with Jaime and then it has also a relationship with Alberto. Sorry about the image being black. It's the color is not working well in the emulator. So that's why you don't see the image well. But if you do it in your device, you can see everything perfectly. It's because the library being used doesn't work well with the emulator. So let me go back to the slides. Another thing you can do as I mentioned before is that you can create a relationship between different track entity types. For example, I can have a track entity type called ARIA where it will be a polygon, okay? Instead of a GPS coordinate, it will be a polygon and then you could have a person. And I could name that relationship belongs to the area and then in the map, you could see something like this. This could be, for example, a COVID area of cases and then you see this TI, which is Pablo that belongs to this area, okay? So again, you don't have constraints when it comes to track entity type or units or program just to, I want to show to you this example. So one important thing, the word of the day is offline, okay? So I'm gonna write down later on the slide. In case someone missed it, it's offline, okay? So now you have to let me show the exercise, okay? You have to create, you have to create two relationships, okay? With three cases, okay? So in the previous exercise, with Andres you created multiple TI's, okay? So what you can do now is to create two relationships and one of the relationships has to be the index case, okay? And then you have to visualize your relationships in the map and sync with the server. So what you will need to do is to send a screenshot of the map showing the relationships that you have created. So let me just go back again. So this could be an example, valid. You have three TI's and one of that is the index case, which is Helen, the one in the middle, and two relationships. So this could be valid for the exercise, okay? So yeah, that was it.