Dynamic data attachment with two criteria

Hi everyone, I am have successfully managed to dynamically attach two parent and child forms and was successful in bringing the data from the parent form to the child form using the following code
instance(‘screening’)/root/data[scr_cardNo=current()/../fol_cardNo]/demographics/scr_Name

now i want to use two fields to bring in the data from parent to the child form since there are multiple users filling the form i wan to bring in the data if the scr_facilityID matches fol_facility ID and scr_cardNo matches fol_cardNo.
can anyone help me please

thanks

Welcome back to the community, @hmanaye!

Maybe you will need to explain this a bit more so that the community should be able to udnerstand and help you out?