GET api/PatientPreferredLocation?patientId={patientId}
Returns the preferred location of the patient
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| patientId |
Unique ID of patient |
globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
PatientPreferredLocationModel| Name | Description | Type | Additional information |
|---|---|---|---|
| HasValidPreferredLocation |
Indicates if patient has preferred location or not |
boolean |
None. |
| LocationId |
Unique ID of location |
globally unique identifier |
None. |
| LocationName |
Name of the location |
string |
None. |
| State |
State of location |
string |
None. |
| Address1 |
Address line 1 |
string |
None. |
| Address2 |
Address line 2 |
string |
None. |
| City |
City |
string |
None. |
| Zip |
Zip |
string |
None. |
| CountryName |
Name of the country |
string |
None. |
| CountryId |
Unique ID of country |
globally unique identifier |
None. |
Response Formats
application/json, text/json
Sample:
{
"HasValidPreferredLocation": true,
"LocationId": "9c1a3d03-393a-46d8-9707-bc65d2b74ace",
"LocationName": "sample string 2",
"State": "sample string 3",
"Address1": "sample string 4",
"Address2": "sample string 5",
"City": "sample string 6",
"Zip": "sample string 7",
"CountryName": "sample string 8",
"CountryId": "480883df-91f5-4e7b-a3bf-d383f5a38e30"
}
application/xml, text/xml
Sample:
<PatientPreferredLocationModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Mobile.Api.Models.AppointmentRequests"> <Address1>sample string 4</Address1> <Address2>sample string 5</Address2> <City>sample string 6</City> <CountryId>480883df-91f5-4e7b-a3bf-d383f5a38e30</CountryId> <CountryName>sample string 8</CountryName> <HasValidPreferredLocation>true</HasValidPreferredLocation> <LocationId>9c1a3d03-393a-46d8-9707-bc65d2b74ace</LocationId> <LocationName>sample string 2</LocationName> <State>sample string 3</State> <Zip>sample string 7</Zip> </PatientPreferredLocationModel>