POST api/AppointmentRequests

Creates a new appointment requests.

Request Information

URI Parameters

None.

Body Parameters

Model used to retrieve or set information about an appointment.

AppointmentRequestModel
NameDescriptionTypeAdditional information
AccountNumber

URL name of the practice for which the appointment is requested (Required).

string

None.

AppointmentRequestId

Unique ID of appointment request.

globally unique identifier

None.

AppointmentId

Unique ID of appointment.

globally unique identifier

None.

PatientId

Unique ID of patient.

globally unique identifier

None.

LocationId

Unique ID of location (Required).

globally unique identifier

None.

NewPatient

Indicates whether new patient or not.

boolean

None.

HasEyeExamAtThisLocation

Indication if examination is at the given location.

boolean

None.

VisionInsuranceCarrier

Vision insurance carrier

string

None.

VisionGroupNumber

Vision group number.

string

None.

VisionPolicyNumber

Vision policy number.

string

None.

MedicalInsuranceCarrier

Medical insurance carrier.

string

None.

MedicalGroupNumber

Medical group number.

string

None.

MedicalPolicyNumber

Medical policy number.

string

None.

DoctorId

Unique ID of doctor.

globally unique identifier

None.

Comments

Comments for the appointment request.

string

None.

RequestedDate

Requested Date of the appointment request.

date

None.

PatientEmailAddress

Email address of patient.

string

None.

PhoneNumberIsMobile

Indicates if the phone number can be used to receive text messages.

boolean

None.

PhoneNumber

Phone number of the patient.

string

None.

CountryId

Unique ID of country.

globally unique identifier

None.

AppointmentRequestReasonId

Unique ID of appointment request reason (Required).

globally unique identifier

None.

AnotherPerson

Indicates if the appointment request is being created for another person that is not a relative of the current patient.

boolean

None.

FirstName

First name of the person (Required).

string

None.

MiddleName

Middle name of the person.

string

None.

LastName

Last name of the person (Required).

string

None.

DateOfBirth

Date of birth of the person (Required).

date

None.

PatientSexId

Patient's sex ID of the model in the portal.

integer

None.

Username

If the person requesting the appointment wants to create an account in the portal, send the username in this property.

string

None.

Password

If the person requesting the appointment wants to create an account in the portal, send the passwod in this property.

string

None.

TermsOfUseAccepted

Indicates if user has accepted the terms of use.

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "AccountNumber": "sample string 1",
  "AppointmentRequestId": "549e3576-d8dd-43ad-8ba2-3085b7ffd187",
  "AppointmentId": "bf249d51-e4a1-4d3c-9b90-0c1f9c0aabdc",
  "PatientId": "ee3f2316-5e41-45db-8d31-1129f89303c4",
  "LocationId": "2b5e77b1-9c1d-41e4-bdf7-e08965ffee2f",
  "NewPatient": true,
  "HasEyeExamAtThisLocation": true,
  "VisionInsuranceCarrier": "sample string 6",
  "VisionGroupNumber": "sample string 7",
  "VisionPolicyNumber": "sample string 8",
  "MedicalInsuranceCarrier": "sample string 9",
  "MedicalGroupNumber": "sample string 10",
  "MedicalPolicyNumber": "sample string 11",
  "DoctorId": "2decf70f-a4cd-4d6c-bd7f-9e7f2ff0f365",
  "Comments": "sample string 12",
  "RequestedDate": "2021-06-21T04:14:31.232879-04:00",
  "PatientEmailAddress": "sample string 14",
  "PhoneNumberIsMobile": true,
  "PhoneNumber": "sample string 16",
  "CountryId": "5c45f449-6051-482e-9a6f-ed32281536ec",
  "AppointmentRequestReasonId": "1dfad1f6-7d9e-4bfe-ad70-e1bbf7371213",
  "AnotherPerson": true,
  "FirstName": "sample string 19",
  "MiddleName": "sample string 20",
  "LastName": "sample string 21",
  "DateOfBirth": "2021-06-21T04:14:31.232879-04:00",
  "PatientSexId": 1,
  "Username": "sample string 23",
  "Password": "sample string 24",
  "TermsOfUseAccepted": true
}

application/xml, text/xml

Sample:
<AppointmentRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Mobile.Api.Models.AppointmentRequests">
  <AccountNumber>sample string 1</AccountNumber>
  <AnotherPerson>true</AnotherPerson>
  <AppointmentId>bf249d51-e4a1-4d3c-9b90-0c1f9c0aabdc</AppointmentId>
  <AppointmentRequestId>549e3576-d8dd-43ad-8ba2-3085b7ffd187</AppointmentRequestId>
  <AppointmentRequestReasonId>1dfad1f6-7d9e-4bfe-ad70-e1bbf7371213</AppointmentRequestReasonId>
  <Comments>sample string 12</Comments>
  <CountryId>5c45f449-6051-482e-9a6f-ed32281536ec</CountryId>
  <DateOfBirth>2021-06-21T04:14:31.232879-04:00</DateOfBirth>
  <DoctorId>2decf70f-a4cd-4d6c-bd7f-9e7f2ff0f365</DoctorId>
  <FirstName>sample string 19</FirstName>
  <HasEyeExamAtThisLocation>true</HasEyeExamAtThisLocation>
  <LastName>sample string 21</LastName>
  <LocationId>2b5e77b1-9c1d-41e4-bdf7-e08965ffee2f</LocationId>
  <MedicalGroupNumber>sample string 10</MedicalGroupNumber>
  <MedicalInsuranceCarrier>sample string 9</MedicalInsuranceCarrier>
  <MedicalPolicyNumber>sample string 11</MedicalPolicyNumber>
  <MiddleName>sample string 20</MiddleName>
  <NewPatient>true</NewPatient>
  <Password>sample string 24</Password>
  <PatientEmailAddress>sample string 14</PatientEmailAddress>
  <PatientId>ee3f2316-5e41-45db-8d31-1129f89303c4</PatientId>
  <PatientSexId>1</PatientSexId>
  <PhoneNumber>sample string 16</PhoneNumber>
  <PhoneNumberIsMobile>true</PhoneNumberIsMobile>
  <RequestedDate>2021-06-21T04:14:31.232879-04:00</RequestedDate>
  <TermsOfUseAccepted>true</TermsOfUseAccepted>
  <Username>sample string 23</Username>
  <VisionGroupNumber>sample string 7</VisionGroupNumber>
  <VisionInsuranceCarrier>sample string 6</VisionInsuranceCarrier>
  <VisionPolicyNumber>sample string 8</VisionPolicyNumber>
</AppointmentRequestModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AppointmentRequestModel
NameDescriptionTypeAdditional information
AccountNumber

URL name of the practice for which the appointment is requested (Required).

string

None.

AppointmentRequestId

Unique ID of appointment request.

globally unique identifier

None.

AppointmentId

Unique ID of appointment.

globally unique identifier

None.

PatientId

Unique ID of patient.

globally unique identifier

None.

LocationId

Unique ID of location (Required).

globally unique identifier

None.

NewPatient

Indicates whether new patient or not.

boolean

None.

HasEyeExamAtThisLocation

Indication if examination is at the given location.

boolean

None.

VisionInsuranceCarrier

Vision insurance carrier

string

None.

VisionGroupNumber

Vision group number.

string

None.

VisionPolicyNumber

Vision policy number.

string

None.

MedicalInsuranceCarrier

Medical insurance carrier.

string

None.

MedicalGroupNumber

Medical group number.

string

None.

MedicalPolicyNumber

Medical policy number.

string

None.

DoctorId

Unique ID of doctor.

globally unique identifier

None.

Comments

Comments for the appointment request.

string

None.

RequestedDate

Requested Date of the appointment request.

date

None.

PatientEmailAddress

Email address of patient.

string

None.

PhoneNumberIsMobile

Indicates if the phone number can be used to receive text messages.

boolean

None.

PhoneNumber

Phone number of the patient.

string

None.

CountryId

Unique ID of country.

globally unique identifier

None.

AppointmentRequestReasonId

Unique ID of appointment request reason (Required).

globally unique identifier

None.

AnotherPerson

Indicates if the appointment request is being created for another person that is not a relative of the current patient.

boolean

None.

FirstName

First name of the person (Required).

string

None.

MiddleName

Middle name of the person.

string

None.

LastName

Last name of the person (Required).

string

None.

DateOfBirth

Date of birth of the person (Required).

date

None.

PatientSexId

Patient's sex ID of the model in the portal.

integer

None.

Username

If the person requesting the appointment wants to create an account in the portal, send the username in this property.

string

None.

Password

If the person requesting the appointment wants to create an account in the portal, send the passwod in this property.

string

None.

TermsOfUseAccepted

Indicates if user has accepted the terms of use.

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "AccountNumber": "sample string 1",
  "AppointmentRequestId": "d5377834-377f-4d8f-b51c-84a0e5343009",
  "AppointmentId": "1f765687-40f0-49a0-b9da-e7c6b0bf0201",
  "PatientId": "56bad751-7219-4253-bcfe-a7130314ebf7",
  "LocationId": "d2729ae2-d476-4763-be7f-e61b379b374b",
  "NewPatient": true,
  "HasEyeExamAtThisLocation": true,
  "VisionInsuranceCarrier": "sample string 6",
  "VisionGroupNumber": "sample string 7",
  "VisionPolicyNumber": "sample string 8",
  "MedicalInsuranceCarrier": "sample string 9",
  "MedicalGroupNumber": "sample string 10",
  "MedicalPolicyNumber": "sample string 11",
  "DoctorId": "b93a9eca-b35a-4c72-a5bc-7758a3949f75",
  "Comments": "sample string 12",
  "RequestedDate": "2021-06-21T04:14:31.2641306-04:00",
  "PatientEmailAddress": "sample string 14",
  "PhoneNumberIsMobile": true,
  "PhoneNumber": "sample string 16",
  "CountryId": "41abc134-a9b8-45ca-ba47-6f62a95aa194",
  "AppointmentRequestReasonId": "991a973d-2407-46d6-a61f-d713608d1897",
  "AnotherPerson": true,
  "FirstName": "sample string 19",
  "MiddleName": "sample string 20",
  "LastName": "sample string 21",
  "DateOfBirth": "2021-06-21T04:14:31.2641306-04:00",
  "PatientSexId": 1,
  "Username": "sample string 23",
  "Password": "sample string 24",
  "TermsOfUseAccepted": true
}

application/xml, text/xml

Sample:
<AppointmentRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Mobile.Api.Models.AppointmentRequests">
  <AccountNumber>sample string 1</AccountNumber>
  <AnotherPerson>true</AnotherPerson>
  <AppointmentId>1f765687-40f0-49a0-b9da-e7c6b0bf0201</AppointmentId>
  <AppointmentRequestId>d5377834-377f-4d8f-b51c-84a0e5343009</AppointmentRequestId>
  <AppointmentRequestReasonId>991a973d-2407-46d6-a61f-d713608d1897</AppointmentRequestReasonId>
  <Comments>sample string 12</Comments>
  <CountryId>41abc134-a9b8-45ca-ba47-6f62a95aa194</CountryId>
  <DateOfBirth>2021-06-21T04:14:31.2641306-04:00</DateOfBirth>
  <DoctorId>b93a9eca-b35a-4c72-a5bc-7758a3949f75</DoctorId>
  <FirstName>sample string 19</FirstName>
  <HasEyeExamAtThisLocation>true</HasEyeExamAtThisLocation>
  <LastName>sample string 21</LastName>
  <LocationId>d2729ae2-d476-4763-be7f-e61b379b374b</LocationId>
  <MedicalGroupNumber>sample string 10</MedicalGroupNumber>
  <MedicalInsuranceCarrier>sample string 9</MedicalInsuranceCarrier>
  <MedicalPolicyNumber>sample string 11</MedicalPolicyNumber>
  <MiddleName>sample string 20</MiddleName>
  <NewPatient>true</NewPatient>
  <Password>sample string 24</Password>
  <PatientEmailAddress>sample string 14</PatientEmailAddress>
  <PatientId>56bad751-7219-4253-bcfe-a7130314ebf7</PatientId>
  <PatientSexId>1</PatientSexId>
  <PhoneNumber>sample string 16</PhoneNumber>
  <PhoneNumberIsMobile>true</PhoneNumberIsMobile>
  <RequestedDate>2021-06-21T04:14:31.2641306-04:00</RequestedDate>
  <TermsOfUseAccepted>true</TermsOfUseAccepted>
  <Username>sample string 23</Username>
  <VisionGroupNumber>sample string 7</VisionGroupNumber>
  <VisionInsuranceCarrier>sample string 6</VisionInsuranceCarrier>
  <VisionPolicyNumber>sample string 8</VisionPolicyNumber>
</AppointmentRequestModel>