public class ContentItemFactory.CodeContentItem extends ContentItemWithValue
Modifier and Type | Field and Description |
---|---|
protected CodedSequenceItem |
conceptCode |
conceptName, referencedContentItemIdentifier, valueType
observationDateTime, observationUID, relationshipType
Constructor and Description |
---|
CodeContentItem(ContentItem parent,
AttributeList list) |
CodeContentItem(ContentItem parent,
java.lang.String relationshipType,
CodedSequenceItem conceptName,
CodedSequenceItem conceptCode) |
CodeContentItem(ContentItem parent,
java.lang.String relationshipType,
CodedSequenceItem conceptName,
CodedSequenceItem conceptCode,
java.lang.String observationDateTime,
java.lang.String observationUID) |
Modifier and Type | Method and Description |
---|---|
boolean |
contentItemValueMatchesCodeValueAndCodingSchemeDesignator(java.lang.String cvWanted,
java.lang.String csdWanted)
Test if the coded value of the code content item matches the specified code value and coding scheme designator.
|
CodedSequenceItem |
getConceptCode() |
java.lang.String |
getConceptValue()
Get a string representation of the value of the concept.
|
java.lang.String |
toString()
Get a human-readable string representation of the content item.
|
contentItemNameMatchesCodeValueAndCodingSchemeDesignator, getConceptName, getConceptNameAndValue, getConceptNameCodeMeaning, getConceptNameCodeValue, getConceptNameCodingSchemeDesignator, getValueType
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 conceptCode
public CodeContentItem(ContentItem parent, AttributeList list)
parent
- parent content item to add tolist
- the list of attributes for this content itempublic CodeContentItem(ContentItem parent, java.lang.String relationshipType, CodedSequenceItem conceptName, CodedSequenceItem conceptCode) throws DicomException
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept nameconceptCode
- coded valueDicomException
- if error in DICOM encodingpublic CodeContentItem(ContentItem parent, java.lang.String relationshipType, CodedSequenceItem conceptName, CodedSequenceItem conceptCode, java.lang.String observationDateTime, java.lang.String observationUID) throws DicomException
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept nameconceptCode
- coded valueobservationDateTime
- Observation DateTime (or null or empty if none)observationUID
- Observation UID (or null or empty if none)DicomException
- if error in DICOM encodingpublic boolean contentItemValueMatchesCodeValueAndCodingSchemeDesignator(java.lang.String cvWanted, java.lang.String csdWanted)
csdWanted
- the coding scheme designator of the coded value wantedcvWanted
- the code value of the coded value wantedpublic CodedSequenceItem getConceptCode()
public java.lang.String getConceptValue()
ContentItemWithValue
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 ContentItemWithValue
public java.lang.String toString()
ContentItemWithValue
Get a human-readable string representation of the content item.
toString
in class ContentItemWithValue