Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Problem updating older versions for dicom compliance
Started by gnoonan at 11-12-2008 16:41. Topic has 4 replies.

Print Search « Previous Thread Next Thread »
  11-12-2008, 16:41
gnoonan is not online. Last active: 11/12/2008 9:37:31 PM gnoonan

Not Ranked
Joined on 11-12-2008
Posts 3
Problem updating older versions for dicom compliance
Reply Quote
nRet = .InsertElement(False, &H102293, LTDICLib.DicomVRCodeConstants.VR_CS, True, 0)

If nRet = 0 Then

.StringValueCount = 1

.StringValues(0) = "L-8BB75"

.SetStringValue(1)

.StringValueCount = 0

End If


the above code gives me a general failure.

any ideas as to why?


   Report 
  11-13-2008, 9:56
Adnan Ismail is not online. Last active: 1/6/2009 4:12:02 PM Adnan Ismail



Top 10 Posts
Joined on 07-31-2006
Posts 1,364
Re: Problem updating older versions for dicom compliance
Reply Quote
Can you give me more details about the problem you are facing? Which version of LEADTOOLS (v14.x,v15, etc.) you are using? Can you isolate the problem using your code in a very small test project(not your full application)? If you managed to do that, please send me this project in a ZIP or RAR file.
Also, please mention what build number (version info) of LEADTOOLS DLLs you have.
Adnan Ismail
LEADTOOLS Technical Support

   Report 
  11-13-2008, 11:59
gnoonan is not online. Last active: 11/12/2008 9:37:31 PM gnoonan

Not Ranked
Joined on 11-12-2008
Posts 3
Re: Problem updating older versions for dicom compliance
Reply Quote
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
   Report 
  11-13-2008, 15:11
gnoonan is not online. Last active: 11/12/2008 9:37:31 PM gnoonan

Not Ranked
Joined on 11-12-2008
Posts 3
Re: Problem updating older versions for dicom compliance
Reply Quote
<BLOCKQUOTE><table width="85%"><tr><td class="txt4"><img src="/SupportPortal/CS/Themes/default/images/icon-quote.gif">&nbsp;<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 
  11-16-2008, 11:44
Adnan Ismail is not online. Last active: 1/6/2009 4:12:02 PM Adnan Ismail



Top 10 Posts
Joined on 07-31-2006
Posts 1,364
Re: Problem updating older versions for dicom compliance
Reply Quote
You are passing hard-coded numbers to the SetCurrentElement method, which is incorrect. You should be passing an element handle there. Please see how our own demos use this method.
Adnan Ismail
LEADTOOLS Technical Support

   Report 
Post
LEAD Support Fo... » Developer » DICOM/Medical I... » Problem updating older versions for dicom compliance

Powered by Community Server, by Telligent Systems