# } else { #
View all
# } #
"; } else { var desktopProfileImageURL = getImageUrlWithWithHeight(imageURL, desktopWidth.toString(), desktopHeight.toString(), true, true); //var mobileProfileImageURL = getImageUrlWithWithHeight(imageURL, mobileWidth.toString(), "", true, false); var mobileProfileImageURL = getImageUrlWithWithHeight(imageURL, mobileWidth.toString(), mobileHeight.toString(), true, true); newImageHTML += "
"; } return newImageHTML; } function FMPSearchBoxSubmit() { var searchText = $(fmpSearchBoxSettings.SearchBoxID).val(); if (isEmptyString(searchText)) { $(fmpSearchBoxSettings.SearchBoxID).val(""); FMPSearchBoxSubmitCleanedText(""); } else { $.ajax({ type: "POST", url: "/api/GlobalApi/FTNHCheck", async: true, data: JSON.stringify({ STOption: 20, Text: searchText }), contentType: "application/json", success: function (response) { if (response != null) { FMPSearchBoxSubmitCleanedText(response); } else { $(fmpSearchBoxSettings.SearchBoxID).val(""); FMPSearchBoxSubmitCleanedText(""); } }, error: function (error) { $(fmpSearchBoxSettings.SearchBoxID).val(""); FMPSearchBoxSubmitCleanedText(""); } }); } } function FMPSearchBoxSubmitCleanedText(searchText) { var useProfType = "specialist"; if (typeof findSpecialist_MoeEvent === 'function') { let data = { SearchText: searchText }; findSpecialist_MoeEvent(data, useProfType == 'specialist'); } if (fmpSearchBoxSettings.UseCaseMode == "FindADoctorMode") { SearchRecallSameURL_DeleteProperty("specialist_search"); SearchRecallSameURL_DeleteProperty("ahp_search"); } var redirectURL = fmpSearchBoxSettings.SearchResultURL.trim(); if (!isEmptyString(searchText)) { if (redirectURL.indexOf("{search_text}") >= 0) { redirectURL = redirectURL.replace("{search_text}", encodeURIComponent(searchText)); } else { redirectURL = FMPSearch_AddEditParameter(redirectURL, "search", searchText); } } else { redirectURL = FMPSearch_RemoveParameter(redirectURL, "search"); } DataLayer_SearchBoxFilter(searchText, redirectURL); // redirection window.location.href = redirectURL; } // MANDATORY FUNCTION - REQUIRED BY RESULTS function FMPSearchBoxLoadText(sessionText) { $(fmpSearchBoxSettings.SearchBoxID).val(sessionText); } function DataLayer_SearchBoxFilter(searchTerm, destinationUrl) { try { var item = {}; var domainUrl = window.location.origin; item = { 'event': 'filter', 'buttonTitle': 'find_a_doctor', 'description': 'Find a Doctor - filter', 'search_term': searchTerm, 'specialty': '', 'destinationUrl': destinationUrl.includes(domainUrl) ? destinationUrl : domainUrl + destinationUrl, } window.dataLayer = window.dataLayer || []; dataLayer.push(item); //console.log(item.destinationUrl); } catch (err) { console.log(err.message); } }
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Clear filters
Yes
Male
Female
Clear filters
Yes
Male
Female
"; tableContent += "
" + fmpld_textItems.VideoURL + "
"; } tableContent += "
"; var designationText = result.getRaw("designation").trim(); var profileImageURL = result.getRaw("profile_image_url"); if (profileImageURL == "") { profileImageURL = fmpld_textItems.DefaultDoctorPhoto; } var nameSalutation = result.getRaw("salutation"); var nameText = result.getRaw("display_name"); if (medProfType == fmpld_Default.elasticValue_Specialist) { if (nameSalutation != "") { nameText = fmpld_textItems.FormatSalutation.replace("[Salutation]", nameSalutation).replace("[Name]", result.getRaw("display_name")).trim(); } else { nameText = fmpld_textItems.FormatSalutationDefault.replace("[Name]", result.getRaw("display_name")).trim(); } } else if (medProfType == fmpld_Default.elasticValue_AHP) { if (nameSalutation != "") { nameText = fmpld_textItems.FormatSalutation.replace("[Salutation]", nameSalutation).replace("[Name]", result.getRaw("display_name")).trim(); } } var specialties = result.getRaw("specialties"); var serviceProviderType = result.getRaw("service_provider_type"); var profileImageAltText = nameText; if (medProfType == fmpld_Default.elasticValue_Specialist && specialties.length > 0) { profileImageAltText += " - " + specialties[0]; } else if (medProfType == fmpld_Default.elasticValue_AHP && serviceProviderType != "") { profileImageAltText += " - " + serviceProviderType; } // image tableContent += "
"; tableContent += "
"; tableContent += "
"; var dtImage = getImageUrlWithWithHeight(profileImageURL, "70", "88", true, true); //var mbImage = getImageUrlWithWithHeight(profileImageURL, "70", "", true, false); var mbImage = dtImage; tableContent += ""; tableContent += ""; tableContent += "
"; tableContent += "
"; // close image-content // detail tableContent += "
"; tableContent += "
" + nameText + "
"; if (designationText != "") { tableContent += "
" + designationText + "
"; } if (medProfType == fmpld_Default.elasticValue_AHP) { var spokenLanguageItems = result.getRaw("spoken_languages"); if (spokenLanguageItems.length) { spokenLanguageItems.sort(function (a, b) { return a.toLowerCase().localeCompare(b.toLowerCase()); }); tableContent += "
" + fmpld_textItems.SpokenLanguages + "
" + spokenLanguageItems.join(", ") + "
"; } } else if (medProfType == fmpld_Default.elasticValue_Specialist) { var insuranceItems = []; var insuranceItemsRaw = result.getRaw("insurance_panel"); if (insuranceItemsRaw.length) { // remove blank spaces insuranceItems = insuranceItemsRaw.filter(item => item); } if (insuranceItems != null && insuranceItems.length) { tableContent += "
" + fmpld_textItems.InsurancePanel + "
" + insuranceItems.sort().join(", ") + "
"; } } tableContent += "
"; // close detail-content tableContent += "
"; // close main-content // action tableContent += "
"; tableContent += "" + fmpld_textItems.ViewProfile + ""; if (medProfType == fmpld_Default.elasticValue_Specialist) { var spcURLApptFormURL = fmpld_textItems.SPCAppointmentURL; if (spcURLApptFormURL != "" && spcURLApptFormURL != "#") { if (spcURLApptFormURL.indexOf("{item_url}") >= 0) { spcURLApptFormURL = spcURLApptFormURL.replace("{item_url}", itemURL); } else { spcURLApptFormURL += (spcURLApptFormURL.indexOf("?") >= 0 ? "&" : "?") + "itemUrl=" + modelData.ItemURL; } } var appendURL_Appt = "sourceType=browse-doctor&sourceDetail=az-listing"; spcURLApptFormURL += (spcURLApptFormURL.indexOf("?") >= 0 ? "&" : "?") + appendURL_Appt; if (fmpld_Default.isAZMode && fmpld_useStartsWith != "") { spcURLApptFormURL += "&alphabetF=" + fmpld_useStartsWith.toUpperCase(); } tableContent += "" + fmpld_textItems.MakeAppointment + ""; } tableContent += "
"; // close action-content tableContent += "