edwaittimes/location

Returns information regarding a location or locations.  Can be specified by location or display all locations.

 

API Version:

            1.2

 

URL:

            http://api.midhosp.org/edwaittimes/v1-2/location.format

 

Format(s):

            XML, JSON

 

HTTP Method(s):

            GET

 

Authentication:

            None

 

Parameters:

            None

 

Example Call:

            http://api.midhosp.org/edwaittimes/v1-2/all.xml

 

Valid uses:

all.xml

all.json

middlesex.xml

middlesex.json

marlborough.xml

marlborough.json

shoreline.xml           

shoreline.json


Example Response (middlesex.xml):

<?xml version="1.0" encoding="UTF-8"?>

<result>

  <status>200</status>

  <statusMessage>OK</statusMessage>

  <errorResponse/>

  <dateTimeLastUpdated format="ISO 8601">2009-09-03T14:27:54-05:00</dateTimeLastUpdated>

  <medicalBoarders>5</medicalBoarders>

  <ecaBoarders>0</ecaBoarders>

  <response>

    <location id="A129AA52-AC4E-37A0-4DF2EDADBF7E6E31">      

      <title>Middlesex ED</title>

      <waitTime format="hh:mm">01:37</waitTime>

      <patientsNotSeen>0</patientsNotSeen>

      <patientsTotal>8</patientsTotal>

    </location>

  </response>

</result>

 

Error Codes:

 

Error Code

Issue

Possible Cause

999

No Records Returned

No records were returned from the database