Patient
GET https://api.flexpa.com/fhir/Patient
Patient is an adminstrative FHIR resource that contains demographic information about a patient, such as name(s), address(es), and birth date.
As a core administrative resource, all payers make this available and is one of the most fundamental building blocks Flexpa provides access to today.
#Sample request
While some servers may support a resource-level search without any parameters, not all do. We recommend using the read operation below with the patient ID as part of the path via the $PATIENT_ID
wildcard.
This is a sample request using curl
ACCESS_TOKEN=flexpa-link-access-token
curl "https://api.flexpa.com/fhir/Patient/$PATIENT_ID" \
-H "Authorization: Bearer $ACCESS_TOKEN"
#Sample response
This is a sample response from Humana using Flexpa API in test mode
#Patient $everything
Unique to the Patient resource, the Patient $everything
operation requests all resources that link to the Patient resource at once.
This operation frees the client from needing to determine what it could or should ask for.
Note that executing this operation without any search parameters may result in a very large Bundle.
In the following example, we use Patient $everything
to ask the server for all resources referencing a Patient:
ACCESS_TOKEN=flexpa-link-access-token
curl "https://api.flexpa.com/fhir/Patient/$PATIENT_ID/$everything" \
-H "Authorization: Bearer $ACCESS_TOKEN"
Flexpa resolves your FHIR queries to the Endpoint you obtain an authorization from during the Flexpa Link flow.
While some Endpoints may support the Patient $everything
operation, not all do.
We recommend referring to the Endpoint's CapabilityStatement to check whether Patient $everything
is supported by the Endpoint.