Base Path: /fhir/4.0/Patient
Version: 1.0.0
The FHIR Patient API allows you to look up a patient's demographics and other administrative information. The endpoint provides the ability to:
To learn more about using this API in your application you can view our guide on working with the FHIR Patient API.
The data returned in this API is subject to privacy and permissions settings, refer to the Working with Privacy guide to learn how this might affect your application.
This API is based on the STU3 release of the FHIR standard, for more information on this API refer to the official FHIR documentation.
GET /fhir/4.0/Patient/
This method returns demographics and other administrative information for patients that match the supplied search criteria. Patient searches may be performed by supplying a combination of the following minimum criteria. Either:
When searching for patients with names with diacritics, you need to perform the search with HTTP Header "Content-Type: charset=utf-8".
Name
Type
Data Type
Description
Name:
identifier
optional
Type:
query
Data Type:
string
Description:
The identifier for the patient which consists of patient identifier namespace (also known as the system) and identifier, separated using a URL encoded |
character i.e. %7c
.
Sample Value: ORION|AAA-00328-9
Name:
family
optional
Type:
query
Data Type:
string
Description:
The family name (last name) of the patient.
Sample Value: Orion
Name:
given
optional
Type:
query
Data Type:
string
Description:
Filters the results to patients with a matching given name (first name)
Sample Value: jack
Name:
name
optional
Type:
query
Data Type:
string
Description:
The family name (last name) or the given name (first name) of the patient.
Sample Value: dodgson
Name:
birthdate
optional
Type:
query
Data Type:
string
Description:
Filters the results to patients with a matching date of birth. The format of the birthdate value is yyyy-mm-dd
Sample Value: 1940-03-18
Name:
gender
optional
Type:
query
Data Type:
string
Description:
Filters the results to patients of a given gender. Possible values are
Sample Value: female
200
Returns a FHIR Bundle containing 0..* OperationOutcome resources and 0..* Patient resources
400
This code is returned when the query contains one or more invalid parameters, e.g using an incorrectly formatted patient birth date.
curl -X GET "https://developer-solution/fhir/4.0/Patient?family=Orion&given=jack&gender=female" \
-H 'Accept: application/json' \
-H 'Authorization: Basic bGV2ZWwxLnN5c19hOk9yaW9uc3k1IT8='
POST /fhir/4.0/Patient/_search
This method returns demographics and other administrative information for patients that match the supplied search criteria. Patient searches may be performed by supplying a combination of the following minimum criteria. Either:
When searching for patients with names with diacritics, you need to perform the search with HTTP Header "Content-Type: charset=utf-8".
Name
Type
Data Type
Description
Name:
Content-Type
required
Type:
header
Data Type:
string
Description:
Specifies how to encode the form data. The Content-Type value must be application/x-www-form-urlencoded
Sample Value: application/x-www-form-urlencoded
Name:
identifier
optional
Type:
formData
Data Type:
string
Description:
The identifier for the patient which consists of patient identifier namespace (also known as the system) and identifier, separated using a URL encoded |
character i.e. %7c
.
Sample Value: SYS_A-PV%7CGx10-000998
Name:
family
optional
Type:
formData
Data Type:
string
Description:
The family name (last name) of the patient.
Sample Value: dodgson
Name:
given
optional
Type:
formData
Data Type:
string
Description:
Filters the results to patients with a matching given name (first name)
Sample Value: charles
Name:
name
optional
Type:
formData
Data Type:
string
Description:
The family name (last name) or the given name (first name) of the patient.
Sample Value: dodgson
Name:
birthdate
optional
Type:
formData
Data Type:
string
Description:
Filters the results to patients with a matching date of birth. The format of the birthdate value is yyyy-mm-dd
Sample Value: 1940-03-18
Name:
gender
optional
Type:
formData
Data Type:
string
Description:
Filters the results to patients of a given gender. Possible values are
Sample Value: male
200
Returns a FHIR Bundle containing 0..* OperationOutcome resources and 0..* Patient resources
400
This code is returned when the query contains one or more invalid parameters, e.g using an incorrectly formatted patient birth date.
curl -X POST "https://developer-solution/fhir/4.0/Patient/_search" \
-H 'Accept: application/json' \
-H 'Authorization: Basic bGV2ZWwxLnN5c19hOk9yaW9uc3k1IT8=' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'identifier=SYS_A-PV%7CGx10-000998'
GET /fhir/4.0/Patient/{id}
This method returns the Patient resource matching the requested resource ID.
Name
Type
Data Type
Description
Name:
id
required
Type:
path
Data Type:
string
Description:
The id of the Patient resource
Sample Value: IFAUCQJNGAYTENBNHBAE6USJJ5HA
200
Returns a Patient resource matching the requested resource ID.
400
This code is returned when the FHIR ID is empty or not valid.
404
No Patient resource found with the requested resource ID.
curl -X GET "https://developer-solution/fhir/4.0/Patient/IFAUCQJNGAYTENBNHBAE6USJJ5HA" \
-H 'Accept: application/json' \
-H 'Authorization: Basic bGV2ZWwxLnN5c19hOk9yaW9uc3k1IT8='