GET method and include search parameters in the URL to filter for resource records that meet the criteria.Patient resources.Parameter Name | Type | Required | Description |
HTTP Method | String | Yes | Fixed as GET. |
URL | String | Yes | The search address, in the format [baseUrl]/[resourceType] or [baseUrl]/[resourceType]?[searchParams]. |
Authorization | String | Yes | The access token, in the format Bearer <AccessToken>. For details on how to obtain it, see Calling Method. |
Accept | String | No | The response format. It is recommended to use application/fhir+json. |
searchParams | String | No | Search parameters, which are appended after the URL in the form of a URL query string ( key=value&...), supporting single or multiple parameter combinations. |
Parameter Name | Type | Required | Description |
name | String | No | Search by patient name, matching name-related fields. |
gender | String | No | Search by gender, for example, male or female. |
family | String | No | Search by family name. |
given | String | No | Search by given name. Multiple values separated by commas are supported. |
200 OK is typically returned. The response body is usually a Bundle resource, which contains the list of resources matched by the search and pagination information.Field | Type | Description |
resourceType | String | Returns the resource type, usually Bundle. |
id | String | Unique ID of the Bundle resource, usually a UUID. |
meta | Object | Metadata of the Bundle, containing fields such as lastUpdated. |
meta.lastUpdated | String | Generation time of the Bundle, in ISO 8601 format. |
type | String | The Bundle type is usually searchset in search scenarios. |
total | Integer | The total number of matched records. This field may not be returned by default and is only returned when the server can efficiently calculate. The current server does not support forcing the return of an accurate total via _total=accurate. |
entry | Array | The list of search results. |
entry[].fullUrl | String | The complete access URL of the resource. |
entry[].resource | Object | The matched resource content. |
entry[].resource.id | String | Unique ID of the resource. |
entry[].resource.meta | Object | Metadata of the resource, containing fields such as versionId and lastUpdated. |
entry[].search.mode | String | Search hit mode. |
link | Array | Pagination link information, such as the first page, the next page, and so on. |
GET /INSTANCE_ID/fhir/Patient HTTP/1.1Host: HOSTNAMEAuthorization: Bearer <AccessToken>Accept: application/fhir+json
GET /INSTANCE_ID/fhir/Patient?name=chalmers HTTP/1.1Host: HOSTNAMEAuthorization: Bearer <AccessToken>Accept: application/fhir+json
GET /INSTANCE_ID/fhir/Patient?name=chalmers&gender=male HTTP/1.1Host: HOSTNAMEAuthorization: Bearer <AccessToken>Accept: application/fhir+json
GET /INSTANCE_ID/fhir/Patient?given=peter,james HTTP/1.1Host: HOSTNAMEAuthorization: Bearer <AccessToken>Accept: application/fhir+json
{"resourceType": "Bundle","id": "2d7b3566-1773-40b3-abd4-0c8ebdd6466f","meta": {"lastUpdated": "2026-07-08T21:24:05.941+08:00"},"type": "searchset","link": [{"relation": "self","url": "https://HOSTNAME/INSTANCE_ID/fhir/Patient?name=chalmers"}],"entry": [{"fullUrl": "https://HOSTNAME/INSTANCE_ID/fhir/Patient/199963","resource": {"resourceType": "Patient","id": "199963","meta": {"versionId": "1","lastUpdated": "2022-10-10T07:07:33.086-04:00"},"name": [{"family": "Chalmers","given": ["Peter","James"]}],"gender": "male"},"search": {"mode": "match"}}]}
Error Code | Description |
400 Bad Request | The search parameter format is incorrect, or the parameter value does not meet the requirements. |
401 Unauthorized | Not authenticated, and valid credentials are missing. |
403 Forbidden | Authenticated but not authorized to search the resource. |
404 Not Found | The specified resource type does not exist. |
422 Unprocessable Entity | The search parameter syntax is correct, but it fails business or rule validation. |
500 Internal Server Error | Internal server processing exception. |
피드백