How to use transactions? #2089
Replies: 2 comments
-
I am struggling with transactional update, too. I tried with a code below, but it failed.
The error was complaining that returned resource is different from I also checked firely-dotnet-sdk source, but I wondered that it doesn't properly process multiple resources.
The line: 966 is retrieve the first entry only, and it throw a request with it, and further it doen't process the second entry or later. My code got a type-mismatch error raised by the code below:
The questions I want to ask you:
I believe all of those are supported upon the FHIR specification. |
Beta Was this translation helpful? Give feedback.
-
Sorry, that is very true. It's been around for ages, certainly before we started documented new features ;-) I think it would be good to set that straight. |
Beta Was this translation helpful? Give feedback.
-
Is this the correct way to use TransactionBuilder to download a patient, add an Encounter, add a Observation and save the results back?
It executes without error, but returns null.
EDIT: I could REALLY use some help with the TransactionBuilder. There is next to ZERO info on it. Can it created patients and other resources that reference it in one go? Or should the create always happen first? If you update an existing patient and also add observations to it - is this considered an Update or a Create? What is the type to send in the search and resource type of execute? The updated patient or the created observation. It's virtually impossible to figure out how to use this class by trial and error.
I tried some other variants, creating a patient with an observation in a transaction. I changed the expected status code to 201, and asked for the client to return the Return.Representation.
It seems the patient got created but not the observation.
Can a patient not be created along with resources in the same transaction?
Beta Was this translation helpful? Give feedback.
All reactions