Mutations
These are all Mutation hooks.
The main difference with queries is that mutations do not execute by default - they are invoked by an action on the page.
One important thing to understand is that since the query cache is managed by the <FhirQueryProvider />
, you don't need
to refresh the queries whenever mutations occur - data is refreshed automatically.
This greatly simplifies code flow and avoid a lot of spaghetti code when creating an application.
Basically, you don't need to worry about data refresh dependencies in the whole application.
📄️ useFhirCreateMutation
Create a FHIR resource
📄️ useFhirUpdateMutation
Update a FHIR resource
📄️ useFhirSaveMutation
Create or update a FHIR resource
📄️ useFhirPatchMutation
Patch a FHIR resource
📄️ useFhirDeleteMutation
Delete a FHIR resource
📄️ useFhirExecuteMutation
Execute an operation that affects state
📄️ useFhirGraphQLMutation
Execute a GraphQL mutation
📄️ useFhirTransactionMutation
Execute a FHIR transaction
📄️ useFhirClientMutation
Execute a series of FHIR operations