Get Facilities
GET/api/v2/public/facilities
Returns an array of facilities which the user has connection to.
Request
Query Parameters
Possible values: <= 100
Default value: 10
Pagination parameter, use to specify the quantity of records returned
Default value: 0
Pagination parameter, use to specify the number of records to skip before starting to return results
Possible values: [ASC
, DESC
]
Default value: DESC
Pagination parameter, use to specify the order of records by creation date, either 'asc' for ascending or 'desc' for descending
Responses
- 201
- 400
- 401
- 403
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- ]
- ]
data object[]
Nursa id of the facility
Name of the facility
Type of the facility
Category of the facility
Possible values: <= 999
Number of beds in the facility
Street address of the facility
Name of the city where the facility is located
Zip code of the facility
State Abbreviation of the facility in ANSI standard
Name of the county where the facility is located
Telephone number of the facility
billingInformation objectrequired
Name of the contact
Email of the contact
Telephone number of the contact
specialty object[]required
Data related to the facility specialty
Title of the specialty
Description of the Specialty
Website URL of the facility
Healthcare System of the facility
meta object
Number of items returned
Starting position
Sorting direction
Total records found
{
"data": [
{
"facilityId": "124345",
"name": "Facility name",
"type": "Freestanding Hospice",
"category": "Hospice",
"numberOfBeds": 10,
"streetAddress": "Idaho address",
"cityName": "Hayden",
"zipCode": "83835",
"stateCode": "ID",
"county": "Idaho County",
"contactPhone": "+12345678910",
"billingInformation": {
"contactName": "John Doe",
"contactEmail": "john.doe@email.com",
"contactPhone": "+11234567890"
},
"specialty": [
{
"title": "Intensive Care Unit",
"description": "Intensive Care Unit"
}
],
"websiteUrl": "https://example.com",
"healthCareSystem": "string"
}
],
"meta": {
"limit": 0,
"offset": 0,
"sortDirection": {},
"total": 0
}
}
Bad request
- application/json
- Schema
- Example (from schema)
- Request Validation
Schema
Error description
The type of error
Status code of the error
{
"message": [
"Property must be a string"
],
"error": "Bad Request",
"statusCode": 400
}
Request Validation Error
{
"message": [
"limit must be a number conforming to the specified constraints",
"limit must not be less than 0",
"limit must not be greater than 50",
"offset must be a number conforming to the specified constraints",
"offset must not be less than 0",
"sortDirection must be one of the following values: ASC, DESC"
],
"error": "Bad Request",
"statusCode": 400
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
Error description
Status code of the error
{
"message": "Unauthorized",
"statusCode": 401
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
Error description
The type of error
Status code of the error
{
"message": "Forbidden Resource",
"error": "Forbidden",
"statusCode": 403
}