POST api/MergePatients
Merge one patient's data with other patient.
Request Information
URI Parameters
None.
Body Parameters
MergePatientModel| Name | Description | Type | Additional information |
|---|---|---|---|
| FromPatientExternalId |
External ID of the patient that will be removed as the result of the operation. All the data of this patient will be transferred to the other patient. |
string |
None. |
| ToPatientExternalId |
External ID of the patient that will receive the data of the removed patient. |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"fromPatientExternalId": "sample string 1",
"toPatientExternalId": "sample string 2"
}
application/xml, text/xml
Sample:
<MergePatientModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Api.Models.MergePatients"> <FromPatientExternalId>sample string 1</FromPatientExternalId> <ToPatientExternalId>sample string 2</ToPatientExternalId> </MergePatientModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
MergePatientModel| Name | Description | Type | Additional information |
|---|---|---|---|
| FromPatientExternalId |
External ID of the patient that will be removed as the result of the operation. All the data of this patient will be transferred to the other patient. |
string |
None. |
| ToPatientExternalId |
External ID of the patient that will receive the data of the removed patient. |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"fromPatientExternalId": "sample string 1",
"toPatientExternalId": "sample string 2"
}
application/xml, text/xml
Sample:
<MergePatientModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Api.Models.MergePatients"> <FromPatientExternalId>sample string 1</FromPatientExternalId> <ToPatientExternalId>sample string 2</ToPatientExternalId> </MergePatientModel>