/// <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, 18, separator),
                       PersonIdentifier,
                       FamilyName?.ToDelimitedString(),
                       GivenName,
                       SecondAndFurtherGivenNamesOrInitialsThereof,
                       Suffix,
                       Prefix,
                       Degree,
                       SourceTable,
                       AssigningAuthority?.ToDelimitedString(),
                       NameTypeCode,
                       IdentifierCheckDigit,
                       CheckDigitScheme,
                       IdentifierTypeCode,
                       AssigningFacility?.ToDelimitedString(),
                       NameRepresentationCode,
                       NameContext?.ToDelimitedString(),
                       NameValidityRange?.ToDelimitedString(),
                       NameAssemblyOrder
                       ).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;
 }
Esempio n. 3
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;
 }
Esempio n. 4
0
 /// <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;
 }