/// <inheritdoc/> public string ToDelimitedString() { CultureInfo culture = CultureInfo.CurrentCulture; return(string.Format( culture, StringHelper.StringFormatSequence(0, 21, Configuration.FieldSeparator), Id, SetIdIam.HasValue ? SetIdIam.Value.ToString(culture) : null, AllergenTypeCode?.ToDelimitedString(), AllergenCodeMnemonicDescription?.ToDelimitedString(), AllergySeverityCode?.ToDelimitedString(), AllergyReactionCode != null ? string.Join(Configuration.FieldRepeatSeparator, AllergyReactionCode) : null, AllergyActionCode?.ToDelimitedString(), AllergyUniqueIdentifier?.ToDelimitedString(), ActionReason, SensitivityToCausativeAgentCode?.ToDelimitedString(), AllergenGroupCodeMnemonicDescription?.ToDelimitedString(), OnsetDate.HasValue ? OnsetDate.Value.ToString(Consts.DateFormatPrecisionDay, culture) : null, OnsetDateText, ReportedDateTime.HasValue ? ReportedDateTime.Value.ToString(Consts.DateTimeFormatPrecisionSecond, culture) : null, ReportedBy?.ToDelimitedString(), RelationshipToPatientCode?.ToDelimitedString(), AlertDeviceCode?.ToDelimitedString(), AllergyClinicalStatusCode?.ToDelimitedString(), StatusedByPerson?.ToDelimitedString(), StatusedByOrganization?.ToDelimitedString(), StatusedAtDateTime.HasValue ? StatusedAtDateTime.Value.ToString(Consts.DateTimeFormatPrecisionSecond, culture) : null ).TrimEnd(Configuration.FieldSeparator.ToCharArray())); }
public override int GetHashCode() { unchecked { return((AssignedTo != null ? AssignedTo.GetHashCode() : 0) ^ (ReportedBy != null ? ReportedBy.GetHashCode() : 0) ^ (Status != null ? Status.GetHashCode() : 0) ^ (Kind != null ? Kind.GetHashCode() : 0) ^ (Priority != null ? Priority.GetHashCode() : 0) ^ OrderBy.GetHashCode()); } }
public override int GetHashCode() { return(From.GetHashCode() ^ (To.GetHashCode() >> 1) ^ (ReportedBy.GetHashCode() << 1) ^ (Type.GetHashCode() >> 2)); }