I need to add these functions to our Staff
Case 1:
Patient A, ID "1", with "n" studies
Patient B, ID "2", with "n" studies (same Patient as "A". For example if we import studies from other institution with another Patient ID)
I need to Merge both patiens. We have a Merge option, but only for studies (is not this case)
I thinking to do:
a) Modify all the "n" studies from Patient "B" and chage the Patient ID to "1" (and the Patient name with the name of Patient "A").
b) Delete Patient "B", if after a query I can check there is no a study attached to patient "B".
I can see that option in the orthanc explorer ("Delete this patient"), but I need to find the Api rest method it uses. (There is no a /patients/{id}/delete)
Case 2:
Patient A, ID "1", with "n" studies
One of those studies is wrong and belongs to another patient, not present in Orthanc server
a) Create a new Patient (I can do that with the Api rest functionality ?)
I can´t find something like /patients/create.
b) Modify the study from Patient "A" and chage the Patient ID to the Id of the new patient created.
Is there a better way to do these tasks ?
I'm thinking something wrong for these cases ?
Regards
Diego