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.

Related guides:
post
/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

id
string

The identifier of the Group

type
string

Identifies the broad classification of the kind of resources the group includes

actual
boolean

If true, indicates that the resource refers to a specific group of real individuals. If false, the group defines a set of intended individuals

name
string

Label for Group

quantity
integer

Number of members

characteristic
array[json]

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

member
array[json]

Who or what is in group

Responses

201 Created
The server has successfully processed the request; the new resource has been created and is now ready for interaction.

Canvas returns the created resource's id as a UUID within the location header and a null response body.

Errors

400 Bad Request
The request was invalid or cannot be otherwise served. An accompanying error message will explain further.
401 Unauthorized
The request requires user authentication.
403 Forbidden
The request requires user authorization.
405 Method Not Allowed
The request performs an operation that is either not supported or allowed.
422 Unprocessable Entity
The request cannot be processed due to semantic issues or conflicts with the database state.
get
/Group/{id}

Group read

Read a Group resource.

Path Parameters

id required
string
The unique identifier for the Group

Response Payload Attributes

id
string

The identifier of the Group

type
string

Identifies the broad classification of the kind of resources the group includes

actual
boolean

If true, indicates that the resource refers to a specific group of real individuals. If false, the group defines a set of intended individuals

name
string

Label for Group

quantity
integer

Number of members

characteristic
array[json]

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

member
array[json]

Who or what is in group

Responses

200 OK
Request was successful.

Errors

401 Unauthorized
The request requires user authentication.
403 Forbidden
The request requires user authorization.
404 Not Found
The requested resource was not found.
put
/Group/{id}

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

id
string

The identifier of the Group

type
string

Identifies the broad classification of the kind of resources the group includes

actual
boolean

If true, indicates that the resource refers to a specific group of real individuals. If false, the group defines a set of intended individuals

name
string

Label for Group

quantity
integer

Number of members

characteristic
array[json]

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

member
array[json]

Who or what is in group

Responses

200 OK
The server has successfully processed the request.

Canvas returns a null response body.

Errors

400 Bad Request
The request was invalid or cannot be otherwise served. An accompanying error message will explain further.
401 Unauthorized
The request requires user authentication.
403 Forbidden
The request requires user authorization.
404 Not Found
The requested resource was not found.
405 Method Not Allowed
The request performs an operation that is either not supported or allowed.
412 Precondition Failed
The request depends on a precondition that has not been met.
422 Unprocessable Entity
The request cannot be processed due to semantic issues or conflicts with the database state.

Query Parameters

_id
string

The identifier of the Group

type
string

The type of resources the group contains

Response Payload Attributes

resourceType
string

The FHIR Resource name.

type
string

This element and value designate that the bundle is a search response. Search result bundles will always have the Bundle.type of searchset .

total
integer

The number of resources that match the search parameter.

link
array[json]

Attributes relevant to pagination, see our Pagination page for more detail.

Click to view child attributes
relation
enum [self|first|next|last]

The relation of the page search

url

The search url for the specific relation

entry
array[json]

The results bundle that lists out each object returned in the search

Click to view child attributes
resource
json

The attributes specific to the resource type, see the Attributes section below

Attributes

id
string

The identifier of the Group

type
string

Identifies the broad classification of the kind of resources the group includes

actual
boolean

If true, indicates that the resource refers to a specific group of real individuals. If false, the group defines a set of intended individuals

name
string

Label for Group

quantity
integer

Number of members

characteristic
array[json]

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

member
array[json]

Who or what is in group

Responses

200 OK
Request was successful.

Errors

400 Bad Request
The request was invalid or cannot be otherwise served. An accompanying error message will explain further.
401 Unauthorized
The request requires user authentication.
403 Forbidden
The request requires user authorization.
  • 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"
          }
        }
      ]
    }