Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Manager Services
Manager Services
https://sbhealthcareschedule.mybluemix.net
/schedule/{manager}
REQUEST BODY:
{
"startDate": "2016-01-01T00:00:00.000Z",
"endDate": "2016-04-30T00:00:00.000Z",
"dailyTimeRanges": [
//obligatorio
{
"day" : "1",
"availableRanges" : [
{
"startTime" : "08:00:00",
"endTime" : "10:00:00"
},
{
"startTime" : "14:00:00",
"endTime" : "18:00:00"
}
]
},{
"day" : "3",
"availableRanges" : [{
"startTime"
"endTime" :
}
]
},{
"day" : "4",
"availableRanges" : [{
"startTime"
"endTime" :
}, {
"startTime"
"endTime" :
}
]
},{
"day" : "5",
"availableRanges" : [{
"startTime"
"endTime" :
}
]
},{
"day" : "6",
"availableRanges" : [{
"startTime"
"endTime" :
}
]
}
//obligatorio
//obligatorio
: "09:00:00",
"11:00:00"
: "09:00:00",
"11:00:00"
: "14:00:00",
"17:00:00"
: "09:00:00",
"11:00:00"
: "09:00:00",
"11:00:00"
]
}
siendo 0 = domingo, 1 = lunes, ..........., 6 = sabado
horas en formato militar HH:MM
fechas en formato ISO 8601 con tiempo 00
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------SERVICIO CONSULTA AGENDA DEL GESTOR
MTODO GET
PATH:
00:00:00.000Z
/schedule/{manager}?from=2016-01-01T00:00:00.000Z&to=2016-02-29T
/schedule/{manager}/nonAttendanceEvent
REQUEST BODY
{
//
//
//
//
//
//
//
//
//
"nonAttendanceInfo": {
"isTimeType": true / false,
obligatorio
"subject": "calamidad / capacitacin / viaje / etc",
obligatorio
"repeat": true / false,
obligatorio
"date": "2016-01-01T00:00:00.000Z",
solo llega cuando es repeat = false
"startTime": "08:00",
solo llega cuando es isTimeType = true
"endTime": "10:00",
solo llega cuando es isTimeType = true
"repeatDays": ["1","3","4"],
solo llega cuando es repeat = true
"from": "2016-01-01T00:00:00.000Z",
solo llega cuando es repeat = true
"to": "2016-01-05T00:00:00.000Z"
solo llega cuando es repeat = true
}
}
siendo 0 = domingo, 1 = lunes, ..........., 6 = sabado
horas en formato militar HH:MM
fechas en formato ISO 8601 con tiempo 00
/schedule/{manager}/nonAttendanceEvent
REQUEST BODY
{
//
//
//
//
//
//
//
//
//
"_id": "4f377dac629837498273492873cfe2132,
"nonAttendanceInfo": {
"isTimeType": true / false,
obligatorio
"subject": "calamidad / capacitacin / viaje / etc",
obligatorio
"repeat": true / false,
obligatorio
"date": "2016-01-01T00:00:00.000Z",
solo llega cuando es repeat = false
"startTime": "08:00",
solo llega cuando es isTimeType = true
"endTime": "10:00",
solo llega cuando es isTimeType = true
"repeatDays": ["1","3","4"],
solo llega cuando es repeat = true
"from": "2016-01-01T00:00:00.000Z",
solo llega cuando es repeat = true
"to": "2016-01-05T00:00:00.000Z"
solo llega cuando es repeat = true
}
}
siendo 0 = domingo, 1 = lunes, ..........., 6 = sabado
horas en formato militar HH:MM
fechas en formato ISO 8601 con tiempo 00
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------SERVICIO: ELIMINACIN AUSENCIA POR PARTE DEL GESTOR
MTODO: DELETE
PATH
/schedule/{manager}/nonAttendanceEvent
REQUEST BODY
{
"_id": "4f377dac629837498273492873cfe2132
}
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
/scheduleActivity/{manager}
REQUEST BODY
{
"activityInfo": {
"startTime": "2016-01-01T09:00:00.000Z",
obligatorio
"endTime": "2016-01-01T09:20:00.000Z",
obligatorio cuando NO es tipo 1
"activityType": "1",
//
se esta manejando 1 = consulta mdica, 2 = visita domiciliaria,
otras
"subject": "consulta de control anual",
solo llega cuando NO es tipo consulta mdica o visita domiciliaria
"patientDetails":{
//
solo llega cuando es tipo consulta mdica o visita domiciliaria
"caseId": "9182876293283187329182",
"concernRoleId": "98987321987321987",
"documentType": "1",
"documentNumber": "12123434556",
"firstname": "aaaa",
"middleName": "bbbb",
// opcional
"surname": "cccc",
"lastSurname": "ddd"
}
}
}
//
//
3...... =
//
/scheduleActivity/{manager}
REQUEST BODY
{
"_id": "afe866d33333f656c1982731983271",
"startTime": "2016-02-02T12:12:12.000Z",
"endTime": "2016-02-02T14:12:12.000Z",
actividad consulta mdica
"subject": "consulta mdica control mensual"
otras actividades
}
//obligatorio
//no llega para
//slo llega para
/scheduleActivity/{manager}
REQUEST BODY
{
"_id": "afe866d33333f656c1982731983271"
}
//obligatorio