The DCXSR Interface is used for quickly creating DICOM Structured Reports. More...
Inherits IDispatch.
Public Member Functions | |
HRESULT | AddContent ([in] BSTR Code, [in] BSTR Designator, [in] BSTR Meaning, [in] VARIANT Value) |
HRESULT | AddDictContainer ([in] BSTR Code, [in] SR_CONTINUITY continuity) |
Add a container node that is defined in the dictionary file StructuredReport.dic. More... | |
HRESULT | AddDictValue ([in] BSTR Code, [in] BSTR Value) |
Adds a value that is defined in the dictionary file StructuredReport.dic The Value type is determined from the dictionary. If value type is numeric, then the units has to be defined in the dictionary. More... | |
HRESULT | AddDictTextValue ([in] BSTR Code, [in] BSTR TextValue) |
Adds a TEXT value that is defined in the dictionary file StructuredReport.dic. More... | |
HRESULT | AddDictCodedValue ([in] BSTR Code, [in] BSTR CodedValue) |
Adds a CODE value that is defined in the dictionary file StructuredReport.dic If value type is numeric, then the units has to be defined in the dictionary. More... | |
HRESULT | AddDictPersonNameValue ([in] BSTR Code, [in] BSTR PersonNameValue) |
Adds a PNAME (Person Name) node that is defined in the dictionary file StructuredReport.dic. More... | |
HRESULT | AddDictDateValue ([in] BSTR Code, [in] VARIANT) |
Adds a DATE node that is defined in the dictionary file StructuredReport.dic. More... | |
HRESULT | AddDictTimeValue ([in] BSTR Code, [in] VARIANT) |
Adds a TIME node that is defined in the dictionary file StructuredReport.dic. More... | |
HRESULT | AddDictDateTimeValue ([in] BSTR Code, [in] VARIANT) |
Adds a DATETIME node that is defined in the dictionary file StructuredReport.dic. More... | |
HRESULT | AddDictNumericValue ([in] BSTR Code, [in] float NumericValue, [in] BSTR Units) |
Adds a NUM (Numeric) node that is defined in the dictionary file StructuredReport.dic with optional units code. More... | |
HRESULT | AddDictUIDREFValue ([in] BSTR Code, [in] BSTR UID) |
Adds a UIDREF (Unique Identifier Reference) node that is defined in the dictionary file StructuredReport.dic. More... | |
HRESULT | AddDictCompositeValue ([in] BSTR Code, [in] BSTR SOPClassUID, [in] BSTR SOPInstanceUID) |
Adds a COMPOSITE (Unique Identifier Reference) node that is defined in the dictionary file StructuredReport.dic. More... | |
HRESULT | AddDictImageValue ([in] BSTR CodeOrRelType, [in] BSTR SOPClassUID, [in] BSTR SOPInstanceUID, [in] BSTR FrameNumbers, [in] BSTR PS_SOPClassUID, [in] BSTR PS_SOPInstanceUID) |
Adds a IMAGE node that is defined in the dictionary file StructuredReport.dic. More... | |
HRESULT | AddDictWaveformValue ([in] BSTR Code, [in] BSTR SOPClassUID, [in] BSTR SOPInstanceUID, [in] VARIANT WaveformCahnnels) |
Adds a WAVEFORM node that is defined in the dictionary file StructuredReport.dic. More... | |
HRESULT | AddDictSCOORDValue ([in] BSTR Code, [in] SR_GRAPHIC_TYPE GraphicType, [in] VARIANT GraphicData) |
Adds a SCOORD (Spatial Coordinates) node that is defined in the dictionary file StructuredReport.dic. More... | |
HRESULT | AddDictTCOORDValue ([in] BSTR Code, [in] SR_TEMPORAL_RANGE_TYPE TemporalRangeType, [in] VARIANT ReferencedTimes) |
Adds a TCOORD (Time Coordinates) node that is defined in the dictionary file StructuredReport.dic The third parameter, ReferencedTimes, is an array of time points in one of the following representations: More... | |
HRESULT | CreateNewReport ([in] BSTR SOPClassUID, [in] BSTR TitleCode) |
Create a new report. More... | |
HRESULT | UpOneLevel () |
Go up one level in the tree. More... | |
HRESULT | OpenDictionary (BSTR filename) |
Open dictionary for use in further calls. More... | |
HRESULT | AddReferencedContentItem ([in] SR_RELATIONSHIP_TYPE RelType, [in] SR_NODE_ID Val) |
Add a referenced content item. See CurrentNodeID. | |
HRESULT | AddImageValue ([in] SR_RELATIONSHIP_TYPE RelType, [in] BSTR SOPClassUID, [in] BSTR SOPInstanceUID, [in] BSTR FrameNumbers, [in] BSTR PS_SOPClassUID, [in] BSTR PS_SOPInstanceUID) |
HRESULT | ToHtml ([out, retval] BSTR *htmlString) |
Write the report content as HTML. | |
Properties | |
pVal | Object [get, set] |
Set/Get report content as a DICOM Object. | |
pVal | CurrentNodeID [get] |
BSTR | XML [get, set] |
Set/Get XML representation of the report. | |
The DCXSR Interface is used for quickly creating DICOM Structured Reports.
Structured Reporting API (SR)
This feature is not part of the default license and requires R2 license. For more detailed on licening please check the relevant pages on our web site www.roniza.com Structured Reporting can be evaluated in the trial version. The SR API design is based on the tabular programming for easy creation and validation of SR Documents. The entries are defined in a text file, called StructuredReport.dic. This dictionary file should be placed in the execution directory of the program.
HRESULT IDCXSR::AddContent | ( | [in] BSTR | Code, |
[in] BSTR | Designator, | ||
[in] BSTR | Meaning, | ||
[in] VARIANT | Value | ||
) |
HRESULT IDCXSR::AddDictCodedValue | ( | [in] BSTR | Code, |
[in] BSTR | CodedValue | ||
) |
Adds a CODE value that is defined in the dictionary file StructuredReport.dic If value type is numeric, then the units has to be defined in the dictionary.
HRESULT IDCXSR::AddDictCompositeValue | ( | [in] BSTR | Code, |
[in] BSTR | SOPClassUID, | ||
[in] BSTR | SOPInstanceUID | ||
) |
Adds a COMPOSITE (Unique Identifier Reference) node that is defined in the dictionary file StructuredReport.dic.
Code | The code defining the concept name of the value using the dictionary. The Code may be NULL if the IMAGE node is added as a child node of a TCOORD or SCOORD. See see D. Clunie DICOM SR BOOK at http://www.pixelmed.com/srbook.html p. 102 |
SOPClassUID | The SOP Class UID Value to add |
SOPInstanceUID | The SOP Class Instance Value to add |
HRESULT IDCXSR::AddDictContainer | ( | [in] BSTR | Code, |
[in] SR_CONTINUITY | continuity | ||
) |
Add a container node that is defined in the dictionary file StructuredReport.dic.
Code | The code that uniquely identifies this entry |
continuity | Continuity of this container. This parameter is currently not in use and is ignored. |
HRESULT IDCXSR::AddDictDateTimeValue | ( | [in] BSTR | Code, |
[in] VARIANT | |||
) |
Adds a DATETIME node that is defined in the dictionary file StructuredReport.dic.
Code | The code defining the concept name of the value using the dictionary |
HRESULT IDCXSR::AddDictDateValue | ( | [in] BSTR | Code, |
[in] VARIANT | |||
) |
Adds a DATE node that is defined in the dictionary file StructuredReport.dic.
HRESULT IDCXSR::AddDictImageValue | ( | [in] BSTR | CodeOrRelType, |
[in] BSTR | SOPClassUID, | ||
[in] BSTR | SOPInstanceUID, | ||
[in] BSTR | FrameNumbers, | ||
[in] BSTR | PS_SOPClassUID, | ||
[in] BSTR | PS_SOPInstanceUID | ||
) |
Adds a IMAGE node that is defined in the dictionary file StructuredReport.dic.
CodeOrRelType | The code defining the concept name of the value using the dictionary. The Code may be NULL if the IMAGE node is added as a child node of a TCOORD or SCOORD. See see D. Clunie DICOM SR BOOK at http://www.pixelmed.com/srbook.html p. 102 |
SOPClassUID | The SOP Class UID of the referenced image |
SOPInstanceUID | The SOP Instance UID of the referenced image |
FrameNumbers | Optional ; separated list of referenced frame numbers (e.g. "5;8" means reference to frames 5 and 8) or NULL |
PS_SOPClassUID | Optional SOP Class UID of referenced Presentation State for the referenced image or NULL |
PS_SOPInstanceUID | Optional SOP Instance UID of referenced Presentation State for the referenced image or NULL |
HRESULT IDCXSR::AddDictNumericValue | ( | [in] BSTR | Code, |
[in] float | NumericValue, | ||
[in] BSTR | Units | ||
) |
Adds a NUM (Numeric) node that is defined in the dictionary file StructuredReport.dic with optional units code.
Code | The code defining the concept name of the value using the dictionary |
NumericValue | The numeric value |
Units | If provided, overrides the units defined in the dictionary |
HRESULT IDCXSR::AddDictPersonNameValue | ( | [in] BSTR | Code, |
[in] BSTR | PersonNameValue | ||
) |
Adds a PNAME (Person Name) node that is defined in the dictionary file StructuredReport.dic.
HRESULT IDCXSR::AddDictSCOORDValue | ( | [in] BSTR | Code, |
[in] SR_GRAPHIC_TYPE | GraphicType, | ||
[in] VARIANT | GraphicData | ||
) |
Adds a SCOORD (Spatial Coordinates) node that is defined in the dictionary file StructuredReport.dic.
An SCOORD content item will always have one or more children that are of IMAGE value type
Code | The code defining the concept name of the value using the dictionary |
GraphicType | Graphic Type. See SR_GRAPHIC_TYPE |
GraphicData | A two dimenstional array (in C++ use SAFEARRAY) with dimentions Nx2 with float data values of the graphic. First point X is GraphicData[0][0] and First Point Y is GraphicData[0][1] |
HRESULT IDCXSR::AddDictTCOORDValue | ( | [in] BSTR | Code, |
[in] SR_TEMPORAL_RANGE_TYPE | TemporalRangeType, | ||
[in] VARIANT | ReferencedTimes | ||
) |
Adds a TCOORD (Time Coordinates) node that is defined in the dictionary file StructuredReport.dic The third parameter, ReferencedTimes, is an array of time points in one of the following representations:
Code | The code defining the concept name of the value using the dictionary |
TemporalRangeType | Temporal Range Type. See SR_TEMPORAL_RANGE_TYPE |
ReferencedTimes | An array with the time values |
HRESULT IDCXSR::AddDictTextValue | ( | [in] BSTR | Code, |
[in] BSTR | TextValue | ||
) |
Adds a TEXT value that is defined in the dictionary file StructuredReport.dic.
HRESULT IDCXSR::AddDictTimeValue | ( | [in] BSTR | Code, |
[in] VARIANT | |||
) |
Adds a TIME node that is defined in the dictionary file StructuredReport.dic.
HRESULT IDCXSR::AddDictUIDREFValue | ( | [in] BSTR | Code, |
[in] BSTR | UID | ||
) |
Adds a UIDREF (Unique Identifier Reference) node that is defined in the dictionary file StructuredReport.dic.
Code | The code defining the concept name of the value using the dictionary |
UID | The UID Value to add |
HRESULT IDCXSR::AddDictValue | ( | [in] BSTR | Code, |
[in] BSTR | Value | ||
) |
Adds a value that is defined in the dictionary file StructuredReport.dic The Value type is determined from the dictionary. If value type is numeric, then the units has to be defined in the dictionary.
Code | The code that uniquely identifies this entry |
Value | The value of this entry in string representation. The value will be parsed based on the value type in the dictionary. |
HRESULT IDCXSR::AddDictWaveformValue | ( | [in] BSTR | Code, |
[in] BSTR | SOPClassUID, | ||
[in] BSTR | SOPInstanceUID, | ||
[in] VARIANT | WaveformCahnnels | ||
) |
Adds a WAVEFORM node that is defined in the dictionary file StructuredReport.dic.
Code | The code defining the concept name of the value using the dictionary. |
SOPClassUID | The SOP Class UID of the referenced Waveform |
SOPInstanceUID | The SOP Instance UID of the referenced Waveform |
WaveformCahnnels | An array with 2 - 2n selected Waveform channel numbers (unsigned shorts) |
HRESULT IDCXSR::AddImageValue | ( | [in] SR_RELATIONSHIP_TYPE | RelType, |
[in] BSTR | SOPClassUID, | ||
[in] BSTR | SOPInstanceUID, | ||
[in] BSTR | FrameNumbers, | ||
[in] BSTR | PS_SOPClassUID, | ||
[in] BSTR | PS_SOPInstanceUID | ||
) |
Add image node with no concept name Use this method to add image node without concept name. This is usefull for key images and references.
RelType | The relationship with parent |
SOPClassUID | The SOP Class UID of the referenced image |
SOPInstanceUID | The SOP Instance UID of the referenced image |
FrameNumbers | Optional ; separated list of referenced frame numbers (e.g. "5;8" means reference to frames 5 and 8) or NULL |
PS_SOPClassUID | Optional SOP Class UID of referenced Presentation State for the referenced image or NULL |
PS_SOPInstanceUID | Optional SOP Instance UID of referenced Presentation State for the referenced image or NULL |
HRESULT IDCXSR::CreateNewReport | ( | [in] BSTR | SOPClassUID, |
[in] BSTR | TitleCode | ||
) |
Create a new report.
This operation discards any prviously added data. Currently supported SOP Classes:
SOPClassUID | A valid SR SOP Class |
TitleCode | A code, predefined in the dictionary file for the document title |
HRESULT IDCXSR::OpenDictionary | ( | BSTR | filename | ) |
Open dictionary for use in further calls.
HRESULT IDCXSR::UpOneLevel | ( | ) |
Go up one level in the tree.
When adding a container item, next item will be added to it. In order to add items after the container item, call this method.
|
getproperty |
The ID of the current item. If an item was just added, then this is the ID of it. If UpOneLevel was called then the returned value is of the parent and so on.