Using the PDS API against the INT environment, we have found that a wildcard search doesn’t return results that are known to be within the data.
Searching for a patient with these parameters:
{
birthdate: '2011-05-09',
gender: 'female',
family: 'Shipperbottom'
}
returns a Bundle containing a single matched Patient resource.
Searching for a patient with a wildcard at the end of family:
{
birthdate: '2011-05-09',
gender: 'female',
family: 'Shipper*'
}
returns a Bundle containing no matched Patient resources and no OperationOutcome resources.
We expected to get either a single matched Patient or a warning of multiple matches.
Similarly, searching for a patient with the start of the family:
{
birthdate: '2011-05-09',
gender: 'female',
family: 'Shipper'
}
returns a Bundle containing no matched Patient resources and no OperationOutcome resources.
For FHIR R4 string parameters a “field matches a string query if the value of the field equals or starts with the supplied parameter value, after both have been normalized by case and combining characters”, with the example given that [base]/Patient?given=eve
should match “Any patients with a name containing a given part with “eve” at the start of the name. This would include patients with the given name “Eve”, “Evelyn”.”
We expected to get either a single matched Patient or a warning of multiple matches.
Why does the service not find any match for these cases?