Methods
checkElements(dataElements) → {string|undefined}
Check dicom elements. Throws an error if not suitable.
Parameters:
Name | Type | Description |
---|---|---|
dataElements | Object.<string, DataElement> | The DICOM data elements. |
Returns:
A possible warning.
- Type:
- string |
undefined
create(dataElements) → {AnnotationGroup}
Get an Annotation object from the read DICOM file.
Parameters:
Name | Type | Description |
---|---|---|
dataElements | Object.<string, DataElement> | The DICOM tags. |
Returns:
A new annotation group.
- Type:
- AnnotationGroup
getWarning() → {string|undefined}
Get a warning string if elements are not as expected. Created by checkElements.
Returns:
The warning.
- Type:
- string |
undefined
toDicom(annotationGroup, extraTagsopt) → {Object.<string, DataElement>}
Convert an annotation group into a DICOM SR object.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
annotationGroup | AnnotationGroup | The annotation group. | |
extraTags | Object.<string, any> | <optional> | Optional list of extra tags. |
Returns:
A list of dicom elements.
- Type:
- Object.<string, DataElement>