Queries
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:
- graphql
01query SearchPatientsByPatientCode($patient_code: String!) {02 searchPatientsByPatientCode(patient_code: $patient_code) {03 patients {04 id05 }06 }07}
Search by national registry number:
- graphql
01query SearchPatientsByNationalRegistryNumber(02 $national_registry_number: String!03) {04 searchPatientsByNationalRegistryNumber(05 national_registry_number: $national_registry_number06 ) {07 patients {08 id09 }10 }11}
Search by patient code:
- json
01{02 "patient_code": "{{PATIENT_CODE}}"03}
Search by national regsitry number:
- json
01{02 "national_registry_number": "{{NATIONAL_REGISTRY_NUMBER}}"03}
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.
- json
01{02 "data": {03 "searchPatientsByPatientCode": {04 "patients": [05 {06 "id": "S8GxueMYsilfryt8Wg30f"07 }08 ]09 }10 }11}