public abstract class ContentItemWithValue extends ContentItem
An abstract class for representing a node in an internal representation of a structured reporting
tree (an instance of StructuredReport
).
The constructor is protected. Instances of specific types of content items should normally be created by using
the ContentItemFactory
.
ContentItem
,
ContentItemFactory
,
ContentItemWithReference
,
StructuredReport
,
StructuredReportBrowser
Modifier and Type | Field and Description |
---|---|
protected CodedSequenceItem |
conceptName |
protected java.lang.String |
referencedContentItemIdentifier |
protected java.lang.String |
valueType |
observationDateTime, observationUID, relationshipType
Modifier | Constructor and Description |
---|---|
protected |
ContentItemWithValue(ContentItem p,
AttributeList l)
Construct a content item for a list of attributes, and add it as a child of the specified parent.
|
protected |
ContentItemWithValue(ContentItem p,
java.lang.String valueType,
java.lang.String relationshipType,
CodedSequenceItem conceptName)
Construct a content item of a specified type and relationship, creating a new
AttributeList , and add it as a child of the specified parent. |
protected |
ContentItemWithValue(ContentItem p,
java.lang.String valueType,
java.lang.String relationshipType,
CodedSequenceItem conceptName,
java.lang.String observationDateTime,
java.lang.String observationUID)
Construct a content item of a specified type and relationship, creating a new
AttributeList , and add it as a child of the specified parent. |
Modifier and Type | Method and Description |
---|---|
boolean |
contentItemNameMatchesCodeValueAndCodingSchemeDesignator(java.lang.String cvWanted,
java.lang.String csdWanted)
Test if the coded concept name of the content item matches the specified code value and coding scheme designator.
|
CodedSequenceItem |
getConceptName()
Get the Concept Name.
|
java.lang.String |
getConceptNameAndValue()
Get a string representation of the concept name and the value of the concept.
|
java.lang.String |
getConceptNameCodeMeaning()
Get the value of the code meaning of the Concept Name as a string, if present and applicable.
|
java.lang.String |
getConceptNameCodeValue()
Get the value of the code value of the Concept Name as a string, if present and applicable.
|
java.lang.String |
getConceptNameCodingSchemeDesignator()
Get the value of the coding scheme designator of the Concept Name as a string, if present and applicable.
|
abstract java.lang.String |
getConceptValue()
Get a string representation of the value of the concept.
|
java.lang.String |
getValueType()
Get the value type of this content item.
|
java.lang.String |
toString()
Get a human-readable string representation of the content item.
|
addChild, addSibling, children, contentItemNameMatchesCodeValueAndCodingSchemeDesignator, getAllowsChildren, getAttributeList, getChildAt, getChildCount, getGraphicData, getGraphicType, getIndex, getNamedChild, getNamedChild, getObservationDateTime, getObservationUID, getParent, getParentAsContentItem, getPositionInTreeToUseAsReferencedContentItemIdentifier, getReferencedContentItemIdentifier, getReferencedContentItemIdentifierArray, getReferencedSOPClassUID, getReferencedSOPInstanceUID, getRelationshipType, getSingleStringValueOrNull, getSingleStringValueOrNullOfNamedChild, getSingleStringValueOrNullOfNamedChild, isLeaf
protected CodedSequenceItem conceptName
protected java.lang.String referencedContentItemIdentifier
protected java.lang.String valueType
protected ContentItemWithValue(ContentItem p, AttributeList l)
Construct a content item for a list of attributes, and add it as a child of the specified parent.
The constructor is protected. Instances of specific types of content items should normally be created by using
the ContentItemFactory
.
p
- the parentl
- the list of attributesprotected ContentItemWithValue(ContentItem p, java.lang.String valueType, java.lang.String relationshipType, CodedSequenceItem conceptName) throws DicomException
Construct a content item of a specified type and relationship, creating a new AttributeList
, and add it as a child of the specified parent.
The constructor is protected. Instances of specific types of content items should normally be created by using
the ContentItemFactory
.
p
- the parentvalueType
- value typerelationshipType
- added only if not null or zero lengthconceptName
- coded concept nameDicomException
- if error in DICOM encodingprotected ContentItemWithValue(ContentItem p, java.lang.String valueType, java.lang.String relationshipType, CodedSequenceItem conceptName, java.lang.String observationDateTime, java.lang.String observationUID) throws DicomException
Construct a content item of a specified type and relationship, creating a new AttributeList
, and add it as a child of the specified parent.
The constructor is protected. Instances of specific types of content items should normally be created by using
the ContentItemFactory
.
p
- the parentvalueType
- value typerelationshipType
- added only if not null or zero lengthconceptName
- coded concept nameobservationDateTime
- Observation DateTime, if anyobservationUID
- Observation UID, if anyDicomException
- if error in DICOM encodingpublic boolean contentItemNameMatchesCodeValueAndCodingSchemeDesignator(java.lang.String cvWanted, java.lang.String csdWanted)
ContentItem
contentItemNameMatchesCodeValueAndCodingSchemeDesignator
in class ContentItem
cvWanted
- the code value wantedcsdWanted
- the coding scheme designator wantedpublic CodedSequenceItem getConceptName()
Get the Concept Name.
getConceptName
in class ContentItem
public java.lang.String getConceptNameAndValue()
Get a string representation of the concept name and the value of the concept.
The exact form of the returned string is specific to the type of ContentItem.
getConceptNameAndValue
in class ContentItem
public java.lang.String getConceptNameCodeMeaning()
Get the value of the code meaning of the Concept Name as a string, if present and applicable.
getConceptNameCodeMeaning
in class ContentItem
public java.lang.String getConceptNameCodeValue()
Get the value of the code value of the Concept Name as a string, if present and applicable.
getConceptNameCodeValue
in class ContentItem
public java.lang.String getConceptNameCodingSchemeDesignator()
Get the value of the coding scheme designator of the Concept Name as a string, if present and applicable.
getConceptNameCodingSchemeDesignator
in class ContentItem
public abstract java.lang.String getConceptValue()
Get a string representation of the value of the concept.
The exact form of the returned string is specific to the type of ContentItem.
getConceptValue
in class ContentItem
public java.lang.String getValueType()
Get the value type of this content item.
getValueType
in class ContentItem
public java.lang.String toString()
Get a human-readable string representation of the content item.
toString
in class java.lang.Object