Invite Team Member
https://www.hl7.org/fhir/STU3/operations.html
https://www.hl7.org/fhir/STU3/operationdefinition.html
Status
In development. API spec subject to change.
Overview
This operation allows:
a Team Coordinator to invite (or re-invite) a Professional or Team Coordinator to join their team.
a System user to invite (or re-invite) a Professional or Team Coordinator to join a specified team.
Endpoints
Interaction | HTTP | URL | Supported Parameters | Permitted User Types | Description |
POST | /Organization/<id>/$invite-team-member | All mandatory:
Reference 'in' mappings below. |
| Create and invite a [[Professional]] to the specified PKB [[Team]]. If the [[Professional]] already exists then re-invite them. <id> must match to a [[Team]]. The Invite can not be at [[Organisation]] level. Parameter user-type must match one of the PKB permitted values - reference mappings. User type indicates whether to invite the user in a t eam coordinator or team professional capacity. |
Mappings
FHIR | PKB | Notes |
OperationDefinition.url | "http://fhir.patientsknowbest.com/operation/invite-team-member" | Â |
OperationDefinition.name | "invite-team-member" | Â |
OperationDefinition.status | "active" | Â |
OperationDefinition.kind | "operation" | Â |
OperationDefinition.code | "invite-team-member" | Â |
OperationDefinition.resource |
| Â |
OperationDefinition.system | false | Â |
OperationDefinition.type | false | Â |
OperationDefinition.instance | true | Â |
OperationDefinition.parameter |
| Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â user-type options:
    message - (static success message). "Invitation sent". id - (UUID of invited [[Practitioner]]): |
Examples
Invite a professional
Request
/Organization/<team-uuid>/$invite-team-member body:{ "resourceType": "Parameters", "parameter": [{ "name": "invite-team-member", "title": "Mr", "given-name" : "Jock", "last-name" : "Jones", "email-address": "jock.jones@mydomain.com", "user-type" : "PKB_TEAM_PRO" }]}
The response indicates that the team member has been invited.
Response
{ "resourceType": "Parameters", "parameter": [ { "message": "Invitation sent", "id": "<UUID>", } ] }
Invite a team coordinator
Request
/Organization/<team-uuid>/$invite-team-member body:{ "resourceType": "Parameters", "parameter": [{ "name": "invite-team-member", "title": "Mr", "given-name" : "David", "last-name" : "Lawson", "email-address": "david.lawson@mydomain.com", "user-type" : "PKB_TEAM_COORD" }]}
The response indicates that the team member has been invited.
Response
{ "resourceType": "Parameters", "parameter": [ { "message": "Invitation sent", "id": "<UUID>", } ] }