Merging two patients #3282
-
|
Hello together, This is the current implementation (using net9.0, Hl7.Fhir.R4 version 5.12.2) string baseURL = "...";
string targetPatientID = "123-234-5";
string sourcePatientID = "1234-4321-1";
FhirClientsettings settings = new(); // added some headers for auth, etc.
FhirClient client = new(baseURL, settings);
var parameters = new Parameters
{
{ "sourcePatientId", new FhirString(patSource) },
{ "targetPatientId", new FhirString(patTarget) }
};
var uri = new Uri($"{baseUrl}/Patient/$merge", UriKind.Absolute);
Resource mergeResult = await client.OperationAsync(uri, parameters); |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
|
@thetestautomator On the first look this doesn’t seem wrong to me. Have you tried serializing the Parameters resource to see if that looks correct to you? |
Beta Was this translation helpful? Give feedback.
-
|
Also are you trying in Postman to use a GET or a POST request? |
Beta Was this translation helpful? Give feedback.
-
|
Or add the |
Beta Was this translation helpful? Give feedback.
What works is: