Exemple #1
0
        /// <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, 25, separator),
                       PersonIdentifier,
                       FamilyName?.ToDelimitedString(),
                       GivenName,
                       SecondAndFurtherGivenNamesOrInitialsThereof,
                       Suffix,
                       Prefix,
                       Degree,
                       SourceTable?.ToDelimitedString(),
                       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(),
                       SecurityCheck,
                       SecurityCheckScheme
                       ).TrimEnd(separator.ToCharArray()));
        }
Exemple #2
0
        /// <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, 15, 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,
                       CalledBy
                       ).TrimEnd(separator.ToCharArray()));
        }
Exemple #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;
 }
Exemple #4
0
 /// <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;
 }
Exemple #5
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;
 }