QBOS REST API documentation (workgroup)

(return to Main Document)

Introduction

The workgroup API allows client applications to maintain workgroup data including any part of its demographic record sets.

Audience

This developer's guide is intended for software developers needing a technical reference for using the QBOS REST API. The information you find in this guide is written by software engineering, and is authoritative on how the API behaves.

Additional resources, information about this guide

Occasionally, we make a mistake in this documentation, or unknowingly break a feature that you depend on. If this has happened to you, we apologize! You can help us fix the issue by contacting us. We appreciate your help.

Getting Started

To place any request in QBOS API application from third party application you need to authenticate user account and set/calculate values for the following request headers: x-qbos-id, x-qbos-nonce, x-qbos-date-utc, x-qbos-hash-version, x-qbos-auth

See details in Authentication Documentation.

workgroup properties

Properties prefixed with '_' (underscore) are read-only properties. i.e. POST and PUT processing will ignore these properties.

Name Type Max length Numeric Required
For POST
Filterable Description

id

bigint

 

 

 

Required for GET(by id),PUT,DELETE

parent_id

bigint

 

yes

 

parent_type

nvarchar

50

 

yes

 

type

nvarchar

50

 

 

 

Value is "workgroup"

title

varchar

50

 

 

 

description

varchar

200

 

 

 

_supervisor_id

bigint

 

 

 

Read workgroup by id:

GET https:/.../v1/o/workgroup/{id}

Response codes:

  • 400 - Client error
  • 500 - Server error
  • 404 - Not found or user does not have permission to access resources of this type.
  • 200 - OK

Response data: GET https:/.../v1/o/workgroup/18034
{ "linked" : {"supervisor":[ {"type":"humanresource","id":"507528","sub_type":"","_title":"Buxton, Laura","href":"\/v1\/o\/humanresource\/507528"}],"user":[ {"type":"user","id":"507528","sub_type":"","_title":"Buxton, Laura","href":"\/v1\/o\/user\/507528"}],"privilege":[ {"type":"privilege","ids":"[]"}]}, "parent_type" : "corporate", "type" : "workgroup", "id" : 18034, "sub_type" : "", "parent_id" : 506764, "title" : "Social Worker Float", "description" : "Social Worker Float", "_supervisor_id" : 507528, "href" : "\/v1\/o\/workgroup\/18034" }

Read workgroup from parent:

GET https:/.../v1/o/{parent_type}/{parent_id}/links/workgroup[?{filter}]

Response codes:

  • 400 - Client error
  • 500 - Server error
  • 404 - Not found or user does not have permission to access resources of this type.
  • 200 - OK

GET https:/.../v1/o/corporate/506764/links/workgroup
Response example is shown in XML format here even though REST API returns JSON format:
<workgroup><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="17834" sub_type="" _title="PDC PharmD Email" href="/v1/o/workgroup/17834"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="17854" sub_type="" _title="Import Docs Group" href="/v1/o/workgroup/17854"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="15200" sub_type="" _title="QBOS Administrator" href="/v1/o/workgroup/15200"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="15201" sub_type="" _title="Process Engineers" href="/v1/o/workgroup/15201"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="15202" sub_type="" _title="Applet Designers" href="/v1/o/workgroup/15202"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16100" sub_type="" _title="Registration Reps" href="/v1/o/workgroup/16100"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16101" sub_type="" _title="HR Director" href="/v1/o/workgroup/16101"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16102" sub_type="" _title="C4 HR" href="/v1/o/workgroup/16102"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16103" sub_type="" _title="Executive Director" href="/v1/o/workgroup/16103"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16104" sub_type="" _title="C4 IT" href="/v1/o/workgroup/16104"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16105" sub_type="" _title="Test Department" href="/v1/o/workgroup/16105"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16106" sub_type="" _title="Patient Referrer" href="/v1/o/workgroup/16106"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16107" sub_type="" _title="Referral Coordinator" href="/v1/o/workgroup/16107"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16108" sub_type="" _title="Admit Nurses" href="/v1/o/workgroup/16108"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16109" sub_type="" _title="Direct Care Nurses" href="/v1/o/workgroup/16109"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16110" sub_type="" _title="Hospice Aide" href="/v1/o/workgroup/16110"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16111" sub_type="" _title="Chaplains" href="/v1/o/workgroup/16111"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16112" sub_type="" _title="Social Worker" href="/v1/o/workgroup/16112"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16113" sub_type="" _title="Provider Relations" href="/v1/o/workgroup/16113"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16114" sub_type="" _title="Billing Coordinator" href="/v1/o/workgroup/16114"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16115" sub_type="" _title="Staff Accountant" href="/v1/o/workgroup/16115"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16116" sub_type="" _title="C4 Billing" href="/v1/o/workgroup/16116"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16117" sub_type="" _title="QBOS Support Staff" href="/v1/o/workgroup/16117"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16118" sub_type="" _title="Director of Marketing" href="/v1/o/workgroup/16118"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16119" sub_type="" _title="Volunteer Coordinator" href="/v1/o/workgroup/16119"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16120" sub_type="" _title="Bereavement Coordinator" href="/v1/o/workgroup/16120"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16121" sub_type="" _title="Medical Records Clerk" href="/v1/o/workgroup/16121"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16122" sub_type="" _title="Receptionist" href="/v1/o/workgroup/16122"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16231" sub_type="" _title="Nurse Practitioner" href="/v1/o/workgroup/16231"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16232" sub_type="" _title="Assistant Executive Director" href="/v1/o/workgroup/16232"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16233" sub_type="" _title="RN Oncall" href="/v1/o/workgroup/16233"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16234" sub_type="" _title="LPN Oncall" href="/v1/o/workgroup/16234"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16235" sub_type="" _title="Hospice Aide Oncall" href="/v1/o/workgroup/16235"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16236" sub_type="" _title="Nurse Liaison" href="/v1/o/workgroup/16236"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16237" sub_type="" _title="Hospital Hospice Aide" href="/v1/o/workgroup/16237"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16238" sub_type="" _title="Volunteers" href="/v1/o/workgroup/16238"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16239" sub_type="" _title="Clinical Director" href="/v1/o/workgroup/16239"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16240" sub_type="" _title="C4 Accounting" href="/v1/o/workgroup/16240"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16241" sub_type="" _title="Admissions Coordinator" href="/v1/o/workgroup/16241"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16242" sub_type="" _title="Hospital RN Oncall" href="/v1/o/workgroup/16242"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16289" sub_type="" _title="OKC Employees" href="/v1/o/workgroup/16289"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16414" sub_type="" _title="Medical Director" href="/v1/o/workgroup/16414"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16415" sub_type="" _title="RN Supervisor" href="/v1/o/workgroup/16415"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16468" sub_type="" _title="PDC Medsheet entry" href="/v1/o/workgroup/16468"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16469" sub_type="" _title="PDC ACD" href="/v1/o/workgroup/16469"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16569" sub_type="" _title="Hospital Liasion" href="/v1/o/workgroup/16569"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16570" sub_type="" _title="C2 Call Center" href="/v1/o/workgroup/16570"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16631" sub_type="" _title="Referral Email" href="/v1/o/workgroup/16631"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="16728" sub_type="" _title="Admit & Direct Care Nurses" href="/v1/o/workgroup/16728"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="17250" sub_type="" _title="PRN Admin" href="/v1/o/workgroup/17250"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="17251" sub_type="" _title="Hospital Admin" href="/v1/o/workgroup/17251"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="17252" sub_type="" _title="Psyco-Social Supervisor" href="/v1/o/workgroup/17252"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="17253" sub_type="" _title="Team RN Float" href="/v1/o/workgroup/17253"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="17254" sub_type="" _title="Team HA Float" href="/v1/o/workgroup/17254"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="17255" sub_type="" _title="PRN Oncall" href="/v1/o/workgroup/17255"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="17256" sub_type="" _title="Team Leader" href="/v1/o/workgroup/17256"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="17257" sub_type="" _title="Outbound Calls" href="/v1/o/workgroup/17257"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="17258" sub_type="" _title="Call Supervisor" href="/v1/o/workgroup/17258"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="17259" sub_type="" _title="Physician Marketer" href="/v1/o/workgroup/17259"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="17261" sub_type="" _title="Asst Clinical Director" href="/v1/o/workgroup/17261"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="17263" sub_type="" _title="C4 Consultants" href="/v1/o/workgroup/17263"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="17264" sub_type="" _title="C4 Members" href="/v1/o/workgroup/17264"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="17265" sub_type="" _title="C4 Billing Administrator" href="/v1/o/workgroup/17265"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="17267" sub_type="" _title="IT Manager" href="/v1/o/workgroup/17267"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="17269" sub_type="" _title="Asst Medical Director" href="/v1/o/workgroup/17269"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="17302" sub_type="" _title="Pharmacy Assistant" href="/v1/o/workgroup/17302"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="17350" sub_type="" _title="PDC Manager" href="/v1/o/workgroup/17350"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="18020" sub_type="" _title="Bereavement Asst" href="/v1/o/workgroup/18020"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="18022" sub_type="" _title="Chaplain Float" href="/v1/o/workgroup/18022"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="18023" sub_type="" _title="FT Medical Director" href="/v1/o/workgroup/18023"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="18025" sub_type="" _title="PC Coordinator" href="/v1/o/workgroup/18025"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="18026" sub_type="" _title="PC Nurse" href="/v1/o/workgroup/18026"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="18027" sub_type="" _title="PC Nurse Pratitioner" href="/v1/o/workgroup/18027"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="18029" sub_type="" _title="PC Social Services" href="/v1/o/workgroup/18029"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="18031" sub_type="" _title="PT Medical Director" href="/v1/o/workgroup/18031"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="18032" sub_type="" _title="Support Services Director" href="/v1/o/workgroup/18032"/><workgroup parent_type="corporate" parent_id="506764" type="workgroup" id="18034" sub_type="" _title="Social Worker Float" href="/v1/o/workgroup/18034"/></workgroup>

Create workgroup:

POST https:/.../v1/o/corporate/506764/workgroup

Request data [See properties]:

{"workgroup": [ { "parent_type" : "corporate", "parent_id" : 506764, "property_a" : "value-a", "property" : "See workgroup properties", "property_z" : "value-z" } ] }

Response codes:

Update workgroup:

PUT https:/.../v1/o/workgroup/{id}

Request data [See properties]:

{"workgroup": [ { "id" : 18034, "property_a" : "value-a", "property" : "See workgroup properties", "property_z" : "value-z" } ] }

Response codes:

  • 400 - Client error
  • 500 - Server error
  • 200 - OK Content returned [See response data]
  • 204 - OK No content
  • 404 - Not found

Delete workgroup:

DELETE https:/.../v1/o/workgroup/{id}

The "id" in JSON payload is required to match the {id} in the URI to ensure that deletion requests are intended and safe

{"workgroup": [{"id":18034}]}

Response codes:

  • 400 - Client error
  • 500 - Server error
  • 204 - OK
  • 404 - Not found

Response data:
{}