Queries
Get all pathways a given patient is or was enrolled in
- graphql
01query GetPatientPathways($patient_id: String!, $status: [String!]) {02 patientPathways(03 patient_id: $patient_id04 filters: { status: { in: $status } }05 ) {06 patientPathways {07 id08 title09 pathway_definition_id10 status11 status_explanation12 version13 release_id14 baseline_info {15 value16 definition {17 id18 title19 category20 key21 valueType22 possibleValues {23 label24 value25 }26 unit27 range {28 min29 max30 }31 }32 }33 }34 }35}
- json
01{02 "patient_id": "{{ PATIENT_ID }}"03}
The filter is optional: if you don't provide one, all pathways for the patient will be returned.
- graphql
01query GetPatientPathways($patient_id: String!) {02 patientPathways(patient_id: $patient_id) {03 patientPathways {04 ...Pathway05 }06 }07}
The in
filter type for status accepts a list of values and results in an is any of
search criteria.
- json
01{02 "patient_id": "{{ PATIENT_ID }}",03 "status": ["active", "completed"]04}
You can use the following status values in the status
filter array.
- graphql
01enum PathwayStatus {02 active03 completed04 missing_baseline_info05 starting06 stopped07}
There is no pagination or sorting available for this query. All matching patient pathways will be returned.