Documentation ¶
Index ¶
- func ClientIPHandler(c *gin.Context)
- func DrugClassificationsHandler(c *gin.Context)
- func DrugHandler(c *gin.Context)
- func Execute()
- func GetXMLFileName(ValidExtension string) string
- func IPAddressHandler(c *gin.Context)
- func IsPathExtensionNotValid(FileName string, ValidExtension string) bool
- func OpenXMLFile(FileName string) (xmlFile *os.File)
- func PickUpFlagChanges()
- func ReadFile(fileName string)
- func RootDrugHandler(c *gin.Context)
- func StartTimeHandler(c *gin.Context)
- func UptimeHandler(c *gin.Context)
- type Actionlisttype
- type Affectedorganismlisttype
- type Ahfscodelisttype
- type Articlelisttype
- type Articletype
- type Atccodeleveltype
- type Atccodelisttype
- type Atccodetype
- type Calculatedpropertykindtype
- type Calculatedpropertylisttype
- type Calculatedpropertysourcetype
- type Calculatedpropertytype
- type Carrierlisttype
- type Carriertype
- type Categorylisttype
- type Categorytype
- type Classificationtype
- type ClientIP
- type Cost
- type Dosagelisttype
- type Dosagetype
- type Drugbankdrugsaltidtype
- type Drugbankdrugsaltidvalue
- type Drugbankmetaboliteidtype
- type Drugbankmetaboliteidvalue
- type Drugbanktype
- type Druginteractionlisttype
- type Druginteractiontype
- type Drugtype
- type Enzymelisttype
- type Enzymetype
- type Experimentalpropertykindtype
- type Experimentalpropertylisttype
- type Experimentalpropertytype
- type Externalidentifierlisttype
- type Externalidentifierresourcetype
- type Externalidentifiertype
- type Externallinklisttype
- type Externallinkresourcetype
- type Externallinktype
- type Foodinteractionlisttype
- type Goclassifierlisttype
- type Goclassifiertype
- type Grouplisttype
- type Grouptype
- type Internationalbrandlisttype
- type Internationalbrandtype
- type Knownactiontype
- type Linklisttype
- type Linktype
- type Manufacturerlisttype
- type Manufacturertype
- type Mixturelisttype
- type Mixturetype
- type Organism
- type Packagerlisttype
- type Packagertype
- type Page
- type Patentlisttype
- type Patenttype
- type Pathwaydruglisttype
- type Pathwaydrugtype
- type Pathwayenzymelisttype
- type Pathwaylisttype
- type Pathwaytype
- type Pdbentrylisttype
- type Person
- type Pfamlisttype
- type Pfamtype
- type Polypeptideexternalidentifierlisttype
- type Polypeptideexternalidentifierresourcetype
- type Polypeptideexternalidentifiertype
- type Polypeptidelisttype
- type Polypeptidesynonymlisttype
- type Polypeptidetype
- type Pricelisttype
- type Pricetype
- type Productcountrytype
- type Productlisttype
- type Productsourcetype
- type Producttype
- type Reactionelementtype
- type Reactionenzymelisttype
- type Reactionenzymetype
- type Reactionlisttype
- type Reactiontype
- type Referencelisttype
- type Saltlisttype
- type Salttype
- type Sequence
- type Sequencelisttype
- type Sequencetype
- type SideEffect
- type Snpadversedrugreactionlisttype
- type Snpadversedrugreactiontype
- type Snpeffectlisttype
- type Snpeffecttype
- type StartTime
- type Statetype
- type Synonymlisttype
- type Synonymtype
- type Targetlisttype
- type Targettype
- type Textbooklisttype
- type Textbooktype
- type Transporterlisttype
- type Transportertype
- type Type
- type UniqueIP
- type Uptime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DrugClassificationsHandler ¶
DrugClassificationsHandler returns (in memory)
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func GetXMLFileName ¶
GetXMLFileName gets the name of the xml file we want to read from
func IsPathExtensionNotValid ¶
IsPathExtensionNotValid just checks file extension type and if it is not valid then it rejects the file
func OpenXMLFile ¶
OpenXMLFile Opens and XML File
func PickUpFlagChanges ¶
func PickUpFlagChanges()
PickUpFlagChanges picks up and applies any flags that have been passed via cli
Types ¶
type Actionlisttype ¶
type Actionlisttype struct {
Action []string `xml:"action,omitempty"`
}
Actionlisttype list
type Affectedorganismlisttype ¶
type Affectedorganismlisttype struct {
Affectedorganism []string `xml:"affected-organism,omitempty"`
}
Affectedorganismlisttype list
type Ahfscodelisttype ¶
type Ahfscodelisttype struct {
Ahfscode []string `xml:"ahfs-code,omitempty"`
}
Ahfscodelisttype list
type Articlelisttype ¶
type Articlelisttype struct {
Article []Articletype `xml:"article,omitempty"`
}
Articlelisttype list
type Articletype ¶
Articletype container
type Atccodeleveltype ¶
Atccodeleveltype container
type Atccodelisttype ¶
type Atccodelisttype struct {
Atccode []Atccodetype `xml:"atc-code,omitempty"`
}
Atccodelisttype list
type Atccodetype ¶
type Atccodetype struct { Level []Atccodeleveltype `xml:"level"` Code string `xml:"code,attr,omitempty"` }
Atccodetype container
type Calculatedpropertykindtype ¶
type Calculatedpropertykindtype string
Calculatedpropertykindtype May be one of logP, logS, Water Solubility, IUPAC Name, Traditional IUPAC Name, Molecular Weight, Monoisotopic Weight, SMILES, Molecular Formula, InChI, InChIKey, Polar Surface Area (PSA), Refractivity, Polarizability, Rotatable Bond Count, H Bond Acceptor Count, H Bond Donor Count, pKa (strongest acidic), pKa (strongest basic), Physiological Charge, Number of Rings, Bioavailability, Rule of Five, Ghose Filter, MDDR-Like Rule
type Calculatedpropertylisttype ¶
type Calculatedpropertylisttype struct {
Property []Calculatedpropertytype `xml:"property,omitempty"`
}
Calculatedpropertylisttype list
type Calculatedpropertysourcetype ¶
type Calculatedpropertysourcetype string
Calculatedpropertysourcetype May be one of ChemAxon, ALOGPS
type Calculatedpropertytype ¶
type Calculatedpropertytype struct { Kind Calculatedpropertykindtype `xml:"kind"` Value string `xml:"value"` Source Calculatedpropertysourcetype `xml:"source"` }
Calculatedpropertytype container
type Carrierlisttype ¶
type Carrierlisttype struct {
Carrier []Carriertype `xml:"carrier,omitempty"`
}
Carrierlisttype list
type Carriertype ¶
type Carriertype struct { ID string `xml:"id"` Name string `xml:"name"` Organism string `xml:"organism"` Actions Actionlisttype `xml:"actions"` References Referencelisttype `xml:"references"` Knownaction Knownactiontype `xml:"known-action"` Polypeptide []Polypeptidetype `xml:"polypeptide,omitempty"` Position int `xml:"position,attr,omitempty"` }
Carriertype container
type Categorylisttype ¶
type Categorylisttype struct {
Category []Categorytype `xml:"category,omitempty"`
}
Categorylisttype list
type Categorytype ¶
Categorytype container
type Classificationtype ¶
type Classificationtype struct { Description string `xml:"description"` Directparent string `xml:"direct-parent"` Kingdom string `xml:"kingdom"` Superclass string `xml:"superclass"` Class string `xml:"class"` Subclass string `xml:"subclass"` Alternativeparent []string `xml:"alternative-parent,omitempty"` Substituent []string `xml:"substituent,omitempty"` }
Classificationtype Drug classification is obtained from ClassyFire (http://classyfire.wishartlab.com).
type ClientIP ¶
type ClientIP struct { Message string `json:"message" binding:"required"` ClientIP string `json:"clientip" binding:"required"` }
ClientIP contains information about a single ClientIP
type Dosagelisttype ¶
type Dosagelisttype struct {
Dosage []Dosagetype `xml:"dosage,omitempty"`
}
Dosagelisttype list
type Dosagetype ¶
type Dosagetype struct { Form string `xml:"form"` Route string `xml:"route"` Strength string `xml:"strength"` }
Dosagetype container
type Drugbankdrugsaltidtype ¶
type Drugbankdrugsaltidtype struct { Drugbankdrugsaltidvalue Drugbankdrugsaltidvalue `xml:",chardata"` Primary bool `xml:"primary,attr,omitempty"` }
Drugbankdrugsaltidtype The DrugBank ID is used to uniquely identify a drug or salt entry. There is a primary ID and several secondary IDs that come from older ID formats or merged entries.
func (*Drugbankdrugsaltidtype) UnmarshalXML ¶
func (t *Drugbankdrugsaltidtype) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
UnmarshalXML unloads XML from Drugbankdrugsaltidtype structure
type Drugbankdrugsaltidvalue ¶
type Drugbankdrugsaltidvalue string
Drugbankdrugsaltidvalue Must match the pattern DB[0-9]{5}|DBSALT[0-9]{6}|APRD[0-9]{5}|BIOD[0-9]{5}|BTD[0-9]{5}|EXPT[0-9]{5}|NUTR[0-9]{5}
type Drugbankmetaboliteidtype ¶
type Drugbankmetaboliteidtype struct { Drugbankmetaboliteidvalue Drugbankmetaboliteidvalue `xml:",chardata"` Primary bool `xml:"primary,attr,omitempty"` }
Drugbankmetaboliteidtype The metabolite DrugBank ID uniquely identifies a metabolite entry. Multiple IDs indicate a merged entry.
func (*Drugbankmetaboliteidtype) UnmarshalXML ¶
func (t *Drugbankmetaboliteidtype) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
UnmarshalXML unloads XML from Drugbankmetaboliteidtype structure
type Drugbankmetaboliteidvalue ¶
type Drugbankmetaboliteidvalue string
Drugbankmetaboliteidvalue Must match the pattern DBMET[0-9]{5}
type Drugbanktype ¶
type Drugbanktype struct { Drug []Drugtype `xml:"drug"` Version string `xml:"version,attr"` Exportedon time.Time `xml:"exported-on,attr"` }
Drugbanktype This is the root element type for the DrugBank database schema.
func (*Drugbanktype) MarshalXML ¶
func (t *Drugbanktype) MarshalXML(e *xml.Encoder, start xml.StartElement) error
MarshalXML loads xml into drugbanktype structure
func (*Drugbanktype) UnmarshalXML ¶
func (t *Drugbanktype) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
UnmarshalXML unloads XML into drugbanktype structure
type Druginteractionlisttype ¶
type Druginteractionlisttype struct {
Druginteraction []Druginteractiontype `xml:"drug-interaction,omitempty"`
}
Druginteractionlisttype struct for a list of drug interaction types
type Druginteractiontype ¶
type Druginteractiontype struct { Drugbankid Drugbankdrugsaltidtype `xml:"drugbank-id"` Name string `xml:"name"` Description string `xml:"description"` }
Druginteractiontype struct for drug interaction types
type Drugtype ¶
type Drugtype struct { Drugbankid []Drugbankdrugsaltidtype `xml:"drugbank-id"` Name string `xml:"name"` Description string `xml:"description"` Casnumber string `xml:"cas-number"` Unii string `xml:"unii"` Averagemass float32 `xml:"average-mass,omitempty"` Monoisotopicmass float32 `xml:"monoisotopic-mass,omitempty"` State Statetype `xml:"state,omitempty"` Groups Grouplisttype `xml:"groups"` Generalreferences Referencelisttype `xml:"general-references"` Synthesisreference string `xml:"synthesis-reference"` Indication string `xml:"indication"` Pharmacodynamics string `xml:"pharmacodynamics"` Mechanismofaction string `xml:"mechanism-of-action"` Toxicity string `xml:"toxicity"` Metabolism string `xml:"metabolism"` Absorption string `xml:"absorption"` Halflife string `xml:"half-life"` Proteinbinding string `xml:"protein-binding"` Routeofelimination string `xml:"route-of-elimination"` Volumeofdistribution string `xml:"volume-of-distribution"` Clearance string `xml:"clearance"` Classification Classificationtype `xml:"classification,omitempty"` Salts Saltlisttype `xml:"salts"` Synonyms Synonymlisttype `xml:"synonyms"` Products Productlisttype `xml:"products"` Internationalbrands Internationalbrandlisttype `xml:"international-brands"` Mixtures Mixturelisttype `xml:"mixtures"` Packagers Packagerlisttype `xml:"packagers"` Manufacturers Manufacturerlisttype `xml:"manufacturers"` Prices Pricelisttype `xml:"prices"` Categories Categorylisttype `xml:"categories"` Affectedorganisms Affectedorganismlisttype `xml:"affected-organisms"` Dosages Dosagelisttype `xml:"dosages"` Atccodes Atccodelisttype `xml:"atc-codes"` Ahfscodes Ahfscodelisttype `xml:"ahfs-codes"` Pdbentries Pdbentrylisttype `xml:"pdb-entries"` Fdalabel string `xml:"fda-label,omitempty"` Msds string `xml:"msds,omitempty"` Patents Patentlisttype `xml:"patents"` Foodinteractions Foodinteractionlisttype `xml:"food-interactions"` Druginteractions Druginteractionlisttype `xml:"drug-interactions"` Sequences Sequencelisttype `xml:"sequences,omitempty"` Calculatedproperties Calculatedpropertylisttype `xml:"calculated-properties,omitempty"` Experimentalproperties Experimentalpropertylisttype `xml:"experimental-properties"` Externalidentifiers Externalidentifierlisttype `xml:"external-identifiers"` Externallinks Externallinklisttype `xml:"external-links"` Pathways Pathwaylisttype `xml:"pathways"` Reactions Reactionlisttype `xml:"reactions"` Snpeffects Snpeffectlisttype `xml:"snp-effects"` Snpadversedrugreactions Snpadversedrugreactionlisttype `xml:"snp-adverse-drug-reactions"` Targets Targetlisttype `xml:"targets"` Enzymes Enzymelisttype `xml:"enzymes"` Carriers Carrierlisttype `xml:"carriers"` Transporters Transporterlisttype `xml:"transporters"` Type Type `xml:"type,attr"` Created time.Time `xml:"created,attr"` Updated time.Time `xml:"updated,attr"` }
Drugtype Main drug datastructure
func (*Drugtype) MarshalXML ¶
MarshalXML Used to marshal drugtype into XML
func (*Drugtype) UnmarshalXML ¶
UnmarshalXML Used to UnmarshalXML into go structs
type Enzymelisttype ¶
type Enzymelisttype struct {
Enzyme []Enzymetype `xml:"enzyme,omitempty"`
}
Enzymelisttype list of enzyme types
type Enzymetype ¶
type Enzymetype struct { ID string `xml:"id"` Name string `xml:"name"` Organism string `xml:"organism"` Actions Actionlisttype `xml:"actions"` References Referencelisttype `xml:"references"` Knownaction Knownactiontype `xml:"known-action"` Polypeptide []Polypeptidetype `xml:"polypeptide,omitempty"` Inhibitionstrength string `xml:"inhibition-strength"` Inductionstrength string `xml:"induction-strength"` Position int `xml:"position,attr,omitempty"` }
Enzymetype a type for enzymes
type Experimentalpropertykindtype ¶
type Experimentalpropertykindtype string
Experimentalpropertykindtype May be one of Water Solubility, Melting Point, Boiling Point, logP, logS, Hydrophobicity, Isoelectric Point, caco2 Permeability, pKa, Molecular Weight, Molecular Formula
type Experimentalpropertylisttype ¶
type Experimentalpropertylisttype struct {
Property []Experimentalpropertytype `xml:"property,omitempty"`
}
Experimentalpropertylisttype list of experimental property
type Experimentalpropertytype ¶
type Experimentalpropertytype struct { Kind Experimentalpropertykindtype `xml:"kind"` Value string `xml:"value"` Source string `xml:"source"` }
Experimentalpropertytype container
type Externalidentifierlisttype ¶
type Externalidentifierlisttype struct {
Externalidentifier []Externalidentifiertype `xml:"external-identifier,omitempty"`
}
Externalidentifierlisttype list
type Externalidentifierresourcetype ¶
type Externalidentifierresourcetype string
Externalidentifierresourcetype May be one of UniProtKB, Wikipedia, ChEBI, ChEMBL, PubChem Compound, PubChem Substance, Drugs Product Database (DPD), KEGG Compound, KEGG Drug, ChemSpider, BindingDB, National Drug Code Directory, GenBank, Therapeutic Targets Database, PharmGKB, PDB, IUPHAR, Guide to Pharmacology
type Externalidentifiertype ¶
type Externalidentifiertype struct { Resource Externalidentifierresourcetype `xml:"resource"` Identifier string `xml:"identifier"` }
Externalidentifiertype type for external identifiers
type Externallinklisttype ¶
type Externallinklisttype struct {
Externallink []Externallinktype `xml:"external-link,omitempty"`
}
Externallinklisttype list type for external lists
type Externallinkresourcetype ¶
type Externallinkresourcetype string
Externallinkresourcetype May be one of RxList, PDRhealth, Drugs.com
type Externallinktype ¶
type Externallinktype struct { Resource Externallinkresourcetype `xml:"resource"` URL string `xml:"url"` }
Externallinktype container
type Foodinteractionlisttype ¶
type Foodinteractionlisttype struct {
Foodinteraction []string `xml:"food-interaction,omitempty"`
}
Foodinteractionlisttype list
type Goclassifierlisttype ¶
type Goclassifierlisttype struct {
Goclassifier []Goclassifiertype `xml:"go-classifier,omitempty"`
}
Goclassifierlisttype list
type Goclassifiertype ¶
type Goclassifiertype struct { Category string `xml:"category"` Description string `xml:"description"` }
Goclassifiertype container
type Grouptype ¶
type Grouptype string
Grouptype May be one of approved, illicit, experimental, withdrawn, nutraceutical, investigational, vet_approved
type Internationalbrandlisttype ¶
type Internationalbrandlisttype struct {
Internationalbrand []Internationalbrandtype `xml:"international-brand,omitempty"`
}
Internationalbrandlisttype list
type Internationalbrandtype ¶
Internationalbrandtype container
type Linklisttype ¶
type Linklisttype struct {
Link []Linktype `xml:"link,omitempty"`
}
Linklisttype list
type Manufacturerlisttype ¶
type Manufacturerlisttype struct {
Manufacturer []Manufacturertype `xml:"manufacturer,omitempty"`
}
Manufacturerlisttype list
type Manufacturertype ¶
type Manufacturertype struct { Value string `xml:",chardata"` Generic bool `xml:"generic,attr,omitempty"` URL string `xml:"url,attr,omitempty"` }
Manufacturertype container
type Mixturelisttype ¶
type Mixturelisttype struct {
Mixture []Mixturetype `xml:"mixture,omitempty"`
}
Mixturelisttype list
type Mixturetype ¶
Mixturetype container
type Organism ¶
type Organism struct { Value string `xml:",chardata"` Ncbitaxonomyid string `xml:"ncbi-taxonomy-id,attr,omitempty"` }
Organism container
type Packagerlisttype ¶
type Packagerlisttype struct {
Packager []Packagertype `xml:"packager,omitempty"`
}
Packagerlisttype list
type Packagertype ¶
Packagertype container
type Patentlisttype ¶
type Patentlisttype struct {
Patent []Patenttype `xml:"patent,omitempty"`
}
Patentlisttype list
type Patenttype ¶
type Patenttype struct { Number string `xml:"number"` Country string `xml:"country"` Approved string `xml:"approved"` Expires string `xml:"expires"` Pediatricextension bool `xml:"pediatric-extension"` }
Patenttype container
type Pathwaydruglisttype ¶
type Pathwaydruglisttype struct {
Drug []Pathwaydrugtype `xml:"drug"`
}
Pathwaydruglisttype list
type Pathwaydrugtype ¶
type Pathwaydrugtype struct { Drugbankid Drugbankdrugsaltidtype `xml:"drugbank-id"` Name string `xml:"name"` }
Pathwaydrugtype container
type Pathwayenzymelisttype ¶
type Pathwayenzymelisttype struct {
Uniprotid []string `xml:"uniprot-id,omitempty"`
}
Pathwayenzymelisttype list
type Pathwaylisttype ¶
type Pathwaylisttype struct {
Pathway []Pathwaytype `xml:"pathway,omitempty"`
}
Pathwaylisttype list
type Pathwaytype ¶
type Pathwaytype struct { Smpdbid string `xml:"smpdb-id"` Name string `xml:"name"` Category string `xml:"category"` Drugs Pathwaydruglisttype `xml:"drugs"` Enzymes Pathwayenzymelisttype `xml:"enzymes"` }
Pathwaytype container
type Pdbentrylisttype ¶
type Pdbentrylisttype struct {
Pdbentry []string `xml:"pdb-entry,omitempty"`
}
Pdbentrylisttype list
type Person ¶
type Person struct {
SideEffects []SideEffect
}
Person currently is only a logical construct used to hold an array of side effects
type Pfamlisttype ¶
type Pfamlisttype struct {
Pfam []Pfamtype `xml:"pfam,omitempty"`
}
Pfamlisttype list
type Polypeptideexternalidentifierlisttype ¶
type Polypeptideexternalidentifierlisttype struct {
Externalidentifier []Polypeptideexternalidentifiertype `xml:"external-identifier,omitempty"`
}
Polypeptideexternalidentifierlisttype list
type Polypeptideexternalidentifierresourcetype ¶
type Polypeptideexternalidentifierresourcetype string
Polypeptideexternalidentifierresourcetype May be one of UniProtKB, UniProt Accession, HUGO Gene Nomenclature Committee (HGNC), Human Protein Reference Database (HPRD), GenAtlas, GeneCards, GenBank Gene Database, GenBank Protein Database, ChEMBL, IUPHAR, Guide to Pharmacology
type Polypeptideexternalidentifiertype ¶
type Polypeptideexternalidentifiertype struct { Resource Polypeptideexternalidentifierresourcetype `xml:"resource"` Identifier string `xml:"identifier"` }
Polypeptideexternalidentifiertype container
type Polypeptidelisttype ¶
type Polypeptidelisttype struct {
Polypeptide []Polypeptidetype `xml:"polypeptide,omitempty"`
}
Polypeptidelisttype list
type Polypeptidesynonymlisttype ¶
type Polypeptidesynonymlisttype struct {
Synonym []string `xml:"synonym,omitempty"`
}
Polypeptidesynonymlisttype list
type Polypeptidetype ¶
type Polypeptidetype struct { Name string `xml:"name"` Generalfunction string `xml:"general-function"` Specificfunction string `xml:"specific-function"` Genename string `xml:"gene-name"` Locus string `xml:"locus"` Cellularlocation string `xml:"cellular-location"` Transmembraneregions string `xml:"transmembrane-regions"` Signalregions string `xml:"signal-regions"` Theoreticalpi string `xml:"theoretical-pi"` Molecularweight string `xml:"molecular-weight"` Chromosomelocation string `xml:"chromosome-location"` Organism Organism `xml:"organism"` Externalidentifiers Polypeptideexternalidentifierlisttype `xml:"external-identifiers"` Synonyms Polypeptidesynonymlisttype `xml:"synonyms"` Aminoacidsequence Sequencetype `xml:"amino-acid-sequence"` Genesequence Sequencetype `xml:"gene-sequence"` Pfams Pfamlisttype `xml:"pfams"` Goclassifiers Goclassifierlisttype `xml:"go-classifiers"` Source string `xml:"source,attr"` }
Polypeptidetype container
type Pricelisttype ¶
type Pricelisttype struct {
Price []Pricetype `xml:"price,omitempty"`
}
Pricelisttype list
type Pricetype ¶
type Pricetype struct { Description string `xml:"description"` Cost Cost `xml:"cost"` Unit string `xml:"unit"` }
Pricetype The price for the given drug in US or Canadian currency.
type Productcountrytype ¶
type Productcountrytype string
Productcountrytype May be one of US, Canada, EU
type Productlisttype ¶
type Productlisttype struct {
Product []Producttype `xml:"product,omitempty"`
}
Productlisttype list
type Productsourcetype ¶
type Productsourcetype string
Productsourcetype May be one of FDA NDC, DPD, EMA
type Producttype ¶
type Producttype struct { Name string `xml:"name"` Labeller string `xml:"labeller"` Ndcid string `xml:"ndc-id"` Ndcproductcode string `xml:"ndc-product-code"` Dpdid string `xml:"dpd-id,omitempty"` Emaproductcode string `xml:"ema-product-code,omitempty"` Emamanumber string `xml:"ema-ma-number,omitempty"` Startedmarketingon string `xml:"started-marketing-on"` Endedmarketingon string `xml:"ended-marketing-on"` Dosageform string `xml:"dosage-form"` Strength string `xml:"strength"` Route string `xml:"route"` Fdaapplicationnumber string `xml:"fda-application-number"` Generic bool `xml:"generic"` Overthecounter bool `xml:"over-the-counter"` Approved bool `xml:"approved"` Country Productcountrytype `xml:"country"` Source Productsourcetype `xml:"source"` }
Producttype container for products
type Reactionelementtype ¶
Reactionelementtype container
type Reactionenzymelisttype ¶
type Reactionenzymelisttype struct {
Enzyme []Reactionenzymetype `xml:"enzyme,omitempty"`
}
Reactionenzymelisttype list
type Reactionenzymetype ¶
type Reactionenzymetype struct { Drugbankid string `xml:"drugbank-id"` Name string `xml:"name"` Uniprotid string `xml:"uniprot-id"` }
Reactionenzymetype container
type Reactionlisttype ¶
type Reactionlisttype struct {
Reaction []Reactiontype `xml:"reaction,omitempty"`
}
Reactionlisttype list
type Reactiontype ¶
type Reactiontype struct { Sequence string `xml:"sequence"` Leftelement Reactionelementtype `xml:"left-element"` Rightelement Reactionelementtype `xml:"right-element"` Enzymes Reactionenzymelisttype `xml:"enzymes"` }
Reactiontype container
type Referencelisttype ¶
type Referencelisttype struct { Articles Articlelisttype `xml:"articles"` Textbooks Textbooklisttype `xml:"textbooks"` Links Linklisttype `xml:"links"` }
Referencelisttype list
type Saltlisttype ¶
type Saltlisttype struct {
Salt []Salttype `xml:"salt,omitempty"`
}
Saltlisttype list
type Salttype ¶
type Salttype struct { Drugbankid []Drugbankdrugsaltidtype `xml:"drugbank-id,omitempty"` Name string `xml:"name"` Unii string `xml:"unii"` Casnumber string `xml:"cas-number"` Inchikey string `xml:"inchikey"` Averagemass float32 `xml:"average-mass,omitempty"` Monoisotopicmass float32 `xml:"monoisotopic-mass,omitempty"` }
Salttype container
type Sequencelisttype ¶
type Sequencelisttype struct {
Sequence []Sequence `xml:"sequence,omitempty"`
}
Sequencelisttype list
type Sequencetype ¶
type Sequencetype struct { Value string `xml:",chardata"` Format string `xml:"format,attr,omitempty"` }
Sequencetype container
type SideEffect ¶
SideEffect this defines some side effect experienced by the person tied to this side effect
type Snpadversedrugreactionlisttype ¶
type Snpadversedrugreactionlisttype struct {
Reaction []Snpadversedrugreactiontype `xml:"reaction,omitempty"`
}
Snpadversedrugreactionlisttype list
type Snpadversedrugreactiontype ¶
type Snpadversedrugreactiontype struct { Proteinname string `xml:"protein-name"` Genesymbol string `xml:"gene-symbol"` Uniprotid string `xml:"uniprot-id"` Rsid string `xml:"rs-id"` Allele string `xml:"allele"` Adversereaction string `xml:"adverse-reaction"` Description string `xml:"description"` Pubmedid string `xml:"pubmed-id"` }
Snpadversedrugreactiontype container
type Snpeffectlisttype ¶
type Snpeffectlisttype struct {
Effect []Snpeffecttype `xml:"effect,omitempty"`
}
Snpeffectlisttype list
type Snpeffecttype ¶
type Snpeffecttype struct { Proteinname string `xml:"protein-name"` Genesymbol string `xml:"gene-symbol"` Uniprotid string `xml:"uniprot-id"` Rsid string `xml:"rs-id"` Allele string `xml:"allele"` Definingchange string `xml:"defining-change"` Description string `xml:"description"` Pubmedid string `xml:"pubmed-id"` }
Snpeffecttype container
type StartTime ¶
type StartTime struct { Message string `json:"message" binding:"required"` StartTime string `json:"starttime" binding:"required"` }
StartTime contains information about a single StartTime
type Synonymlisttype ¶
type Synonymlisttype struct {
Synonym []Synonymtype `xml:"synonym,omitempty"`
}
Synonymlisttype list
type Synonymtype ¶
type Synonymtype struct { Value string `xml:",chardata"` Language string `xml:"language,attr,omitempty"` Coder string `xml:"coder,attr,omitempty"` }
Synonymtype type to contain synonymtype
type Targetlisttype ¶
type Targetlisttype struct {
Target []Targettype `xml:"target,omitempty"`
}
Targetlisttype list of targetlisttype
type Targettype ¶
type Targettype struct { ID string `xml:"id"` Name string `xml:"name"` Organism string `xml:"organism"` Actions Actionlisttype `xml:"actions"` References Referencelisttype `xml:"references"` Knownaction Knownactiontype `xml:"known-action"` Polypeptide []Polypeptidetype `xml:"polypeptide,omitempty"` Position int `xml:"position,attr,omitempty"` }
Targettype target type container
type Textbooklisttype ¶
type Textbooklisttype struct {
Textbook []Textbooktype `xml:"textbook,omitempty"`
}
Textbooklisttype list type for textbooktype
type Textbooktype ¶
Textbooktype type to contain textbook entries
type Transporterlisttype ¶
type Transporterlisttype struct {
Transporter []Transportertype `xml:"transporter,omitempty"`
}
Transporterlisttype list type for transporter
type Transportertype ¶
type Transportertype struct { ID string `xml:"id"` Name string `xml:"name"` Organism string `xml:"organism"` Actions Actionlisttype `xml:"actions"` References Referencelisttype `xml:"references"` Knownaction Knownactiontype `xml:"known-action"` Polypeptide []Polypeptidetype `xml:"polypeptide,omitempty"` Position int `xml:"position,attr,omitempty"` }
Transportertype type to contain transporter construct