Issue #38: Fixed an exception thrown when looking for patients similar to a remote patient
Issue #48: Fixed incorrect set of patient access permissions used when constructing PatientSimilarityViews