About/Usage

The Provider Listing widget displays dotCMS or CRM providers in different layouts on regular HUT or service pages. The widget is checking the $uses_crm_pd HUT velocity variable and automatically selects the dotCMS physician directory or the CRM provider directory for the data source. Also the $host_code HUT variable is used to detect market queries. The widget could use a new physician query or the pre-populated related physicians data on the service pages.

Setup

Select a web page using a HUT template, and add the widget's velocity code to an existing or new web page contnet on the page. You can use the Snippet Generator to generate the code, or follow the steps listed bellow.

  1. Populate parameters

    For this widget to function properly, the following parameters are required:

    • $webqProviderListingNewQuery - true|false - required

      If the new query option selected at least one of the following parameters required

      • webqProviderListingNpis - "npi1[;npi2]..."
      • webqProviderListingSpecialties - "specialty1[;specialty2]..."
      • webqProviderListingKeywords - "keyword" (only one keyword supported for CMR queries)
    • $webqProviderListingLayout - grid-3-wide|grid-3-wide-specialty|grid-4-wide|grid-4-wide-specialty|bio|slider|list|list-photo|list-specialty|list-photo-specialty - required

    Optional parameters :

    • webqProviderListingFeaturedNpi - list physician with the NPI number at the first place
    • webqProviderListingShowTitle - if false disable tile - default true
    • $webqProviderListingTitle="Our Physicians - Grid 3 Wide")
    • $webqProviderListingPaginated - true| false - default: false )
    • $webqProviderListingItemsPerPage - default: 5)
    #set($webqProviderListingNewQuery= true)
    #set($webqProviderListingNpis="1,2,3")
    #set($webqProviderListingSpecialties="a,b")
    #set($webqProviderListingKeywords="x1")
    #set($webqProviderListingFeaturedNpi="2")
    #set($webqProviderListingTitle="test title")
    #set($webqProviderListingLayout="grid-4-wide-specialty")
    #set($webqProviderListingPaginated = true)
    #set($webqProviderListingItemsPerPage="3")
  2. dotParse widget's code

    #dotParse("//web-q-hospital.prod.ehc.com/global/hut/widgets/provider-listing/v1/provider-listing.vtl")

Example:

#set($webqProviderListingNewQuery= true)
#set($webqProviderListingNpis="1,2,3")
#set($webqProviderListingSpecialties="a,b")
#set($webqProviderListingKeywords="x1")
#set($webqProviderListingFeaturedNpi="2")
#set($webqProviderListingTitle="test title")
#set($webqProviderListingLayout="grid-4-wide-specialty")
#set($webqProviderListingPaginated = true)
#set($webqProviderListingItemsPerPage="3")
#dotParse("//web-q-hospital.prod.ehc.com/global/hut/widgets/provider-listing/v1/provider-listing.vtl")

Styles - Is this still needed?

The widget styles are in the https://web-q-hospital.secure.ehc.com/global/hut/widgets/css/webq-widgets.css and https://web-q-hospital.secure.ehc.com/global/hut/widgets/css/webq-widgets-eb.css stylesheet. Make sure this is included in /util/custom/start.vtl.