CRUD
Fhirbase provides functions to Create, Read, Delete and Update resources. There are two variants of these functions: first accepts txid
and second does not.
fhirbase_create (resource jsonb, [txid bigint])
This function creates or recreates a FHIR resource. When a resource with the same ID exist, it will be moved into the history table and the new resource will have recreated
status. If resource argument doesn't contain an id
attribute, the value returned by fhirbase_genid
function will be used as an ID.
Last updated