Exemple #1
0
        /// <summary>
        /// Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            unchecked // Overflow is fine, just wrap
            {
                var hashCode = 41;
                // Suitable nullity checks etc, of course :)
                if (PersonId != null)
                {
                    hashCode = hashCode * 59 + PersonId.GetHashCode();
                }

                hashCode = hashCode * 59 + EngagementRoute.GetHashCode();
                if (AgencyId != null)
                {
                    hashCode = hashCode * 59 + AgencyId.GetHashCode();
                }

                hashCode = hashCode * 59 + Cost.GetHashCode();
                if (CancellationCosts != null)
                {
                    hashCode = hashCode * 59 + CancellationCosts.GetHashCode();
                }
                return(hashCode);
            }
        }
        public override int GetHashCode()
        {
            var hashCode = 17;

            hashCode = hashCode * 31 + PersonId.GetHashCode();
            return(hashCode);
        }
 public override int GetHashCode()
 {
     return(PersonId.GetHashCode() ^
            ConceptId.GetHashCode() ^
            TypeConceptId.GetHashCode() ^
            (SourceValue != null ? SourceValue.GetHashCode() : 0) ^
            (StopReason != null ? StopReason.GetHashCode() : 0) ^
            Refills.GetHashCode() ^
            VisitOccurrenceId.GetHashCode() ^
            Quantity.GetHashCode() ^
            DaysSupply.GetHashCode() ^
            RouteConceptId.GetHashCode() ^
            EffectiveDrugDose.GetHashCode() ^
            DoseUnitConceptId.GetHashCode() ^
            SourceConceptId.GetHashCode() ^
            (Sig != null ? Sig.GetHashCode() : 0) ^
            (LotNumber != null ? LotNumber.GetHashCode() : 0) ^
            (RouteSourceValue != null ? RouteSourceValue.GetHashCode() : 0) ^
            (DoseUnitSourceValue != null ? DoseUnitSourceValue.GetHashCode() : 0) ^
            ProviderId.GetHashCode() ^
            (StartDate.GetHashCode()) ^
            (EndDate.GetHashCode()) ^
            (VerbatimEndDate.GetHashCode()) ^
            (StartTime != null ? StartTime.GetHashCode() : 0) ^
            (EndTime != null ? EndTime.GetHashCode() : 0));
 }
Exemple #4
0
 public override int GetHashCode()
 {
     return(PersonId.GetHashCode() ^
            ConceptId.GetHashCode() ^
            (StartDate.GetHashCode()) ^
            (EndDate.GetHashCode()) ^
            StopReason.GetHashCode());
 }
Exemple #5
0
 public override int GetHashCode()
 {
     return(PersonId.GetHashCode() ^
            ConceptId.GetHashCode() ^
            (StartDate.GetHashCode()) ^
            (EndDate.GetHashCode()) ^
            TypeConceptId.GetHashCode() ^
            OccurrenceCount.GetHashCode());
 }
 public override int GetHashCode()
 {
     return(PersonId.GetHashCode() ^
            ConceptId.GetHashCode() ^
            TypeConceptId.GetHashCode() ^
            VisitOccurrenceId.GetHashCode() ^
            (StartDate.GetHashCode()) ^
            (SourceValue != null ? SourceValue.GetHashCode() : 0));
     //^ ReleventConditionConceptId.GetHashCode();
 }
Exemple #7
0
 public override int GetHashCode()
 {
     return(PersonId.GetHashCode() ^
            ConceptId.GetHashCode() ^
            (StartDate.GetHashCode()) ^
            //(EndDate.GetHashCode()) ^
            TypeConceptId.GetHashCode() ^
            //SourceConceptId.GetHashCode() ^
            VisitOccurrenceId.GetHashCode() ^
            (SourceValue != null ? SourceValue.GetHashCode() : 0));
 }
 public override int GetHashCode()
 {
     return(Id.GetHashCode() ^
            PersonId.GetHashCode() ^
            ConceptId.GetHashCode() ^
            TypeConceptId.GetHashCode() ^
            (SourceValue != null ? SourceValue.GetHashCode() : 0) ^
            (CareSiteId.GetHashCode()) ^
            (StartDate.GetHashCode()) ^
            (EndDate.GetHashCode()));
 }
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = hash * 23 + (BusinessEntityId == default(int) ? 0 : BusinessEntityId.GetHashCode());
         hash = hash * 23 + (ContactTypeId == default(int) ? 0 : ContactTypeId.GetHashCode());
         hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode());
         hash = hash * 23 + (PersonId == default(int) ? 0 : PersonId.GetHashCode());
         hash = hash * 23 + (Rowguid == default(Guid) ? 0 : Rowguid.GetHashCode());
         return(hash);
     }
 }
 public override int GetHashCode()
 {
     return(PersonId.GetHashCode() ^
            ConceptId.GetHashCode() ^
            TypeConceptId.GetHashCode() ^
            ProviderId.GetHashCode() ^
            Quantity.GetHashCode() ^
            (SourceValue != null ? SourceValue.GetHashCode() : 0) ^
            SourceConceptId.GetHashCode() ^
            (UniqueDeviceId != null ? UniqueDeviceId.GetHashCode() : 0) ^
            (StartDate.GetHashCode()) ^
            (EndDate.GetHashCode()));
 }
Exemple #11
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = hash * 23 + (AccountNumber == null ? 0 : AccountNumber.GetHashCode());
         hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode());
         hash = hash * 23 + (PersonId == null ? 0 : PersonId.GetHashCode());
         hash = hash * 23 + (Rowguid == default(Guid) ? 0 : Rowguid.GetHashCode());
         hash = hash * 23 + (StoreId == null ? 0 : StoreId.GetHashCode());
         hash = hash * 23 + (TerritoryId == null ? 0 : TerritoryId.GetHashCode());
         return(hash);
     }
 }
Exemple #12
0
 public override int GetHashCode()
 {
     return(PersonId.GetHashCode() ^
            ConceptId.GetHashCode() ^
            (StartDate.GetHashCode()) ^
            (EndDate.GetHashCode()) ^
            TypeConceptId.GetHashCode() ^
            StatusConceptId.GetHashCode() ^
            VisitOccurrenceId.GetHashCode() ^
            (StopReason != null ? StopReason.GetHashCode() : 0) ^
            SourceConceptId.GetHashCode() ^
            ProviderId.GetHashCode() ^
            (StatusSourceValue != null ? StatusSourceValue.GetHashCode() : 0) ^
            (SourceValue != null ? SourceValue.GetHashCode() : 0));
 }
Exemple #13
0
        public override int GetHashCode()
        {
            var hashCode = 1781705854;

            hashCode = hashCode * -1521134295 + PersonId.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(LastName);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(FirstName);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Gender);

            hashCode = hashCode * -1521134295 + EqualityComparer <DateTimeOffset> .Default.GetHashCode(DateOfBirth);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(FavoriteColor);

            return(hashCode);
        }
Exemple #14
0
 public override int GetHashCode()
 {
     return(PersonId.GetHashCode() ^
            ConceptId.GetHashCode() ^
            TypeConceptId.GetHashCode() ^
            (SourceValue != null ? SourceValue.GetHashCode() : 0) ^
            (StopReason != null ? StopReason.GetHashCode() : 0) ^
            Refills.GetHashCode() ^
            VisitOccurrenceId.GetHashCode() ^
            Quantity.GetHashCode() ^
            DaysSupply.GetHashCode() ^
            (Sig != null ? Sig.GetHashCode() : 0) ^
            ProviderId.GetHashCode() ^
            RelevantConditionConceptId.GetHashCode() ^
            (StartDate.GetHashCode()) ^
            (EndDate.GetHashCode()));
 }
Exemple #15
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (PersonId != null)
         {
             hashCode = hashCode * 59 + PersonId.GetHashCode();
         }
         if (ContactLogInformation != null)
         {
             hashCode = hashCode * 59 + ContactLogInformation.GetHashCode();
         }
         return(hashCode);
     }
 }
Exemple #16
0
 public override int GetHashCode()
 {
     return(Id.GetHashCode() ^
            PersonId.GetHashCode() ^
            ConceptId.GetHashCode() ^
            TypeConceptId.GetHashCode() ^
            (SourceValue != null ? SourceValue.GetHashCode() : 0) ^
            SourceConceptId.GetHashCode() ^
            (CareSiteId.GetHashCode()) ^
            (StartDate.GetHashCode()) ^
            (EndDate.GetHashCode()) ^
            AdmittingSourceConceptId.GetHashCode() ^
            (AdmittingSourceValue != null ? AdmittingSourceValue.GetHashCode() : 0) ^
            DischargeToConceptId.GetHashCode() ^
            (DischargeToSourceValue != null ? DischargeToSourceValue.GetHashCode() : 0) ^
            PrecedingVisitOccurrenceId.GetHashCode());
 }
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (PersonId != null)
         {
             hashCode = hashCode * 59 + PersonId.GetHashCode();
         }
         if (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (Status != null)
         {
             hashCode = hashCode * 59 + Status.GetHashCode();
         }
         if (Role != null)
         {
             hashCode = hashCode * 59 + Role.GetHashCode();
         }
         if (RoleDescription != null)
         {
             hashCode = hashCode * 59 + RoleDescription.GetHashCode();
         }
         if (Lat != null)
         {
             hashCode = hashCode * 59 + Lat.GetHashCode();
         }
         if (Lon != null)
         {
             hashCode = hashCode * 59 + Lon.GetHashCode();
         }
         if (Timestamp != null)
         {
             hashCode = hashCode * 59 + Timestamp.GetHashCode();
         }
         return(hashCode);
     }
 }
Exemple #18
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (PersonId != null)
         {
             hashCode = hashCode * 59 + PersonId.GetHashCode();
         }
         if (ThingId != null)
         {
             hashCode = hashCode * 59 + ThingId.GetHashCode();
         }
         if (Timestamp != null)
         {
             hashCode = hashCode * 59 + Timestamp.GetHashCode();
         }
         return(hashCode);
     }
 }
Exemple #19
0
 public override int GetHashCode()
 {
     return(PersonId.GetHashCode() ^
            ConceptId.GetHashCode() ^
            (StartDate.GetHashCode()) ^
            (EndDate.GetHashCode()) ^
            TypeConceptId.GetHashCode() ^
            VisitOccurrenceId.GetHashCode() ^
            ValueAsNumber.GetHashCode() ^
            RangeLow.GetHashCode() ^
            RangeHigh.GetHashCode() ^
            VisitOccurrenceId.GetHashCode() ^
            ValueAsConceptId.GetHashCode() ^
            Time.GetHashCode() ^
            ProviderId.GetHashCode() ^
            RelevantConditionConceptId.GetHashCode() ^
            UnitsConceptId.GetHashCode() ^
            (ValueAsString != null ? ValueAsString.GetHashCode() : 0) ^
            (UnitsSourceValue != null ? UnitsSourceValue.GetHashCode() : 0) ^
            (SourceValue != null ? SourceValue.GetHashCode() : 0));
 }
 public override int GetHashCode()
 {
     return(Id.GetHashCode() ^
            PersonId.GetHashCode() ^
            ConceptId.GetHashCode() ^
            TypeConceptId.GetHashCode() ^
            (SourceValue != null ? SourceValue.GetHashCode() : 0) ^
            (StartTime != null ? StartTime.GetHashCode() : 0) ^
            (EndTime != null ? EndTime.GetHashCode() : 0) ^
            SourceConceptId.GetHashCode() ^
            (CareSiteId.GetHashCode()) ^
            (StartDate.GetHashCode()) ^
            (EndDate.GetHashCode()) ^
            AdmittingSourceConceptId.GetHashCode() ^
            (AdmittingSourceValue != null ? AdmittingSourceValue.GetHashCode() : 0) ^
            (ProviderKey != null ? ProviderKey.GetHashCode() : 0) ^
            (ProviderId.GetHashCode()) ^
            DischargeToConceptId.GetHashCode() ^
            (DischargeToSourceValue != null ? DischargeToSourceValue.GetHashCode() : 0) ^
            PrecedingVisitDetailId.GetHashCode() ^
            VisitDetailParentId.GetHashCode());
 }
 public override int GetHashCode()
 {
     return(PersonId.GetHashCode() ^
            ConceptId.GetHashCode() ^
            (StartDate.GetHashCode()) ^
            (EndDate.GetHashCode()) ^
            TypeConceptId.GetHashCode() ^
            VisitOccurrenceId.GetHashCode() ^
            ValueAsNumber.GetHashCode() ^
            RangeLow.GetHashCode() ^
            RangeHigh.GetHashCode() ^
            OperatorConceptId.GetHashCode() ^
            VisitOccurrenceId.GetHashCode() ^
            ValueAsConceptId.GetHashCode() ^
            (Time != null ? Time.GetHashCode() : 0) ^
            ProviderId.GetHashCode() ^
            (ValueSourceValue != null ? ValueSourceValue.GetHashCode() : 0) ^
            SourceConceptId.GetHashCode() ^
            UnitConceptId.GetHashCode() ^
            (UnitSourceValue != null ? UnitSourceValue.GetHashCode() : 0) ^
            (SourceValue != null ? SourceValue.GetHashCode() : 0));
 }
Exemple #22
0
 public override int GetHashCode()
 {
     return(PersonId.GetHashCode());
 }
Exemple #23
0
 /// <summary>
 /// NOTE: ReSharper disable NonReadonlyMemberInGetHashCode
 /// </summary>
 public override int GetHashCode()
 => PersonId.GetHashCode() + ProductId.GetHashCode() + Role.GetHashCode();