cmd

package
v0.0.0-...-148717a Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2018 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientIPHandler

func ClientIPHandler(c *gin.Context)

ClientIPHandler returns (in memory)

func DrugClassificationsHandler

func DrugClassificationsHandler(c *gin.Context)

DrugClassificationsHandler returns (in memory)

func DrugHandler

func DrugHandler(c *gin.Context)

DrugHandler 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

func GetXMLFileName(ValidExtension string) string

GetXMLFileName gets the name of the xml file we want to read from

func IPAddressHandler

func IPAddressHandler(c *gin.Context)

IPAddressHandler returns (in memory)

func IsPathExtensionNotValid

func IsPathExtensionNotValid(FileName string, ValidExtension string) bool

IsPathExtensionNotValid just checks file extension type and if it is not valid then it rejects the file

func OpenXMLFile

func OpenXMLFile(FileName string) (xmlFile *os.File)

OpenXMLFile Opens and XML File

func PickUpFlagChanges

func PickUpFlagChanges()

PickUpFlagChanges picks up and applies any flags that have been passed via cli

func ReadFile

func ReadFile(fileName string)

ReadFile reads an XML file passed to the function

func RootDrugHandler

func RootDrugHandler(c *gin.Context)

RootDrugHandler returns (in memory)

func StartTimeHandler

func StartTimeHandler(c *gin.Context)

StartTimeHandler returns (in memory)

func UptimeHandler

func UptimeHandler(c *gin.Context)

UptimeHandler returns (in memory)

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

type Articletype struct {
	Pubmedid string `xml:"pubmed-id"`
	Citation string `xml:"citation"`
}

Articletype container

type Atccodeleveltype

type Atccodeleveltype struct {
	Value string `xml:",chardata"`
	Code  string `xml:"code,attr"`
}

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

type Categorytype struct {
	Category string `xml:"category"`
	Meshid   string `xml:"mesh-id"`
}

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 Cost

type Cost struct {
	Value    string `xml:",chardata"`
	Currency string `xml:"currency,attr"`
}

Cost container

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

func (t *Drugtype) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML Used to marshal drugtype into XML

func (*Drugtype) UnmarshalXML

func (t *Drugtype) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

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 Grouplisttype

type Grouplisttype struct {
	Group Grouptype `xml:"group"`
}

Grouplisttype list

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

type Internationalbrandtype struct {
	Name    string `xml:"name"`
	Company string `xml:"company"`
}

Internationalbrandtype container

type Knownactiontype

type Knownactiontype string

Knownactiontype May be one of yes, no, unknown

type Linklisttype

type Linklisttype struct {
	Link []Linktype `xml:"link,omitempty"`
}

Linklisttype list

type Linktype

type Linktype struct {
	Title string `xml:"title"`
	URL   string `xml:"url"`
}

Linktype container

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

type Mixturetype struct {
	Name        string `xml:"name"`
	Ingredients string `xml:"ingredients"`
}

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

type Packagertype struct {
	Name string `xml:"name"`
	URL  string `xml:"url"`
}

Packagertype container

type Page

type Page struct {
	Title string
	Body  []byte
}

Page ...

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 Pfamtype

type Pfamtype struct {
	Identifier string `xml:"identifier"`
	Name       string `xml:"name"`
}

Pfamtype container

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

type Reactionelementtype struct {
	Drugbankid string `xml:"drugbank-id"`
	Name       string `xml:"name"`
}

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 Sequence

type Sequence struct {
	Value  string `xml:",chardata"`
	Format string `xml:"format,attr,omitempty"`
}

Sequence 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

type SideEffect struct {
	IsPositive  bool
	Name        string
	Description string
	Group       string
}

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 Statetype

type Statetype string

Statetype May be one of solid, liquid, gas

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

type Textbooktype struct {
	Isbn     string `xml:"isbn"`
	Citation string `xml:"citation"`
}

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

type Type

type Type string

Type May be one of small molecule, biotech

type UniqueIP

type UniqueIP struct {
	Message  string `json:"message" binding:"required"`
	UniqueIP string `json:"uniqueip" binding:"required"`
}

UniqueIP contains information about a single ClientIP

type Uptime

type Uptime struct {
	Message string `json:"message" binding:"required"`
	Uptime  string `json:"uptime" binding:"required"`
}

Uptime contains information about a single Uptime

Jump to

Keyboard shortcuts

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