POST api/Patient/New

Request Information

URI Parameters

None.

Body Parameters

PatientBasicInfo2
NameDescriptionTypeAdditional information
Name

Patient name

string

Required

Surname

Patient surname

string

Required

BirthDate

format dd.MM.yyyy - example 18.02.1991

string

None.

Gender

Patient gender code

Gender2

None.

NationalPersonalId

Patient national personal ID

string

None.

TelephoneNumber

Patient telephone number

string

None.

DeathDate

date

None.

IsUnknownPerson

boolean

None.

Address

Patient address

Address2

None.

Identifications

Patient identification list

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",
  "deathDate": "2025-05-02T02:39:49.4994517+02:00",
  "isUnknownPerson": true,
  "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>
  <DeathDate>2025-05-02T02:39:49.4994517+02:00</DeathDate>
  <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>
  <IsUnknownPerson>true</IsUnknownPerson>
  <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
NameDescriptionTypeAdditional 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>