Queries
Retrieve a list of stakeholders in your care flow
When designing a care flow, you can assign stakeholders to actions. This tells the system who needs to complete what. When orchestrating care flows, you might want to retrieve these stakeholders to answer questions like:
We provide a couple of queries to get the data you need related to stakeholders. Feel free to select the one that works best for your use case.
Get published stakeholders details by one or more stakeholder definition IDs, useful for swapping definition ids for stakeholder labels.
- graphql
01query GetStakeholdersByDefinitionIds($stakeholder_definition_ids: [String!]!) {02 stakeholdersByDefinitionIds(03 stakeholder_definition_ids: $stakeholder_definition_ids04 ) {05 stakeholders {06 id07 label {08 en09 }10 release_id11 clinical_app_role12 definition_id13 }14 }15}
Get published stakeholders details by one or more care flow definition IDs, useful for ensuring you have all stakeholders across all versions of a care flow (e.g. if a stakeholder was removed in a newer version of a care flow).
- graphql
01query GetStakeholdersByPathwayDefinitionIds(02 $pathway_definition_ids: [String!]!03) {04 stakeholdersByPathwayDefinitionIds(05 pathway_definition_ids: $pathway_definition_ids06 ) {07 stakeholders {08 id09 label {10 en11 }12 release_id13 clinical_app_role14 definition_id15 }16 }17}
Get published stakeholders details by one or more release IDs, useful for when you want an overview of all stakeholders for a specific version(s) of a care flow.
- graphql
01query GetStakeholdersByReleaseIds($release_ids: [String!]!) {02 stakeholdersByReleaseIds(release_ids: $release_ids) {03 stakeholders {04 id05 label {06 en07 }08 release_id09 clinical_app_role10 definition_id11 }12 }13}
A query that combines all input fields of the queries above and is useful for filtering. All input fields are optional, if no values are passed it will return all stakeholders in all your published care flows.
- graphql
01query FindStakeholders(02 $pathway_definition_ids: [String!]03 $release_ids: [String!]04 $stakeholder_definition_ids: [String!]05) {06 filterStakeholders(07 pathway_definition_ids: $pathway_definition_ids08 release_ids: $release_ids09 stakeholder_definition_ids: $stakeholder_definition_ids10 ) {11 stakeholders {12 id13 label {14 en15 }16 release_id17 clinical_app_role18 definition_id19 }20 }21}