You can use the patient check end-point to determine if a patient already exists in the PainChek system.
curl -X GET \ https://ua.ap.painchek.com/api/patients/check/?first_name=Fred&last_name=Smith&birth_date=1939-04-20
Note
This check can be very useful for initial loads or migration purposes. It allows a third party system to look for existing PainChek patients so that the records in each system can be linked together.
Field |
Type |
---|---|
first_name |
Mandatory String |
last_name |
Mandatory String |
birth_date |
Mandatory YYYY-MM-DD |
The following table documents the parameters returned by the end-point:
Field |
Type |
Contents |
---|---|---|
found |
Mandatory Boolean |
true (if one or more matches are found), false otherwise |
match_count |
Mandatory Integer |
The number of matches found |
uuids |
Mandatory list |
An array containing the UUIDs of all of the matched patients. If there are no matches, an empty list is returned. |
The following sections show some sample returns under different conditions: