18.12.2012 Views

Configuration - Merge Healthcare

Configuration - Merge Healthcare

Configuration - Merge Healthcare

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Merge</strong> DICOM Toolkit Reference Manual<br />

See Also<br />

MC_Get_pValue... Functions MC_Get_pValue_To_Function<br />

MC_Get_Next_pValue... Functions MC_Get_Value_To_Function<br />

MC_Get_Next_Value... Functions<br />

MC_Get_Value_Count<br />

Returns the number of values assigned to an attribute in a message object.<br />

Synopsis<br />

#include “mc3msg.h”<br />

MC_STATUS MC_Get_Value_Count (<br />

int MsgFileItemID,<br />

unsigned long Tag,<br />

int* CountPtr<br />

)<br />

MsgFileItemID The identifier assigned to this object by the<br />

MC_Open_Message, MC_Open_Empty_Message,<br />

MC_Create_File, MC_Create_Empty_File, or<br />

MC_Open_Item functions.<br />

Tag DICOM tag which identifies the attribute.<br />

CountPtr The number of values the attribute contains is returned here.<br />

Remarks<br />

MC_Get_Value_Count returns the number of values assigned to an attribute in a<br />

message object. The number is returned at *CountPtr.<br />

Only certain attributes are allowed to contain multiple values and be conformant<br />

to the DICOM standard. The developer usually knows ahead of time which<br />

attributes will contain multiple values and which will not. Some attributes, such as<br />

those with value representations of OB or OW, may never contain more than one<br />

value.<br />

Return Value<br />

One of these enumerated MC_STATUS codes define in “mcstatus.h”:<br />

Value Meaning<br />

MC_NORMAL_COMPLETION The function completed normally.<br />

MC_NULL_POINTER_PARM CountPtr was NULL.<br />

MC_INVALID_TAG The message does not contain an<br />

attribute with an ID of Tag.<br />

MC_INVALID_MESSAGE_ID MsgFileItemID is not a valid message<br />

object ID, file object ID or item object ID.<br />

MC_NULL_VALUE The attribute contains a NULL value (i.e.<br />

its value is of length zero).<br />

MC_EMPTY_VALUE No value has been assigned to the<br />

attribute.<br />

145

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!