Class ContentItemFactory.CodeContentItem

    • Constructor Detail

      • CodeContentItem

        public CodeContentItem​(ContentItem parent,
                               AttributeList list)
        Parameters:
        parent - parent content item to add to
        list - the list of attributes for this content item
      • CodeContentItem

        public CodeContentItem​(ContentItem parent,
                               java.lang.String relationshipType,
                               CodedSequenceItem conceptName,
                               CodedSequenceItem conceptCode,
                               java.lang.String observationDateTime,
                               java.lang.String observationUID)
                        throws DicomException
        Parameters:
        parent - parent content item to add to
        relationshipType - relationship type
        conceptName - coded concept name
        conceptCode - coded value
        observationDateTime - 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,
                               java.lang.String relationshipType,
                               CodedSequenceItem conceptName,
                               CodedSequenceItem conceptCode)
                        throws DicomException
        Parameters:
        parent - parent content item to add to
        relationshipType - relationship type
        conceptName - coded concept name
        conceptCode - coded value
        Throws:
        DicomException - if error in DICOM encoding
    • Method Detail

      • getConceptValue

        public java.lang.String 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 class ContentItemWithValue
        Returns:
        a String representation of the name and value, or an empty string
      • toString

        public java.lang.String toString()
        Description copied from class: ContentItemWithValue

        Get a human-readable string representation of the content item.

        Overrides:
        toString in class ContentItemWithValue
        Returns:
        the string representation of the content item
      • contentItemValueMatchesCodeValueAndCodingSchemeDesignator

        public 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. 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 wanted
        cvWanted - the code value of the coded value wanted
        Returns:
        true if matches