ER Express logo
  • WHY ER Express
  • Solutions  
    • Virtual Waiting
    • Digital Intake
    • Online Check-in
    • DIGITAL QUEUING
    • Online Referrals
  • BY Facility  
    • Urgent Cares
    • Emergency Departments
    • Animal Health
  • About Us  
    • About Us
    • Customer Stories
    • Resources
Menu
  • WHY ER Express
  • Solutions  
    • Virtual Waiting
    • Digital Intake
    • Online Check-in
    • DIGITAL QUEUING
    • Online Referrals
  • BY Facility  
    • Urgent Cares
    • Emergency Departments
    • Animal Health
  • About Us  
    • About Us
    • Customer Stories
    • Resources
Contact Us
Menu
  • WHY ER Express
  • Solutions  
    • Virtual Waiting
    • Digital Intake
    • Online Check-in
    • DIGITAL QUEUING
    • Online Referrals
  • BY Facility  
    • Urgent Cares
    • Emergency Departments
    • Animal Health
  • About Us  
    • About Us
    • Customer Stories
    • Resources
First Available Time JSONP Code
Reservation Form IFRAME Code
First Available Time JSONP Code

What is it?

The customized book-now button shows patients the first available check-in time slot.

How does it work?

The book-now button consists of JSONP code that enables the website developer to embed the first available time in a button that s/he has designed. This approach allows the developer to customize that button to match the health system’s brand and to be fully mobile-responsive.

See an example

Milford Urgent Care

First available time:

See more times

Save My Spot

134 Harvey Ave.

Cincinnati, OH 45229

513-555-5557

Open daily 8:00 AM - 9:00 PM

Set it up

Load the jQuery library.

Mandatory: load the jQuery script BEFORE the ER Express script.

Best practice: Load jQuery from a CDN: https://code.jquery.com/

FacilityID:
We will provide the Facility ID. Please replace once you receive the ID(s).

2ndQueueID We will provide the 2nd Queue ID. Please replace once you receive the ID(s).

VariableName: Customize by facility - please replace with a unique name.

Part 1 - Call first available time

We recommend putting this in the header of the online check-in landing/hub page.

<script type="text/javascript">

$ ( function() {

var FacilityBookNowAPI = "https://lg.erexpress.com/for-patients/first-available-reservation/hospitalID/facilityID/queueID/2ndqueueID/format/true?callback=?"; $.getJSON(FacilityBookNowAPI, function( data )

{
  $('#FacilityBookNowButtonVariableName').html("<p style='margin-bottom: 0; line-height:10px;'> First Available time:" + data.reservationTime + "</p>");

});

});

</script>

Part 2 - Render first available time

Put this code inside each book-now button. It will then render the 1st available time next to the 'Book Online' hypertext.

<a id="FacilityBookNowButtonVariableName" href="https://apps.erexpress.com/erx-reservationform/home/index/facilityID?qid=2ndqueueID"></a>

Optional

Sample script to load jQuery here.

<script
src="https://code.jquery.com/jquery-3.4.1.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
Reservation Form IFRAME Code

What is it?

After selecting the book-now button, patients should be led to a landing page on your website where the reservation form iframe has been placed. This is the actual form patients will fill out in order to check in to specific facilities.

See an example

Set it up

FacilityID:
We will provide the Facility ID(s). Please replace once you receive the ID(s).

2ndQueueID We will provide the 2nd Queue ID. Please replace once you receive the ID(s).

Insert Form on Page

The code below will generate the reservation form. Please place this code on a separate page per facility.

<iframe class="checkin-iframe" src="https://apps.erexpress.com/erx-reservationform/home/index/facilityID?qid=2ndqueueID"></iframe>

Optional - Insert dynamic height adjustment

Insert this listener code to handle the height adjustment. It should go on each reservation page. We recommend placing it on the header of the page or some developers prefer to put this code into a separate js file, and then include the js in the page source code.

function initializeERExpressListeners() {
  var eventMethod = window.addEventListener ? "addEventListener" : "attachEvent";
  var eventer = window[eventMethod];
  var messageEvent = eventMethod == "attachEvent" ? "onmessage" : "message";
	
  eventer(messageEvent, function (e) {
    if (e.origin.indexOf("erexpress.com") > -1) {
      //console.log('received message!:  ', e);
      var messageArray = e.data.split('|');
			
      if (messageArray[0] == 'CheckInSubmitted' && messageArray[1] == 'true') {
        // Triggered by  a check-in event
      }
      else {
    //Call to CSS for height adjustment
        $('#' + messageArray[0]).css({ 'height': messageArray[1] + 'px' });
      }
    }
  }, false);
}​
function postMessageToIframe(iframeId, message) {
	var win = $('#' + iframeId)[0].contentWindow;
	win.postMessage(message, "*");
}​
initializeERExpressListeners();

Now Integrated with ezyVet!

We are excited to announce that ER Express is now fully integrated with ezyVet! This powerful collaboration streamlines your practice management by seamlessly connecting ER Express’s online check-in and digital intake tools with ezyVet’s comprehensive veterinary software. Request a demo today to see how this integration can elevate your clinic’s efficiency and enhance the overall experience for your staff and clients.

see how it works

Tips to Save a Full-Time Employee and Boost Efficiency. Download your guide today!

Enter your name and email below to discover how you can meet a growing demand and improve pet owner satisfaction.

ER Express logo
  • 2429 Military Road, Suite 300,
    Niagara Falls, NY 14304
  • (470) 283-7860
  • info@erexpress.com

WHY ER EXPRESS

SOLUTIONS

  • Virtual Waiting
  • Digital Intake
  • Online Check-in
  • Digital Queuing
  • Online Referrals

by facility

  • Animal Health
  • Emergency Departments
  • Urgent Cares

About Us

  • About Us
  • Customer Stories
  • Resources
REQUEST DEMO
CONTACT US
GET HELP
Facebook-f Twitter Linkedin-in

© ER Express. All rights reserved.

Privacy Policy

Manage Cookie Consent
This site uses cookies and similar technologies as described in our Privacy Policy, including to enhance your experience, to serve relevant advertisements, to provide you with a more personal and interactive experience, and for usage analytics. You can click on “Accept All” and agree to the storing of cookies on your device and to our use of cookies. You can also configure or accept only certain cookies by clicking on “Cookie Settings” or "Accept Only Necessary Cookies". For more information or to change your preferences please visit our Privacy Policy.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
View preferences
{title} {title} {title}