title | description |
---|---|
Search patients |
Search patients by patient code or national registry number |
Search for a patient in your tenant by patient code or national registry number. The search is done via an exact text match, and returns up to 100 matches. If you require a more powerful search then consider the patients query.
Search by patient code:
query SearchPatientsByPatientCode($patient_code: String!) {
searchPatientsByPatientCode(patient_code: $patient_code) {
patients {
id
}
}
}
Search by national registry number:
query SearchPatientsByNationalRegistryNumber(
$national_registry_number: String!
) {
searchPatientsByNationalRegistryNumber(
national_registry_number: $national_registry_number
) {
patients {
id
}
}
}
Search by patient code:
{
"patient_code": "{{PATIENT_CODE}}"
}
Search by national regsitry number:
{
"national_registry_number": "{{NATIONAL_REGISTRY_NUMBER}}"
}
The response is a list of patient objects that exactly match the search criteria. If no patients are found that match the criteria, an empty patient list is returned.
{
"data": {
"searchPatientsByPatientCode": {
"patients": [
{
"id": "S8GxueMYsilfryt8Wg30f"
}
]
}
}
}
<HowToUse storyIds={['search-patients']} />