AnnotationGroupFactory

Constructor

new AnnotationGroupFactory()

Methods

checkElements(dataElements) → {string|undefined}

Check dicom elements. Throws an error if not suitable.

Parameters:
NameTypeDescription
dataElementsObject.<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:
NameTypeDescription
dataElementsObject.<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:
NameTypeAttributesDescription
annotationGroupAnnotationGroup

The annotation group.

extraTagsObject.<string, any><optional>

Optional list of extra tags.

Returns:

A list of dicom elements.

Type: 
Object.<string, DataElement>