示例#1
0
        /// <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);
        }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PatientContactPhone"/> class.
 /// </summary>
 /// <param name="patientContactPhoneType">Type of the patient contact phone.</param>
 /// <param name="phoneNumber">The phone number.</param>
 /// <param name="phoneExtensionNumber">The phone extension number.</param>
 /// <param name="confidentialIndicator">The confidential indicator.</param>
 protected internal PatientContactPhone( 
     PatientContactPhoneType patientContactPhoneType,
     string phoneNumber,
     string phoneExtensionNumber,
     bool? confidentialIndicator)
 {
     _patientContactPhoneType = patientContactPhoneType;
     _phoneNumber = phoneNumber;
     _phoneExtensionNumber = phoneExtensionNumber;
     _confidentialIndicator = confidentialIndicator;
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PatientContactPhone"/> class.
 /// </summary>
 /// <param name="patientContactPhoneType">Type of the patient contact phone.</param>
 /// <param name="phoneNumber">The phone number.</param>
 /// <param name="phoneExtensionNumber">The phone extension number.</param>
 /// <param name="confidentialIndicator">The confidential indicator.</param>
 protected internal PatientContactPhone(
     PatientContactPhoneType patientContactPhoneType,
     string phoneNumber,
     string phoneExtensionNumber,
     bool?confidentialIndicator)
 {
     _patientContactPhoneType = patientContactPhoneType;
     _phoneNumber             = phoneNumber;
     _phoneExtensionNumber    = phoneExtensionNumber;
     _confidentialIndicator   = confidentialIndicator;
 }
示例#4
0
        /// <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;
        }