/// <summary>
 /// Initializes a new instance of the <see cref="ErrorLocationAndDescription"/> class.
 /// </summary>
 /// <param name="segmentId">ELD.1 - Segment ID.</param>
 /// <param name="segmentSequence">ELD.2 - Segment Sequence.</param>
 /// <param name="fieldPosition">ELD.3 - Field Position.</param>
 /// <param name="codeIdentifyingError">ELD.4 - Code Identifying Error.</param>
 public ErrorLocationAndDescription(string segmentId, decimal segmentSequence, decimal fieldPosition, CodedElement codeIdentifyingError)
 {
     SegmentId            = segmentId;
     SegmentSequence      = segmentSequence;
     FieldPosition        = fieldPosition;
     CodeIdentifyingError = codeIdentifyingError;
 }
Beispiel #2
0
        /// <inheritdoc/>
        public void FromDelimitedString(string delimitedString, Separators separators)
        {
            Separators seps = separators ?? new Separators().UsingConfigurationValues();

            string[] separator = IsSubcomponent ? seps.SubcomponentSeparator : seps.ComponentSeparator;
            string[] segments  = delimitedString == null
                ? Array.Empty <string>()
                : delimitedString.Split(separator, StringSplitOptions.None);

            Date            = segments.Length > 0 && segments[0].Length > 0 ? segments[0].ToNullableDateTime() : null;
            InstitutionName = segments.Length > 1 && segments[1].Length > 0 ? TypeSerializer.Deserialize <CodedElement>(segments[1], true, seps) : null;
        }
Beispiel #3
0
        /// <inheritdoc/>
        public void FromDelimitedString(string delimitedString, Separators separators)
        {
            Separators seps = separators ?? new Separators().UsingConfigurationValues();

            string[] separator = IsSubcomponent ? seps.SubcomponentSeparator : seps.ComponentSeparator;
            string[] segments  = delimitedString == null
                ? Array.Empty <string>()
                : delimitedString.Split(separator, StringSplitOptions.None);

            VersionId = segments.Length > 0 && segments[0].Length > 0 ? segments[0] : null;
            InternationalizationCode = segments.Length > 1 && segments[1].Length > 0 ? TypeSerializer.Deserialize <CodedElement>(segments[1], true, seps) : null;
            InternationalVersionId   = segments.Length > 2 && segments[2].Length > 0 ? TypeSerializer.Deserialize <CodedElement>(segments[2], true, seps) : null;
        }
        /// <inheritdoc/>
        public void FromDelimitedString(string delimitedString, Separators separators)
        {
            Separators seps = separators ?? new Separators().UsingConfigurationValues();

            string[] separator = IsSubcomponent ? seps.SubcomponentSeparator : seps.ComponentSeparator;
            string[] segments  = delimitedString == null
                ? Array.Empty <string>()
                : delimitedString.Split(separator, StringSplitOptions.None);

            SegmentId            = segments.Length > 0 && segments[0].Length > 0 ? segments[0] : null;
            SegmentSequence      = segments.Length > 1 && segments[1].Length > 0 ? segments[1].ToNullableDecimal() : null;
            FieldPosition        = segments.Length > 2 && segments[2].Length > 0 ? segments[2].ToNullableDecimal() : null;
            CodeIdentifyingError = segments.Length > 3 && segments[3].Length > 0 ? TypeSerializer.Deserialize <CodedElement>(segments[3], true, seps) : null;
        }
        /// <inheritdoc/>
        public void FromDelimitedString(string delimitedString, Separators separators)
        {
            Separators seps = separators ?? new Separators().UsingConfigurationValues();

            string[] separator = IsSubcomponent ? seps.SubcomponentSeparator : seps.ComponentSeparator;
            string[] segments  = delimitedString == null
                ? Array.Empty <string>()
                : delimitedString.Split(separator, StringSplitOptions.None);

            SpecimenSourceNameOrCode = segments.Length > 0 && segments[0].Length > 0 ? TypeSerializer.Deserialize <CodedElement>(segments[0], true, seps) : null;
            Additives = segments.Length > 1 && segments[1].Length > 0 ? TypeSerializer.Deserialize <CodedWithExceptions>(segments[1], true, seps) : null;
            SpecimenCollectionMethod = segments.Length > 2 && segments[2].Length > 0 ? TypeSerializer.Deserialize <Text>(segments[2], true, seps) : null;
            BodySite     = segments.Length > 3 && segments[3].Length > 0 ? TypeSerializer.Deserialize <CodedElement>(segments[3], true, seps) : null;
            SiteModifier = segments.Length > 4 && segments[4].Length > 0 ? TypeSerializer.Deserialize <CodedElement>(segments[4], true, seps) : null;
            CollectionMethodModifierCode = segments.Length > 5 && segments[5].Length > 0 ? TypeSerializer.Deserialize <CodedElement>(segments[5], true, seps) : null;
            SpecimenRole = segments.Length > 6 && segments[6].Length > 0 ? TypeSerializer.Deserialize <CodedElement>(segments[6], true, seps) : null;
        }
Beispiel #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DateAndInstitutionName"/> class.
 /// </summary>
 /// <param name="date">DIN.1 - Date.</param>
 /// <param name="institutionName">DIN.2 - Institution Name.</param>
 public DateAndInstitutionName(DateTime date, CodedElement institutionName)
 {
     Date            = date;
     InstitutionName = institutionName;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CompositeQuantityWithUnits"/> class.
 /// </summary>
 /// <param name="quantity">CQ.1 - Quantity.</param>
 /// <param name="units">CQ.2 - Units.</param>
 public CompositeQuantityWithUnits(decimal quantity, CodedElement units)
 {
     Quantity = quantity;
     Units    = units;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ParentResultLink"/> class.
 /// </summary>
 /// <param name="parentObservationIdentifier">PRL.1 - Parent Observation Identifier.</param>
 public ParentResultLink(CodedElement parentObservationIdentifier)
 {
     ParentObservationIdentifier = parentObservationIdentifier;
 }
Beispiel #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PractitionerInstitutionalPrivileges"/> class.
 /// </summary>
 /// <param name="privilege">PIP.1 - Privilege.</param>
 public PractitionerInstitutionalPrivileges(CodedElement privilege)
 {
     Privilege = privilege;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SpecimenSource"/> class.
 /// </summary>
 /// <param name="specimenSourceNameOrCode">SPS.1 - Specimen Source Name or Code.</param>
 public SpecimenSource(CodedElement specimenSourceNameOrCode)
 {
     SpecimenSourceNameOrCode = specimenSourceNameOrCode;
 }