POST api/PatientRegistration

Registers a new patient in Eye Reach Patients.

Request Information

URI Parameters

None.

Body Parameters

Model used to register the patient.

PatientRegistrationModel
NameDescriptionTypeAdditional information
AccountNumber

Account number of the practice for which patient will be registered (Required).

string

None.

PatientId

(Read only) It will return the ID of the patient after the registration process.

globally unique identifier

None.

Username

User name of the patient for login into the portal (Required).

string

None.

Password

Password (Required).

string

None.

DateOfBirth

Date of birth of the patient (Required).

date

None.

Gender

Gender of the patient (Required). Possible values are Unspecified, Female, Male.

string

None.

SexId

Sex ID of the model in the portal.

integer

None.

Contact

Contact details of the patient (Required).

ContactModel

None.

TermsOfUseAccepted

Indicates if user has accepted the terms of use.

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "AccountNumber": "sample string 1",
  "PatientId": "b395c523-7d8c-4dc7-a12f-abb2cae96d31",
  "Username": "sample string 3",
  "Password": "sample string 4",
  "DateOfBirth": "2021-06-21T04:01:22.5279828-04:00",
  "Gender": "sample string 6",
  "SexId": 1,
  "Contact": {
    "FirstName": "sample string 1",
    "MiddleName": "sample string 2",
    "LastName": "sample string 3",
    "SuffixId": 4,
    "PrefixId": 5,
    "CompanyName": "sample string 6",
    "JobTitle": "sample string 7",
    "EmailAddresses": [
      {
        "Id": "c7547731-d00a-4cfb-8a19-ffa798d37e01",
        "Alias": "sample string 2",
        "Address": "sample string 3",
        "Default": true,
        "SortOrder": 5
      },
      {
        "Id": "c7547731-d00a-4cfb-8a19-ffa798d37e01",
        "Alias": "sample string 2",
        "Address": "sample string 3",
        "Default": true,
        "SortOrder": 5
      }
    ],
    "PhoneNumbers": [
      {
        "Id": "92fe8115-c643-4ed9-bf25-3384aac514b8",
        "Alias": "sample string 2",
        "Number": "sample string 3",
        "UseForVoice": true,
        "UseForSms": true,
        "SortOrder": 6
      },
      {
        "Id": "92fe8115-c643-4ed9-bf25-3384aac514b8",
        "Alias": "sample string 2",
        "Number": "sample string 3",
        "UseForVoice": true,
        "UseForSms": true,
        "SortOrder": 6
      }
    ],
    "PostalAddresses": [
      {
        "Id": "e214142a-6a3b-4646-b958-ab832729b0f0",
        "Alias": "sample string 2",
        "Address1": "sample string 3",
        "Address2": "sample string 4",
        "City": "sample string 5",
        "State": "sample string 6",
        "CountryId": "b50449f0-0b73-4dba-ae46-a60b65105b25",
        "CountryCode": "sample string 7",
        "CountryName": "sample string 8",
        "Zip": "sample string 9",
        "Default": true,
        "Latitude": 1.0,
        "Longitude": 1.0
      },
      {
        "Id": "e214142a-6a3b-4646-b958-ab832729b0f0",
        "Alias": "sample string 2",
        "Address1": "sample string 3",
        "Address2": "sample string 4",
        "City": "sample string 5",
        "State": "sample string 6",
        "CountryId": "b50449f0-0b73-4dba-ae46-a60b65105b25",
        "CountryCode": "sample string 7",
        "CountryName": "sample string 8",
        "Zip": "sample string 9",
        "Default": true,
        "Latitude": 1.0,
        "Longitude": 1.0
      }
    ],
    "Notes": "sample string 8"
  },
  "TermsOfUseAccepted": true
}

application/xml, text/xml

Sample:
<PatientRegistrationModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Mobile.Api.Models.PatientRegistration">
  <AccountNumber>sample string 1</AccountNumber>
  <Contact xmlns:d2p1="http://schemas.datacontract.org/2004/07/GlobalPortal.Mobile.Api.Models.Contacts">
    <d2p1:CompanyName>sample string 6</d2p1:CompanyName>
    <d2p1:EmailAddresses>
      <d2p1:EmailAddressModel>
        <d2p1:Address>sample string 3</d2p1:Address>
        <d2p1:Alias>sample string 2</d2p1:Alias>
        <d2p1:Default>true</d2p1:Default>
        <d2p1:Id>c7547731-d00a-4cfb-8a19-ffa798d37e01</d2p1:Id>
        <d2p1:SortOrder>5</d2p1:SortOrder>
      </d2p1:EmailAddressModel>
      <d2p1:EmailAddressModel>
        <d2p1:Address>sample string 3</d2p1:Address>
        <d2p1:Alias>sample string 2</d2p1:Alias>
        <d2p1:Default>true</d2p1:Default>
        <d2p1:Id>c7547731-d00a-4cfb-8a19-ffa798d37e01</d2p1:Id>
        <d2p1:SortOrder>5</d2p1:SortOrder>
      </d2p1:EmailAddressModel>
    </d2p1:EmailAddresses>
    <d2p1:FirstName>sample string 1</d2p1:FirstName>
    <d2p1:JobTitle>sample string 7</d2p1:JobTitle>
    <d2p1:LastName>sample string 3</d2p1:LastName>
    <d2p1:MiddleName>sample string 2</d2p1:MiddleName>
    <d2p1:Notes>sample string 8</d2p1:Notes>
    <d2p1:PhoneNumbers>
      <d2p1:PhoneNumberModel>
        <d2p1:Alias>sample string 2</d2p1:Alias>
        <d2p1:Id>92fe8115-c643-4ed9-bf25-3384aac514b8</d2p1:Id>
        <d2p1:Number>sample string 3</d2p1:Number>
        <d2p1:SortOrder>6</d2p1:SortOrder>
        <d2p1:UseForSms>true</d2p1:UseForSms>
        <d2p1:UseForVoice>true</d2p1:UseForVoice>
      </d2p1:PhoneNumberModel>
      <d2p1:PhoneNumberModel>
        <d2p1:Alias>sample string 2</d2p1:Alias>
        <d2p1:Id>92fe8115-c643-4ed9-bf25-3384aac514b8</d2p1:Id>
        <d2p1:Number>sample string 3</d2p1:Number>
        <d2p1:SortOrder>6</d2p1:SortOrder>
        <d2p1:UseForSms>true</d2p1:UseForSms>
        <d2p1:UseForVoice>true</d2p1:UseForVoice>
      </d2p1:PhoneNumberModel>
    </d2p1:PhoneNumbers>
    <d2p1:PostalAddresses>
      <d2p1:PostalAddressModel>
        <d2p1:Address1>sample string 3</d2p1:Address1>
        <d2p1:Address2>sample string 4</d2p1:Address2>
        <d2p1:Alias>sample string 2</d2p1:Alias>
        <d2p1:City>sample string 5</d2p1:City>
        <d2p1:CountryCode>sample string 7</d2p1:CountryCode>
        <d2p1:CountryId>b50449f0-0b73-4dba-ae46-a60b65105b25</d2p1:CountryId>
        <d2p1:CountryName>sample string 8</d2p1:CountryName>
        <d2p1:Default>true</d2p1:Default>
        <d2p1:Id>e214142a-6a3b-4646-b958-ab832729b0f0</d2p1:Id>
        <d2p1:Latitude>1</d2p1:Latitude>
        <d2p1:Longitude>1</d2p1:Longitude>
        <d2p1:State>sample string 6</d2p1:State>
        <d2p1:Zip>sample string 9</d2p1:Zip>
      </d2p1:PostalAddressModel>
      <d2p1:PostalAddressModel>
        <d2p1:Address1>sample string 3</d2p1:Address1>
        <d2p1:Address2>sample string 4</d2p1:Address2>
        <d2p1:Alias>sample string 2</d2p1:Alias>
        <d2p1:City>sample string 5</d2p1:City>
        <d2p1:CountryCode>sample string 7</d2p1:CountryCode>
        <d2p1:CountryId>b50449f0-0b73-4dba-ae46-a60b65105b25</d2p1:CountryId>
        <d2p1:CountryName>sample string 8</d2p1:CountryName>
        <d2p1:Default>true</d2p1:Default>
        <d2p1:Id>e214142a-6a3b-4646-b958-ab832729b0f0</d2p1:Id>
        <d2p1:Latitude>1</d2p1:Latitude>
        <d2p1:Longitude>1</d2p1:Longitude>
        <d2p1:State>sample string 6</d2p1:State>
        <d2p1:Zip>sample string 9</d2p1:Zip>
      </d2p1:PostalAddressModel>
    </d2p1:PostalAddresses>
    <d2p1:PrefixId>5</d2p1:PrefixId>
    <d2p1:SuffixId>4</d2p1:SuffixId>
  </Contact>
  <DateOfBirth>2021-06-21T04:01:22.5279828-04:00</DateOfBirth>
  <Gender>sample string 6</Gender>
  <Password>sample string 4</Password>
  <PatientId>b395c523-7d8c-4dc7-a12f-abb2cae96d31</PatientId>
  <SexId>1</SexId>
  <TermsOfUseAccepted>true</TermsOfUseAccepted>
  <Username>sample string 3</Username>
</PatientRegistrationModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

PatientRegistrationModel
NameDescriptionTypeAdditional information
AccountNumber

Account number of the practice for which patient will be registered (Required).

string

None.

PatientId

(Read only) It will return the ID of the patient after the registration process.

globally unique identifier

None.

Username

User name of the patient for login into the portal (Required).

string

None.

Password

Password (Required).

string

None.

DateOfBirth

Date of birth of the patient (Required).

date

None.

Gender

Gender of the patient (Required). Possible values are Unspecified, Female, Male.

string

None.

SexId

Sex ID of the model in the portal.

integer

None.

Contact

Contact details of the patient (Required).

ContactModel

None.

TermsOfUseAccepted

Indicates if user has accepted the terms of use.

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "AccountNumber": "sample string 1",
  "PatientId": "f1ff727e-78e6-4aeb-98e1-04b963288799",
  "Username": "sample string 3",
  "Password": "sample string 4",
  "DateOfBirth": "2021-06-21T04:01:22.5748558-04:00",
  "Gender": "sample string 6",
  "SexId": 1,
  "Contact": {
    "FirstName": "sample string 1",
    "MiddleName": "sample string 2",
    "LastName": "sample string 3",
    "SuffixId": 4,
    "PrefixId": 5,
    "CompanyName": "sample string 6",
    "JobTitle": "sample string 7",
    "EmailAddresses": [
      {
        "Id": "f564edad-910f-46f6-9458-17ad486bc509",
        "Alias": "sample string 2",
        "Address": "sample string 3",
        "Default": true,
        "SortOrder": 5
      },
      {
        "Id": "f564edad-910f-46f6-9458-17ad486bc509",
        "Alias": "sample string 2",
        "Address": "sample string 3",
        "Default": true,
        "SortOrder": 5
      }
    ],
    "PhoneNumbers": [
      {
        "Id": "d578d58e-c28a-4427-94cb-d96d745f157c",
        "Alias": "sample string 2",
        "Number": "sample string 3",
        "UseForVoice": true,
        "UseForSms": true,
        "SortOrder": 6
      },
      {
        "Id": "d578d58e-c28a-4427-94cb-d96d745f157c",
        "Alias": "sample string 2",
        "Number": "sample string 3",
        "UseForVoice": true,
        "UseForSms": true,
        "SortOrder": 6
      }
    ],
    "PostalAddresses": [
      {
        "Id": "bd13e1ee-2d8d-4388-a188-c8c3233ec5f8",
        "Alias": "sample string 2",
        "Address1": "sample string 3",
        "Address2": "sample string 4",
        "City": "sample string 5",
        "State": "sample string 6",
        "CountryId": "ac312e41-5c23-42ba-ae19-bd5bbe0d4616",
        "CountryCode": "sample string 7",
        "CountryName": "sample string 8",
        "Zip": "sample string 9",
        "Default": true,
        "Latitude": 1.0,
        "Longitude": 1.0
      },
      {
        "Id": "bd13e1ee-2d8d-4388-a188-c8c3233ec5f8",
        "Alias": "sample string 2",
        "Address1": "sample string 3",
        "Address2": "sample string 4",
        "City": "sample string 5",
        "State": "sample string 6",
        "CountryId": "ac312e41-5c23-42ba-ae19-bd5bbe0d4616",
        "CountryCode": "sample string 7",
        "CountryName": "sample string 8",
        "Zip": "sample string 9",
        "Default": true,
        "Latitude": 1.0,
        "Longitude": 1.0
      }
    ],
    "Notes": "sample string 8"
  },
  "TermsOfUseAccepted": true
}

application/xml, text/xml

Sample:
<PatientRegistrationModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Mobile.Api.Models.PatientRegistration">
  <AccountNumber>sample string 1</AccountNumber>
  <Contact xmlns:d2p1="http://schemas.datacontract.org/2004/07/GlobalPortal.Mobile.Api.Models.Contacts">
    <d2p1:CompanyName>sample string 6</d2p1:CompanyName>
    <d2p1:EmailAddresses>
      <d2p1:EmailAddressModel>
        <d2p1:Address>sample string 3</d2p1:Address>
        <d2p1:Alias>sample string 2</d2p1:Alias>
        <d2p1:Default>true</d2p1:Default>
        <d2p1:Id>f564edad-910f-46f6-9458-17ad486bc509</d2p1:Id>
        <d2p1:SortOrder>5</d2p1:SortOrder>
      </d2p1:EmailAddressModel>
      <d2p1:EmailAddressModel>
        <d2p1:Address>sample string 3</d2p1:Address>
        <d2p1:Alias>sample string 2</d2p1:Alias>
        <d2p1:Default>true</d2p1:Default>
        <d2p1:Id>f564edad-910f-46f6-9458-17ad486bc509</d2p1:Id>
        <d2p1:SortOrder>5</d2p1:SortOrder>
      </d2p1:EmailAddressModel>
    </d2p1:EmailAddresses>
    <d2p1:FirstName>sample string 1</d2p1:FirstName>
    <d2p1:JobTitle>sample string 7</d2p1:JobTitle>
    <d2p1:LastName>sample string 3</d2p1:LastName>
    <d2p1:MiddleName>sample string 2</d2p1:MiddleName>
    <d2p1:Notes>sample string 8</d2p1:Notes>
    <d2p1:PhoneNumbers>
      <d2p1:PhoneNumberModel>
        <d2p1:Alias>sample string 2</d2p1:Alias>
        <d2p1:Id>d578d58e-c28a-4427-94cb-d96d745f157c</d2p1:Id>
        <d2p1:Number>sample string 3</d2p1:Number>
        <d2p1:SortOrder>6</d2p1:SortOrder>
        <d2p1:UseForSms>true</d2p1:UseForSms>
        <d2p1:UseForVoice>true</d2p1:UseForVoice>
      </d2p1:PhoneNumberModel>
      <d2p1:PhoneNumberModel>
        <d2p1:Alias>sample string 2</d2p1:Alias>
        <d2p1:Id>d578d58e-c28a-4427-94cb-d96d745f157c</d2p1:Id>
        <d2p1:Number>sample string 3</d2p1:Number>
        <d2p1:SortOrder>6</d2p1:SortOrder>
        <d2p1:UseForSms>true</d2p1:UseForSms>
        <d2p1:UseForVoice>true</d2p1:UseForVoice>
      </d2p1:PhoneNumberModel>
    </d2p1:PhoneNumbers>
    <d2p1:PostalAddresses>
      <d2p1:PostalAddressModel>
        <d2p1:Address1>sample string 3</d2p1:Address1>
        <d2p1:Address2>sample string 4</d2p1:Address2>
        <d2p1:Alias>sample string 2</d2p1:Alias>
        <d2p1:City>sample string 5</d2p1:City>
        <d2p1:CountryCode>sample string 7</d2p1:CountryCode>
        <d2p1:CountryId>ac312e41-5c23-42ba-ae19-bd5bbe0d4616</d2p1:CountryId>
        <d2p1:CountryName>sample string 8</d2p1:CountryName>
        <d2p1:Default>true</d2p1:Default>
        <d2p1:Id>bd13e1ee-2d8d-4388-a188-c8c3233ec5f8</d2p1:Id>
        <d2p1:Latitude>1</d2p1:Latitude>
        <d2p1:Longitude>1</d2p1:Longitude>
        <d2p1:State>sample string 6</d2p1:State>
        <d2p1:Zip>sample string 9</d2p1:Zip>
      </d2p1:PostalAddressModel>
      <d2p1:PostalAddressModel>
        <d2p1:Address1>sample string 3</d2p1:Address1>
        <d2p1:Address2>sample string 4</d2p1:Address2>
        <d2p1:Alias>sample string 2</d2p1:Alias>
        <d2p1:City>sample string 5</d2p1:City>
        <d2p1:CountryCode>sample string 7</d2p1:CountryCode>
        <d2p1:CountryId>ac312e41-5c23-42ba-ae19-bd5bbe0d4616</d2p1:CountryId>
        <d2p1:CountryName>sample string 8</d2p1:CountryName>
        <d2p1:Default>true</d2p1:Default>
        <d2p1:Id>bd13e1ee-2d8d-4388-a188-c8c3233ec5f8</d2p1:Id>
        <d2p1:Latitude>1</d2p1:Latitude>
        <d2p1:Longitude>1</d2p1:Longitude>
        <d2p1:State>sample string 6</d2p1:State>
        <d2p1:Zip>sample string 9</d2p1:Zip>
      </d2p1:PostalAddressModel>
    </d2p1:PostalAddresses>
    <d2p1:PrefixId>5</d2p1:PrefixId>
    <d2p1:SuffixId>4</d2p1:SuffixId>
  </Contact>
  <DateOfBirth>2021-06-21T04:01:22.5748558-04:00</DateOfBirth>
  <Gender>sample string 6</Gender>
  <Password>sample string 4</Password>
  <PatientId>f1ff727e-78e6-4aeb-98e1-04b963288799</PatientId>
  <SexId>1</SexId>
  <TermsOfUseAccepted>true</TermsOfUseAccepted>
  <Username>sample string 3</Username>
</PatientRegistrationModel>