It's possible to filter the records being returned in a list.
Common filters are:
|sync||To limit those records returned to those changed since the last time a process synchronised data - see Syncing Data with the API|
|external_id||Return the record matching an external id. This is used in the case where you have your own identifier for a patient - e.g. "P123". You can pass that identifier to the call to get the list of patients to return just that patient. You can extract the PainChek id for the patient and use that, for example, to identify the assessments for that patient|
Using the external_id filter
...returns all your patients.
Supposing you have a patient you identify as "P123", you can fetch the details for that patient using this command:
would return only the patient(s) matching that criteria:
You can then extract the PainChek id for the patient ("16a8b675-61e2-49a5-b1aa-9a6fef94bfc9") in this case and use that to identify that patients of assessments.