Relationships Widget searches only for patients

As the title says, i am trying to add a relationship between patient and a doctor, in the input field i write a doctor name, nothing come out, i write a patient name then it gives me results. the i checked the browser’s network panel in the debug mode. i found out that it requests only patients from the api using this link :


even if i chose doctor in the dropdown menu, it still searches only for patients.

Good question @mouad! Initially we had this line here calling the person web service. But after running a few tests we realized that we only need patients, so it was easy enough to just change to patient. Please feel free to parameterize the relationship widget to call the person web service as oppose the default patient web service. Thanks!


yes, i already did that. thanks :smiley: !