Ejemplo n.º 1
0
 public virtual string ToString(char separator)
 {
     return($"{OrganizationName}{separator}{OrganizationNameTypeCode?.BestValue}{separator}{ID}" +
            $"{separator}{CheckDigit}{separator}{CheckDigitScheme?.BestValue}" +
            $"{separator}{AssigningAuthority?.ToString()}{separator}{IdentifierTypeCode?.BestValue}" +
            $"{separator}{AssigningFacility?.ToString()}"
            .TrimEnd(separator));
 }
            public string ToString(char separator)
            {
                var ns = NextSeparator(separator);

                return
                    ($"{ID}{separator}{CheckDigit}{separator}{CheckDigitScheme?.BestValue}{separator}" +
                     $"{AssigningAuthority?.ToString(ns)}{separator}{IdentifierTypeCode?.BestValue}{separator}" +
                     $"{AssigningFacility?.ToString(ns)}{EffectiveDate?.AsDTLocal()}{separator}{ExpirationDate?.AsDTLocal()}"
                     .TrimEnd(separator));
            }
Ejemplo n.º 3
0
            public override string ToString(char separator)
            {
                var ns = NextSeparator(separator);

                return
                    ($"{ID}{separator}{FamilyName}{separator}{GivenName}{separator}{SecondGivenNamesOrInitials}" +
                     $"{separator}{Suffix}{separator}{Prefix}{separator}{Degree}{separator}" +
                     $"{SourceTable}{separator}{AssigningAuthority?.ToString(ns)}{separator}" +
                     $"{NameTypeCode}{separator}{IdentifierCheckDigit}{separator}{CheckDigitScheme}{separator}" +
                     $"{IdentifierTypeCode}{separator}{AssigningFacility?.ToString(ns)}{separator}" +
                     $"{NameRepresentationCode}{separator}{NameContext?.ToString(ns)}{separator}" +
                     $"{NameValidityRange?.ToString(ns)}{separator}{NameAssemblyOrder}"
                     .TrimEnd(separator));
            }