QSET(T) Class
A set of consecutive values of an ordered base data type

Inheritance Hierarchy

OnlineSystem Object
  MARC.Everest.DataTypes HXIT
    MARC.Everest.DataTypes ANY
      MARC.Everest.DataTypes QSET <T >
        MARC.Everest.DataTypes QSC <T >
        MARC.Everest.DataTypes QSD <T >
        MARC.Everest.DataTypes QSP <T >
        MARC.Everest.DataTypes QSS <T >

Namespace: MARC.Everest.DataTypes
Assembly: MARC.Everest.Phone (in MARC.Everest.Phone.dll) Version: 1.5.0.0 (1.5.0)

Syntax

C#

public abstract class QSET<T> : ANY, 
	IEquatable<QSET<T>>, ISetComponent<T>, IAny, IImplementsNullFlavor, 
	ISemanticEquatable, IGraphable, IOriginalText, INormalizable 
where T : IAny

Type Parameters

T

Remarks

QSET and its derivatives are concepts defined in HL7v3 data types R2, and as such should only be used when targeting R2 systems. QSET instances can be used in R1 instances within GTS and SXPR <T > however when formatted using an R1 formatter, the concepts are mapped to the equivalent R1 SXCM <T > concepts.

Examples

Formatting R2 QSET with R1 Formatter

 GTS gts = new GTS();
gts.Hull = new QSP<TS>(
    new QSU<TS>(
        new QSI<TS>(
            ((TS)"2001").ToIVL(), 
            ((TS)"20010403").ToIVL()
        ),
        new QSD<TS>(
            new QSI<TS>(
                ((TS)"2005").ToIVL(),
                new PIVL<TS>(
                    ((TS)"20050101").ToIVL(), 
                    new PQ(1,"wk")
                )
            ),
            ((TS)"20050304").ToIVL()
        )
    ),
    ((TS)"200504").ToIVL()
);

R1 Formatter Result

<sxpr xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="SXPR_TS" xmlns="urn:hl7-org:v3"> 
  <comp xsi:type="SXPR_TS"> 
    <comp xsi:type="SXPR_TS"> 
      <comp xsi:type="IVL_TS"> 
        <low inclusive="true" value="20010101000000.000-0500" /> 
        <high inclusive="true" value="20011231235959.999-0500" /> 
      </comp> 
      <comp xsi:type="IVL_TS" operator="A"> 
        <low inclusive="true" value="20010403000000.000-0400" /> 
        <high inclusive="true" value="20010403235959.999-0400" /> 
      </comp> 
    </comp> 
    <comp operator="I" xsi:type="SXPR_TS"> 
      <comp xsi:type="SXPR_TS"> 
        <comp xsi:type="IVL_TS"> 
          <low inclusive="true" value="20050101000000.000-0500" /> 
          <high inclusive="true" value="20051231235959.999-0500" /> 
        </comp> 
        <comp xsi:type="PIVL_TS" operator="A"> 
          <phase> 
            <low inclusive="true" value="20050101000000.000-0500" /> 
            <high inclusive="true" value="20050101235959.999-0500" /> 
          </phase> 
          <period unit="wk" value="1" /> 
        </comp> 
      </comp> 
      <comp xsi:type="IVL_TS" operator="E"> 
        <low inclusive="true" value="20050304000000.000-0500" /> 
        <high inclusive="true" value="20050304235959.999-0500" /> 
      </comp> 
    </comp> 
  </comp> 
  <comp xsi:type="IVL_TS" operator="P"> 
    <low inclusive="true" value="20090401000000.000-0400" /> 
    <high inclusive="true" value="20090430235959.999-0400" /> 
  </comp> 
</sxpr>
when passed through the R1 formatter will result in the following XML: Which is equivalent but not identical to the original structure when parsed

While it is possible to use this structure in R1 set expression constructs, it is not possible to do the opposite since the structure of an SXPR is more loosely defined than structures based on QSET.

Version Information

Everest Compact Framework

Supported in: 1.2 Compact

Everest Framework

Supported in: 1.2, 1.0

See Also

QSET <T >
QSD <T >
QSI <T >
QSP <T >
QSS <T >
QSU <T >
SXPR <T >
SXCM <T >
GTS