Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attribute ¶
type Attribute struct { Tag string `json:"tag"` Name string `json:"name"` Keyword string `json:"keyword"` ValueRepresentation string `json:"valueRepresentation"` ValueMultiplicity string `json:"valueMultiplicity"` Retired bool `json:"retired"` SubAttributes map[TagKey]*Attribute // contains filtered or unexported fields }
Attribute represents a DICOM attribute, with ability to point to "sub-attributes" that may be in a SQ
func (*Attribute) AddSubAttribute ¶
func (a *Attribute) AddSubAttribute(at *Attribute, keys []TagKey, attributeMap AttributeMap, mapping *ModuleToAttributeItem)
AddSubAttribute adds a subattribute in the right place to an attribute "tree"
func (*Attribute) IsEmpty ¶
IsEmpty returns true if the Attribute is effectively empty
type AttributeMap ¶
AttributeMap represents a mapping from TagKey to Attribute entities
type Module ¶
type Module struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` LinkToStandard string `json:"linkToStandard"` Attributes map[TagKey]*Attribute }
Module represents a DICOM module
func Parse ¶
Parse consumes data from innolitics' dicom-standard format and returns a slice of parsed Modules.
type ModuleMap ¶
ModuleMap represents a map of string module identifiers to Modules
func (ModuleMap) ToPointerMap ¶
func (m ModuleMap) ToPointerMap() ModulePointerMap
ToPointerMap converts a ModuleMap to a ModulePointerMap
type ModulePointerMap ¶
ModulePointerMap represents a map of string module IDs to module pointers
type ModuleToAttributeItem ¶
type ModuleToAttributeItem struct { ModuleID string `json:"module"` Tag string `json:"tag"` Type string `json:"type"` Path string `json:"path"` }
ModuleToAttributeItem represents an item that maps modules to attributes
func (ModuleToAttributeItem) PathTagKeys ¶
func (m ModuleToAttributeItem) PathTagKeys() []TagKey
PathTagKeys returns a slice of TagKeys from the path of the ModuleToAttributeItem
type ModulesByID ¶
type ModulesByID []*Module
ModulesByID implements the sort.Sorter interface to allow []*Modules to be sorted easily.
func (ModulesByID) Len ¶
func (m ModulesByID) Len() int
func (ModulesByID) Less ¶
func (m ModulesByID) Less(i, j int) bool
func (ModulesByID) Swap ¶
func (m ModulesByID) Swap(i, j int)