Configure
Override doctor info
Show your own profile data instead of what the API returns.
The widget fetches doctor profiles from Medos. If you maintain the doctor's bio, photo, or qualifications on your own site (a CMS, a WordPress custom post type, a marketing page), you can override those fields on the fly.
Override a single doctor
Use doctorInfo together with medosDoctorId:
MedosBooking.init({
apiKey: "mk_...",
medosDoctorId: "doc-123",
doctorInfo: {
fullName: "Dr. Priya Sharma, MBBS, MD",
intro:
"Consultant Cardiologist with 18 years of clinical experience across three continents.",
profileImageUrl: "https://your-cdn.example.com/doctors/priya-sharma.jpg",
qualifications: [
{ degree: "MBBS", institution: "AIIMS Delhi", year: 2005 },
{ degree: "MD Cardiology", institution: "PGI Chandigarh", year: 2010 },
],
languages: ["English", "Hindi", "Punjabi"],
},
});Override many doctors
For a workspace-wide override, pass doctorInfoByDoctorId:
MedosBooking.init({
apiKey: "mk_...",
doctorInfoByDoctorId: {
"doc-123": {
fullName: "Dr. Priya Sharma",
profileImageUrl: "https://your-cdn.example.com/doctors/priya.jpg",
},
"doc-456": {
fullName: "Dr. Arjun Nair",
profileImageUrl: "https://your-cdn.example.com/doctors/arjun.jpg",
},
},
});What you can override
Every field in DoctorOverrideInfo — full names, intros, photos,
qualifications, awards, languages, registration numbers, and more. See the
full shape in init() options.
Merge behavior
Any field you provide replaces the API value. Fields you omit fall back to the API. That means you can override just the photo and full name while letting the rest come from Medos.
When to use it
- You already keep marketing bios in a CMS and want the widget to reflect them without duplicating data in two places.
- The API doesn't have the fields your website shows (e.g. custom awards, brand-specific titles).
- You want to A/B test different profile copy without changing the source data.