Group
Represents a defined collection of entities that may be discussed or acted upon collectively but which are not expected to act collectively, and are not formally or legally recognized; i.e. a collection of entities that isn’t an Organization.
https://hl7.org/fhir/R4/group.html
In Canvas a Team is mapped to the FHIR Group resource. See our Zendesk article for information about creating teams in Canvas.
Endpoints
Attributes
The identifier of the Group
Identifies the broad classification of the kind of resources the group includes
If true, indicates that the resource refers to a specific group of real individuals. If false, the group defines a set of intended individuals
Label for Group
Number of members
Identifies traits whose presence or absence is shared by members of the group
The text
attribute on the valueCodeableConcept
for each characteristic
represents responsibilities held by the Group. Supported values are:
COLLECT_SPECIMENS_FROM_PATIENT
COMMUNICATE_DIAGNOSTIC_RESULTS_TO_PATIENT
COORDINATE_REFERRALS_FOR_PATIENT
PROCESS_REFILL_REQUESTS
PROCESS_CHANGE_REQUESTS
SCHEDULE_LAB_VISITS_FOR_PATIENT
POPULATION_HEALTH_CAMPAIGN_OUTREACH
COLLECT_PATIENT_PAYMENTS
COMPLETE_OPEN_LAB_ORDERS
REVIEW_ERA_POSTING_EXCEPTIONS
REVIEW_COVERAGES
Who or what is in group
Group create
Create a Group resource.
Note: The Canvas implementation of Group create/update assigns responsibilities to Groups using the characteristic
attribute, rather than using the characteristic
attribute to establish membership.
Attributes
The identifier of the Group
Identifies the broad classification of the kind of resources the group includes
If true, indicates that the resource refers to a specific group of real individuals. If false, the group defines a set of intended individuals
Label for Group
Number of members
Identifies traits whose presence or absence is shared by members of the group
The text
attribute on the valueCodeableConcept
for each characteristic
represents responsibilities held by the Group. Supported values are:
COLLECT_SPECIMENS_FROM_PATIENT
COMMUNICATE_DIAGNOSTIC_RESULTS_TO_PATIENT
COORDINATE_REFERRALS_FOR_PATIENT
PROCESS_REFILL_REQUESTS
PROCESS_CHANGE_REQUESTS
SCHEDULE_LAB_VISITS_FOR_PATIENT
POPULATION_HEALTH_CAMPAIGN_OUTREACH
COLLECT_PATIENT_PAYMENTS
COMPLETE_OPEN_LAB_ORDERS
REVIEW_ERA_POSTING_EXCEPTIONS
REVIEW_COVERAGES
Who or what is in group
Responses
Errors
Group read
Read a Group resource.
Path Parameters
Responses
Errors
Group update
Update a Group resource.
Note: The Canvas implementation of Group create/update assigns responsibilities to Groups using the characteristic
attribute, rather than using the characteristic
attribute to establish membership.
Attributes
The identifier of the Group
Identifies the broad classification of the kind of resources the group includes
If true, indicates that the resource refers to a specific group of real individuals. If false, the group defines a set of intended individuals
Label for Group
Number of members
Identifies traits whose presence or absence is shared by members of the group
The text
attribute on the valueCodeableConcept
for each characteristic
represents responsibilities held by the Group. Supported values are:
COLLECT_SPECIMENS_FROM_PATIENT
COMMUNICATE_DIAGNOSTIC_RESULTS_TO_PATIENT
COORDINATE_REFERRALS_FOR_PATIENT
PROCESS_REFILL_REQUESTS
PROCESS_CHANGE_REQUESTS
SCHEDULE_LAB_VISITS_FOR_PATIENT
POPULATION_HEALTH_CAMPAIGN_OUTREACH
COLLECT_PATIENT_PAYMENTS
COMPLETE_OPEN_LAB_ORDERS
REVIEW_ERA_POSTING_EXCEPTIONS
REVIEW_COVERAGES
Who or what is in group
Responses
Errors
Group search
Search for Group resources.
Query Parameters
The identifier of the Group
The type of resources the group contains
Responses
Errors
curl --request POST \ --url 'https://fumage-example.canvasmedical.com/Group' \ --header 'Authorization: Bearer <token>' \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data ' { "resourceType": "Group", "type": "practitioner", "actual": true, "name": "A Test Team", "characteristic": [ { "code": { "text": "responsibility" }, "valueCodeableConcept": { "text": "COLLECT_SPECIMENS_FROM_PATIENT" }, "exclude": false } ], "member": [ { "entity": { "reference": "Practitioner/76428138e7644ce6b7eb426fdbbf2f39", "type": "Practitioner" } } ] }'
import requests url = "https://fumage-example.canvasmedical.com/Group" headers = { "accept": "application/json", "Authorization": "Bearer <token>", "content-type": "application/json" } payload = { "resourceType": "Group", "type": "practitioner", "actual": True, "name": "A Test Team", "characteristic": [ { "code": { "text": "responsibility" }, "valueCodeableConcept": { "text": "COLLECT_SPECIMENS_FROM_PATIENT" }, "exclude": False } ], "member": [ { "entity": { "reference": "Practitioner/76428138e7644ce6b7eb426fdbbf2f39", "type": "Practitioner" } } ] } response = requests.post(url, json=payload, headers=headers) print(response.text)
null
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "invalid", "details": { "text": "Bad request" } } ] }
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "unknown", "details": { "text": "Authentication failed" } } ] }
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "forbidden", "details": { "text": "Authorization failed" } } ] }
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "not-supported", "details": { "text": "Operation is not supported" } } ] }
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "business-rule", "details": { "text": "Unprocessable entity" } } ] }
curl --request GET \ --url 'https://fumage-example.canvasmedical.com/Group/<id>' \ --header 'Authorization: Bearer <token>' \ --header 'accept: application/json'
import requests url = "https://fumage-example.canvasmedical.com/Group/<id>" headers = { "accept": "application/json", "Authorization": "Bearer <token>" } response = requests.get(url, headers=headers) print(response.text)
{ "resourceType": "Group", "id": "3340c331-d446-4700-9c23-7959bd393f26", "type": "practitioner", "actual": true, "name": "A Test Team", "characteristic": [ { "code": { "text": "responsibility" }, "valueCodeableConcept": { "text": "COLLECT_SPECIMENS_FROM_PATIENT" }, "exclude": false } ], "member": [ { "entity": { "reference": "Practitioner/76428138e7644ce6b7eb426fdbbf2f39", "type": "Practitioner" } } ] }
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "unknown", "details": { "text": "Authentication failed" } } ] }
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "forbidden", "details": { "text": "Authorization failed" } } ] }
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "not-found", "details": { "text": "Unknown Group resource 'a47c7b0e-bbb4-42cd-bc4a-df259d148ea1'" } } ] }
curl --request PUT \ --url 'https://fumage-example.canvasmedical.com/Group/<id>' \ --header 'Authorization: Bearer <token>' \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data ' { "resourceType": "Group", "id": "3340c331-d446-4700-9c23-7959bd393f26", "type": "practitioner", "actual": true, "name": "A Test Team", "characteristic": [ { "code": { "text": "responsibility" }, "valueCodeableConcept": { "text": "COLLECT_SPECIMENS_FROM_PATIENT" }, "exclude": false } ], "member": [ { "entity": { "reference": "Practitioner/76428138e7644ce6b7eb426fdbbf2f39", "type": "Practitioner" } } ] }'
import requests url = "https://fumage-example.canvasmedical.com/Group/<id>" headers = { "accept": "application/json", "Authorization": "Bearer <token>", "content-type": "application/json" } payload = { "resourceType": "Group", "id": "3340c331-d446-4700-9c23-7959bd393f26", "type": "practitioner", "actual": True, "name": "A Test Team", "characteristic": [ { "code": { "text": "responsibility" }, "valueCodeableConcept": { "text": "COLLECT_SPECIMENS_FROM_PATIENT" }, "exclude": False } ], "member": [ { "entity": { "reference": "Practitioner/76428138e7644ce6b7eb426fdbbf2f39", "type": "Practitioner" } } ] } response = requests.put(url, json=payload, headers=headers) print(response.text)
null
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "invalid", "details": { "text": "Bad request" } } ] }
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "unknown", "details": { "text": "Authentication failed" } } ] }
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "forbidden", "details": { "text": "Authorization failed" } } ] }
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "not-found", "details": { "text": "Unknown Group resource 'a47c7b0e-bbb4-42cd-bc4a-df259d148ea1'" } } ] }
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "not-supported", "details": { "text": "Operation is not supported" } } ] }
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "conflict", "details": { "text": "Resource updated since If-Unmodified-Since date" } } ] }
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "business-rule", "details": { "text": "Unprocessable entity" } } ] }
curl --request GET \ --url 'https://fumage-example.canvasmedical.com/Group?type=practitioner' \ --header 'Authorization: Bearer <token>' \ --header 'accept: application/json'
import requests url = "https://fumage-example.canvasmedical.com/Group?type=practitioner" headers = { "accept": "application/json", "Authorization": "Bearer <token>" } response = requests.get(url, headers=headers) print(response.text)
{ "resourceType": "Bundle", "type": "searchset", "total": 1, "link": [ { "relation": "self", "url": "/Group?type=practitioner&_count=10&_offset=0" }, { "relation": "first", "url": "/Group?type=practitioner&_count=10&_offset=0" }, { "relation": "last", "url": "/Group?type=practitioner&_count=10&_offset=0" } ], "entry": [ { "resource": { "resourceType": "Group", "id": "3340c331-d446-4700-9c23-7959bd393f26", "type": "practitioner", "actual": true, "name": "A Test Team", "characteristic": [ { "code": { "text": "responsibility" }, "valueCodeableConcept": { "text": "COLLECT_SPECIMENS_FROM_PATIENT" }, "exclude": false } ], "member": [ { "entity": { "reference": "Practitioner/76428138e7644ce6b7eb426fdbbf2f39", "type": "Practitioner" } } ] } } ] }
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "invalid", "details": { "text": "Bad request" } } ] }
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "unknown", "details": { "text": "Authentication failed" } } ] }
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "forbidden", "details": { "text": "Authorization failed" } } ] }