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 />

22<br />

MC_Add_Standard_Attribute<br />

Adds a new DICOM standard attribute to a message object.<br />

Synopsis<br />

#include “mc3msg.h”<br />

MC_STATUS MC_Add_Standard_Attribute (<br />

int MsgFileItemID,<br />

unsigned long Tag<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 MC_Open_Item<br />

functions.<br />

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

Remarks<br />

MC_Add_Standard_Attribute adds an attribute that exists in the DICOM Data<br />

Dictionary (a standard attribute) to an existing message. Adding this attribute<br />

may make the message non-conformant to DICOM since all necessary attributes<br />

should be determined by the service and command specified in the<br />

MC_Open_Message function. This implies MC_Validate_Message would<br />

report an error when used to validate such a message. This function might be<br />

used to construct a message to communicate with another non-conformant<br />

application.<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_INVALID_MESSAGE_ID MsgFileItemID is not a valid message<br />

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

MC_TAG_ALREADY_EXISTS The message already contains an<br />

attribute with an ID of Tag.<br />

MC_INVALID_TAG The Data Dictionary does not contain an<br />

attribute with an ID of Tag.<br />

MC_SYSTEM_ERROR An unexpected, potentially serious,<br />

problem was detected in the operating<br />

environment. A message describing the<br />

error has been written to the <strong>Merge</strong><br />

DICOM Toolkit log file.<br />

See Also<br />

MC_Add_Nonstandard_Attribute MC_Delete_Attribute<br />

MC_Add_Private_Attribute MC_Delete_Private_Attribute<br />

MC_Add_Private_Block MC_Delete_Private_Block<br />

MC_Delete_Range

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

Saved successfully!

Ooh no, something went wrong!