@ -315,7 +315,8 @@ class DoctorsListService extends BaseService {
return Future . value ( localRes ) ;
}
Future < Map > insertAppointment ( int docID , int clinicID , int projectID , String selectedTime , String selectedDate , BuildContext context , [ String procedureID , num testTypeEnum , num testProcedureEnum ] ) async {
Future < Map > insertAppointment ( int docID , int clinicID , int projectID , String selectedTime , String selectedDate , BuildContext context ,
[ String procedureID , num testTypeEnum , num testProcedureEnum ] ) async {
Map < String , dynamic > request ;
if ( await this . sharedPref . getObject ( USER_PROFILE ) ! = null ) {
@ -850,7 +851,7 @@ class DoctorsListService extends BaseService {
localRes = response ;
} , onFailure: ( String error , int statusCode ) {
throw error ;
} , body: request );
} , body: request , isAllowAny: true );
return Future . value ( localRes ) ;
}
@ -906,7 +907,7 @@ class DoctorsListService extends BaseService {
return Future . value ( localRes ) ;
}
Future < Map > autoGenerateAncillaryOrdersInvoice ( String orderNo , int projectID , dynamic appointmentID , List < dynamic > selectedProcListAPI , BuildContext context ) async {
Future < Map > autoGenerateAncillaryOrdersInvoice ( dynamic orderNo , int projectID , dynamic appointmentID , List < dynamic > selectedProcListAPI , BuildContext context ) async {
Map < String , dynamic > request ;
if ( await this . sharedPref . getObject ( USER_PROFILE ) ! = null ) {
var data = AuthenticatedUser . fromJson ( await this . sharedPref . getObject ( USER_PROFILE ) ) ;
@ -1356,4 +1357,51 @@ class DoctorsListService extends BaseService {
} , body: request ) ;
return Future . value ( localRes ) ;
}
Future < Map > insertCovidQuestionnaire ( List qa , int projectID , int testTypeEnum , int testProcedureEnum ) async {
Map < String , dynamic > request ;
request = {
" ProjectID " : projectID ,
" IsForTravel " : qa [ 0 ] [ ' ans ' ] . toString ( ) ,
" IsComingOutSA " : qa [ 1 ] [ ' ans ' ] . toString ( ) ,
" IsFeverCurrently " : qa [ 2 ] [ ' ans ' ] . toString ( ) ,
" IsFeverLast2Week " : qa [ 3 ] [ ' ans ' ] . toString ( ) ,
" IsSorethroat " : qa [ 4 ] [ ' ans ' ] . toString ( ) ,
" IsRunnyNose " : qa [ 5 ] [ ' ans ' ] . toString ( ) ,
" IsCough " : qa [ 6 ] [ ' ans ' ] . toString ( ) ,
" IsShortnessBreath " : qa [ 7 ] [ ' ans ' ] . toString ( ) ,
" IsNausea " : qa [ 8 ] [ ' ans ' ] . toString ( ) ,
" IsVomiting " : qa [ 9 ] [ ' ans ' ] . toString ( ) ,
" IsHeadache " : qa [ 10 ] [ ' ans ' ] . toString ( ) ,
" IsMusclePain " : qa [ 11 ] [ ' ans ' ] . toString ( ) ,
" IsJoinPain " : qa [ 12 ] [ ' ans ' ] . toString ( ) ,
" IsDiarrhea " : qa [ 13 ] [ ' ans ' ] . toString ( ) ,
" TestTypeEnum " : testTypeEnum ,
" TestProcedureEnum " : testProcedureEnum
} ;
dynamic localRes ;
await baseAppClient . post ( INSERT_COVID_QUESTIONNAIRE , onSuccess: ( response , statusCode ) async {
localRes = response ;
} , onFailure: ( String error , int statusCode ) {
throw error ;
} , body: request ) ;
return Future . value ( localRes ) ;
}
Future < Map > updateCovidQuestionnaire ( String appoNo , int projectID , int testTypeEnum , int testProcedureEnum ) async {
Map < String , dynamic > request ;
request = { " AppointmentNo " : appoNo , " ProjectID " : projectID , " TestTypeEnum " : testTypeEnum , " TestProcedureEnum " : testProcedureEnum } ;
dynamic localRes ;
await baseAppClient . post ( UPDATE_COVID_QUESTIONNAIRE , onSuccess: ( response , statusCode ) async {
localRes = response ;
} , onFailure: ( String error , int statusCode ) {
throw error ;
} , body: request ) ;
return Future . value ( localRes ) ;
}
}