ref: 067fdc804453a63dc7bcf9d85b9c3e25681928bd
dir: /doctor.go/
package plugins import ( "github.com/olmaxmedical/router" ) // ListDoctors - Bitmask to list doctors of in client country const ListDoctors router.PluginMask = 1 << 4 type doctor struct { Image string AlmaMater string Name string Residency string Current string Country string Specialty string Rate string } func init() { b := &router.Plugin{ Name: "doctors", Run: ListDocs, Validate: nil, } router.AddPlugin(b, ListDoctors) } // ListDocs - Query db and return list of doctors in country // These may need eventual localization for any bilingual doctors we have func ListDocs(r *router.Request) map[string]interface{} { return map[string]interface{}{ "Mark Abuzamzam, MD": &doctor{ Image: "AbuzamzamMD.jpg", AlmaMater: "University of Southern California School of Medicine", Residency: "University of Southern California, San Diego. Internal Medicine Residency", Name: "Mark Abuzamzam, MD", Current: "Current Faculty at University of California Irvine Program Director", Country: "United States of America", Specialty: "Internal Medicine and Addictions Medicine", Rate: "0.0013 BTC", }, "Martha Woodfin, MD": &doctor{ Image: "WoodfinMD.jpg", Name: "Martha Woodfin, MD", AlmaMater: "University Seoul School of Medicine", Residency: "University of Las Vegas Nevada, Pediatric Medicine Residency", Current: "Current Staff at Mercy Hospital Jackson NC", Country: "United States of America", Specialty: "Internal Medicine", Rate: "0.0011 BTC", }, } }