Sitewide Contexts

Sitewide Contexts can be used to make rendering decisions in templates.

Be mindful that detail and other pages are cached by default on the CDN. If you make a Server-Side-Rendering decision based on a context, then it could be cached for all users. In order to render bot or personalized content, either Cache Bypass rules must be set up in the CDN or the context must only be used in Client-Side-Rendering code.

useDev

{
  "isDev": false,
  "performance": {},
  "timeStamp": 1726776946197
}

useRender

{
  "isBrandOrigin": true,
  "isCsr": false,
  "isDev": false,
  "isFragment": false,
  "isLib": true,
  "isMinWidth0Rem": false,
  "isMinWidth48Rem": false,
  "isMinWidth64Rem": true,
  "isProd": true,
  "isSsr": false,
  "isMobileUa": false,
  "isTabletUa": false,
  "isBotUa": true
}

useReq

{
  "headers": {
    "accept": "*/*",
    "accept-encoding": "gzip, br",
    "cf-connecting-ip": "3.147.81.34",
    "cf-connecting-o2o": "1",
    "cf-ipcountry": "US",
    "cf-ray": "8c5c3fe84ae461d9",
    "cf-visitor": "{\"scheme\":\"https\"}",
    "connection": "Keep-Alive",
    "host": "preprod.getcare.muschealth.org",
    "user-agent": "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])",
    "x-forwarded-for": "3.147.81.34",
    "x-forwarded-proto": "https",
    "x-real-ip": "3.147.81.34"
  },
  "url": "https://preprod.getcare.muschealth.org/docs/contexts",
  "cf": {
    "longitude": "-83.00610",
    "httpProtocol": "HTTP/2",
    "tlsCipher": "AEAD-AES256-GCM-SHA384",
    "continent": "NA",
    "asn": 16509,
    "clientAcceptEncoding": "gzip",
    "country": "US",
    "verifiedBotCategory": "",
    "tlsClientAuth": {
      "certIssuerDNLegacy": "",
      "certIssuerSKI": "",
      "certSubjectDNRFC2253": "",
      "certSubjectDNLegacy": "",
      "certFingerprintSHA256": "",
      "certNotBefore": "",
      "certSKI": "",
      "certSerial": "",
      "certIssuerDN": "",
      "certVerified": "NONE",
      "certNotAfter": "",
      "certSubjectDN": "",
      "certPresented": "0",
      "certRevoked": "0",
      "certIssuerSerial": "",
      "certIssuerDNRFC2253": "",
      "certFingerprintSHA1": ""
    },
    "tlsClientHelloLength": "",
    "tlsVersion": "TLSv1.3",
    "city": "Columbus",
    "timezone": "America/New_York",
    "tlsClientExtensionsSha1": "",
    "region": "Ohio",
    "edgeRequestKeepAliveStatus": 1,
    "requestPriority": "weight=16;exclusive=0;group=0;group-weight=0",
    "latitude": "39.96250",
    "postalCode": "43215",
    "tlsClientRandom": "",
    "regionCode": "OH",
    "asOrganization": "Amazon.com",
    "metroCode": "535",
    "colo": "ORD",
    "pagesHostName": "preprod.musc-site.pages.dev",
    "botManagement": {
      "corporateProxy": false,
      "verifiedBot": false,
      "jsDetection": {
        "passed": false
      },
      "staticResource": false,
      "detectionIds": {},
      "score": 99
    }
  }
}

useConfig

{
  "api": {
    "careNavPromoCategories": true,
    "careSaytApi": "https://carenav-sayt.azurewebsites.net/CareSAYT",
    "careSenseFacetsEnabled": false,
    "fastPagesProdOrigin": "https://care.womp.it",
    "omniCareNavSearchPath": "/api/carenav/category-results",
    "omniCategoryPath": "/api/carenav/care-category-listing",
    "omni500timeout": 10000,
    "omniLocationCategoryPath": "/api/carenav/locations-categories",
    "omniDataPath": "/api/OmniData",
    "omniOrigin": "https://uhomni.azurewebsites.net",
    "omniSearchFacetPath": "/api/WompHealthSearchFacets",
    "omniSearchPath": "/api/WompHealthSearch",
    "omniVersion": "1"
  },
  "brand": "uh",
  "booking": {
    "locationVersion": "v2",
    "clinicianVersion": "v3",
    "proxyV3origin": "https://api.demo-uat.dex.care",
    "clinicianApiV3": "/api",
    "clinicianApi": "https://api.demo-uat.dex.care/v1/providers/",
    "clinicianApiV5": "/api/provider/timeslot/",
    "clinicianScheduling": "https://scheduling.demo-uat.dex.care/provider/select-demographics",
    "proxyV5origin": "https://api.demo-uat.dex.care",
    "slotSearchApiKey": "5862f5b0-ec92-4c64-86d2-4da80b3f4731",
    "slotSearchV5": "/v5/slots/search",
    "careOptionApiKey": "032421ef-9851-4806-bcdc-c45d920174ae",
    "careOptionOrigin": "https://api.demo-uat.dex.care/v1/availability/slots",
    "departmentOrigin": "https://api.demo-uat.dex.care/v1/departments/",
    "locationTimeslotOrigin": "/api/location/timeslot/"
  },
  "configOverrideParam": true,
  "cssTheme": {
    "--brand-color-primary-light": "89, 95, 226",
    "--brand-color-primary": "0, 68, 124",
    "--brand-color-primary-dark": "29, 78, 216",
    "--brand-color-secondary-light": "89, 95, 226",
    "--brand-color-secondary": "225, 225, 225",
    "--brand-color-secondary-dark": "89, 95, 226",
    "--brand-color-tertiary-light": "228, 237, 244",
    "--brand-color-tertiary": "228, 237, 244",
    "--brand-color-tertiary-dark": "228, 237, 244",
    "--brand-color-quaternary-light": "100, 170, 250",
    "--brand-color-quaternary": "100, 170, 250",
    "--brand-color-quaternary-dark": "100, 170, 250",
    "--brand-color-neutral-0": "0, 0, 0",
    "--brand-color-neutral-10": "54, 54, 54",
    "--brand-color-neutral-20": "72, 70, 76",
    "--brand-color-neutral-30": "83, 83, 83",
    "--brand-color-neutral-40": "178, 178, 178",
    "--brand-color-neutral-50": "201, 201, 201",
    "--brand-color-neutral-60": "203, 203, 203",
    "--brand-color-neutral-70": "229, 231, 235",
    "--brand-color-neutral-80": "236, 236, 236",
    "--brand-color-neutral-90": "243, 243, 243",
    "--brand-color-neutral-95": "252, 252, 252",
    "--brand-color-neutral-99": "255, 251, 254",
    "--brand-color-neutral-100": "255, 255, 255",
    "--brand-color-link": "54, 54, 54",
    "--brand-color-success": "65, 146, 72",
    "--brand-color-warning": "255, 127, 127",
    "--brand-color-rating-stars": "89, 95, 226",
    "--brand-color-header": "54, 54, 54",
    "--brand-button-border-radius": "999px",
    "--brand-button-border-width": "1px",
    "--brand-input-border-radius": "999px",
    "--brand-input-border-width": "1px",
    "--brand-select-border-radius": "20px",
    "--brand-select-border-width": "1px",
    "--brand-checkbox-border-radius": "4px",
    "--brand-checkbox-border-width": "1px",
    "--brand-font-family-body": "Arial,sans-serif",
    "--brand-font-family-body2": "Arial,sans-serif",
    "--brand-font-family-display": "Arial,sans-serif"
  },
  "displayDistance": false,
  "env": "prod",
  "head": {
    "links": [
      {
        "rel": "shortcut icon",
        "href": "/musc/favicon.ico"
      },
      {
        "rel": "apple-touch-icon",
        "href": "/musc/favicon.ico"
      },
      {
        "rel": "preload",
        "href": "/musc/fonts/nunito-sans.woff2",
        "as": "font",
        "type": "font/woff2",
        "crossorigin": ""
      }
    ],
    "meta": [
      {
        "name": "robots",
        "content": "noindex, nofollow"
      }
    ],
    "styles": [
      {
        "style": "
            @font-face {
              font-family: \"Nunito Sans\";
              src: url('/musc/fonts/nunito-sans.woff2');
              font-display: block;
            }
          "
      }
    ]
  },
  "images": {
    "department": {
      "transformations": "width=480,fit=cover",
      "height": "160",
      "sources": [
        {
          "media": "(min-width: 1024px)",
          "transformations": "width=1024,fit=cover"
        },
        {
          "media": "(min-width: 768px)",
          "transformations": "width=768,fit=cover"
        }
      ],
      "styles": "departmentHeroImg aspect-video block h-36 w-full object-cover rounded-md min-[400px]:h-60 lg:w-[828px]",
      "width": "auto"
    },
    "clinician": {
      "transformations": "width=300,fit=cover",
      "height": "200",
      "placeholder": "https://womphealthwp.azureedge.net/7910/Placeholder.png",
      "styles": "clinicianHeroImg aspect-square w-[200px] max-w-none rounded-xl border border-solid",
      "width": "200"
    },
    "useImageOptimizer": true
  },
  "map": {
    "defaultLatLng": {
      "lat": 47.5741,
      "lng": -122.3975
    },
    "defaultLocation": "Portland, OR",
    "defaultMarker": {
      "markerType": "svg",
      "elementString": "
      <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"52\" viewBox=\"0 0 50 70\" fill=\"#c84b26\">
        <path d='M23.0164 65.9543L23.1657 66.1684H23.1916C24.6865 68.0042 27.5944 67.9503 28.9836 65.9543C32.3385 61.1395 35.2121 57.0864 37.6687 53.6214C42.127 47.3332 45.2122 42.9818 47.309 39.5289C48.9416 36.8407 49.9943 34.6678 50.6355 32.5227C51.2779 30.3736 51.5 28.277 51.5 25.7506C51.5 11.7942 40.0847 0.5 26 0.5C11.9153 0.5 0.5 11.7942 0.5 25.7506C0.5 28.277 0.72208 30.3736 1.36449 32.5227C2.00572 34.6678 3.05844 36.8407 4.69097 39.5289C6.78784 42.9817 9.87301 47.3332 14.3312 53.6213C16.7879 57.0864 19.6615 61.1395 23.0164 65.9543ZM35.9133 25.7506C35.9133 31.1591 31.4753 35.5601 26 35.5601C20.5247 35.5601 16.0867 31.1591 16.0867 25.7506C16.0867 20.3421 20.5247 15.9412 26 15.9412C31.4753 15.9412 35.9133 20.3421 35.9133 25.7506Z' /> 
      </svg>",
      "fillColor": "#1d4ed8",
      "strokeColor": "#ffffff"
    },
    "geoStorageName": "location"
  },
  "reviews": {
    "useAlternateReviewsApi": false
  },
  "routes": {
    "all": {
      "scripts": [
        {
          "element": {
            "cmp": "script",
            "attr": {
              "defer": true,
              "src": "https://static.cloudflareinsights.com/beacon.min.js",
              "data-cf-beacon": "{\"token\":\"922af61282d747d8b26c7f71fc0c4675\"}"
            }
          },
          "insertTiming": "bodyEnd",
          "key": "cloudflareCWVScript"
        },
        {
          "element": {
            "cmp": "script",
            "attr": {
              "type": "text/partytown"
            },
            "children": [
              "(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
            new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
            j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
            'https://phi-protect-demo.azurewebsites.net/demo/(d3d3Lmdvb2dsZXRhZ21hbmFnZXIuY29t)/(Z3RtLmpz)?id='+i+dl;f.parentNode.insertBefore(j,f);
            })(window,document,'script','dataLayer','GTM-5JDBLMZ8');"
            ]
          },
          "insertTiming": "endHead",
          "key": "GTMScript"
        },
        {
          "element": {
            "cmp": "script",
            "attr": {
              "type": "application/json",
              "id": "dcAnalyticsConfig"
            },
            "children": [
              "{
                \"adobe\": {
                  \"organizationId\": \"82961DB664F112A10A495E58@AdobeOrg\",
                  \"datastreamId\": \"aeabc636-4562-4c75-8fc0-78ed65038907\"
                },
                \"google\": {
                  \"dataLayerName\": \"dataLayer\"
                },
                \"isDebugEnabled\": false,
                \"appType\": \"bfcache\"
              }"
            ]
          },
          "insertTiming": "endHead",
          "key": "dcAnalyticsConfig"
        },
        {
          "element": {
            "cmp": "script",
            "attr": {
              "async": true,
              "src": "/api/proxy/https://dex-analytics.pages.dev/analytics.js"
            }
          },
          "insertTiming": "endHead",
          "key": "dexcareAnalyticsScript"
        }
      ]
    },
    "docs": {
      "headers": {
        "Cache-Control": null
      },
      "urlMatch": {
        "include": "^/(docs)?/?$"
      },
      "redirectAction": {
        "action": "redirect",
        "path": "/docs"
      }
    },
    "docsNoStore": {
      "headers": {
        "Cache-Control": null
      }
    },
    "fragmentSAYT": {
      "headers": {
        "Cache-Control": null,
        "Cdn-Cache-Control": "max-age=604800, stale-if-error=86400"
      }
    },
    "home": {
      "headers": {
        "Cache-Control": null,
        "Cdn-Cache-Control": "max-age=43200, stale-if-error=86400"
      },
      "urlMatch": {
        "include": "^(/docs/theme-\\d/)?/care-nav/?$"
      },
      "redirectAction": {
        "action": "redirect",
        "path": "/care-nav"
      }
    },
    "location": {
      "headers": {
        "Cache-Control": null,
        "Cdn-Cache-Control": "max-age=604800, stale-if-error=86400"
      },
      "urlMatch": {
        "include": "^/(docs/theme-\\d/)?locations/[^/]+/[^/]+/[0-9]+/?$|^/(docs/theme-\\d/)?locations/[0-9]+/?$"
      },
      "redirectAction": {
        "action": "omniSearch",
        "searchKey": "url",
        "params": {
          "locations": "true",
          "providers": "false"
        }
      }
    },
    "clinician": {
      "headers": {
        "Cache-Control": null,
        "Cdn-Cache-Control": "max-age=604800, stale-if-error=86400"
      },
      "urlMatch": {
        "include": "^/(docs/theme-\\d/)?provider/[^/]+/[0-9]+/?$"
      },
      "search404Reg": "/provider/([^/]+)/[0-9]+/?$",
      "redirectAction": {
        "action": "omniSearch",
        "searchKey": "profileUrls",
        "params": {
          "locations": "false",
          "providers": "true"
        }
      },
      "useSimilarClinicians": true
    },
    "searchCareCategory": {
      "headers": {
        "Cache-Control": null
      }
    },
    "searchLocation": {
      "headers": {
        "Cache-Control": null
      },
      "urlMatch": {
        "include": "^/(docs/theme-\\d/)?locations/?$"
      },
      "redirectAction": {
        "action": "redirect",
        "path": "/locations"
      }
    },
    "searchClinician": {
      "headers": {
        "Cache-Control": null
      },
      "urlMatch": {
        "include": "^/(docs/theme-\\d/)?providers/?$"
      },
      "redirectAction": {
        "action": "redirect",
        "path": "/providers"
      }
    },
    "virtual": {
      "headers": {
        "Cache-Control": null,
        "Cdn-Cache-Control": "max-age=604800, stale-if-error=86400"
      }
    },
    "notFound": {
      "urlMatch": {
        "include": ".+",
        "exclude": "/docs"
      },
      "error": {
        "type": 404,
        "errorPageUrl": "/errors/404"
      }
    },
    "notFoundSearch": {
      "urlMatch": {
        "include": "/docs/.+"
      },
      "error": {
        "type": 404,
        "errorPageUrl": "/docs/errors/search/404"
      }
    }
  },
  "searchFacets": {
    "acceptingNewPatientDisplay": true,
    "videoVisit": true
  },
  "usePartyTown": true
}