Package com.pixelmed.dicom
Class ContentItemFactory
java.lang.Object
com.pixelmed.dicom.ContentItemFactory
A class with methods for constructing a ContentItem
of the appropriate class from a list of attributes.
The sub-classes of ContentItem
are public internal classes of this class,
but specialize the methods, specifically the extractors and the string representation methods.
This is not an abstract class, and the content item factory method is not static; an instance of the factory needs to be created.
- See Also:
-
ContentItem
ContentItemWithReference
ContentItemWithValue
StructuredReport
StructuredReportBrowser
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
protected class
class
class
class
class
class
class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
codeContentItemValueMatchesCodeValueAndCodingSchemeDesignator
(ContentItem ci, String cvWanted, String csdWanted) Test if the coded value of the code content item matches the specified code value and coding scheme designator.getNewContentItem
(ContentItem parent, AttributeList list) Construct a content item of the appropriate class from a list of attributes.makeCodeContentItem
(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, CodedSequenceItem conceptCode) makeCodeContentItem
(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, CodedSequenceItem conceptCode, String observationDateTime, String observationUID) makeCompositeContentItem
(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String referencedSOPClassUID, String referencedSOPInstanceUID) makeCompositeContentItem
(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String referencedSOPClassUID, String referencedSOPInstanceUID, String observationDateTime, String observationUID) makeContainerContentItem
(ContentItem parent, String relationshipType, CodedSequenceItem conceptName) Construct a ContainerContentItem Default to separate continuitymakeContainerContentItem
(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, boolean continuityOfContentIsSeparate) makeContainerContentItem
(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, boolean continuityOfContentIsSeparate, String templateMappingResource, String templateIdentifier) makeContainerContentItem
(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, boolean continuityOfContentIsSeparate, String templateMappingResource, String templateIdentifier, String observationDateTime, String observationUID) makeDateContentItem
(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String dateValue) makeDateContentItem
(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String dateValue, String observationDateTime, String observationUID) makeDateTimeContentItem
(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String dateTimeValue) makeDateTimeContentItem
(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String dateTimeValue, String observationDateTime, String observationUID) makeImageContentItem
(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String referencedSOPClassUID, String referencedSOPInstanceUID, int referencedFrameNumber, int referencedSegmentNumber, String presentationStateSOPClassUID, String presentationStateSOPInstanceUID, String realWorldValueMappingSOPClassUID, String realWorldValueMappingSOPInstanceUID) makeImageContentItem
(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String referencedSOPClassUID, String referencedSOPInstanceUID, int referencedFrameNumber, int referencedSegmentNumber, String presentationStateSOPClassUID, String presentationStateSOPInstanceUID, String realWorldValueMappingSOPClassUID, String realWorldValueMappingSOPInstanceUID, String observationDateTime, String observationUID) makeNumericContentItem
(ContentItem parent, boolean isNotSR, String relationshipType, CodedSequenceItem conceptName, double numericValue, CodedSequenceItem units) makeNumericContentItem
(ContentItem parent, boolean isNotSR, String relationshipType, CodedSequenceItem conceptName, int numerator, long denominator, CodedSequenceItem units) makeNumericContentItem
(ContentItem parent, boolean isNotSR, String relationshipType, CodedSequenceItem conceptName, String numericValue, CodedSequenceItem units, CodedSequenceItem qualifier) makeNumericContentItem
(ContentItem parent, boolean isNotSR, String relationshipType, CodedSequenceItem conceptName, String numericValue, Double floatingPointValue, Integer rationalNumeratorValue, Long rationalDenominatorValue, CodedSequenceItem units, CodedSequenceItem qualifier) makeNumericContentItem
(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, double numericValue, CodedSequenceItem units) makeNumericContentItem
(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, int numerator, long denominator, CodedSequenceItem units) makeNumericContentItem
(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String numericValue, CodedSequenceItem units) makeNumericContentItem
(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String numericValue, CodedSequenceItem units, CodedSequenceItem qualifier) makeNumericContentItem
(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String numericValue, Double floatingPointValue, Integer rationalNumeratorValue, Long rationalDenominatorValue, CodedSequenceItem units, CodedSequenceItem qualifier) makeNumericContentItem
(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String numericValue, Double floatingPointValue, Integer rationalNumeratorValue, Long rationalDenominatorValue, CodedSequenceItem units, CodedSequenceItem qualifier, String observationDateTime, String observationUID) makePersonNameContentItem
(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String personNameValue) makePersonNameContentItem
(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String personNameValue, String observationDateTime, String observationUID) makeSpatialCoordinates3DContentItem
(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String graphicType, float[] graphicData, String referencedFrameOfReferenceUID) makeSpatialCoordinates3DContentItem
(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String graphicType, float[] graphicData, String referencedFrameOfReferenceUID, String observationDateTime, String observationUID) makeSpatialCoordinatesContentItem
(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String graphicType, float[] graphicData) makeSpatialCoordinatesContentItem
(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String graphicType, float[] graphicData, String observationDateTime, String observationUID) makeTextContentItem
(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String textValue) makeTextContentItem
(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String textValue, String observationDateTime, String observationUID) makeTimeContentItem
(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String timeValue) makeTimeContentItem
(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String timeValue, String observationDateTime, String observationUID) makeUIDContentItem
(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String uidValue) makeUIDContentItem
(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String uidValue, String observationDateTime, String observationUID)
-
Constructor Details
-
ContentItemFactory
public ContentItemFactory()
-
-
Method Details
-
makeContainerContentItem
public ContentItemFactory.ContainerContentItem makeContainerContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, boolean continuityOfContentIsSeparate, String templateMappingResource, String templateIdentifier, String observationDateTime, String observationUID) throws DicomException - Parameters:
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept namecontinuityOfContentIsSeparate
- true if SEPARATE, false if CONTINUOUStemplateMappingResource
- identifier of the template mapping resourcetemplateIdentifier
- identifier of the templateobservationDateTime
- Observation DateTime (or null or empty if none)observationUID
- Observation UID (or null or empty if none)- Returns:
- the content item created
- Throws:
DicomException
- if error in DICOM encoding
-
makeContainerContentItem
public ContentItemFactory.ContainerContentItem makeContainerContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, boolean continuityOfContentIsSeparate, String templateMappingResource, String templateIdentifier) throws DicomException - Parameters:
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept namecontinuityOfContentIsSeparate
- true if SEPARATE, false if CONTINUOUStemplateMappingResource
- identifier of the template mapping resourcetemplateIdentifier
- identifier of the template- Returns:
- the content item created
- Throws:
DicomException
- if error in DICOM encoding
-
makeContainerContentItem
public ContentItemFactory.ContainerContentItem makeContainerContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, boolean continuityOfContentIsSeparate) throws DicomException - Parameters:
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept namecontinuityOfContentIsSeparate
- true if SEPARATE, false if CONTINUOUS- Returns:
- the content item created
- Throws:
DicomException
- if error in DICOM encoding
-
makeContainerContentItem
public ContentItemFactory.ContainerContentItem makeContainerContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName) throws DicomException Construct a ContainerContentItem Default to separate continuity- Parameters:
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept name- Returns:
- the content item created
- Throws:
DicomException
- if error in DICOM encoding
-
makeCompositeContentItem
public ContentItemFactory.CompositeContentItem makeCompositeContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String referencedSOPClassUID, String referencedSOPInstanceUID, String observationDateTime, String observationUID) throws DicomException - Parameters:
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept namereferencedSOPClassUID
- the SOP Class UIDreferencedSOPInstanceUID
- the SOP Instance UIDobservationDateTime
- Observation DateTime (or null or empty if none)observationUID
- Observation UID (or null or empty if none)- Returns:
- the content item created
- Throws:
DicomException
- if error in DICOM encoding
-
makeCompositeContentItem
public ContentItemFactory.CompositeContentItem makeCompositeContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String referencedSOPClassUID, String referencedSOPInstanceUID) throws DicomException - Parameters:
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept namereferencedSOPClassUID
- the SOP Class UIDreferencedSOPInstanceUID
- the SOP Instance UID- Returns:
- the content item created
- Throws:
DicomException
- if error in DICOM encoding
-
makeImageContentItem
public ContentItemFactory.ImageContentItem makeImageContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String referencedSOPClassUID, String referencedSOPInstanceUID, int referencedFrameNumber, int referencedSegmentNumber, String presentationStateSOPClassUID, String presentationStateSOPInstanceUID, String realWorldValueMappingSOPClassUID, String realWorldValueMappingSOPInstanceUID, String observationDateTime, String observationUID) throws DicomException - Parameters:
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept namereferencedSOPClassUID
- the SOP Class UIDreferencedSOPInstanceUID
- the SOP Instance UIDreferencedFrameNumber
- if < 1, not addedreferencedSegmentNumber
- if < 1, not addedpresentationStateSOPClassUID
- the SOP Class UID of the presentation state (or null or empty if none)presentationStateSOPInstanceUID
- the SOP Instance UID of the presentation state (or null or empty if none)realWorldValueMappingSOPClassUID
- the SOP Class UID of the RWV Map (or null or empty if none)realWorldValueMappingSOPInstanceUID
- the SOP Instance UID of the RWV Map (or null or empty if none)observationDateTime
- Observation DateTime (or null or empty if none)observationUID
- Observation UID (or null or empty if none)- Returns:
- the content item created
- Throws:
DicomException
- if error in DICOM encoding
-
makeImageContentItem
public ContentItemFactory.ImageContentItem makeImageContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String referencedSOPClassUID, String referencedSOPInstanceUID, int referencedFrameNumber, int referencedSegmentNumber, String presentationStateSOPClassUID, String presentationStateSOPInstanceUID, String realWorldValueMappingSOPClassUID, String realWorldValueMappingSOPInstanceUID) throws DicomException - Parameters:
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept namereferencedSOPClassUID
- the SOP Class UIDreferencedSOPInstanceUID
- the SOP Instance UIDreferencedFrameNumber
- if < 1, not addedreferencedSegmentNumber
- if < 1, not addedpresentationStateSOPClassUID
- the SOP Class UID of the presentation state (or null or empty if none)presentationStateSOPInstanceUID
- the SOP Instance UID of the presentation state (or null or empty if none)realWorldValueMappingSOPClassUID
- the SOP Class UID of the RWV Map (or null or empty if none)realWorldValueMappingSOPInstanceUID
- the SOP Instance UID of the RWV Map (or null or empty if none)- Returns:
- the content item created
- Throws:
DicomException
- if error in DICOM encoding
-
makeSpatialCoordinatesContentItem
public ContentItemFactory.SpatialCoordinatesContentItem makeSpatialCoordinatesContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String graphicType, float[] graphicData, String observationDateTime, String observationUID) throws DicomException - Parameters:
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept namegraphicType
- graphic typegraphicData
- graphic dataobservationDateTime
- Observation DateTime (or null or empty if none)observationUID
- Observation UID (or null or empty if none)- Returns:
- the content item created
- Throws:
DicomException
- if error in DICOM encoding
-
makeSpatialCoordinatesContentItem
public ContentItemFactory.SpatialCoordinatesContentItem makeSpatialCoordinatesContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String graphicType, float[] graphicData) throws DicomException - Parameters:
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept namegraphicType
- graphic typegraphicData
- graphic data- Returns:
- the content item created
- Throws:
DicomException
- if error in DICOM encoding
-
makeSpatialCoordinates3DContentItem
public ContentItemFactory.SpatialCoordinates3DContentItem makeSpatialCoordinates3DContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String graphicType, float[] graphicData, String referencedFrameOfReferenceUID, String observationDateTime, String observationUID) throws DicomException - Parameters:
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept namegraphicType
- graphic typegraphicData
- graphic datareferencedFrameOfReferenceUID
- frame of reference UIDobservationDateTime
- Observation DateTime (or null or empty if none)observationUID
- Observation UID (or null or empty if none)- Returns:
- the content item created
- Throws:
DicomException
- if error in DICOM encoding
-
makeSpatialCoordinates3DContentItem
public ContentItemFactory.SpatialCoordinates3DContentItem makeSpatialCoordinates3DContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String graphicType, float[] graphicData, String referencedFrameOfReferenceUID) throws DicomException - Parameters:
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept namegraphicType
- graphic typegraphicData
- graphic datareferencedFrameOfReferenceUID
- frame of reference UID- Returns:
- the content item created
- Throws:
DicomException
- if error in DICOM encoding
-
makeNumericContentItem
public ContentItemFactory.NumericContentItem makeNumericContentItem(ContentItem parent, boolean isNotSR, String relationshipType, CodedSequenceItem conceptName, String numericValue, CodedSequenceItem units, CodedSequenceItem qualifier) throws DicomException - Parameters:
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 qualifier- Returns:
- the content item created
- Throws:
DicomException
- if error in DICOM encoding
-
makeNumericContentItem
public ContentItemFactory.NumericContentItem makeNumericContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String numericValue, CodedSequenceItem units, CodedSequenceItem qualifier) throws DicomException - Parameters:
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept namenumericValue
- numeric value as decimal stringunits
- code for the unitsqualifier
- code for qualifier- Returns:
- the content item created
- Throws:
DicomException
- if error in DICOM encoding
-
makeNumericContentItem
public ContentItemFactory.NumericContentItem makeNumericContentItem(ContentItem parent, boolean isNotSR, String relationshipType, CodedSequenceItem conceptName, double numericValue, CodedSequenceItem units) throws DicomException - Parameters:
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 units- Returns:
- the content item created
- Throws:
DicomException
- if error in DICOM encoding
-
makeNumericContentItem
public ContentItemFactory.NumericContentItem makeNumericContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, double numericValue, CodedSequenceItem units) throws DicomException - Parameters:
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept namenumericValue
- numeric value as decimal stringunits
- code for the units- Returns:
- the content item created
- Throws:
DicomException
- if error in DICOM encoding
-
makeNumericContentItem
public ContentItemFactory.NumericContentItem makeNumericContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String numericValue, CodedSequenceItem units) throws DicomException - Parameters:
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept namenumericValue
- numeric value as decimal stringunits
- code for the units- Returns:
- the content item created
- Throws:
DicomException
- if error in DICOM encoding
-
makeNumericContentItem
public ContentItemFactory.NumericContentItem makeNumericContentItem(ContentItem parent, boolean isNotSR, String relationshipType, CodedSequenceItem conceptName, int numerator, long denominator, CodedSequenceItem units) throws DicomException - Parameters:
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 units- Returns:
- the content item created
- Throws:
DicomException
- if error in DICOM encoding
-
makeNumericContentItem
public ContentItemFactory.NumericContentItem makeNumericContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, int numerator, long denominator, CodedSequenceItem units) throws DicomException - Parameters:
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept namenumerator
- integer numeratordenominator
- integer denominatorunits
- code for the units- Returns:
- the content item created
- Throws:
DicomException
- if error in DICOM encoding
-
makeNumericContentItem
public ContentItemFactory.NumericContentItem makeNumericContentItem(ContentItem parent, boolean isNotSR, String relationshipType, CodedSequenceItem conceptName, String numericValue, Double floatingPointValue, Integer rationalNumeratorValue, Long rationalDenominatorValue, CodedSequenceItem units, CodedSequenceItem qualifier) throws DicomException - Parameters:
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 qualifier- Returns:
- the content item created
- Throws:
DicomException
- if error in DICOM encoding
-
makeNumericContentItem
public ContentItemFactory.NumericContentItem makeNumericContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String numericValue, Double floatingPointValue, Integer rationalNumeratorValue, Long rationalDenominatorValue, CodedSequenceItem units, CodedSequenceItem qualifier, String observationDateTime, String observationUID) throws DicomException - Parameters:
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)- Returns:
- the content item created
- Throws:
DicomException
- if error in DICOM encoding
-
makeNumericContentItem
public ContentItemFactory.NumericContentItem makeNumericContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String numericValue, Double floatingPointValue, Integer rationalNumeratorValue, Long rationalDenominatorValue, CodedSequenceItem units, CodedSequenceItem qualifier) throws DicomException - Parameters:
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 qualifier- Returns:
- the content item created
- Throws:
DicomException
- if error in DICOM encoding
-
makeCodeContentItem
public ContentItemFactory.CodeContentItem makeCodeContentItem(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)- Returns:
- the content item created
- Throws:
DicomException
- if error in DICOM encoding
-
makeCodeContentItem
public ContentItemFactory.CodeContentItem makeCodeContentItem(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- Returns:
- the content item created
- Throws:
DicomException
- if error in DICOM encoding
-
codeContentItemValueMatchesCodeValueAndCodingSchemeDesignator
public static boolean codeContentItemValueMatchesCodeValueAndCodingSchemeDesignator(ContentItem ci, 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:
ci
- the content item to checkcsdWanted
- the coding scheme designator of the coded value wantedcvWanted
- the code value of the coded value wanted- Returns:
- true if matches
-
makeDateTimeContentItem
public ContentItemFactory.DateTimeContentItem makeDateTimeContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String dateTimeValue, String observationDateTime, String observationUID) throws DicomException - Parameters:
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept namedateTimeValue
- datetime valueobservationDateTime
- Observation DateTime (or null or empty if none)observationUID
- Observation UID (or null or empty if none)- Returns:
- the content item created
- Throws:
DicomException
- if error in DICOM encoding
-
makeDateTimeContentItem
public ContentItemFactory.DateTimeContentItem makeDateTimeContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String dateTimeValue) throws DicomException - Parameters:
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept namedateTimeValue
- datetime value- Returns:
- the content item created
- Throws:
DicomException
- if error in DICOM encoding
-
makeDateContentItem
public ContentItemFactory.DateContentItem makeDateContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String dateValue, String observationDateTime, String observationUID) throws DicomException - Parameters:
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept namedateValue
- date valueobservationDateTime
- Observation DateTime (or null or empty if none)observationUID
- Observation UID (or null or empty if none)- Returns:
- the content item created
- Throws:
DicomException
- if error in DICOM encoding
-
makeDateContentItem
public ContentItemFactory.DateContentItem makeDateContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String dateValue) throws DicomException - Parameters:
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept namedateValue
- date value- Returns:
- the content item created
- Throws:
DicomException
- if error in DICOM encoding
-
makeTimeContentItem
public ContentItemFactory.TimeContentItem makeTimeContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String timeValue, String observationDateTime, String observationUID) throws DicomException - Parameters:
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept nametimeValue
- time valueobservationDateTime
- Observation DateTime (or null or empty if none)observationUID
- Observation UID (or null or empty if none)- Returns:
- the content item created
- Throws:
DicomException
- if error in DICOM encoding
-
makeTimeContentItem
public ContentItemFactory.TimeContentItem makeTimeContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String timeValue) throws DicomException - Parameters:
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept nametimeValue
- time value- Returns:
- the content item created
- Throws:
DicomException
- if error in DICOM encoding
-
makePersonNameContentItem
public ContentItemFactory.PersonNameContentItem makePersonNameContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String personNameValue, String observationDateTime, String observationUID) throws DicomException - Parameters:
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept namepersonNameValue
- person name valueobservationDateTime
- Observation DateTime (or null or empty if none)observationUID
- Observation UID (or null or empty if none)- Returns:
- the content item created
- Throws:
DicomException
- if error in DICOM encoding
-
makePersonNameContentItem
public ContentItemFactory.PersonNameContentItem makePersonNameContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String personNameValue) throws DicomException - Parameters:
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept namepersonNameValue
- person name value- Returns:
- the content item created
- Throws:
DicomException
- if error in DICOM encoding
-
makeUIDContentItem
public ContentItemFactory.UIDContentItem makeUIDContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String uidValue, String observationDateTime, String observationUID) throws DicomException - Parameters:
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept nameuidValue
- UID valueobservationDateTime
- Observation DateTime (or null or empty if none)observationUID
- Observation UID (or null or empty if none)- Returns:
- the content item created
- Throws:
DicomException
- if error in DICOM encoding
-
makeUIDContentItem
public ContentItemFactory.UIDContentItem makeUIDContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String uidValue) throws DicomException - Parameters:
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept nameuidValue
- UID value- Returns:
- the content item created
- Throws:
DicomException
- if error in DICOM encoding
-
makeTextContentItem
public ContentItemFactory.TextContentItem makeTextContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String textValue, String observationDateTime, String observationUID) throws DicomException - Parameters:
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept nametextValue
- text valueobservationDateTime
- Observation DateTime (or null or empty if none)observationUID
- Observation UID (or null or empty if none)- Returns:
- the content item created
- Throws:
DicomException
- if error in DICOM encoding
-
makeTextContentItem
public ContentItemFactory.TextContentItem makeTextContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String textValue) throws DicomException - Parameters:
parent
- parent content item to add torelationshipType
- relationship typeconceptName
- coded concept nametextValue
- text value- Returns:
- the content item created
- Throws:
DicomException
- if error in DICOM encoding
-
getNewContentItem
Construct a content item of the appropriate class from a list of attributes.
- Parameters:
parent
- the parent to add the content item tolist
- a list of attributes that constitute the content item as it is encoded in a DICOM data set- Returns:
- a content item
- Throws:
DicomException
- if error in DICOM encoding
-