/// <summary> /// Adds the contact phone. /// </summary> /// <param name="phoneNumber">The phone number.</param> /// <param name="patientContactPhoneType">Type of the patient contact phone.</param> /// <param name="phoneExtensionNumber">The phone extension number.</param> /// <param name="confidentialIndicator">The confidential indicator.</param> /// <returns>A PatientContactPhone.</returns> public virtual PatientContactPhone AddContactPhone(string phoneNumber, PatientContactPhoneType patientContactPhoneType, string phoneExtensionNumber, bool?confidentialIndicator = null) { var patientContactPhone = new PatientContactPhone(patientContactPhoneType, phoneNumber, phoneExtensionNumber, confidentialIndicator) { PatientContact = this }; _phoneNumbers.Add(patientContactPhone); NotifyItemAdded(() => PhoneNumbers, patientContactPhone); return(patientContactPhone); }
/// <summary> /// Determines if the values are equal. /// </summary> /// <param name="patientContactPhone"> /// The other object. /// </param> /// <returns> /// A boolean denoting equality of the values. /// </returns> public virtual bool ValuesEqual(PatientContactPhone patientContactPhone) { if (patientContactPhone == null) { return(false); } var valuesEqual = Equals(PatientContactPhoneType, patientContactPhone.PatientContactPhoneType) && Equals(PhoneNumber, patientContactPhone.PhoneNumber) && Equals(ConfidentialIndicator, patientContactPhone.ConfidentialIndicator) && Equals(PatientContactPhoneType, patientContactPhone.PatientContactPhoneType) && Equals(PhoneNumber, patientContactPhone.PhoneNumber) && Equals(PhoneExtensionNumber, patientContactPhone.PhoneExtensionNumber) && Equals(ConfidentialIndicator, patientContactPhone.ConfidentialIndicator); return(valuesEqual); }
/// <summary> /// Removes the contact phone. /// </summary> /// <param name="patientContactPhone">The patient contact phone.</param> public virtual void RemoveContactPhone( PatientContactPhone patientContactPhone ) { _phoneNumbers.Remove ( patientContactPhone ); NotifyItemRemoved ( () => PhoneNumbers, patientContactPhone ); }
/// <summary> /// Adds the contact phone. /// </summary> /// <param name="phoneNumber">The phone number.</param> /// <param name="patientContactPhoneType">Type of the patient contact phone.</param> /// <param name="phoneExtensionNumber">The phone extension number.</param> /// <param name="confidentialIndicator">The confidential indicator.</param> /// <returns>A PatientContactPhone.</returns> public virtual PatientContactPhone AddContactPhone( string phoneNumber, PatientContactPhoneType patientContactPhoneType, string phoneExtensionNumber, bool? confidentialIndicator = null ) { var patientContactPhone = new PatientContactPhone ( patientContactPhoneType, phoneNumber, phoneExtensionNumber, confidentialIndicator ) { PatientContact = this }; _phoneNumbers.Add ( patientContactPhone ); NotifyItemAdded ( () => PhoneNumbers, patientContactPhone ); return patientContactPhone; }
/// <summary> /// Determines if the values are equal. /// </summary> /// <param name="patientContactPhone"> /// The other object. /// </param> /// <returns> /// A boolean denoting equality of the values. /// </returns> public virtual bool ValuesEqual(PatientContactPhone patientContactPhone) { if (patientContactPhone == null) { return false; } var valuesEqual = Equals(PatientContactPhoneType, patientContactPhone.PatientContactPhoneType) && Equals(PhoneNumber, patientContactPhone.PhoneNumber) && Equals(ConfidentialIndicator, patientContactPhone.ConfidentialIndicator) && Equals(PatientContactPhoneType, patientContactPhone.PatientContactPhoneType) && Equals(PhoneNumber, patientContactPhone.PhoneNumber) && Equals(PhoneExtensionNumber, patientContactPhone.PhoneExtensionNumber) && Equals(ConfidentialIndicator, patientContactPhone.ConfidentialIndicator); return valuesEqual; }
/// <summary> /// Removes the contact phone. /// </summary> /// <param name="patientContactPhone">The patient contact phone.</param> public virtual void RemoveContactPhone(PatientContactPhone patientContactPhone) { _phoneNumbers.Remove(patientContactPhone); NotifyItemRemoved(() => PhoneNumbers, patientContactPhone); }