Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 1.29 KB

api.md

File metadata and controls

35 lines (26 loc) · 1.29 KB

API

FUNCTION fhir_read(_cfg jsonb, type varchar, id uuid)

Read the current state of the resource Return bundle with only one entry for uniformity;

FUNCTION fhir_create(_cfg jsonb, type varchar, resource jsonb, tags jsonb)

Create a new resource with a server assigned id Return bundle with newly entry;

FUNCTION fhir_vread(_cfg jsonb, type varchar, id uuid, vid uuid)

Read specific version of resource with type Returns bundle with one entry;

FUNCTION fhir_update(_cfg jsonb, type varchar, id uuid, vid uuid, resource jsonb, tags jsonb)

Update resource, creating new version Returns bundle with one entry;

FUNCTION fhir_delete(_cfg jsonb, type varchar, id uuid)

DELETE resource by its id AND return deleted version Return bundle with one deleted version entry ;

FUNCTION fhir_history(_cfg jsonb, type varchar, id uuid, params jsonb)

Retrieve the changes history for a particular resource with logical id (id) Return bundle with entries representing versions;

FUNCTION fhir_search(_cfg jsonb, type varchar, params jsonb)

Search in resources with type by params Returns bundle with entries;

FUNCTION fhir_tags()

Return all tags in system;

FUNCTION fhir_tags(_res_type varchar)

Return tags for resources with type = type;