public class ContentItemFactory.CodeContentItem extends ContentItemWithValue
| Modifier and Type | Field and Description |
|---|---|
protected CodedSequenceItem |
conceptCode |
conceptName, referencedContentItemIdentifier, valueTyperelationshipType| Constructor and Description |
|---|
CodeContentItem(ContentItem parent,
AttributeList list) |
CodeContentItem(ContentItem parent,
java.lang.String relationshipType,
CodedSequenceItem conceptName,
CodedSequenceItem conceptCode) |
| 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, getValueTypeaddChild, addSibling, children, contentItemNameMatchesCodeValueAndCodingSchemeDesignator, getAllowsChildren, getAttributeList, getChildAt, getChildCount, getGraphicData, getGraphicType, getIndex, getNamedChild, getNamedChild, getParent, getParentAsContentItem, getPositionInTreeToUseAsReferencedContentItemIdentifier, getReferencedContentItemIdentifier, getReferencedContentItemIdentifierArray, getReferencedSOPClassUID, getReferencedSOPInstanceUID, getRelationshipType, getSingleStringValueOrNull, getSingleStringValueOrNullOfNamedChild, getSingleStringValueOrNullOfNamedChild, isLeafprotected 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 java.lang.String getConceptValue()
ContentItemWithValueGet 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 ContentItemWithValuepublic java.lang.String toString()
ContentItemWithValueGet a human-readable string representation of the content item.
toString in class ContentItemWithValuepublic CodedSequenceItem getConceptCode()
public 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 wanted