BENBUN Coder
BENBUN Coder

Reputation: 4881

Querying resources in FHIR

If I want to retrieve a list of resources from a FHIR server, is it possible to get a list of the resources without getting the resources themselves.

For example

http://baseurl/fhir/profile 

would get me the first 'page" of profile resources but would return all of the resources. If I just wanted the profile ids and names is that possible?

Upvotes: 1

Views: 787

Answers (2)

Michael J Lawley
Michael J Lawley

Reputation: 140

There are two mechanisms for this. One is with _summary and the other with _elements.

_summary = true asks for just the elements marked as 'summary' to be included (see each Resource for what these are); there are other possible values too

_elements is a comma-separated list of base element names to include for the Resource. In your case _elements=id,name should suffice (if the server supports it).

Upvotes: 0

Lloyd McKenzie
Lloyd McKenzie

Reputation: 6803

When retrieving resources, it's possible to request a "summary" of the resource that is lighter weight. (See http://www.hl7.org/implement/standards/fhir/query.html#summary). This wouldn't be as light as just a bare name in most circumstances, but would be much lighter weight than say a full diagnostic image.

Upvotes: 1

Related Questions