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
PatientPreferredLocationModelName | 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": "1899215f-9bbb-4faa-b887-14515d614fa6", "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": "52256686-cb86-4fea-8c42-bb83576ff2c9" }
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>52256686-cb86-4fea-8c42-bb83576ff2c9</CountryId> <CountryName>sample string 8</CountryName> <HasValidPreferredLocation>true</HasValidPreferredLocation> <LocationId>1899215f-9bbb-4faa-b887-14515d614fa6</LocationId> <LocationName>sample string 2</LocationName> <State>sample string 3</State> <Zip>sample string 7</Zip> </PatientPreferredLocationModel>