Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PatientAssignedArea"/> class.
 /// </summary>
 /// <param name="countyArea">The county area.</param>
 /// <param name="geographicalRegion">The geographical region.</param>
 /// <param name="postalCode">The postal code.</param>
 public PatientAssignedArea(
     CountyArea countyArea,
     GeographicalRegion geographicalRegion,
     PostalCode postalCode)
 {
     CountyArea         = countyArea;
     GeographicalRegion = geographicalRegion;
     PostalCode         = postalCode;
 }
Example #2
0
 /// <summary>
 /// Returns a hash code for this instance.
 /// </summary>
 /// <returns>
 /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
 /// </returns>
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (CountyArea != null ? CountyArea.GetHashCode() : 0);
         result = (result * 397) ^ (GeographicalRegion != null ? GeographicalRegion.GetHashCode() : 0);
         result = (result * 397) ^ (PostalCode != null ? PostalCode.GetHashCode() : 0);
         return(result);
     }
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PatientBirthInfo"/> class.
 /// </summary>
 /// <param name="birthFirstName">First name of the birth.</param>
 /// <param name="birthLastName">Last name of the birth.</param>
 /// <param name="birthCityName">Name of the birth city.</param>
 /// <param name="birthCountyArea">The birth county area.</param>
 /// <param name="birthStateProvince">The birth state province.</param>
 public PatientBirthInfo(
     string birthFirstName,
     string birthLastName,
     string birthCityName,
     CountyArea birthCountyArea,
     StateProvince birthStateProvince)
 {
     BirthFirstName     = birthFirstName;
     BirthLastName      = birthLastName;
     BirthCityName      = birthCityName;
     BirthCountyArea    = birthCountyArea;
     BirthStateProvince = birthStateProvince;
 }
Example #4
0
        /// <summary>
        /// Serves as a hash function for a particular type.
        /// </summary>
        /// <returns>
        /// A hash code for the current <see cref="T:System.Object"/>.
        /// </returns>
        /// <filterpriority>2</filterpriority>
        public override int GetHashCode()
        {
            unchecked
            {
                int result = LocationName != null?LocationName.GetHashCode() : 0;

                result = (result * 397) ^ (EffectiveDateRange != null ? EffectiveDateRange.GetHashCode() : 0);
                result = (result * 397) ^ (WebsiteUrlName != null ? WebsiteUrlName.GetHashCode() : 0);
                result = (result * 397) ^ (CountyArea != null ? CountyArea.GetHashCode() : 0);
                result = (result * 397) ^ (GeographicalRegion != null ? GeographicalRegion.GetHashCode() : 0);
                result = (result * 397) ^ (HipaaServiceLocation != null ? HipaaServiceLocation.GetHashCode() : 0);
                return(result);
            }
        }
Example #5
0
        /// <summary>
        /// Initializes a new instance of the <see cref="LocationProfile"/> class.
        /// </summary>
        /// <param name="locationName">Name of the location.</param>
        /// <param name="effectiveDateRange">The effective date range.</param>
        /// <param name="websiteUrlName">Name of the website URL.</param>
        /// <param name="countyArea">The county area.</param>
        /// <param name="geographicalRegion">The geographical region.</param>
        /// <param name="hipaaServiceLocation">The hipaa service location.</param>
        protected internal LocationProfile(
            LocationName locationName,
            DateRange effectiveDateRange,
            string websiteUrlName,
            CountyArea countyArea,
            GeographicalRegion geographicalRegion,
            HipaaServiceLocation hipaaServiceLocation)
        {
            Check.IsNotNull(locationName, () => LocationName);

            LocationName         = locationName;
            EffectiveDateRange   = effectiveDateRange;
            WebsiteUrlName       = websiteUrlName;
            CountyArea           = countyArea;
            GeographicalRegion   = geographicalRegion;
            HipaaServiceLocation = hipaaServiceLocation;
        }
Example #6
0
 /// <summary>
 /// Assigns the county area.
 /// </summary>
 /// <param name="countyArea">The county area.</param>
 /// <returns>A LocationProfileBuilder.</returns>
 public LocationProfileBuilder WithCountyArea(CountyArea countyArea)
 {
     _countyArea = countyArea;
     return(this);
 }
Example #7
0
 /// <summary>
 /// Revises the county area.
 /// </summary>
 /// <param name="countyArea">The county area.</param>
 public virtual void ReviseCountyArea(CountyArea countyArea)
 {
     CountyArea = countyArea;
 }
Example #8
0
 /// <summary>
 /// Assigns the birth county area.
 /// </summary>
 /// <param name="birthCountyArea">The birth county area.</param>
 /// <returns>A PatientBirthInfoBuilder.</returns>
 public PatientBirthInfoBuilder WithBirthCountyArea(CountyArea birthCountyArea)
 {
     _birthCountyArea = birthCountyArea;
     return(this);
 }