-
Notifications
You must be signed in to change notification settings - Fork 0
/
RecordTypes.go
59 lines (53 loc) · 2.04 KB
/
RecordTypes.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package mesh
// SupplementalRecords are parsed from supp####.xml files
type SupplementalRecord struct {
UI UI `xml:"SupplementalRecordUI"`
Name string `xml:"SupplementalRecordName>String"`
Created Date `xml:"DateCreated"`
Revised Date `xml:"DateRevised"`
Note string `xml:"Note"`
Frequency int
Concepts []Concept `xml:"ConceptList>Concept"`
Sources []string `xml:"SourceList>Source"`
MappedTo []struct {
UI UI `xml:"DescriptorReferredTo>DescriptorUI"`
Name string `xml:"DescriptorReferredTo>DescriptorName"`
} `xml:"HeadingMappedToList"`
}
// QualifierRecords are parsed from qual####.xml files
type QualifierRecord struct {
UI UI `xml:"QualifierUI"`
Name string `xml:"QualifierName>String"`
Created Date `xml:"DateCreated"`
Revised Date `xml:"DateRevised"`
Established Date `xml:"DateEstablished"`
Annotation string
HistoryNote string
TreeNumbers []string `xml:"TreeNumberList>TreeNumber"`
}
// DescriptorRecord are parsed from desc####.xml files
type DescriptorRecord struct {
UI string `xml:"DescriptorUI"`
Name string `xml:"DescriptorName"`
Created Date `xml:"DateCreated"`
Revised Date `xml:"DateRevised"`
Established Date `xml:"DateEstablished"`
HistoryNote string
OnlineNote string
PublicMeSHNote string
PreviousIndexings []string `xml:"PreviousIndexingList>PreviousIndexing"`
TreeNumbers []string `xml:"TreeNumberList>TreeNumber"`
Concepts []Concept `xml:"ConceptList>Concept"`
Terms []Term `xml:"TermList"`
}
// PharmacologicalAction are parsed from pa####.xml files
type PharmacologicalAction struct {
UI UI `xml:"DescriptorReferredTo>DescriptorUI"`
Name string `xml:"DescriptorReferredTo>DescriptorName>String"`
Substances []Substance `xml:"PharmacologicalActionSubstanceList>Substance"`
}
// Substances are emebeded structs in PharmacologicalAction
type Substance struct {
UI UI `xml:"RecordUI"`
Name string `xml:"RecordName>String"`
}