POST api/Patient/New
Request Information
URI Parameters
None.
Body Parameters
PatientBasicInfo2| Name | Description | Type | Additional information |
|---|---|---|---|
| Name | string |
Required |
|
| Surname | string |
Required |
|
| BirthDate | string |
None. |
|
| Gender | Gender2 |
None. |
|
| NationalPersonalId | string |
None. |
|
| TelephoneNumber | string |
None. |
|
| Address | Address2 |
None. |
|
| Identifications | Collection of PatientIdentification |
None. |
Request Formats
application/json, text/json
Sample:
{
"name": "sample string 1",
"surname": "sample string 2",
"birthDate": "sample string 3",
"gender": 1,
"nationalPersonalId": "sample string 4",
"telephoneNumber": "sample string 5",
"address": {
"street": "sample string 1",
"zipCode": "sample string 2",
"city": "sample string 3",
"countryCode": "sample string 4"
},
"identifications": [
{
"type": "sample string 1",
"value": "sample string 2",
"validUntil": "sample string 3"
},
{
"type": "sample string 1",
"value": "sample string 2",
"validUntil": "sample string 3"
}
]
}
application/xml, text/xml
Sample:
<PatientBasicInfo2 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eMedit.eDoktor.WebApi.Models.Api.Patient">
<Address>
<City>sample string 3</City>
<CountryCode>sample string 4</CountryCode>
<Street>sample string 1</Street>
<ZipCode>sample string 2</ZipCode>
</Address>
<BirthDate>sample string 3</BirthDate>
<Gender>M</Gender>
<Identifications>
<PatientIdentification>
<Type>sample string 1</Type>
<ValidUntil>sample string 3</ValidUntil>
<Value>sample string 2</Value>
</PatientIdentification>
<PatientIdentification>
<Type>sample string 1</Type>
<ValidUntil>sample string 3</ValidUntil>
<Value>sample string 2</Value>
</PatientIdentification>
</Identifications>
<Name>sample string 1</Name>
<NationalPersonalId>sample string 4</NationalPersonalId>
<Surname>sample string 2</Surname>
<TelephoneNumber>sample string 5</TelephoneNumber>
</PatientBasicInfo2>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
NewPatientResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| PatientId | integer |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"patientId": 1,
"message": "sample string 1"
}
application/xml, text/xml
Sample:
<NewPatientResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eMedit.eDoktor.WebApi.Models.Api.Patient"> <Message>sample string 1</Message> <PatientId>1</PatientId> </NewPatientResponse>