gomesh2016

package module
v0.0.0-...-84eb2a1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2016 License: BSD-3-Clause Imports: 7 Imported by: 3

Documentation

Index

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 CASN1Name

type CASN1Name 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 ConceptUI

type ConceptUI struct {
	Text string `xml:",chardata" json:",omitempty"`
}

type ConsiderAlso

type ConsiderAlso struct {
	Text string `xml:",chardata" json:",omitempty"`
}

type DateCreated

type DateCreated struct {
	Day   *Day   `xml:"Day,omitempty" json:"Day,omitempty"`
	Month *Month `xml:"Month,omitempty" json:"Month,omitempty"`
	Year  *Year  `xml:"Year,omitempty" json:"Year,omitempty"`
}

type DateEstablished

type DateEstablished struct {
	Day   *Day   `xml:"Day,omitempty" json:"Day,omitempty"`
	Month *Month `xml:"Month,omitempty" json:"Month,omitempty"`
	Year  *Year  `xml:"Year,omitempty" json:"Year,omitempty"`
}

type DateRevised

type DateRevised struct {
	Day   *Day   `xml:"Day,omitempty" json:"Day,omitempty"`
	Month *Month `xml:"Month,omitempty" json:"Month,omitempty"`
	Year  *Year  `xml:"Year,omitempty" json:"Year,omitempty"`
}

type Day

type Day struct {
	Text int8 `xml:",chardata" json:",omitempty"`
}

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 DescriptorReferredTo struct {
	DescriptorName string `xml:"DescriptorName,omitempty" json:"DescriptorName,omitempty"`
	DescriptorUI   string `xml:"DescriptorUI,omitempty" json:"DescriptorUI,omitempty"`
}

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 EntryCombination struct {
	ECIN  *ECIN  `xml:"ECIN,omitempty" json:"ECIN,omitempty"`
	ECOUT *ECOUT `xml:"ECOUT,omitempty" json:"ECOUT,omitempty"`
}

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 Frequency

type Frequency struct {
	Text int16 `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 IdEntry

type IdEntry struct {
	Id    string
	Url   string
	Label string `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 Month

type Month struct {
	Text int8 `xml:",chardata" json:",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)

func (*Node) Init

func (node *Node) Init() *Node

func (*Node) Traverse

func (node *Node) Traverse(depth int, nodeUser useNode)

type Note

type Note struct {
	Text string `xml:",chardata" json:",omitempty"`
}

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 QualifierReferredTo struct {
	QualifierName string `xml:"QualifierName,omitempty" json:"QualifierName,omitempty"`
	QualifierUI   string `xml:"QualifierUI,omitempty" json:"QualifierUI,omitempty"`
}

type QualifierRoot

type QualifierRoot struct {
	QualifierRecordSet *QualifierRecordSet `xml:"QualifierRecordSet,omitempty" json:"QualifierRecordSet,omitempty"`
}

type Record

type Record interface {
	// contains filtered or unexported methods
}

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 ScopeNote

type ScopeNote struct {
	Text string `xml:",chardata" json:",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 Source

type Source struct {
	Text string `xml:",chardata" json:",omitempty"`
}

type SourceList

type SourceList struct {
	Source []*Source `xml:"Source,omitempty" json:"Source,omitempty"`
}

type String

type String struct {
	Text string `xml:",chardata" json:",omitempty"`
}

type Substance

type Substance struct {
	RecordName string `xml:"RecordName,omitempty" json:"RecordName,omitempty"`
	RecordUI   string `xml:"RecordUI,omitempty" json:"RecordUI,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 TermList

type TermList struct {
	Term []*Term `xml:"Term,omitempty" json:"Term,omitempty"`
}

type TermUI

type TermUI struct {
	Text string `xml:",chardata" json:",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"`
}

type Year

type Year struct {
	Text int16 `xml:",chardata" json:",omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL