VisitQuery
Description
The VisitQuery event type enables searching for patient demographics and visit information that has been received through PatientAdmin events. This event type allows querying for specific patient demographics, such as patient ID, medical record number (MRN), patient name, date of birth, etc., as well as visit-related information, such as visit ID, admission date, discharge date, visit type.
API endpoints for Visit Query
Sync REST API Endpoint to call the API: https://{base_url}/api/v1/patient-admin/visit-query.
Async REST API Endpoint to call the API: https://{base_url}/api/v1/endpoint.
Data Model JSON for VisitQuery
VisitQuery - Sample Payload
{
"Meta": {
"DataModel": "PatientAdmin",
"EventType": "VisitQuery",
"EventDateTime": "2022-08-16T14:21:20.733Z",
"Test": true,
"Source": {
"ID": "3be3bccc-a827-4be1-bfd0-e07096b6b722",
"Name": "EHR Bridge Dev Tools"
},
"Destinations": [
{
"ID": "848009fd-4c92-4a91-9575-3596724fbec4",
"Name": "Destinations EMR"
}
],
"Logs": [
{
"ID": "c73905b4-2558-4929-a225-8277032657a6",
"AttemptID": "7fd40081-c20d-48f9-8520-55d44a3aeee1"
}
],
"Message": {
"ID": 5565
},
"Transmission": {
"ID": 12414
},
"FacilityCode": null
},
"PatientClasses": [],
"Departments": [
"3N"
],
"Facilities": [
"RES General Hospital"
],
"VisitStatuses": [
"Arrived"
],
"Patients": [
{
"Identifiers": [
{
"ID": "0000000001",
"IDType": "MR"
},
{
"ID": "0f445d2b-206b-4d01-9aa7-9a53d856f94e ",
"IDType": "EHRID"
},
{
"ID": "f1c0af61-7659-46f9-aa19-5a2a6830c94d ",
"IDType": "NIST"
}
]
}
],
"VisitNumbers": [
"1234",
"5678"
],
"VisitStartDateTime": "2022-08-16T14:21:21.525Z"
}