POST api/PatientManagement/InsertPatient
Inserts the patient.
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| request | The request. |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{
"AppContextId": "f9e2f145-6a2f-4e83-8275-923a223529eb",
"Parameter": {
"PatientId": 1,
"EmailAddress": "sample string 2",
"PrimaryPhoneNumber": "sample string 3",
"PhoneNumber": "sample string 4",
"PhoneNumberTypeId": 1,
"PatientCode": "sample string 5",
"IsExisting": true,
"ReceiveSms": true,
"ReceiveMarketingEmails": true,
"IsSmsBetaClinic": true,
"IsConstantContactsEnabled": true,
"Gender": "sample string 11",
"OtherGender": "sample string 12",
"FirstName": "sample string 13",
"LastName": "sample string 14",
"MiddleName": "sample string 15",
"BirthDate": "2025-12-15 20:08",
"FullName": "sample string 13 sample string 15 sample string 14",
"InversedFullName": "sample string 14, sample string 13 sample string 15",
"PersonId": 16
}
}
application/xml, text/xml
Sample:
<AuthenticatedInputOfPatientInsertModelN1Ow66A0 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMT.UP">
<Parameter xmlns:d2p1="http://schemas.datacontract.org/2004/07/CMT.UP.EHR.PatientManagement.Models">
<PersonId xmlns="http://schemas.datacontract.org/2004/07/CMT.UP.Web.Models">16</PersonId>
<BirthDate xmlns="http://schemas.datacontract.org/2004/07/CMT.UP.Web.Models">2025-12-15T20:08:15.8465179+00:00</BirthDate>
<FirstName xmlns="http://schemas.datacontract.org/2004/07/CMT.UP.Web.Models">sample string 13</FirstName>
<Gender xmlns="http://schemas.datacontract.org/2004/07/CMT.UP.Web.Models">sample string 11</Gender>
<LastName xmlns="http://schemas.datacontract.org/2004/07/CMT.UP.Web.Models">sample string 14</LastName>
<MiddleName xmlns="http://schemas.datacontract.org/2004/07/CMT.UP.Web.Models">sample string 15</MiddleName>
<OtherGender xmlns="http://schemas.datacontract.org/2004/07/CMT.UP.Web.Models">sample string 12</OtherGender>
<d2p1:EmailAddress>sample string 2</d2p1:EmailAddress>
<d2p1:IsConstantContactsEnabled>true</d2p1:IsConstantContactsEnabled>
<d2p1:IsExisting>true</d2p1:IsExisting>
<d2p1:IsSmsBetaClinic>true</d2p1:IsSmsBetaClinic>
<d2p1:PatientCode>sample string 5</d2p1:PatientCode>
<d2p1:PatientId>1</d2p1:PatientId>
<d2p1:PhoneNumber>sample string 4</d2p1:PhoneNumber>
<d2p1:PhoneNumberTypeId>1</d2p1:PhoneNumberTypeId>
<d2p1:PrimaryPhoneNumber>sample string 3</d2p1:PrimaryPhoneNumber>
<d2p1:ReceiveMarketingEmails>true</d2p1:ReceiveMarketingEmails>
<d2p1:ReceiveSms>true</d2p1:ReceiveSms>
</Parameter>
<AppContextId>f9e2f145-6a2f-4e83-8275-923a223529eb</AppContextId>
</AuthenticatedInputOfPatientInsertModelN1Ow66A0>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Response body formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.