Handle OperationOutCome resource in response

53 views
Skip to first unread message

Jitesh Madhu

unread,
Apr 5, 2021, 11:35:31 AM4/5/21
to FHIR DOTNET
Hello,

We are using firely nuget  package  version 4  in our .Net project to push data through as FHIR standard to the server.

Now, our problem is server is always giving response in OperationOutCome resource in response jSON body. It gives same response (OperationOutcome) in all the cases means In case of status is OK and in case of status is Error.

So, how can we handle that using firely framework?

We have done following code to push the patient data to the server.
..... 
var client = new FhirClient("server end point url");
var pat = new Patient();
..... 
..... 
var Objres =  client.Create(pat):
.....

As per above code we are always receving NULL value in the Objres because server is giving response body as OperationOutCome and firely framework expecting response resource should be the same resource which was pushed.

So, how can we get OperationOutCome response body jSON?

Thanks in advance!
Jitesh

Mirjam Baltus

unread,
Apr 12, 2021, 8:36:37 AM4/12/21
to FHIR DOTNET
Please look at the discussion on Github: https://github.com/FirelyTeam/firely-net-sdk/issues/1681, where you also posted this.

Op maandag 5 april 2021 om 17:35:31 UTC+2 schreef Jitesh Madhu:
Reply all
Reply to author
Forward
0 new messages