$graphql
endpoint which you can use from your application too<resourceType>
— get fields of the specified resource.
Accepts a single argument id
and returns a resource with the specified id
.
Example: Patient (id: "pat-1")
\<resourceType>List
— search resources of given resource type.
Accepts FHIR search parameters for that resourceType. SearchParameters have underscores instead of dashes and referenced later in this documentation as search_parameter
. For each SearchParameter two arguments are generated:<search_parameter>
e.g.: PatientList(address_state: "CA")
Accepts a string. Is an equivalent of using FHIR search parameter<search_parameter>_list
e.g.: PatientList(language_list: ["en", "de"])
Accepts a list of strings. It is an equivalent of repeating search parameters in FHIR search. <search_parameter>_list
arg is needed because args can't be repeated in the GraphQL query.<resourceType>History
— get resource history.
Accepts id
argument and returns history of the resource with the specified id
.
Example: PatientHistory(id: "pt1", _sort: "txid") {name}
PatientList(language_list: ["en", "de"])
will return a set of Patients the same as GET /Patient?language=en&language=de
and those will be patients with en
AND de
as their communication language specified\PatientList(language: "en,de")
will return a set of Patients the same as GET /Patient?language=en,de
and those will be patients with en
OR de
as their communication language specified\PatientList(language_list: ["en", "de,fr"])
will return a set of Patients the same as GET /Patient?language=en&language=de,fr
and those will be patients with en
AND (de
OR fr
) as their communication language specified\PatientList(language: "en", language: "de")
is an error, it will ignore all language
arg repetitions except of the last and will return a set of Patients the same asGET /Patient?language=de
<revIncludeResourceType>s_as_<includedResourceReferenceSearchParameter>
e.g.:
observations_as_subject
for Patient will be equivalent of _revinclude=Observation:subject