Package com.pixelmed.dicom
Class ContentItemFactory.CodeContentItem
java.lang.Object
com.pixelmed.dicom.ContentItem
com.pixelmed.dicom.ContentItemWithValue
com.pixelmed.dicom.ContentItemFactory.CodeContentItem
- All Implemented Interfaces:
TreeNode
- Enclosing class:
- ContentItemFactory
-
Field Summary
FieldsFields inherited from class com.pixelmed.dicom.ContentItemWithValue
conceptName, referencedContentItemIdentifier, valueType
Fields inherited from class com.pixelmed.dicom.ContentItem
observationDateTime, observationUID, relationshipType
-
Constructor Summary
ConstructorsConstructorDescriptionCodeContentItem
(ContentItem parent, AttributeList list) CodeContentItem
(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, CodedSequenceItem conceptCode) CodeContentItem
(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, CodedSequenceItem conceptCode, String observationDateTime, String observationUID) -
Method Summary
Modifier and TypeMethodDescriptionboolean
contentItemValueMatchesCodeValueAndCodingSchemeDesignator
(String cvWanted, String csdWanted) Test if the coded value of the code content item matches the specified code value and coding scheme designator.Get a string representation of the value of the concept.toString()
Get a human-readable string representation of the content item.Methods inherited from class com.pixelmed.dicom.ContentItemWithValue
contentItemNameMatchesCodeValueAndCodingSchemeDesignator, getConceptName, getConceptNameAndValue, getConceptNameCodeMeaning, getConceptNameCodeValue, getConceptNameCodingSchemeDesignator, getValueType
Methods inherited from class com.pixelmed.dicom.ContentItem
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
-
Field Details
-
conceptCode
-
-
Constructor Details
-
CodeContentItem
- Parameters:
parent
- parent content item to add tolist
- the list of attributes for this content item
-
CodeContentItem
public CodeContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, CodedSequenceItem conceptCode, String observationDateTime, String observationUID) throws DicomException - Parameters:
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)- Throws:
DicomException
- if error in DICOM encoding
-
CodeContentItem
public CodeContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, CodedSequenceItem conceptCode) throws DicomException - Parameters:
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept nameconceptCode
- coded value- Throws:
DicomException
- if error in DICOM encoding
-
-
Method Details
-
getConceptValue
Description copied from class: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.
- Specified by:
getConceptValue
in classContentItemWithValue
- Returns:
- a String representation of the name and value, or an empty string
-
toString
Description copied from class:ContentItemWithValue
Get a human-readable string representation of the content item.
- Overrides:
toString
in classContentItemWithValue
- Returns:
- the string representation of the content item
-
getConceptCode
-
contentItemValueMatchesCodeValueAndCodingSchemeDesignator
public boolean contentItemValueMatchesCodeValueAndCodingSchemeDesignator(String cvWanted, String csdWanted) Test if the coded value of the code content item matches the specified code value and coding scheme designator. This is more robust than checking code meaning, which may have synomyms, and there is no need to also test code meaning.- Parameters:
csdWanted
- the coding scheme designator of the coded value wantedcvWanted
- the code value of the coded value wanted- Returns:
- true if matches
-