POST api/LabAvailabilities
Request Information
URI Parameters
None.
Body Parameters
LabAvailabilities| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| LabId | integer |
None. |
|
| TimeZone | time interval |
None. |
|
| isAvailabilityForPatient | string |
None. |
|
| isWorkingDaysAddable | boolean |
None. |
|
| WorkingDays | Collection of WorkingDay |
None. |
|
| isSundayAvailable | boolean |
None. |
|
| WeekendDayes | Collection of WeekendDay |
None. |
|
| isEmergencyAvailable | boolean |
None. |
|
| Emergency | Collection of EmergencyAvailable |
None. |
|
| isReportsAvailable | boolean |
None. |
|
| isUpdateReports | boolean |
None. |
|
| Reports | Collection of Labreports |
None. |
Request Formats
application/json, text/json
Sample:
{
"ID": 1,
"LabId": 1,
"TimeZone": "00:00:00.1234567",
"isAvailabilityForPatient": "sample string 2",
"isWorkingDaysAddable": true,
"WorkingDays": [
{
"MondayFromTime": "00:00:00.1234567",
"MondayToTime": "00:00:00.1234567",
"TuesdayFromTime": "00:00:00.1234567",
"TuesdayToTime": "00:00:00.1234567",
"WEdFromTime": "00:00:00.1234567",
"WedToTime": "00:00:00.1234567",
"ThuFromTime": "00:00:00.1234567",
"ThuToTime": "00:00:00.1234567",
"FrIDayFromTime": "00:00:00.1234567",
"FrIDayToTime": "00:00:00.1234567",
"SatFromTime": "00:00:00.1234567",
"SatToTime": "00:00:00.1234567"
},
{
"MondayFromTime": "00:00:00.1234567",
"MondayToTime": "00:00:00.1234567",
"TuesdayFromTime": "00:00:00.1234567",
"TuesdayToTime": "00:00:00.1234567",
"WEdFromTime": "00:00:00.1234567",
"WedToTime": "00:00:00.1234567",
"ThuFromTime": "00:00:00.1234567",
"ThuToTime": "00:00:00.1234567",
"FrIDayFromTime": "00:00:00.1234567",
"FrIDayToTime": "00:00:00.1234567",
"SatFromTime": "00:00:00.1234567",
"SatToTime": "00:00:00.1234567"
}
],
"isSundayAvailable": true,
"WeekendDayes": [
{
"SundayFromTime": "00:00:00.1234567",
"SundayToTime": "00:00:00.1234567"
},
{
"SundayFromTime": "00:00:00.1234567",
"SundayToTime": "00:00:00.1234567"
}
],
"isEmergencyAvailable": true,
"Emergency": [
{
"AvailableDayNight": "sample string 1",
"fromTime": "00:00:00.1234567",
"toTime": "00:00:00.1234567"
},
{
"AvailableDayNight": "sample string 1",
"fromTime": "00:00:00.1234567",
"toTime": "00:00:00.1234567"
}
],
"isReportsAvailable": true,
"isUpdateReports": true,
"Reports": [
{
"ReportId": 1,
"ReportLabId": 1,
"EmailReport": true,
"SMSReport": true,
"PhysicalCopy": true,
"InApplication": true
},
{
"ReportId": 1,
"ReportLabId": 1,
"EmailReport": true,
"SMSReport": true,
"PhysicalCopy": true,
"InApplication": true
}
]
}
application/xml, text/xml
Sample:
<LabAvailabilities xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models.CustomClass">
<Emergency>
<EmergencyAvailable>
<AvailableDayNight>sample string 1</AvailableDayNight>
<fromTime>PT0.1234567S</fromTime>
<toTime>PT0.1234567S</toTime>
</EmergencyAvailable>
<EmergencyAvailable>
<AvailableDayNight>sample string 1</AvailableDayNight>
<fromTime>PT0.1234567S</fromTime>
<toTime>PT0.1234567S</toTime>
</EmergencyAvailable>
</Emergency>
<ID>1</ID>
<LabId>1</LabId>
<Reports>
<Labreports>
<EmailReport>true</EmailReport>
<InApplication>true</InApplication>
<PhysicalCopy>true</PhysicalCopy>
<ReportId>1</ReportId>
<ReportLabId>1</ReportLabId>
<SMSReport>true</SMSReport>
</Labreports>
<Labreports>
<EmailReport>true</EmailReport>
<InApplication>true</InApplication>
<PhysicalCopy>true</PhysicalCopy>
<ReportId>1</ReportId>
<ReportLabId>1</ReportLabId>
<SMSReport>true</SMSReport>
</Labreports>
</Reports>
<TimeZone>PT0.1234567S</TimeZone>
<WeekendDayes>
<WeekendDay>
<SundayFromTime>PT0.1234567S</SundayFromTime>
<SundayToTime>PT0.1234567S</SundayToTime>
</WeekendDay>
<WeekendDay>
<SundayFromTime>PT0.1234567S</SundayFromTime>
<SundayToTime>PT0.1234567S</SundayToTime>
</WeekendDay>
</WeekendDayes>
<WorkingDays>
<WorkingDay>
<FrIDayFromTime>PT0.1234567S</FrIDayFromTime>
<FrIDayToTime>PT0.1234567S</FrIDayToTime>
<MondayFromTime>PT0.1234567S</MondayFromTime>
<MondayToTime>PT0.1234567S</MondayToTime>
<SatFromTime>PT0.1234567S</SatFromTime>
<SatToTime>PT0.1234567S</SatToTime>
<ThuFromTime>PT0.1234567S</ThuFromTime>
<ThuToTime>PT0.1234567S</ThuToTime>
<TuesdayFromTime>PT0.1234567S</TuesdayFromTime>
<TuesdayToTime>PT0.1234567S</TuesdayToTime>
<WEdFromTime>PT0.1234567S</WEdFromTime>
<WedToTime>PT0.1234567S</WedToTime>
</WorkingDay>
<WorkingDay>
<FrIDayFromTime>PT0.1234567S</FrIDayFromTime>
<FrIDayToTime>PT0.1234567S</FrIDayToTime>
<MondayFromTime>PT0.1234567S</MondayFromTime>
<MondayToTime>PT0.1234567S</MondayToTime>
<SatFromTime>PT0.1234567S</SatFromTime>
<SatToTime>PT0.1234567S</SatToTime>
<ThuFromTime>PT0.1234567S</ThuFromTime>
<ThuToTime>PT0.1234567S</ThuToTime>
<TuesdayFromTime>PT0.1234567S</TuesdayFromTime>
<TuesdayToTime>PT0.1234567S</TuesdayToTime>
<WEdFromTime>PT0.1234567S</WEdFromTime>
<WedToTime>PT0.1234567S</WedToTime>
</WorkingDay>
</WorkingDays>
<isAvailabilityForPatient>sample string 2</isAvailabilityForPatient>
<isEmergencyAvailable>true</isEmergencyAvailable>
<isReportsAvailable>true</isReportsAvailable>
<isSundayAvailable>true</isSundayAvailable>
<isUpdateReports>true</isUpdateReports>
<isWorkingDaysAddable>true</isWorkingDaysAddable>
</LabAvailabilities>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |