public override AlertNotification Test(PatientProfile profile, IPersistenceContext context) { AlertsSettings settings = new AlertsSettings(); List <string> defaultLanguages = string.IsNullOrEmpty(settings.CommonSpokenLanguages) ? new List <string>() : new List <string>(settings.CommonSpokenLanguages.Replace(" ", "").Split(',')); if (profile.PrimaryLanguage != null && !defaultLanguages.Contains(profile.PrimaryLanguage.Code)) { return(new AlertNotification(this.Id, new string[] { profile.PrimaryLanguage.Value })); } return(null); }
public override AlertNotification Test(PatientProfile profile, IPersistenceContext context) { AlertsSettings settings = new AlertsSettings(); List<string> defaultLanguages = string.IsNullOrEmpty(settings.CommonSpokenLanguages) ? new List<string>() : new List<string>(settings.CommonSpokenLanguages.Replace(" ", "").Split(',')); if (profile.PrimaryLanguage != null && !defaultLanguages.Contains(profile.PrimaryLanguage.Code)) { return new AlertNotification(this.Id, new string[] { profile.PrimaryLanguage.Value }); } return null; }
public override AlertNotification Test(PatientProfile profile, IPersistenceContext context) { var reasons = new List<string>(); TestName(profile.Name, ref reasons); TestAddresses(profile.Addresses, ref reasons); TestTelephoneNumbers(profile.TelephoneNumbers, ref reasons); var settings = new AlertsSettings(); if(settings.MissingHealthcardInfoTriggersIncompleteDemographicDataAlert) { TestHealthcard(profile.Healthcard, ref reasons); } if (reasons.Count > 0) return new AlertNotification(this.Id, reasons); return null; }
public override AlertNotification Test(PatientProfile profile, IPersistenceContext context) { var reasons = new List <string>(); TestName(profile.Name, ref reasons); TestAddresses(profile.Addresses, ref reasons); TestTelephoneNumbers(profile.TelephoneNumbers, ref reasons); var settings = new AlertsSettings(); if (settings.MissingHealthcardInfoTriggersIncompleteDemographicDataAlert) { TestHealthcard(profile.Healthcard, ref reasons); } if (reasons.Count > 0) { return(new AlertNotification(this.Id, reasons)); } return(null); }