hlfw.ca

webbing

ref: cc4801d0bfe1451160608ac5d8e94e9b2f68cc16
dir: /doctor.go/

View raw version
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",
		},
	}
}