Skip to content

Instantly share code, notes, and snippets.

@abutler3
Last active August 29, 2015 14:08
Show Gist options
  • Save abutler3/de6d9227f12999a8c7b4 to your computer and use it in GitHub Desktop.
Save abutler3/de6d9227f12999a8c7b4 to your computer and use it in GitHub Desktop.
Creatng json for specialities dropdown jsfiddle is http://jsfiddle.net/L8etkgqh/
var doctorsFilter = angular.module('findADoc', []);
doctorsFilter.controller('doctorsController', ['$scope', '$http', function($scope, $http) {
$http.get('../css/findadoc.json').success(function(data) {
$scope.doctors = data;
});
$scope.options = {
stores: [
{id :"Cart", name : 'Ma commande', speciality: 'Ma commande'},
{id : 5412, name : 'Acupuncture', speciality: 'Acupuncture' },
{id : 1, name : 'Allergy and Asthma', speciality: 'Allergy and Asthma' },
{id : 5429, name : 'Allergy and Immunology', speciality: 'Allergy and Immunology' },
{id : 2, name : 'Anesthesiology', speciality: 'Allergy and Immunology', "items":[{ id: 2, name: "All Anesthesiology", speciality: "Anesthesiology"}, { id: 5373, name: "Pain Management", speciality: "Pain Management"}]},
{id : 3, name : 'Burn', speciality: 'Burn' },
{id : 4, name : 'Cancer', speciality: 'Cancer', "items":[{ id: 4, name: "All Cancer", speciality: "Cancer"}, { id: 5, name: "Brain/Neuro Cancer", speciality: "Brain/Neuro Cancer"}, { id: 6, name: "Breast Cancer", speciality: "Breast Cancer"}, { id: 7, name: "Endocrine Cancer", speciality: "Endocrine Cancer"}, { id: 8, name: "Gastrointestinal Cancer", speciality: "Gastrointestinal Cancer"}, { id: 9, name: "Gynecologic Cancer", speciality: "Gynecologic Cancer"}, { id: 10, name: "Head and Neck Cancer", speciality: "Head and Neck Cancer"}, { id: 11, name: "Hematologic Cancer", speciality: "Hematologic Cancer"}, { id: 12, name: "Lung Cancer", speciality: "Lung Cancer"},{ id: 17, name: "Medical Oncology", speciality: "Medical Oncology"}, { id: 13, name: "Melanoma", speciality: "Melanoma"}, { id: 18, name: "Neuro-Oncology", speciality: "Neuro-Oncology"}, { id: 14, name: "Non-Melanoma Skin Cancer", speciality: "Non-Melanoma Skin Cancer"}, { id: 19, name: "Radiation Oncology", speciality: "Radiation Oncology"}, { id: 15, name: "Sarcoma", speciality: "Sarcoma"}, { id: 20, name: "Surgical Oncology", speciality: "Surgical Oncology"}, { id: 16, name: "Urologic/Genitourinary Cancer", speciality: "Urologic/Genitourinary Cancer"}, { id: 18, name: "Neuro-Oncology", speciality: "Neuro-Oncology"}]},
{id : 29, name : 'Endocrinology and Metabolism', speciality: 'Endocrinology and Metabolism', "items":[{ id: 29, name: 'All Endocrinology and Metabolism', speciality: "Endocrinology and Metabolism"}, { id: 5401, name: "Adrenal Gland Disease", speciality:"Adrenal Gland Disease"}, { id:30, name:"Diabetes", speciality: "Diabetes"}, { id: 31, name: 'Pituitary Disorders', speciality: 'Pituitary Disorders'}]},
{id: 32, name : 'Family Medicine', speciality: 'Family Medicine' },
{id : 33, name : 'Gastroenterology, Hepatology and Nutrition', speciality: 'Gastroenterology, Hepatology and Nutrition' },
{id : 34, name : 'Genetics', speciality: 'Genetics' },
{id : 5406, name : 'Geriatric Medicine', speciality: 'Geriatric Medicine' },
{id : 35, name : 'Gynecology', speciality: 'Gynecology' },
{id : 36, name : 'Hearing and Speech', speciality: 'Hearing and Speech' },
{id : 37, name : 'Heart and Vascular', speciality: 'Heart and Vascular', "items":[{ id: 37, name: "All Heart and Vascular", speciality: "Heart and Vascular"}, { id: 38, name: "Adult Congenital Heart Program", speciality: "Adult Congenital Heart Program"}, { id: 39, name: "Arrhythmia and Electrophysiology", speciality: "Arrhythmia and Electrophysiology"}, { id: 40, name: "Autonomic", speciality: "Autonomic"}, { id: 41, name: "Cardiac MRI", speciality: "Cardiac MRI"}, { id: 42, name: "Cardiac Surgery", speciality: "Cardiac Surgery"}, { id: 43, name: "Congestive Heart Failure and Transplant", speciality: "Congestive Heart Failure and Transplant"}, { id: 44, name: "General Cardiology", speciality: "General Cardiology"}, { id: 45, name: "Interventional Cardiology and Peripheral Vascular Disease", speciality: "Interventional Cardiology and Peripheral Vascular Disease"}, { id: 46, name: "Prevention Program", speciality: "Prevention Program"}, { id: 47, name: "Vascular Surgery and Peripheral Vascular Disease", speciality: "Vascular Surgery and Peripheral Vascular Disease"}]},
{id : 48, name : 'Hematology', speciality: 'Hematology'},
{id : 49, name : 'Hematology / Oncology', speciality: 'Hematology / Oncology' },
{id : 7657, name : 'Hypertension', speciality: 'Allergy and Asthma' },
{id : 50, name : 'Infectious Diseases', speciality: 'Infectious Diseases' },
{id : 5374, name : 'Internal Medicine', speciality: 'Internal Medicine'},
{id : 51, name : 'Nephrology and Hypertension', speciality: 'Nephrology and Hypertension' },
{id : 52, name : 'Neurology', speciality: 'Neurology', "items":[{ id: 52, name: "All Neurology", speciality: "Neurology"},{ id: 5375, name: "Electromyography", speciality: "Electromyography"}, { id: 5376, name: "Vascular Neurology", speciality: "Vascular Neurology"}]},
{id : 53, name : 'Obstetrics and Gynecology', speciality: 'Obstetrics and Gynecology', "items":[{ id: 53, name: "All Obstetrics and Gynecology", speciality: "Obstetrics and Gynecology"}, { id: 54, name: "Certified Nurse Midwifery", speciality: "Certified Nurse Midwifery"}, { id: 55, name: "Certified Nurse Women's Health", speciality: "Certified Nurse Women's Health"}, { id: 56, name: "Gynecologic Oncology", speciality: "Gynecologic Oncology"}, { id: 57, name: "Gynecology", speciality: "Gynecology"}, { id: 58, name: "Maternal Fetal Medicine", speciality: "Maternal Fetal Medicine"}, { id: 59, name: "OB/GYN", speciality: "OB/GYN"}, { id: 60, name: "Reproductive Endocrinology and Infertility", speciality: "Reproductive Endocrinology and Infertility"}]},
{id : 61, name : 'Occupational Medicine', speciality: 'Occupational Medicine'},
{id : 62, name : 'Ophthalmology and Visual Sciences', speciality: 'Ophthalmology and Visual Sciences' },
{id : 63, name : 'Oral and Maxillofacial Surgery', speciality: 'Oral and Maxillofacial Surgery' },
{id : 64, name : 'Orthodontics', speciality: 'Orthodontics' }
]
}
}]);
<select name="specialty" id="speedDocs" class="fadSpecialtyBtn hasCustomSelect" style="-webkit-appearance: menulist-button; width: 206px; position: absolute; opacity: 0; height: 29px; font-size: 12px;">
<option>All Specialties</option>
<optgroup label="Orthopaedics and Rehabilitation"><option id="65" value="65">All Orthopaedics and Rehabilitation</option><option id="66" value="66">Orthopaedic / Soft Tissue Oncology</option><option id="67" value="67">Podiatry</option><option id="68" value="68">Spine</option><option id="69" value="69">Sports Medicine</option></optgroup><option id="70" value="70">Otolaryngology</option><option id="5411" value="5411">Palliative Care</option><option id="71" value="71">Pathology</option><optgroup label="Pediatric Specialties"><option id="113" value="113">All Pediatric Specialties</option><option id="114" value="114">Adolescent Medicine and Behavioral Science</option><option id="115" value="115">Adolescent Sports Medicine</option><option id="116" value="116">Child and Adolescent Psychiatry</option><option id="117" value="117">Child Development</option><option id="5384" value="5384">Clinical Psychologist</option><option id="118" value="118">Medical Genetics</option><option id="119" value="119">Pediatric Allergy and Immunology</option><option id="120" value="120">Pediatric Anesthesiology and Perioperative Services</option><option id="121" value="121">Pediatric Cardiac Surgery</option><option id="122" value="122">Pediatric Cardiology</option><option id="123" value="123">Pediatric Critical Care</option><option id="124" value="124">Pediatric Dermatology</option><option id="125" value="125">Pediatric Diabetes, Endocrinology and Metabolism</option><option id="126" value="126">Pediatric Emergency Medicine</option><option id="127" value="127">Pediatric Gastroenterology, Hepatology and Nutrition</option><option id="128" value="128">Pediatric General Pediatrics</option><option id="129" value="129">Pediatric Hematology / Oncology</option><option id="130" value="130">Pediatric Hospitalist Program</option><option id="131" value="131">Pediatric Infectious Diseases</option><option id="132" value="132">Pediatric Neonatology</option><option id="133" value="133">Pediatric Nephrology and Hypertension</option><option id="134" value="134">Pediatric Neurology</option><option id="135" value="135">Pediatric Neurosurgery</option><option id="136" value="136">Pediatric Ophthalmology</option><option id="137" value="137">Pediatric Oral and Maxillofacial Surgery</option><option id="138" value="138">Pediatric Orthopaedics</option><option id="139" value="139">Pediatric Otolaryngology</option><option id="7452" value="7452">Pediatric Palliative Care</option><option id="140" value="140">Pediatric Pathology</option><option id="141" value="141">Pediatric Plastic Surgery</option><option id="142" value="142">Pediatric Primary Care</option><option id="143" value="143">Pediatric Pulmonary Medicine</option><option id="144" value="144">Pediatric Radiology</option><option id="7451" value="7451">Pediatric Rheumatology</option><option id="145" value="145">Pediatric Surgery</option><option id="146" value="146">Pediatric Transplant</option><option id="147" value="147">Pediatric Trauma and Burn</option><option id="148" value="148">Pediatric Urology</option></optgroup><option id="5408" value="5408">Physical Medicine and Rehabilitation</option><option id="72" value="72">Preventive Medicine</option><option id="73" value="73">Primary Care</option><optgroup label="Psychiatry"><option id="74" value="74">All Psychiatry</option><option id="75" value="75">Addiction Medicine</option><option id="76" value="76">Adult Psychiatry</option><option id="77" value="77">Child and Adolescent Psychiatry</option></optgroup><option id="78" value="78">Pulmonary and Critical Care Medicine</option><optgroup label="Radiology"><option id="79" value="79">All Radiology</option><option id="149" value="149">Breast Imaging</option><option id="5396" value="5396">Nuclear Medicine</option></optgroup><option id="80" value="80">Rheumatology</option><option id="5410" value="5410">Sleep Medicine</option><option id="81" value="81">Sports Medicine</option><optgroup label="Surgery"><option id="82" value="82">All Surgery</option><option id="83" value="83">Bariatric/Weight Loss Surgery</option><option id="84" value="84">Colon and Rectal Surgery</option><option id="85" value="85">Cosmetic Plastic Surgery</option><option id="86" value="86">Dermatology Surgery</option><option id="87" value="87">Endocrine Surgery</option><option id="88" value="88">Gastroenterology Surgery</option><option id="89" value="89">General Surgery</option><option id="5385" value="5385">Hand Surgery</option><option id="90" value="90">Hepatobiliary and Liver Surgery</option><option id="91" value="91">Kidney and Pancreas Surgery</option><option id="92" value="92">Nephrology Surgery</option><option id="93" value="93">Neurological Surgery</option><option id="94" value="94">Ophthalmology Surgery</option><option id="95" value="95">Oral and Maxillofacial Surgery</option><option id="96" value="96">Orthodontics Surgery</option><option id="97" value="97">Orthopaedic Surgery</option><option id="98" value="98">Otolaryngology Surgery</option><option id="99" value="99">Plastic and Reconstructive Surgery</option><option id="100" value="100">Pulmonary Surgery</option><option id="101" value="101">Thoracic Surgery</option><option id="102" value="102">Trauma Surgery</option><option id="103" value="103">Urologic Surgery</option></optgroup><option id="104" value="104">Toxicology</option><optgroup label="Transplant"><option id="105" value="105">All Transplant</option><option id="106" value="106">Bone Marrow Transplant</option><option id="107" value="107">Heart Transplant</option><option id="108" value="108">Kidney and Pancreas Transplant</option><option id="5430" value="5430">Kidney Transplant</option><option id="109" value="109">Liver Transplant</option><option id="110" value="110">Lung Transplant</option><option id="111" value="111">Stem Cell Transplant</option></optgroup><option id="112" value="112">Urology</option>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment