PUT api/Patients/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

globally unique identifier

Required

Body Parameters

PatientEditViewModel
NameDescriptionTypeAdditional information
userInstanceId

globally unique identifier

Required

userId

globally unique identifier

Required

firstName

string

Required

Max length: 35

lastName

string

Required

Max length: 35

middleInitial

string

Max length: 1

email

string

Matching regular expression pattern: ^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$

Max length: 100

organizationId

globally unique identifier

Required

address

PatientAddress

None.

dateOfBirth

date

None.

sex

Sex

None.

socialSecurityNo

string

Max length: 11

medicalRecordNumber

string

Max length: 20

phone

string

Max length: 20

mobile

string

Max length: 20

estimatedIncome

decimal number

None.

familyMemberCnt

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "userInstanceId": "b9608afa-9f2d-4516-94af-bf183f03003b",
  "userId": "06ba0188-6526-4801-baf1-e4f3de003e1f",
  "firstName": "sample string 3",
  "lastName": "sample string 4",
  "middleInitial": "sample string 5",
  "email": "sample string 6",
  "organizationId": "5c47fc2e-7f1b-40a4-93f2-e55356970884",
  "address": {
    "countryCode": "sample string 1",
    "street1": "sample string 2",
    "street2": "sample string 3",
    "city": "sample string 4",
    "state": "sample string 5",
    "postalCode": "sample string 6"
  },
  "dateOfBirth": "2021-03-02T02:45:00.524293-08:00",
  "sex": 0,
  "socialSecurityNo": "sample string 9",
  "medicalRecordNumber": "sample string 10",
  "phone": "sample string 11",
  "mobile": "sample string 12",
  "estimatedIncome": 13.0,
  "familyMemberCnt": 14
}

application/xml, text/xml

Sample:
<PatientEditViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Portal.Api.Models">
  <address>
    <city>sample string 4</city>
    <countryCode>sample string 1</countryCode>
    <postalCode>sample string 6</postalCode>
    <state>sample string 5</state>
    <street1>sample string 2</street1>
    <street2>sample string 3</street2>
  </address>
  <dateOfBirth>2021-03-02T02:45:00.524293-08:00</dateOfBirth>
  <email>sample string 6</email>
  <estimatedIncome>13</estimatedIncome>
  <familyMemberCnt>14</familyMemberCnt>
  <firstName>sample string 3</firstName>
  <lastName>sample string 4</lastName>
  <medicalRecordNumber>sample string 10</medicalRecordNumber>
  <middleInitial>sample string 5</middleInitial>
  <mobile>sample string 12</mobile>
  <organizationId>5c47fc2e-7f1b-40a4-93f2-e55356970884</organizationId>
  <phone>sample string 11</phone>
  <sex>Male</sex>
  <socialSecurityNo>sample string 9</socialSecurityNo>
  <userId>06ba0188-6526-4801-baf1-e4f3de003e1f</userId>
  <userInstanceId>b9608afa-9f2d-4516-94af-bf183f03003b</userInstanceId>
</PatientEditViewModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PatientEditViewModel'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.