/// <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; }
/// <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); Quantity = segments.Length > 0 && segments[0].Length > 0 ? segments[0].ToNullableDecimal() : null; Units = segments.Length > 1 && segments[1].Length > 0 ? TypeSerializer.Deserialize <CodedElement>(segments[1], 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); 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; }
/// <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="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="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="MoneyAndChargeCode"/> class. /// </summary> /// <param name="monetaryAmount">MOC.1 - Monetary Amount.</param> /// <param name="chargeCode">MOC.2 - Charge Code.</param> public MoneyAndChargeCode(Money monetaryAmount, CodedElement chargeCode) { MonetaryAmount = monetaryAmount; ChargeCode = chargeCode; }
/// <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; }