sort
When sorting is applied on a field with repeated values (e.g. Patient.GIVEN ), the order is defined by the value
of the repeated values in the resource (e.g. HumanName.given for Patient).
If there are two Patients p1 and p2 as follows
{
"resourceType": "Patient",
"id": "p1",
"name": [
{
"family": "Cooper",
"given": [
"3",
"1"
]
}
]
}
Content copied to clipboard
AND
{
"resourceType": "Patient",
"id": "p2",
"name": [
{
"family": "Cooper",
"given": [
"2",
"4"
]
}
]
}
Content copied to clipboard
Then sorting the patients in ascending or descending order with their given i.e Patient.GIVEN depends on the smallest (1
, 3
) or largest (2
, 4
) given in the first name respectively .
When sorting is applied on a field with repeated values, defined by the value
of the repeated values in the resource.
See also
(parameter: StringClientParam, order: Order) for more details.