If you wish to include parent list results that has at least one sublist result, you can use required="1" parameter on the sublist clause. Also, if you have multiple visited doctors, specify multiple="1". Then, each row of the resultset will contain "visited_doctors" param as an array.
If you wish to include parent list results that has at least one sublist result, you can use
required="1"parameter on the sublist clause. Also, if you have multiple visited doctors, specifymultiple="1". Then, each row of the resultset will contain "visited_doctors" param as an array.Source: https://matrix.to/#/#tiki-org_community:gitter.im