public static PatientEntity GetByUid(string patientUid) { PatientCollection patients = new PatientCollection(); patients.GetMulti(new PredicateExpression(PatientFields.UniqueIdentifier == patientUid)); return(patients.Count > 0 ? patients[0] : null); }