I have two Core data entities named Patients and Recordings. A patient can have a single or multiple recordings. I want when a view load i can fetch information of both the entities attributes in a single fetch like we did in sql using join. Any help?

A patient can have a single recording dictation or multiple. Now on view load i show all the patients from core data patients entity. I want to show images in table cell that if patient has recording done it shows recording icon or if has transcription done it has transcription icon as well and none of the icon shows if patient has no recording.i want to get datails of both the table in a single fetch.
func FetchSearchData() {
let uid = defaults.value(forKey: "UserID")
searchTasks.removeAll()
let fetchRequest:NSFetchRequest<Patients> = Patients.fetchRequest()
let sortDescriptor = NSSortDescriptor(key: "dateSchedule", ascending: true)
fetchRequest.sortDescriptors = [sortDescriptor]
let predicate = NSPredicate(format: "(userID=%@)", uid as! CVarArg)
fetchRequest.predicate = predicate
do {
let count = try getContext().count(for: fetchRequest as! NSFetchRequest<NSFetchRequestResult>)
if count > 0 {
let fetchResult = try getContext().fetch(fetchRequest)
for item in fetchResult {
searchTasks.append(item)
searchTableView.reloadData()
}
} else {
searchTableView.reloadData()
}
}catch {
print(error.localizedDescription)
}
}
I have create relationship like we see in image. How can I check now which patient have recording exists?