public class ContentItemFactory.NumericContentItem extends ContentItemWithValue
Modifier and Type | Field and Description |
---|---|
protected java.lang.Double |
floatingPointValue |
protected java.lang.String |
numericValue |
protected CodedSequenceItem |
qualifier |
protected java.lang.Long |
rationalDenominatorValue |
protected java.lang.Integer |
rationalNumeratorValue |
protected CodedSequenceItem |
units |
conceptName, referencedContentItemIdentifier, valueType
observationDateTime, observationUID, relationshipType
Constructor and Description |
---|
NumericContentItem(ContentItem parent,
AttributeList list) |
NumericContentItem(ContentItem parent,
boolean isNotSR,
java.lang.String relationshipType,
CodedSequenceItem conceptName,
CodedSequenceItem qualifier)
Construct numeric content item with empty
MeasuredValueSequence with qualifier explaining why it is empty. |
NumericContentItem(ContentItem parent,
boolean isNotSR,
java.lang.String relationshipType,
CodedSequenceItem conceptName,
double floatingPointValue,
CodedSequenceItem units) |
NumericContentItem(ContentItem parent,
boolean isNotSR,
java.lang.String relationshipType,
CodedSequenceItem conceptName,
int numerator,
long denominator,
CodedSequenceItem units,
java.lang.String observationDateTime,
java.lang.String observationUID) |
NumericContentItem(ContentItem parent,
boolean isNotSR,
java.lang.String relationshipType,
CodedSequenceItem conceptName,
java.lang.String numericValue,
CodedSequenceItem units,
CodedSequenceItem qualifier) |
NumericContentItem(ContentItem parent,
boolean isNotSR,
java.lang.String relationshipType,
CodedSequenceItem conceptName,
java.lang.String numericValue,
java.lang.Double floatingPointValue,
java.lang.Integer rationalNumeratorValue,
java.lang.Long rationalDenominatorValue,
CodedSequenceItem units,
CodedSequenceItem qualifier,
java.lang.String observationDateTime,
java.lang.String observationUID) |
NumericContentItem(ContentItem parent,
java.lang.String relationshipType,
CodedSequenceItem conceptName,
CodedSequenceItem qualifier)
Construct SR numeric content item with empty
MeasuredValueSequence with qualifier explaining why it is empty. |
NumericContentItem(ContentItem parent,
java.lang.String relationshipType,
CodedSequenceItem conceptName,
double floatingPointValue,
CodedSequenceItem units) |
NumericContentItem(ContentItem parent,
java.lang.String relationshipType,
CodedSequenceItem conceptName,
int numerator,
long denominator,
CodedSequenceItem units) |
NumericContentItem(ContentItem parent,
java.lang.String relationshipType,
CodedSequenceItem conceptName,
java.lang.String numericValue,
CodedSequenceItem units) |
NumericContentItem(ContentItem parent,
java.lang.String relationshipType,
CodedSequenceItem conceptName,
java.lang.String numericValue,
CodedSequenceItem units,
CodedSequenceItem qualifier) |
NumericContentItem(ContentItem parent,
java.lang.String relationshipType,
CodedSequenceItem conceptName,
java.lang.String numericValue,
java.lang.Double floatingPointValue,
java.lang.Integer rationalNumeratorValue,
java.lang.Long rationalDenominatorValue,
CodedSequenceItem units,
CodedSequenceItem qualifier) |
NumericContentItem(ContentItem parent,
java.lang.String relationshipType,
CodedSequenceItem conceptName,
java.lang.String numericValue,
java.lang.Double floatingPointValue,
java.lang.Integer rationalNumeratorValue,
java.lang.Long rationalDenominatorValue,
CodedSequenceItem units,
CodedSequenceItem qualifier,
java.lang.String observationDateTime,
java.lang.String observationUID) |
Modifier and Type | Method and Description |
---|---|
protected void |
constructOnlyQualifier(CodedSequenceItem qualifier) |
protected void |
doCommonConstructorStuff(boolean isNotSR,
java.lang.String numericValue,
CodedSequenceItem units,
CodedSequenceItem qualifier,
java.lang.Double floatingPointValue,
java.lang.Integer rationalNumeratorValue,
java.lang.Long rationalDenominatorValue) |
java.lang.String |
getConceptNameAndValue()
Get a string representation of the concept name and the value of the concept.
|
java.lang.String |
getConceptValue()
Get a string representation of the value of the concept.
|
double |
getFloatingPointValue() |
java.lang.String |
getNumericValue() |
CodedSequenceItem |
getQualifier() |
long |
getRationalDenominatorValue() |
int |
getRationalNumeratorValue() |
CodedSequenceItem |
getUnits() |
boolean |
hasFloatingPointValue() |
boolean |
hasRationalValue() |
java.lang.String |
toString()
Get a human-readable string representation of the content item.
|
contentItemNameMatchesCodeValueAndCodingSchemeDesignator, getConceptName, 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 java.lang.Double floatingPointValue
protected java.lang.String numericValue
protected CodedSequenceItem qualifier
protected java.lang.Long rationalDenominatorValue
protected java.lang.Integer rationalNumeratorValue
protected CodedSequenceItem units
public NumericContentItem(ContentItem parent, AttributeList list) throws DicomException
parent
- parent content item to add tolist
- the list of attributes for this content itemDicomException
- if error in DICOM encodingpublic NumericContentItem(ContentItem parent, boolean isNotSR, java.lang.String relationshipType, CodedSequenceItem conceptName, CodedSequenceItem qualifier) throws DicomException
Construct numeric content item with empty MeasuredValueSequence
with qualifier explaining why it is empty.
parent
- parent content item to add toisNotSR
- affects whether value type is NUM (false) or NUMERIC (true)relationshipType
- relationship typeconceptName
- coded concept namequalifier
- code for qualifierDicomException
- if error in DICOM encodingpublic NumericContentItem(ContentItem parent, boolean isNotSR, java.lang.String relationshipType, CodedSequenceItem conceptName, double floatingPointValue, CodedSequenceItem units) throws DicomException
parent
- parent content item to add toisNotSR
- affects whether value type is NUM (false) or NUMERIC (true)relationshipType
- relationship typeconceptName
- coded concept namefloatingPointValue
- will be converted to stringunits
- code for the unitsDicomException
- if error in DICOM encodingpublic NumericContentItem(ContentItem parent, boolean isNotSR, java.lang.String relationshipType, CodedSequenceItem conceptName, int numerator, long denominator, CodedSequenceItem units, java.lang.String observationDateTime, java.lang.String observationUID) throws DicomException
parent
- parent content item to add toisNotSR
- affects whether value type is NUM (false) or NUMERIC (true)relationshipType
- relationship typeconceptName
- coded concept namenumerator
- integer numeratordenominator
- integer denominatorunits
- code for the unitsobservationDateTime
- Observation DateTime (or null or empty if none)observationUID
- Observation UID (or null or empty if none)DicomException
- if error in DICOM encodingpublic NumericContentItem(ContentItem parent, boolean isNotSR, java.lang.String relationshipType, CodedSequenceItem conceptName, java.lang.String numericValue, CodedSequenceItem units, CodedSequenceItem qualifier) throws DicomException
parent
- parent content item to add toisNotSR
- affects whether value type is NUM (false) or NUMERIC (true)relationshipType
- relationship typeconceptName
- coded concept namenumericValue
- numeric value as decimal stringunits
- code for the unitsqualifier
- code for qualifierDicomException
- if error in DICOM encodingpublic NumericContentItem(ContentItem parent, boolean isNotSR, java.lang.String relationshipType, CodedSequenceItem conceptName, java.lang.String numericValue, java.lang.Double floatingPointValue, java.lang.Integer rationalNumeratorValue, java.lang.Long rationalDenominatorValue, CodedSequenceItem units, CodedSequenceItem qualifier, java.lang.String observationDateTime, java.lang.String observationUID) throws DicomException
parent
- parent content item to add toisNotSR
- affects whether value type is NUM (false) or NUMERIC (true)relationshipType
- relationship typeconceptName
- coded concept namenumericValue
- numeric value as decimal stringfloatingPointValue
- numeric value as floating pointrationalNumeratorValue
- integer numeratorrationalDenominatorValue
- integer denominatorunits
- code for the unitsqualifier
- code for qualifierobservationDateTime
- Observation DateTime (or null or empty if none)observationUID
- Observation UID (or null or empty if none)DicomException
- if error in DICOM encodingpublic NumericContentItem(ContentItem parent, java.lang.String relationshipType, CodedSequenceItem conceptName, CodedSequenceItem qualifier) throws DicomException
Construct SR numeric content item with empty MeasuredValueSequence
with qualifier explaining why it is empty.
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept namequalifier
- code for qualifierDicomException
- if error in DICOM encodingpublic NumericContentItem(ContentItem parent, java.lang.String relationshipType, CodedSequenceItem conceptName, double floatingPointValue, CodedSequenceItem units) throws DicomException
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept namefloatingPointValue
- will be converted to stringunits
- code for the unitsDicomException
- if error in DICOM encodingpublic NumericContentItem(ContentItem parent, java.lang.String relationshipType, CodedSequenceItem conceptName, int numerator, long denominator, CodedSequenceItem units) throws DicomException
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept namenumerator
- integer numeratordenominator
- integer denominatorunits
- code for the unitsDicomException
- if error in DICOM encodingpublic NumericContentItem(ContentItem parent, java.lang.String relationshipType, CodedSequenceItem conceptName, java.lang.String numericValue, CodedSequenceItem units) throws DicomException
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept namenumericValue
- numeric value as decimal stringunits
- code for the unitsDicomException
- if error in DICOM encodingpublic NumericContentItem(ContentItem parent, java.lang.String relationshipType, CodedSequenceItem conceptName, java.lang.String numericValue, CodedSequenceItem units, CodedSequenceItem qualifier) throws DicomException
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept namenumericValue
- numeric value as decimal stringunits
- code for the unitsqualifier
- code for qualifierDicomException
- if error in DICOM encodingpublic NumericContentItem(ContentItem parent, java.lang.String relationshipType, CodedSequenceItem conceptName, java.lang.String numericValue, java.lang.Double floatingPointValue, java.lang.Integer rationalNumeratorValue, java.lang.Long rationalDenominatorValue, CodedSequenceItem units, CodedSequenceItem qualifier) throws DicomException
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept namenumericValue
- numeric value as decimal stringfloatingPointValue
- numeric value as floating pointrationalNumeratorValue
- integer numeratorrationalDenominatorValue
- integer denominatorunits
- code for the unitsqualifier
- code for qualifierDicomException
- if error in DICOM encodingpublic NumericContentItem(ContentItem parent, java.lang.String relationshipType, CodedSequenceItem conceptName, java.lang.String numericValue, java.lang.Double floatingPointValue, java.lang.Integer rationalNumeratorValue, java.lang.Long rationalDenominatorValue, CodedSequenceItem units, CodedSequenceItem qualifier, java.lang.String observationDateTime, java.lang.String observationUID) throws DicomException
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept namenumericValue
- numeric value as decimal stringfloatingPointValue
- numeric value as floating pointrationalNumeratorValue
- integer numeratorrationalDenominatorValue
- integer denominatorunits
- code for the unitsqualifier
- code for qualifierobservationDateTime
- Observation DateTime (or null or empty if none)observationUID
- Observation UID (or null or empty if none)DicomException
- if error in DICOM encodingprotected void constructOnlyQualifier(CodedSequenceItem qualifier)
protected void doCommonConstructorStuff(boolean isNotSR, java.lang.String numericValue, CodedSequenceItem units, CodedSequenceItem qualifier, java.lang.Double floatingPointValue, java.lang.Integer rationalNumeratorValue, java.lang.Long rationalDenominatorValue) throws DicomException
DicomException
public java.lang.String getConceptNameAndValue()
ContentItemWithValue
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 ContentItemWithValue
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 double getFloatingPointValue()
public java.lang.String getNumericValue()
public CodedSequenceItem getQualifier()
public long getRationalDenominatorValue()
public int getRationalNumeratorValue()
public CodedSequenceItem getUnits()
public boolean hasFloatingPointValue()
public boolean hasRationalValue()
public java.lang.String toString()
ContentItemWithValue
Get a human-readable string representation of the content item.
toString
in class ContentItemWithValue