def get_addresses(patient):
    q = PatientAddress.query
    q = q.filter(PatientAddress.source_type == 'UKRDC')
    q = q.filter(PatientAddress.patient == patient)
    return q.all()