public DicomContentItem(DicomCodeItem code, DicomRelationshipType relationship, DicomUID value) { Dataset = new DicomDataset(); Code = code; Relationship = relationship; Type = DicomValueType.UIDReference; Dataset.Add(DicomTag.UID, value); }
public DicomContentItem(DicomCodeItem code, DicomRelationshipType relationship, DicomMeasuredValue value) { Dataset = new DicomDataset(); Code = code; Relationship = relationship; Type = DicomValueType.Numeric; Dataset.Add(DicomTag.MeasuredValueSequence, value); }
public DicomContentItem(DicomCodeItem code, DicomRelationshipType relationship, DicomCodeItem value) { Dataset = new DicomDataset(); Code = code; Relationship = relationship; Type = DicomValueType.Code; Dataset.Add(DicomTag.ConceptCodeSequence, value); }
public DicomContentItem(DicomCodeItem code, DicomRelationshipType relationship, DicomContinuity continuity, params DicomContentItem[] items) { Dataset = new DicomDataset(); Code = code; Relationship = relationship; Type = DicomValueType.Container; Continuity = continuity; Dataset.Add(DicomTag.ContentSequence, items); }
public DicomContentItem(DicomCodeItem code, DicomRelationshipType relationship, DicomValueType type, DicomReferencedSOP value) { Dataset = new DicomDataset(); Code = code; Relationship = relationship; Type = type; if (type == DicomValueType.Composite || type == DicomValueType.Image || type == DicomValueType.Waveform) { Dataset.Add(DicomTag.ReferencedSOPSequence, value); } else { throw new DicomStructuredReportException("Type of DicomReferencedSOP is not the correct value type for {0} content item.", type); } }
public DicomContentItem(DicomCodeItem code, DicomRelationshipType relationship, DicomValueType type, string value) { Dataset = new DicomDataset(); Code = code; Relationship = relationship; Type = type; if (type == DicomValueType.Text) { Dataset.Add(DicomTag.TextValue, value); } else if (type == DicomValueType.PersonName) { Dataset.Add(DicomTag.PersonName, value); } else { throw new DicomStructuredReportException("Type of string is not the correct value type for {0} content item.", type); } }