A LENS Board is called an entity and typically represents a single unit within your organization. Entities are organized in a hierarchal structure that is most easily visualized on the Reports page within LENS. A hospital system is divided into regions and a region entity can be divided into facilities. Each facility entity can contain a number of unit, leadership, template, or virtual* entities.
*A virtual entity exists only in the context of the Leader Rounds feature. Read more about virtual units here.
Request
GET {LENS_URL}/api/v2/entities
Headers
Include your PAT in the Authorization header of your request.
Header | Description |
| Your Personal Access Token |
Query Parameters
Parameter | Description | Required |
| Comma-separated list of entity group names. | No |
Response
Field | Description | Required |
| The entity's unique ID. | Yes |
| The entity's name. | Yes |
| The entity's unique group name. An abbreviated version of the entity's name that can be used as a filter in many of the other endpoints. | Yes |
| The entity type, options include | Yes |
| The corresponding facility | No |
| Whether the entity is a Training board, | No |
| Whether the entity's data is included in LENS reporting, | No |
| The | No |
| Whether the entity displays the Daily Management tab on the Improvement page, | No |
| Whether the entity displays the Leader Rounds page, | No |
| The entity's timezone. | No |
Example Request
https://example.safeandreliable.care/api/v2/entities?groupNames=west-er
Example Response
{
"data": [
{
"_id": "65f1a2b3c4d5e6f789012345",
"name": "West Emergency Department",
"groupName": "west-er",
"type": "work-setting",
"facilityName": "west",
"training": false,
"activeInReports": true,
"boardId": "abc5AXYb23tQbEp2J",
"SHOW_DAILY_MANAGEMENT": true,
"SHOW_LEADER_ROUNDS": false,
"timezone": "America/Chicago"
}
],
"metadata": {
"endpoint": "entities",
"count": 1,
"filters": {
"groupNames": [
"west-er"
],
"includeArchived": false
}
}
}
Looking for more support?
We’re here to help — email us at LENSsupport@safeandreliablecare.com or click the Help button on your LENS board.
