Hello,
on my application I have a screen that displays a patient's file with several information, on the same screen I can access the history of consultations of the patient by pressing label.
It takes me to another screen containing the history of consultations, except that this one displays all the consultations of all the patients except me I only want to display the history of the patient previously selected in the old screen.
What should I put in ''item'' so that it selects the patient I want to see?
Thank you for your help
Solved! Go to Solution.
Hi @Ryder
To get the list of consultations from the patient selected in the previous screen you can:
Assuming
Gallery1 is patient list and Gallery3 is the medical history and that you click/select the patient in Gallery1
you should set Items in Gallery3 to Filter(consultations; Patient_id = Gallery1.Selected.Patiend_id)
Gallery1.Selected.Patiend_id is the selected patiend id
Hi @Ryder ,
I assume the "history" is a Gallery - I will call it Gallery1 - replace with your name.
I also assume you have a Patient Number somewhere in the data - I will use PatientID
Also your list name - I will use Patients
So the Items of the new gallery would be
Filter(
Patients,
PatientID = Gallery1.Selected.PatientID
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Hi @WarrenBelz
normally it's this.
PS : A little information might be helpful.
I have two entities, the first "patient" which contains the list of patients and the second "consultation" which is supposed to contain the list of all consultations.
Hi @Ryder
To get the list of consultations from the patient selected in the previous screen you can:
Assuming
Gallery1 is patient list and Gallery3 is the medical history and that you click/select the patient in Gallery1
you should set Items in Gallery3 to Filter(consultations; Patient_id = Gallery1.Selected.Patiend_id)
Gallery1.Selected.Patiend_id is the selected patiend id
User | Count |
---|---|
126 | |
87 | |
85 | |
75 | |
69 |
User | Count |
---|---|
215 | |
180 | |
139 | |
97 | |
83 |