/// <inheritdoc/>
        public string ToDelimitedString()
        {
            System.Globalization.CultureInfo culture = System.Globalization.CultureInfo.CurrentCulture;
            string separator = IsSubcomponent ? Configuration.SubcomponentSeparator : Configuration.ComponentSeparator;

            return(string.Format(
                       culture,
                       StringHelper.StringFormatSequence(0, 23, separator),
                       PersonIdentifier,
                       FamilyName?.ToDelimitedString(),
                       GivenName,
                       SecondAndFurtherGivenNamesOrInitialsThereof,
                       Suffix,
                       Prefix,
                       Degree,
                       SourceTable,
                       AssigningAuthority?.ToDelimitedString(),
                       NameTypeCode,
                       IdentifierCheckDigit,
                       CheckDigitScheme,
                       IdentifierTypeCode,
                       AssigningFacility?.ToDelimitedString(),
                       NameRepresentationCode,
                       NameContext?.ToDelimitedString(),
                       NameValidityRange?.ToDelimitedString(),
                       NameAssemblyOrder,
                       EffectiveDate.HasValue ? EffectiveDate.Value.ToString(Consts.DateTimeFormatPrecisionSecond, culture) : null,
                       ExpirationDate.HasValue ? ExpirationDate.Value.ToString(Consts.DateTimeFormatPrecisionSecond, culture) : null,
                       ProfessionalSuffix,
                       AssigningJurisdiction?.ToDelimitedString(),
                       AssigningAgencyOrDepartment?.ToDelimitedString()
                       ).TrimEnd(separator.ToCharArray()));
        }
        /// <inheritdoc/>
        public string ToDelimitedString()
        {
            System.Globalization.CultureInfo culture = System.Globalization.CultureInfo.CurrentCulture;
            string separator = IsSubcomponent ? Configuration.SubcomponentSeparator : Configuration.ComponentSeparator;

            return(string.Format(
                       culture,
                       StringHelper.StringFormatSequence(0, 14, separator),
                       FamilyName?.ToDelimitedString(),
                       GivenName,
                       SecondAndFurtherGivenNamesOrInitialsThereof,
                       Suffix,
                       Prefix,
                       Degree,
                       NameTypeCode,
                       NameRepresentationCode,
                       NameContext?.ToDelimitedString(),
                       NameValidityRange?.ToDelimitedString(),
                       NameAssemblyOrder,
                       EffectiveDate.HasValue ? EffectiveDate.Value.ToString(Consts.DateTimeFormatPrecisionSecond, culture) : null,
                       ExpirationDate.HasValue ? ExpirationDate.Value.ToString(Consts.DateTimeFormatPrecisionSecond, culture) : null,
                       ProfessionalSuffix
                       ).TrimEnd(separator.ToCharArray()));
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="ExtendedCompositeIdNumberAndNameForPersons"/> class.
 /// </summary>
 /// <param name="personIdentifier">XCN.1 - Person Identifier.</param>
 /// <param name="familyName">XCN.2 - Family Name.</param>
 /// <param name="givenName">XCN.3 - Given Name.</param>
 public ExtendedCompositeIdNumberAndNameForPersons(string personIdentifier, FamilyName familyName, string givenName)
 {
     PersonIdentifier = personIdentifier;
     FamilyName       = familyName;
     GivenName        = givenName;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ExtendedPersonName"/> class.
 /// </summary>
 /// <param name="familyName">XPN.1 - Family Name.</param>
 /// <param name="givenName">XPN.2 - Given Name.</param>
 public ExtendedPersonName(FamilyName familyName, string givenName)
 {
     FamilyName = familyName;
     GivenName  = givenName;
 }
Esempio n. 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PerformingPersonTimeStamp"/> class.
 /// </summary>
 /// <param name="personIdentifier">PPN.1 - Person Identifier.</param>
 /// <param name="familyName">PPN.2 - Family Name.</param>
 /// <param name="givenName">PPN.3 - Given Name.</param>
 public PerformingPersonTimeStamp(string personIdentifier, FamilyName familyName, string givenName)
 {
     PersonIdentifier = personIdentifier;
     FamilyName       = familyName;
     GivenName        = givenName;
 }