Documentation ¶
Index ¶
- Constants
- Variables
- func DescriptorChannelFromFile(filename string) (desChan chan *DescriptorRecord, file *os.File, err error)
- func DescriptorChannelFromReader(reader io.Reader) (chan *DescriptorRecord, error)
- func DescriptorMapFromFile(filename string) (map[string]*DescriptorRecord, error)
- func DescriptorMapFromReader(reader io.Reader) (map[string]*DescriptorRecord, error)
- func MeshDescriptorNameMap(uiMap map[string]*DescriptorRecord) map[string]*DescriptorRecord
- func PharmacologicalChannelFromFile(filename string) (pharmChan chan *PharmacologicalAction, file *os.File, err error)
- func PharmacologicalChannelFromReader(reader io.Reader) (chan *PharmacologicalAction, error)
- func PharmacologicalMapFromFile(filename string) (map[string]*PharmacologicalAction, error)
- func PharmacologicalMapFromReader(reader io.Reader) (map[string]*PharmacologicalAction, error)
- func QualifierChannelFromFile(filename string) (qualChan chan *QualifierRecord, file *os.File, err error)
- func QualifierChannelFromReader(reader io.Reader) (chan *QualifierRecord, error)
- func QualifierMapFromFile(filename string) (map[string]*QualifierRecord, error)
- func QualifierMapFromReader(reader io.Reader) (map[string]*QualifierRecord, error)
- func SelfLinkDescriptor(m map[string]*DescriptorRecord)
- func SupplementalChannelFromFile(filename string) (suppChan chan *SupplementalRecord, file *os.File, err error)
- func SupplementalChannelFromReader(reader io.Reader) (chan *SupplementalRecord, error)
- func SupplementalMapFromFile(filename string) (map[string]*SupplementalRecord, error)
- func SupplementalMapFromReader(reader io.Reader) (map[string]*SupplementalRecord, error)
- type Abbreviation
- type AllowableQualifier
- type AllowableQualifiersList
- type Annotation
- type CASN1Name
- type Concept
- type Concept1UI
- type Concept2UI
- type ConceptList
- type ConceptName
- type ConceptRelation
- type ConceptRelationList
- type ConceptUI
- type ConsiderAlso
- type DateCreated
- type DateEstablished
- type DateRevised
- type Day
- type DescriptorRecord
- type DescriptorRecordSet
- type DescriptorReferredTo
- type DescriptorRoot
- type ECIN
- type ECOUT
- type EntryCombination
- type EntryCombinationList
- type EntryVersion
- type Frequency
- type HeadingMappedTo
- type HeadingMappedToList
- type HistoryNote
- type IdEntry
- type IndexingInformation
- type IndexingInformationList
- type Month
- type NLMClassificationNumber
- type Node
- type Note
- type OnlineNote
- type PaRoot
- type PharmacologicalAction
- type PharmacologicalActionList
- type PharmacologicalActionSet
- type PharmacologicalActionSubstanceList
- type PreviousIndexing
- type PreviousIndexingList
- type PublicMeSHNote
- type QualifierRecord
- type QualifierRecordSet
- type QualifierReferredTo
- type QualifierRoot
- type Record
- type RegistryNumber
- type RelatedRegistryNumber
- type RelatedRegistryNumberList
- type ScopeNote
- type SeeRelatedDescriptor
- type SeeRelatedList
- type SortVersion
- type Source
- type SourceList
- type String
- type Substance
- type SupplementalRecord
- type SupplementalRecordSet
- type SupplementalRoot
- type Term
- type TermList
- type TermUI
- type ThesaurusID
- type ThesaurusIDlist
- type TreeNumberList
- type Year
Constants ¶
View Source
const DESCRIPTOR_RECORD = "DescriptorRecord"
View Source
const PHARMACOLOGICAL_RECORD = "PharmacologicalAction"
View Source
const QUALIFIER_RECORD = "QualifierRecord"
View Source
const SUPPLEMENTAL_RECORD = "SupplementalRecord"
View Source
const TREE_SEPARATOR = "."
Variables ¶
View Source
var TOP_LEVEL = map[string]string{
"A": "Anatomy",
"B": "Organisms",
"C": "Diseases",
"D": "Chemicals and Drugs",
"E": "Analytical, Diagnostic and Therapeutic Techniques and Equipment",
"F": "Psychiatry and Psychology",
"G": "Phenomena and Processes",
"H": "Disciplines and Occupations",
"I": "Anthropology, Education, Sociology and Social Phenomena",
"J": "Technology, Industry, Agriculture",
"K": "Humanities",
"L": "Information Science",
"M": "Named Groups",
"N": "Health Care",
"V": "Publication Characteristics",
"Z": "Geographicals",
}
Functions ¶
func DescriptorChannelFromFile ¶
func DescriptorChannelFromFile(filename string) (desChan chan *DescriptorRecord, file *os.File, err error)
func DescriptorChannelFromReader ¶
func DescriptorChannelFromReader(reader io.Reader) (chan *DescriptorRecord, error)
func DescriptorMapFromFile ¶
func DescriptorMapFromFile(filename string) (map[string]*DescriptorRecord, error)
func DescriptorMapFromReader ¶
func DescriptorMapFromReader(reader io.Reader) (map[string]*DescriptorRecord, error)
func MeshDescriptorNameMap ¶
func MeshDescriptorNameMap(uiMap map[string]*DescriptorRecord) map[string]*DescriptorRecord
func PharmacologicalChannelFromFile ¶
func PharmacologicalChannelFromFile(filename string) (pharmChan chan *PharmacologicalAction, file *os.File, err error)
func PharmacologicalChannelFromReader ¶
func PharmacologicalChannelFromReader(reader io.Reader) (chan *PharmacologicalAction, error)
func PharmacologicalMapFromFile ¶
func PharmacologicalMapFromFile(filename string) (map[string]*PharmacologicalAction, error)
func PharmacologicalMapFromReader ¶
func PharmacologicalMapFromReader(reader io.Reader) (map[string]*PharmacologicalAction, error)
func QualifierChannelFromFile ¶
func QualifierChannelFromFile(filename string) (qualChan chan *QualifierRecord, file *os.File, err error)
func QualifierChannelFromReader ¶
func QualifierChannelFromReader(reader io.Reader) (chan *QualifierRecord, error)
func QualifierMapFromFile ¶
func QualifierMapFromFile(filename string) (map[string]*QualifierRecord, error)
func QualifierMapFromReader ¶
func QualifierMapFromReader(reader io.Reader) (map[string]*QualifierRecord, error)
func SelfLinkDescriptor ¶
func SelfLinkDescriptor(m map[string]*DescriptorRecord)
func SupplementalChannelFromFile ¶
func SupplementalChannelFromFile(filename string) (suppChan chan *SupplementalRecord, file *os.File, err error)
func SupplementalChannelFromReader ¶
func SupplementalChannelFromReader(reader io.Reader) (chan *SupplementalRecord, error)
func SupplementalMapFromFile ¶
func SupplementalMapFromFile(filename string) (map[string]*SupplementalRecord, error)
func SupplementalMapFromReader ¶
func SupplementalMapFromReader(reader io.Reader) (map[string]*SupplementalRecord, error)
Types ¶
type Abbreviation ¶
type Abbreviation struct {
Text string `xml:",chardata" json:",omitempty"`
}
type AllowableQualifier ¶
type AllowableQualifier struct { Abbreviation *Abbreviation `xml:"Abbreviation,omitempty" json:"Abbreviation,omitempty"` QualifierReferredTo *QualifierReferredTo `xml:"QualifierReferredTo,omitempty" json:"QualifierReferredTo,omitempty"` }
type AllowableQualifiersList ¶
type AllowableQualifiersList struct {
AllowableQualifier []*AllowableQualifier `xml:"AllowableQualifier,omitempty" json:"AllowableQualifier,omitempty"`
}
type Annotation ¶
type Annotation struct {
Text string `xml:",chardata" json:",omitempty"`
}
type Concept ¶
type Concept struct { Attr_PreferredConceptYN string `xml:" PreferredConceptYN,attr" json:",omitempty"` CASN1Name *CASN1Name `xml:"CASN1Name,omitempty" json:"CASN1Name,omitempty"` ConceptName *ConceptName `xml:"ConceptName,omitempty" json:"ConceptName,omitempty"` ConceptRelationList *ConceptRelationList `xml:"ConceptRelationList,omitempty" json:"ConceptRelationList,omitempty"` ConceptUI *ConceptUI `xml:"ConceptUI,omitempty" json:"ConceptUI,omitempty"` RegistryNumber *RegistryNumber `xml:"RegistryNumber,omitempty" json:"RegistryNumber,omitempty"` RelatedRegistryNumberList *RelatedRegistryNumberList `xml:"RelatedRegistryNumberList,omitempty" json:"RelatedRegistryNumberList,omitempty"` ScopeNote *ScopeNote `xml:"ScopeNote,omitempty" json:"ScopeNote,omitempty"` TermList *TermList `xml:"TermList,omitempty" json:"TermList,omitempty"` }
type Concept1UI ¶
type Concept1UI struct {
Text string `xml:",chardata" json:",omitempty"`
}
type Concept2UI ¶
type Concept2UI struct {
Text string `xml:",chardata" json:",omitempty"`
}
type ConceptList ¶
type ConceptList struct {
Concept []*Concept `xml:"Concept,omitempty" json:"Concept,omitempty"`
}
type ConceptName ¶
type ConceptName struct {
String *String `xml:"String,omitempty" json:"String,omitempty"`
}
type ConceptRelation ¶
type ConceptRelation struct { Attr_RelationName string `xml:" RelationName,attr" json:",omitempty"` Concept1UI *Concept1UI `xml:"Concept1UI,omitempty" json:"Concept1UI,omitempty"` Concept2UI *Concept2UI `xml:"Concept2UI,omitempty" json:"Concept2UI,omitempty"` }
type ConceptRelationList ¶
type ConceptRelationList struct {
ConceptRelation []*ConceptRelation `xml:"ConceptRelation,omitempty" json:"ConceptRelation,omitempty"`
}
type ConsiderAlso ¶
type ConsiderAlso struct {
Text string `xml:",chardata" json:",omitempty"`
}
type DateCreated ¶
type DateEstablished ¶
type DateRevised ¶
type DescriptorRecord ¶
type DescriptorRecord struct { Attr_DescriptorClass string `xml:" DescriptorClass,attr" json:",omitempty"` AllowableQualifiersList *AllowableQualifiersList `xml:"AllowableQualifiersList,omitempty" json:"AllowableQualifiersList,omitempty"` Annotation *Annotation `xml:"Annotation,omitempty" json:"Annotation,omitempty"` ConceptList *ConceptList `xml:"ConceptList,omitempty" json:"ConceptList,omitempty"` ConsiderAlso *ConsiderAlso `xml:"ConsiderAlso,omitempty" json:"ConsiderAlso,omitempty"` DateCreated *DateCreated `xml:"DateCreated,omitempty" json:"DateCreated,omitempty"` DateEstablished *DateEstablished `xml:"DateEstablished,omitempty" json:"DateEstablished,omitempty"` DateRevised *DateRevised `xml:"DateRevised,omitempty" json:"DateRevised,omitempty"` DescriptorName string `xml:"DescriptorName>String,omitempty" json:"DescriptorName,omitempty"` DescriptorUI string `xml:"DescriptorUI,omitempty" json:"DescriptorUI,omitempty"` EntryCombinationList *EntryCombinationList `xml:"EntryCombinationList,omitempty" json:"EntryCombinationList,omitempty"` HistoryNote *HistoryNote `xml:"HistoryNote,omitempty" json:"HistoryNote,omitempty"` NLMClassificationNumber *NLMClassificationNumber `xml:"NLMClassificationNumber,omitempty" json:"NLMClassificationNumber,omitempty"` OnlineNote *OnlineNote `xml:"OnlineNote,omitempty" json:"OnlineNote,omitempty"` PharmacologicalActionList *PharmacologicalActionList `xml:"PharmacologicalActionList,omitempty" json:"PharmacologicalActionList,omitempty"` PreviousIndexingList *PreviousIndexingList `xml:"PreviousIndexingList,omitempty" json:"PreviousIndexingList,omitempty"` PublicMeSHNote *PublicMeSHNote `xml:"PublicMeSHNote,omitempty" json:"PublicMeSHNote,omitempty"` SeeRelatedList *SeeRelatedList `xml:"SeeRelatedList,omitempty" json:"SeeRelatedList,omitempty"` TreeNumberList *TreeNumberList `xml:"TreeNumberList,omitempty" json:"TreeNumberList,omitempty"` }
type DescriptorRecordSet ¶
type DescriptorRecordSet struct { Attr_LanguageCode string `xml:" LanguageCode,attr" json:",omitempty"` DescriptorRecord []*DescriptorRecord `xml:"DescriptorRecord,omitempty" json:"DescriptorRecord,omitempty"` }
type DescriptorReferredTo ¶
type DescriptorRoot ¶
type DescriptorRoot struct {
DescriptorRecordSet *DescriptorRecordSet `xml:"DescriptorRecordSet,omitempty" json:"DescriptorRecordSet,omitempty"`
}
type ECIN ¶
type ECIN struct { DescriptorReferredTo *DescriptorReferredTo `xml:"DescriptorReferredTo,omitempty" json:"DescriptorReferredTo,omitempty"` QualifierReferredTo *QualifierReferredTo `xml:"QualifierReferredTo,omitempty" json:"QualifierReferredTo,omitempty"` }
type ECOUT ¶
type ECOUT struct { DescriptorReferredTo *DescriptorReferredTo `xml:"DescriptorReferredTo,omitempty" json:"DescriptorReferredTo,omitempty"` QualifierReferredTo *QualifierReferredTo `xml:"QualifierReferredTo,omitempty" json:"QualifierReferredTo,omitempty"` }
type EntryCombination ¶
type EntryCombinationList ¶
type EntryCombinationList struct {
EntryCombination []*EntryCombination `xml:"EntryCombination,omitempty" json:"EntryCombination,omitempty"`
}
type EntryVersion ¶
type EntryVersion struct {
Text string `xml:",chardata" json:",omitempty"`
}
type HeadingMappedTo ¶
type HeadingMappedTo struct { DescriptorReferredTo *DescriptorReferredTo `xml:"DescriptorReferredTo,omitempty" json:"DescriptorReferredTo,omitempty"` QualifierReferredTo *QualifierReferredTo `xml:"QualifierReferredTo,omitempty" json:"QualifierReferredTo,omitempty"` }
type HeadingMappedToList ¶
type HeadingMappedToList struct {
HeadingMappedTo []*HeadingMappedTo `xml:"HeadingMappedTo,omitempty" json:"HeadingMappedTo,omitempty"`
}
type HistoryNote ¶
type HistoryNote struct {
Text string `xml:",chardata" json:",omitempty"`
}
type IndexingInformation ¶
type IndexingInformation struct { DescriptorReferredTo *DescriptorReferredTo `xml:"DescriptorReferredTo,omitempty" json:"DescriptorReferredTo,omitempty"` QualifierReferredTo *QualifierReferredTo `xml:"QualifierReferredTo,omitempty" json:"QualifierReferredTo,omitempty"` }
type IndexingInformationList ¶
type IndexingInformationList struct {
IndexingInformation []*IndexingInformation `xml:"IndexingInformation,omitempty" json:"IndexingInformation,omitempty"`
}
type NLMClassificationNumber ¶
type NLMClassificationNumber struct {
Text string `xml:",chardata" json:",omitempty"`
}
type Node ¶
type Node struct { TreeNumber string `json:"treeNumber` NodeNumber string `json:"-"` Name string `json:",omitempty"` Children []IdEntry `json:",omitempty"` ChildrenMap map[string]*Node `json:"-"` AllDescriptors map[string]bool `json:"-"` DescriptorUrl string `json:",omitempty"` Descriptor *DescriptorRecord `json:"-"` }
func MakeTree ¶
func MakeTree(m map[string]*DescriptorRecord) (root *Node)
type OnlineNote ¶
type OnlineNote struct {
Text string `xml:",chardata" json:",omitempty"`
}
type PaRoot ¶
type PaRoot struct {
PharmacologicalActionSet *PharmacologicalActionSet `xml:"PharmacologicalActionSet,omitempty" json:"PharmacologicalActionSet,omitempty"`
}
type PharmacologicalAction ¶
type PharmacologicalAction struct { DescriptorReferredTo *DescriptorReferredTo `xml:"DescriptorReferredTo,omitempty" json:"DescriptorReferredTo,omitempty"` PharmacologicalActionSubstanceList *PharmacologicalActionSubstanceList `xml:"PharmacologicalActionSubstanceList,omitempty" json:"PharmacologicalActionSubstanceList,omitempty"` }
type PharmacologicalActionList ¶
type PharmacologicalActionList struct {
PharmacologicalAction []*PharmacologicalAction `xml:"PharmacologicalAction,omitempty" json:"PharmacologicalAction,omitempty"`
}
type PharmacologicalActionSet ¶
type PharmacologicalActionSet struct {
PharmacologicalAction []*PharmacologicalAction `xml:"PharmacologicalAction,omitempty" json:"PharmacologicalAction,omitempty"`
}
type PharmacologicalActionSubstanceList ¶
type PharmacologicalActionSubstanceList struct {
Substance []*Substance `xml:"Substance,omitempty" json:"Substance,omitempty"`
}
type PreviousIndexing ¶
type PreviousIndexing struct {
Text string `xml:",chardata" json:",omitempty"`
}
type PreviousIndexingList ¶
type PreviousIndexingList struct {
PreviousIndexing []*PreviousIndexing `xml:"PreviousIndexing,omitempty" json:"PreviousIndexing,omitempty"`
}
type PublicMeSHNote ¶
type PublicMeSHNote struct {
Text string `xml:",chardata" json:",omitempty"`
}
type QualifierRecord ¶
type QualifierRecord struct { Annotation *Annotation `xml:"Annotation,omitempty" json:"Annotation,omitempty"` ConceptList *ConceptList `xml:"ConceptList,omitempty" json:"ConceptList,omitempty"` DateCreated *DateCreated `xml:"DateCreated,omitempty" json:"DateCreated,omitempty"` DateEstablished *DateEstablished `xml:"DateEstablished,omitempty" json:"DateEstablished,omitempty"` DateRevised *DateRevised `xml:"DateRevised,omitempty" json:"DateRevised,omitempty"` HistoryNote *HistoryNote `xml:"HistoryNote,omitempty" json:"HistoryNote,omitempty"` OnlineNote *OnlineNote `xml:"OnlineNote,omitempty" json:"OnlineNote,omitempty"` QualifierName string `xml:"QualifierName,omitempty" json:"QualifierName,omitempty"` QualifierUI string `xml:"QualifierUI,omitempty" json:"QualifierUI,omitempty"` TreeNumberList *TreeNumberList `xml:"TreeNumberList,omitempty" json:"TreeNumberList,omitempty"` }
type QualifierRecordSet ¶
type QualifierRecordSet struct { Attr_LanguageCode string `xml:" LanguageCode,attr" json:",omitempty"` QualifierRecord []*QualifierRecord `xml:"QualifierRecord,omitempty" json:"QualifierRecord,omitempty"` }
type QualifierReferredTo ¶
type QualifierRoot ¶
type QualifierRoot struct {
QualifierRecordSet *QualifierRecordSet `xml:"QualifierRecordSet,omitempty" json:"QualifierRecordSet,omitempty"`
}
type RegistryNumber ¶
type RegistryNumber struct {
Text string `xml:",chardata" json:",omitempty"`
}
type RelatedRegistryNumber ¶
type RelatedRegistryNumber struct {
Text string `xml:",chardata" json:",omitempty"`
}
type RelatedRegistryNumberList ¶
type RelatedRegistryNumberList struct {
RelatedRegistryNumber []*RelatedRegistryNumber `xml:"RelatedRegistryNumber,omitempty" json:"RelatedRegistryNumber,omitempty"`
}
type SeeRelatedDescriptor ¶
type SeeRelatedDescriptor struct {
DescriptorReferredTo *DescriptorReferredTo `xml:"DescriptorReferredTo,omitempty" json:"DescriptorReferredTo,omitempty"`
}
type SeeRelatedList ¶
type SeeRelatedList struct {
SeeRelatedDescriptor []*SeeRelatedDescriptor `xml:"SeeRelatedDescriptor,omitempty" json:"SeeRelatedDescriptor,omitempty"`
}
type SortVersion ¶
type SortVersion struct {
Text string `xml:",chardata" json:",omitempty"`
}
type SourceList ¶
type SourceList struct {
Source []*Source `xml:"Source,omitempty" json:"Source,omitempty"`
}
type SupplementalRecord ¶
type SupplementalRecord struct { Attr_SCRClass string `xml:" SCRClass,attr" json:",omitempty"` ConceptList *ConceptList `xml:"ConceptList,omitempty" json:"ConceptList,omitempty"` DateCreated *DateCreated `xml:"DateCreated,omitempty" json:"DateCreated,omitempty"` DateRevised *DateRevised `xml:"DateRevised,omitempty" json:"DateRevised,omitempty"` Frequency *Frequency `xml:"Frequency,omitempty" json:"Frequency,omitempty"` HeadingMappedToList *HeadingMappedToList `xml:"HeadingMappedToList,omitempty" json:"HeadingMappedToList,omitempty"` IndexingInformationList *IndexingInformationList `xml:"IndexingInformationList,omitempty" json:"IndexingInformationList,omitempty"` Note *Note `xml:"Note,omitempty" json:"Note,omitempty"` PharmacologicalActionList *PharmacologicalActionList `xml:"PharmacologicalActionList,omitempty" json:"PharmacologicalActionList,omitempty"` PreviousIndexingList *PreviousIndexingList `xml:"PreviousIndexingList,omitempty" json:"PreviousIndexingList,omitempty"` SourceList *SourceList `xml:"SourceList,omitempty" json:"SourceList,omitempty"` SupplementalRecordName string `xml:"SupplementalRecordName,omitempty" json:"SupplementalRecordName,omitempty"` SupplementalRecordUI string `xml:"SupplementalRecordUI,omitempty" json:"SupplementalRecordUI,omitempty"` }
type SupplementalRecordSet ¶
type SupplementalRecordSet struct { Attr_LanguageCode string `xml:" LanguageCode,attr" json:",omitempty"` SupplementalRecord []*SupplementalRecord `xml:"SupplementalRecord,omitempty" json:"SupplementalRecord,omitempty"` }
type SupplementalRoot ¶
type SupplementalRoot struct {
SupplementalRecordSet *SupplementalRecordSet `xml:"SupplementalRecordSet,omitempty" json:"SupplementalRecordSet,omitempty"`
}
type Term ¶
type Term struct { Attr_ConceptPreferredTermYN string `xml:" ConceptPreferredTermYN,attr" json:",omitempty"` Attr_IsPermutedTermYN string `xml:" IsPermutedTermYN,attr" json:",omitempty"` Attr_LexicalTag string `xml:" LexicalTag,attr" json:",omitempty"` Attr_RecordPreferredTermYN string `xml:" RecordPreferredTermYN,attr" json:",omitempty"` Abbreviation *Abbreviation `xml:"Abbreviation,omitempty" json:"Abbreviation,omitempty"` DateCreated *DateCreated `xml:"DateCreated,omitempty" json:"DateCreated,omitempty"` EntryVersion *EntryVersion `xml:"EntryVersion,omitempty" json:"EntryVersion,omitempty"` SortVersion *SortVersion `xml:"SortVersion,omitempty" json:"SortVersion,omitempty"` String *String `xml:"String,omitempty" json:"String,omitempty"` TermUI *TermUI `xml:"TermUI,omitempty" json:"TermUI,omitempty"` ThesaurusIDlist *ThesaurusIDlist `xml:"ThesaurusIDlist,omitempty" json:"ThesaurusIDlist,omitempty"` }
type ThesaurusID ¶
type ThesaurusID struct {
Text string `xml:",chardata" json:",omitempty"`
}
type ThesaurusIDlist ¶
type ThesaurusIDlist struct {
ThesaurusID []*ThesaurusID `xml:"ThesaurusID,omitempty" json:"ThesaurusID,omitempty"`
}
type TreeNumberList ¶
type TreeNumberList struct {
TreeNumber []string `xml:"TreeNumber,omitempty" json:"TreeNumber,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.