R4 Patient Search matching logic

55 views
Skip to first unread message
Assigned to Fenil....@cerner.com by me

wangr...@gmail.com

unread,
Jan 3, 2022, 10:43:46 AM1/3/22
to Cerner FHIR Developers
Hi Team,

I recently performed a patient search using R4 in the sandbox and it's not returning the patient I'm looking for.  Was anything changed regarding the matching logic?
The x-request-id is:
4a677e45-98de-480c-b00a-7530c4a62244

I searched by lastname "wang" and DOB"1989-02-08"
The patient I'm looking for is having fhir id:  12769412. It has same DOB and last name. Also, it seems like the search only return 10 results at maximum. Is there any parameters we need to send in in order to get full search results?
Thanks,
Rui

Fenil Desani (Cerner)

unread,
Jan 3, 2022, 12:29:22 PM1/3/22
to Cerner FHIR Developers
Hello Rui,

I do see the patient with Id 12769412 being returned when searching by lastname "wang" and DOB"1989-02-08"
You would need to perform pagination (http://fhir.cerner.com/millennium/faq/common-issues/#implement-paging) in order to get back all results.

Thanks,
Fenil

wangr...@gmail.com

unread,
Jan 4, 2022, 11:43:18 AM1/4/22
to Cerner FHIR Developers
Hi Fenil,

I now see id 23769412 after called the next page link.
So just to confirm,  we should always call the next page link if it's present in search response in order to get all results and choose the latest version of patient if there are duplicates patient ids returned on multiple pages, is that correct?

Additional questions:
1. Is each page only display 10 results at max? Is the page size configurable?
2. The documentation of search mentioned that 422 Unprocessable Entity will be returned when too many (>1000) patients qualify for the search criteria, I assume 1000 is the total number of all pages right? 

Thanks,
Rui

Fenil Desani (Cerner)

unread,
Jan 4, 2022, 4:36:54 PM1/4/22
to Cerner FHIR Developers
Correct. Pagination should always be performed to avoid loss of data unless you find what you need.


Additional questions:
1. Is each page only display 10 results at max? Is the page size configurable?
- Each page has a default count size when count parameter is not used. Each page also has a max. size when count is used. These values differ per resource.

2. The documentation of search mentioned that 422 Unprocessable Entity will be returned when too many (>1000) patients qualify for the search criteria, I assume 1000 is the total number of all pages right?
- Correct, if your search criteria brings back >1000 patients in total, then you would get an error.

Thanks,
Fenil
Reply all
Reply to author
Forward
0 new messages