示例#1
0
        public Node(CodedEntry name, string type)
        {
            this.elements = new Elements();
            children      = new List <Node>();

            Element element = elements.Add(t.ValueType, type);

            if (name != null)
            {
                Name = name;
            }
        }
示例#2
0
        public StructuredReport(CodedEntry name)
        {
            dataset = new DataSet();

            dataset.Set(t.ValueType, ValueType.Container);

            Sequence sequence = (Sequence)dataset.Add(new Sequence(t.ConceptNameCodeSequence));

            sequence.AddItem(name.Elements);

            dataset.Set(t.ContinuityOfContent, "SEPARATE");

            root = Node.Factory(dataset.Elements);
        }
示例#3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        /// <remarks>Compares CodingSchemeDesignator only.</remarks>
        public override bool Equals(object obj)
        {
            // If parameter is null return false.
            if (obj == null)
            {
                return(false);
            }
            // If parameter cannot be cast to CodedEntry return false.
            CodedEntry entry = obj as CodedEntry;

            if ((System.Object)entry == null)
            {
                return(false);
            }

            // compares code value, coding scheme designator only
            return(CodeValue == entry.CodeValue && CodingSchemeDesignator == entry.CodingSchemeDesignator);
        }
示例#4
0
 public UIDNode(CodedEntry name)
     : base(name, ValueType.UIDRef)
 {
 }
示例#5
0
 public TimeNode(CodedEntry name)
     : base(name, ValueType.Time)
 {
 }
示例#6
0
 public TextNode(CodedEntry name)
     : base(name, ValueType.Text)
 {
 }
示例#7
0
 public PersonNameNode(CodedEntry name)
     : base(name, ValueType.PersonName)
 {
 }
示例#8
0
 public ContainerNode(CodedEntry name, string continuity)
     : base(name, ValueType.Container)
 {
     ContinuityOfContent = continuity;
 }
示例#9
0
 public NumericNode(CodedEntry name)
     : base(name, ValueType.Numeric)
 {
 }
示例#10
0
 public CompositeNode(CodedEntry name, string type, string @class, string instance)
     : base(name, type)
 {
     SOPClassUID    = @class;
     SOPInstanceUID = instance;
 }
示例#11
0
 public ContainerNode(CodedEntry name)
     : this(name, EK.Capture.Dicom.DicomToolKit.ContinuityOfContent.Separate)
 {
 }
示例#12
0
 internal CompositeNode(CodedEntry name, string type)
     : base(name, type)
 {
 }
示例#13
0
 public DateTimeNode(CodedEntry name)
     : base(name, ValueType.DateTime)
 {
 }
示例#14
0
 public ReferenceNode(CodedEntry name)
     : base(name, ValueType.Code)
 {
 }
示例#15
0
 public TemporalCoordinatesNode(CodedEntry name)
     : base(name, ValueType.TemporalCoordinates)
 {
 }
示例#16
0
 public SpatialCoordinatesNode(CodedEntry name)
     : base(name, ValueType.SpatialCoordinates)
 {
 }
示例#17
0
 public WaveformNode(CodedEntry name)
     : base(name, ValueType.Composite)
 {
 }
示例#18
0
 public ImageNode(CodedEntry name, string @class, string instance)
     : base(name, ValueType.Image, @class, instance)
 {
 }
示例#19
0
 public CodeNode(CodedEntry name)
     : base(name, ValueType.Code)
 {
 }
示例#20
0
 public CompositeNode(CodedEntry name, string @class, string instance)
     : this(name, ValueType.Composite, @class, instance)
 {
 }