i am having difficulty trying to simply add a multi-valued field. any help would be appreciated. here is a code snippet:
Code: Select all
OFCondition result;
DcmItem *item_id_1 = new DcmItem();
result = item_id_1->putAndInsertFloat32( DCM_GraphicData /*(0070,0022)*/, 1.0, 0, OFTrue);
result = item_id_1->putAndInsertFloat32( DCM_GraphicData /*(0070,0022)*/, 2.0, 1, OFTrue);
the first call to putAndInsertFloat32 is successful, but the following calls generate an "Illegal call, perhaps the wrong parameters" message. simply put, i need tag (0070,0022) to have a VM of 2 and contain 1.0\2.0. i have tried several combinations for the third parameter, which is the position, but have not had any success.
thanks in advance for your help,
joel