- element
- A DicomElement in the data set. The Private Creator Data Element will be inserted at the same level as this item.
- elementGroup
- Group number of the private creator data element.
- elementNumber
- Element number of the private creator data element.
- idCode
- String identifier that is assigned to the private creator data element.
Visual Basic (Declaration) | |
---|---|
Public Function CreatePrivateCreatorDataElement( _ ByVal element As DicomElement, _ ByVal elementGroup As Integer, _ ByVal elementNumber As Integer, _ ByVal idCode As String _ ) As DicomElement |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public DicomElement CreatePrivateCreatorDataElement( DicomElement element, int elementGroup, int elementNumber, string idCode ) |
C++/CLI | |
---|---|
public: DicomElement^ CreatePrivateCreatorDataElement( DicomElement^ element, int elementGroup, int elementNumber, String^ idCode ) |
Parameters
- element
- A DicomElement in the data set. The Private Creator Data Element will be inserted at the same level as this item.
- elementGroup
- Group number of the private creator data element.
- elementNumber
- Element number of the private creator data element.
- idCode
- String identifier that is assigned to the private creator data element.
Return Value
The newly inserted Private Creator Data Element.This example shows the steps to properly reserve and insert some private tags 1. Reserve elements by first creating a 'Private Creator Data Element'-- create in group 'uGroup', and take first available element 2. Now insert five private elements that have been reserved by the 'Private Creator Data Element'
Visual Basic | Copy Code |
---|---|
Public Sub DicomDataSet_CreatePrivateCreatorDataElement(ByVal ds As DicomDataSet, ByVal root As DicomElement, ByVal elementGroup As Integer) |
C# | Copy Code |
---|---|
public void DicomDataSet_CreatePrivateCreatorDataElement(DicomDataSet ds, DicomElement root, int elementGroup) |
This feature is available in version 16 or higher.
A DICOM Data Set can have private data which is stored in private tags. Private tags are reserved by adding a Private Creator Data Element to the data set. Elements of the form (gggg,0010-00FF) represent private creator data elements. More specifically:
Private Creator Data Elements are elements of the form (gggg,eeee) where:
gggg is a four-digit hexadecimal group number eeee is a four-digit hexadecimal element number gggg is odd gggg is NOT 0001, 0003, 0005, 0007 or FFFF eeee is in the range 0010 to 00FF Value Representation is LO (Long String). Value Multiplicity is 1
A private creator data element of the form (gggg,00ee) reserves the following 256 elements, which can be of any value representation:
(gggg, ee00) (gggg, ee01) (gggg, ee02) … (gggg, eeFF)
For example, suppose you want to add the following three private elements to a DICOM data set:
(0017,1201) (0017,1203) (0017,1205)
You would first reserve the elements by adding the corresponding private creator data element (0017, 0012).
When using CreatePrivateCreatorDataElement, the created private creator data element is on the same level as element. If element is null, the private creator data element is created at the top or first level.
If parameter uElementNumber is 0xFFFF, the private creator data element is created with the first available element number in group groupNumber.
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family