11-13-2008, 15:11
|
gnoonan
Joined on 11-12-2008
Posts 3
|
Re: Problem updating older versions for dicom compliance
|
 
 
|
|
|
<BLOCKQUOTE><table width="85%"><tr><td class="txt4"><img src="/SupportPortal/CS/Themes/default/images/icon-quote.gif"> <strong>gnoonan wrote:</strong></td></tr><tr><td class="quoteTable"><table width="100%"><tr><td width="100%" valign="top" class="txt4">I am using lead tools v.14
but let me state a better question.
what is the proper way to write a tag sequence using
LTDICLib.LeadDicomDS
(i.e. 'Anatomic Region Sequence', (0008,2218))
I have the following:
nRet = DicomDS.InsertElement(False, &H82218, LTDICLib.DicomVRCodeConstants.VR_SQ, True, 0)
If nRet = 0 Then
DicomDS.InsertElement(True, &H80100, LTDICLib.DicomVRCodeConstants.VR_SH, False, 0)
DicomDS.StringValueCount = 1
DicomDS.StringValues(0) = "T-45400"
DicomDS.SetStringValue(1)
DicomDS.StringValueCount = 0
DicomDS.SetCurrentElement(&H82218)
DicomDS.InsertElement(True, &H80102, LTDICLib.DicomVRCodeConstants.VR_SH, False, 1)
DicomDS.StringValueCount = 1
DicomDS.StringValues(0) = "T-45400"
DicomDS.SetStringValue(1)
DicomDS.StringValueCount = 0
DicomDS.SetCurrentElement(&H82218)
DicomDS.InsertElement(True, &H80104, LTDICLib.DicomVRCodeConstants.VR_LO, False, 2)
DicomDS.StringValueCount = 1
DicomDS.StringValues(0) = "T-45400"
DicomDS.SetStringValue(1)
DicomDS.StringValueCount = 0
DicomDS.SetCurrentElement(&H82218)
End If
nRet = DicomDS.InsertElement(False, &H110012, LTDICLib.DicomVRCodeConstants.VR_LO, False, 0)
If nRet = 0 Then
.StringValueCount = 1
.StringValues(0) = Extremity
.SetStringValue(1)
.StringValueCount = 0
End If
This complies and runs fine but when i try to validate my Dicom compliance it gives off lots of errors that are not there if this is not written
thanks</td></tr></table></td></tr></table></BLOCKQUOTE>
basically i think i need to specify the length of the sequence and the delitmiters, this is where i am getting the errors. If you could provide an example that generates a sequence for me that would be great.
|
|
|
|
|
Report
|
|
|
|