@@ -11,10 +11,10 @@ import (
1111 "github.com/suyashkumar/dicom/pkg/tag"
1212)
1313
14- // ErrorUnexpectedDataType indicates that an unexpected (not allowed) data type was sent to NewValue.
15- var ErrorUnexpectedDataType = errors .New ("the type of the data was unexpected or not allowed" )
14+ // ErrorUnexpectedDataType indicates that an unexpected (not allowed) int16Data type was sent to NewValue.
15+ var ErrorUnexpectedDataType = errors .New ("the type of the int16Data was unexpected or not allowed" )
1616
17- // Element represents a standard DICOM data element (see the DICOM standard:
17+ // Element represents a standard DICOM int16Data element (see the DICOM standard:
1818// https://dicom.nema.org/medical/dicom/current/output/html/part05.html#sect_7.1 ).
1919// This Element can be serialized to JSON out of the box and pretty printed as a string via the String() method.
2020type Element struct {
@@ -57,14 +57,14 @@ func (e *Element) String() string {
5757 e .Value .String ())
5858}
5959
60- // Value represents a DICOM value. The underlying data that a Value stores can be determined by inspecting its
60+ // Value represents a DICOM value. The underlying int16Data that a Value stores can be determined by inspecting its
6161// ValueType. DICOM values typically can be one of many types (ints, strings, bytes, sequences of other elements, etc),
6262// so this Value interface attempts to represent this as canoically as possible in Golang (since generics do not exist
6363// yet).
6464//
6565// Value is JSON serializable out of the box (implements json.Marshaler).
6666//
67- // If necessary, a Value's data can be efficiently unpacked by inspecting its underlying ValueType and either using a
67+ // If necessary, a Value's int16Data can be efficiently unpacked by inspecting its underlying ValueType and either using a
6868// Golang type assertion or using the helper functions provided (like MustGetStrings). Because for each ValueType there
6969// is exactly one underlying Golang type, this should be safe, efficient, and straightforward.
7070//
@@ -79,14 +79,14 @@ func (e *Element) String() string {
7979// // ...
8080// }
8181//
82- // Unpacking the data like above is only necessary if something specific needs to be done with the underlying data .
83- // See the Element and Dataset examples as well to see how to work with this kind of data , and common patterns for doing
82+ // Unpacking the int16Data like above is only necessary if something specific needs to be done with the underlying int16Data .
83+ // See the Element and Dataset examples as well to see how to work with this kind of int16Data , and common patterns for doing
8484// so.
8585type Value interface {
8686 // All types that can be a "Value" for an element will implement this empty method, similar to how protocol buffers
8787 // implement "oneof" in Go
8888 isElementValue ()
89- // ValueType returns the underlying ValueType of this Value. This can be used to unpack the underlying data in this
89+ // ValueType returns the underlying ValueType of this Value. This can be used to unpack the underlying int16Data in this
9090 // Value.
9191 ValueType () ValueType
9292 // GetValue returns the underlying value that this Value holds. What type is returned here can be determined exactly
@@ -98,7 +98,7 @@ type Value interface {
9898 Equals (Value ) bool
9999}
100100
101- // NewValue creates a new DICOM value for the supplied data . Likely most useful
101+ // NewValue creates a new DICOM value for the supplied int16Data . Likely most useful
102102// if creating an Element in testing or write scenarios.
103103//
104104// Data must be one of the following types, otherwise and error will be returned
@@ -140,7 +140,7 @@ func mustNewValue(data interface{}) Value {
140140}
141141
142142// NewElement creates a new DICOM Element with the supplied tag and with a value
143- // built from the provided data . The data can be one of the types that is
143+ // built from the provided int16Data . The int16Data can be one of the types that is
144144// acceptable to NewValue.
145145func NewElement (t tag.Tag , data interface {}) (* Element , error ) {
146146 tagInfo , err := tag .Find (t )
@@ -337,7 +337,7 @@ type SequenceItemValue struct {
337337func (s * SequenceItemValue ) isElementValue () {}
338338
339339// ValueType returns the underlying ValueType of this Value. This can be used
340- // to unpack the underlying data in this Value.
340+ // to unpack the underlying int16Data in this Value.
341341func (s * SequenceItemValue ) ValueType () ValueType { return SequenceItem }
342342
343343// GetValue returns the underlying value that this Value holds. What type is
@@ -406,7 +406,7 @@ func (s *sequencesValue) Equals(target Value) bool {
406406// PixelDataInfo is a representation of DICOM PixelData.
407407type PixelDataInfo struct {
408408 // IntentionallySkipped indicates that reading the PixelData value was
409- // intentionally skipped and no Value data for this tag was read.
409+ // intentionally skipped and no Value int16Data for this tag was read.
410410 // This is likely true if the dicom.SkipPixelData option was set. If true,
411411 // the rest of this PixelDataInfo will be empty.
412412 IntentionallySkipped bool `json:"intentionallySkipped"`
@@ -428,7 +428,7 @@ type PixelDataInfo struct {
428428 // should work. This will be true if the
429429 // dicom.SkipProcessingPixelDataValue flag is set with a PixelData tag.
430430 IntentionallyUnprocessed bool `json:"intentionallyUnprocessed"`
431- // UnprocessedValueData holds the unprocessed Element value data if
431+ // UnprocessedValueData holds the unprocessed Element value int16Data if
432432 // IntentionallyUnprocessed=true.
433433 UnprocessedValueData []byte
434434}
@@ -443,7 +443,7 @@ func (p *pixelDataValue) ValueType() ValueType { return PixelData }
443443func (p * pixelDataValue ) GetValue () interface {} { return p .PixelDataInfo }
444444func (p * pixelDataValue ) String () string {
445445 if len (p .Frames ) == 0 {
446- return "empty pixel data "
446+ return "empty pixel int16Data "
447447 }
448448 if p .IsEncapsulated {
449449 return fmt .Sprintf ("encapsulated FramesLength=%d Frame[0] size=%d" , len (p .Frames ), len (p .Frames [0 ].EncapsulatedData .Data ))
0 commit comments