@candesk/contracts 6.76.0 → 6.78.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/events/auth/patient-blocked.interface.d.ts +1 -0
- package/dist/events/auth/patient-unblocked.interface.d.ts +1 -0
- package/dist/gen/treatment.d.ts +24 -0
- package/dist/gen/treatment.js +8 -1
- package/dist/nest/treatment.d.ts +26 -0
- package/dist/nest/treatment.js +10 -1
- package/package.json +1 -1
- package/proto/treatment.proto +28 -0
package/dist/gen/treatment.d.ts
CHANGED
|
@@ -72,6 +72,12 @@ export declare enum MedicalReviewScope {
|
|
|
72
72
|
MEDICAL_REVIEW_SCOPE_DONE = 3,
|
|
73
73
|
UNRECOGNIZED = -1
|
|
74
74
|
}
|
|
75
|
+
export declare enum MedicalReviewDecision {
|
|
76
|
+
MEDICAL_REVIEW_DECISION_UNSPECIFIED = 0,
|
|
77
|
+
MEDICAL_REVIEW_DECISION_APPROVED = 1,
|
|
78
|
+
MEDICAL_REVIEW_DECISION_REJECTED = 2,
|
|
79
|
+
UNRECOGNIZED = -1
|
|
80
|
+
}
|
|
75
81
|
export declare enum WithdrawalStatus {
|
|
76
82
|
WITHDRAWAL_STATUS_UNSPECIFIED = 0,
|
|
77
83
|
WITHDRAWAL_STATUS_OPEN = 1,
|
|
@@ -166,6 +172,7 @@ export interface TreatmentRequest {
|
|
|
166
172
|
rejectionText?: string | undefined;
|
|
167
173
|
patientName?: string | undefined;
|
|
168
174
|
appointmentAt?: string | undefined;
|
|
175
|
+
patientBlockedAt?: string | undefined;
|
|
169
176
|
}
|
|
170
177
|
export interface PatientSnapshot {
|
|
171
178
|
firstName: string;
|
|
@@ -325,6 +332,7 @@ export interface ListMedicalReviewsRequest {
|
|
|
325
332
|
from?: string | undefined;
|
|
326
333
|
to?: string | undefined;
|
|
327
334
|
type?: TreatmentType | undefined;
|
|
335
|
+
decision?: MedicalReviewDecision | undefined;
|
|
328
336
|
}
|
|
329
337
|
export interface ListMedicalReviewsResponse {
|
|
330
338
|
requests: TreatmentRequest[];
|
|
@@ -338,6 +346,7 @@ export interface MedicalReviewCount {
|
|
|
338
346
|
type: TreatmentType;
|
|
339
347
|
queue: number;
|
|
340
348
|
inReview: number;
|
|
349
|
+
done: number;
|
|
341
350
|
}
|
|
342
351
|
export interface CountMedicalReviewsResponse {
|
|
343
352
|
counts: MedicalReviewCount[];
|
|
@@ -382,6 +391,19 @@ export interface ReleaseMedicalReviewRequest {
|
|
|
382
391
|
export interface ReleaseMedicalReviewResponse {
|
|
383
392
|
request: TreatmentRequest | undefined;
|
|
384
393
|
}
|
|
394
|
+
export interface ReleaseDoctorReviewsRequest {
|
|
395
|
+
doctorId: string;
|
|
396
|
+
}
|
|
397
|
+
export interface ReleaseDoctorReviewsResponse {
|
|
398
|
+
released: number;
|
|
399
|
+
}
|
|
400
|
+
export interface CancelPaymentRequest {
|
|
401
|
+
userId: string;
|
|
402
|
+
id: string;
|
|
403
|
+
}
|
|
404
|
+
export interface CancelPaymentResponse {
|
|
405
|
+
request: TreatmentRequest | undefined;
|
|
406
|
+
}
|
|
385
407
|
export interface RetryRefundRequest {
|
|
386
408
|
id: string;
|
|
387
409
|
}
|
|
@@ -419,6 +441,7 @@ export interface TreatmentService {
|
|
|
419
441
|
changeMedicationWish(request: ChangeMedicationWishRequest): Promise<ChangeMedicationWishResponse>;
|
|
420
442
|
deleteTreatmentRequest(request: DeleteTreatmentRequestRequest): Promise<DeleteTreatmentRequestResponse>;
|
|
421
443
|
startPayment(request: StartPaymentRequest): Promise<StartPaymentResponse>;
|
|
444
|
+
cancelPayment(request: CancelPaymentRequest): Promise<CancelPaymentResponse>;
|
|
422
445
|
listProductRequesters(request: ListProductRequestersRequest): Promise<ListProductRequestersResponse>;
|
|
423
446
|
submitWithdrawal(request: SubmitWithdrawalRequest): Promise<SubmitWithdrawalResponse>;
|
|
424
447
|
listWithdrawals(request: ListWithdrawalsRequest): Promise<ListWithdrawalsResponse>;
|
|
@@ -432,6 +455,7 @@ export interface TreatmentService {
|
|
|
432
455
|
approveMedicalReview(request: ApproveMedicalReviewRequest): Promise<ApproveMedicalReviewResponse>;
|
|
433
456
|
rejectMedicalReview(request: RejectMedicalReviewRequest): Promise<RejectMedicalReviewResponse>;
|
|
434
457
|
releaseMedicalReview(request: ReleaseMedicalReviewRequest): Promise<ReleaseMedicalReviewResponse>;
|
|
458
|
+
releaseDoctorReviews(request: ReleaseDoctorReviewsRequest): Promise<ReleaseDoctorReviewsResponse>;
|
|
435
459
|
retryRefund(request: RetryRefundRequest): Promise<RetryRefundResponse>;
|
|
436
460
|
listAppointmentSlots(request: ListAppointmentSlotsRequest): Promise<ListAppointmentSlotsResponse>;
|
|
437
461
|
listAppointments(request: ListAppointmentsRequest): Promise<ListAppointmentsResponse>;
|
package/dist/gen/treatment.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc v3.21.12
|
|
6
6
|
// source: treatment.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.WithdrawalRejectionReason = exports.WithdrawalStatus = exports.MedicalReviewScope = exports.MedicalRejectionReason = exports.TreatmentRequestStatus = exports.TreatmentType = exports.ProductType = exports.IntakeMethod = exports.SymptomDuration = exports.Symptom = exports.QuestionnaireStatus = exports.protobufFileName = exports.protobufPackage = void 0;
|
|
8
|
+
exports.WithdrawalRejectionReason = exports.WithdrawalStatus = exports.MedicalReviewDecision = exports.MedicalReviewScope = exports.MedicalRejectionReason = exports.TreatmentRequestStatus = exports.TreatmentType = exports.ProductType = exports.IntakeMethod = exports.SymptomDuration = exports.Symptom = exports.QuestionnaireStatus = exports.protobufFileName = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
exports.protobufPackage = "treatment.v1";
|
|
11
11
|
exports.protobufFileName = "treatment.proto";
|
|
@@ -90,6 +90,13 @@ var MedicalReviewScope;
|
|
|
90
90
|
MedicalReviewScope[MedicalReviewScope["MEDICAL_REVIEW_SCOPE_DONE"] = 3] = "MEDICAL_REVIEW_SCOPE_DONE";
|
|
91
91
|
MedicalReviewScope[MedicalReviewScope["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
92
92
|
})(MedicalReviewScope || (exports.MedicalReviewScope = MedicalReviewScope = {}));
|
|
93
|
+
var MedicalReviewDecision;
|
|
94
|
+
(function (MedicalReviewDecision) {
|
|
95
|
+
MedicalReviewDecision[MedicalReviewDecision["MEDICAL_REVIEW_DECISION_UNSPECIFIED"] = 0] = "MEDICAL_REVIEW_DECISION_UNSPECIFIED";
|
|
96
|
+
MedicalReviewDecision[MedicalReviewDecision["MEDICAL_REVIEW_DECISION_APPROVED"] = 1] = "MEDICAL_REVIEW_DECISION_APPROVED";
|
|
97
|
+
MedicalReviewDecision[MedicalReviewDecision["MEDICAL_REVIEW_DECISION_REJECTED"] = 2] = "MEDICAL_REVIEW_DECISION_REJECTED";
|
|
98
|
+
MedicalReviewDecision[MedicalReviewDecision["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
99
|
+
})(MedicalReviewDecision || (exports.MedicalReviewDecision = MedicalReviewDecision = {}));
|
|
93
100
|
var WithdrawalStatus;
|
|
94
101
|
(function (WithdrawalStatus) {
|
|
95
102
|
WithdrawalStatus[WithdrawalStatus["WITHDRAWAL_STATUS_UNSPECIFIED"] = 0] = "WITHDRAWAL_STATUS_UNSPECIFIED";
|
package/dist/nest/treatment.d.ts
CHANGED
|
@@ -73,6 +73,12 @@ export declare enum MedicalReviewScope {
|
|
|
73
73
|
MEDICAL_REVIEW_SCOPE_DONE = 3,
|
|
74
74
|
UNRECOGNIZED = -1
|
|
75
75
|
}
|
|
76
|
+
export declare enum MedicalReviewDecision {
|
|
77
|
+
MEDICAL_REVIEW_DECISION_UNSPECIFIED = 0,
|
|
78
|
+
MEDICAL_REVIEW_DECISION_APPROVED = 1,
|
|
79
|
+
MEDICAL_REVIEW_DECISION_REJECTED = 2,
|
|
80
|
+
UNRECOGNIZED = -1
|
|
81
|
+
}
|
|
76
82
|
export declare enum WithdrawalStatus {
|
|
77
83
|
WITHDRAWAL_STATUS_UNSPECIFIED = 0,
|
|
78
84
|
WITHDRAWAL_STATUS_OPEN = 1,
|
|
@@ -167,6 +173,7 @@ export interface TreatmentRequest {
|
|
|
167
173
|
rejectionText?: string | undefined;
|
|
168
174
|
patientName?: string | undefined;
|
|
169
175
|
appointmentAt?: string | undefined;
|
|
176
|
+
patientBlockedAt?: string | undefined;
|
|
170
177
|
}
|
|
171
178
|
export interface PatientSnapshot {
|
|
172
179
|
firstName: string;
|
|
@@ -326,6 +333,7 @@ export interface ListMedicalReviewsRequest {
|
|
|
326
333
|
from?: string | undefined;
|
|
327
334
|
to?: string | undefined;
|
|
328
335
|
type?: TreatmentType | undefined;
|
|
336
|
+
decision?: MedicalReviewDecision | undefined;
|
|
329
337
|
}
|
|
330
338
|
export interface ListMedicalReviewsResponse {
|
|
331
339
|
requests: TreatmentRequest[];
|
|
@@ -339,6 +347,7 @@ export interface MedicalReviewCount {
|
|
|
339
347
|
type: TreatmentType;
|
|
340
348
|
queue: number;
|
|
341
349
|
inReview: number;
|
|
350
|
+
done: number;
|
|
342
351
|
}
|
|
343
352
|
export interface CountMedicalReviewsResponse {
|
|
344
353
|
counts: MedicalReviewCount[];
|
|
@@ -383,6 +392,19 @@ export interface ReleaseMedicalReviewRequest {
|
|
|
383
392
|
export interface ReleaseMedicalReviewResponse {
|
|
384
393
|
request: TreatmentRequest | undefined;
|
|
385
394
|
}
|
|
395
|
+
export interface ReleaseDoctorReviewsRequest {
|
|
396
|
+
doctorId: string;
|
|
397
|
+
}
|
|
398
|
+
export interface ReleaseDoctorReviewsResponse {
|
|
399
|
+
released: number;
|
|
400
|
+
}
|
|
401
|
+
export interface CancelPaymentRequest {
|
|
402
|
+
userId: string;
|
|
403
|
+
id: string;
|
|
404
|
+
}
|
|
405
|
+
export interface CancelPaymentResponse {
|
|
406
|
+
request: TreatmentRequest | undefined;
|
|
407
|
+
}
|
|
386
408
|
export interface RetryRefundRequest {
|
|
387
409
|
id: string;
|
|
388
410
|
}
|
|
@@ -421,6 +443,7 @@ export interface TreatmentServiceClient {
|
|
|
421
443
|
changeMedicationWish(request: ChangeMedicationWishRequest): Observable<ChangeMedicationWishResponse>;
|
|
422
444
|
deleteTreatmentRequest(request: DeleteTreatmentRequestRequest): Observable<DeleteTreatmentRequestResponse>;
|
|
423
445
|
startPayment(request: StartPaymentRequest): Observable<StartPaymentResponse>;
|
|
446
|
+
cancelPayment(request: CancelPaymentRequest): Observable<CancelPaymentResponse>;
|
|
424
447
|
listProductRequesters(request: ListProductRequestersRequest): Observable<ListProductRequestersResponse>;
|
|
425
448
|
submitWithdrawal(request: SubmitWithdrawalRequest): Observable<SubmitWithdrawalResponse>;
|
|
426
449
|
listWithdrawals(request: ListWithdrawalsRequest): Observable<ListWithdrawalsResponse>;
|
|
@@ -434,6 +457,7 @@ export interface TreatmentServiceClient {
|
|
|
434
457
|
approveMedicalReview(request: ApproveMedicalReviewRequest): Observable<ApproveMedicalReviewResponse>;
|
|
435
458
|
rejectMedicalReview(request: RejectMedicalReviewRequest): Observable<RejectMedicalReviewResponse>;
|
|
436
459
|
releaseMedicalReview(request: ReleaseMedicalReviewRequest): Observable<ReleaseMedicalReviewResponse>;
|
|
460
|
+
releaseDoctorReviews(request: ReleaseDoctorReviewsRequest): Observable<ReleaseDoctorReviewsResponse>;
|
|
437
461
|
retryRefund(request: RetryRefundRequest): Observable<RetryRefundResponse>;
|
|
438
462
|
listAppointmentSlots(request: ListAppointmentSlotsRequest): Observable<ListAppointmentSlotsResponse>;
|
|
439
463
|
listAppointments(request: ListAppointmentsRequest): Observable<ListAppointmentsResponse>;
|
|
@@ -451,6 +475,7 @@ export interface TreatmentServiceController {
|
|
|
451
475
|
changeMedicationWish(request: ChangeMedicationWishRequest): Promise<ChangeMedicationWishResponse> | Observable<ChangeMedicationWishResponse> | ChangeMedicationWishResponse;
|
|
452
476
|
deleteTreatmentRequest(request: DeleteTreatmentRequestRequest): Promise<DeleteTreatmentRequestResponse> | Observable<DeleteTreatmentRequestResponse> | DeleteTreatmentRequestResponse;
|
|
453
477
|
startPayment(request: StartPaymentRequest): Promise<StartPaymentResponse> | Observable<StartPaymentResponse> | StartPaymentResponse;
|
|
478
|
+
cancelPayment(request: CancelPaymentRequest): Promise<CancelPaymentResponse> | Observable<CancelPaymentResponse> | CancelPaymentResponse;
|
|
454
479
|
listProductRequesters(request: ListProductRequestersRequest): Promise<ListProductRequestersResponse> | Observable<ListProductRequestersResponse> | ListProductRequestersResponse;
|
|
455
480
|
submitWithdrawal(request: SubmitWithdrawalRequest): Promise<SubmitWithdrawalResponse> | Observable<SubmitWithdrawalResponse> | SubmitWithdrawalResponse;
|
|
456
481
|
listWithdrawals(request: ListWithdrawalsRequest): Promise<ListWithdrawalsResponse> | Observable<ListWithdrawalsResponse> | ListWithdrawalsResponse;
|
|
@@ -464,6 +489,7 @@ export interface TreatmentServiceController {
|
|
|
464
489
|
approveMedicalReview(request: ApproveMedicalReviewRequest): Promise<ApproveMedicalReviewResponse> | Observable<ApproveMedicalReviewResponse> | ApproveMedicalReviewResponse;
|
|
465
490
|
rejectMedicalReview(request: RejectMedicalReviewRequest): Promise<RejectMedicalReviewResponse> | Observable<RejectMedicalReviewResponse> | RejectMedicalReviewResponse;
|
|
466
491
|
releaseMedicalReview(request: ReleaseMedicalReviewRequest): Promise<ReleaseMedicalReviewResponse> | Observable<ReleaseMedicalReviewResponse> | ReleaseMedicalReviewResponse;
|
|
492
|
+
releaseDoctorReviews(request: ReleaseDoctorReviewsRequest): Promise<ReleaseDoctorReviewsResponse> | Observable<ReleaseDoctorReviewsResponse> | ReleaseDoctorReviewsResponse;
|
|
467
493
|
retryRefund(request: RetryRefundRequest): Promise<RetryRefundResponse> | Observable<RetryRefundResponse> | RetryRefundResponse;
|
|
468
494
|
listAppointmentSlots(request: ListAppointmentSlotsRequest): Promise<ListAppointmentSlotsResponse> | Observable<ListAppointmentSlotsResponse> | ListAppointmentSlotsResponse;
|
|
469
495
|
listAppointments(request: ListAppointmentsRequest): Promise<ListAppointmentsResponse> | Observable<ListAppointmentsResponse> | ListAppointmentsResponse;
|
package/dist/nest/treatment.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc v3.21.12
|
|
6
6
|
// source: treatment.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.TREATMENT_SERVICE_NAME = exports.TREATMENT_V1_PACKAGE_NAME = exports.WithdrawalRejectionReason = exports.WithdrawalStatus = exports.MedicalReviewScope = exports.MedicalRejectionReason = exports.TreatmentRequestStatus = exports.TreatmentType = exports.ProductType = exports.IntakeMethod = exports.SymptomDuration = exports.Symptom = exports.QuestionnaireStatus = exports.protobufFileName = exports.protobufPackage = void 0;
|
|
8
|
+
exports.TREATMENT_SERVICE_NAME = exports.TREATMENT_V1_PACKAGE_NAME = exports.WithdrawalRejectionReason = exports.WithdrawalStatus = exports.MedicalReviewDecision = exports.MedicalReviewScope = exports.MedicalRejectionReason = exports.TreatmentRequestStatus = exports.TreatmentType = exports.ProductType = exports.IntakeMethod = exports.SymptomDuration = exports.Symptom = exports.QuestionnaireStatus = exports.protobufFileName = exports.protobufPackage = void 0;
|
|
9
9
|
exports.TreatmentServiceControllerMethods = TreatmentServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
@@ -92,6 +92,13 @@ var MedicalReviewScope;
|
|
|
92
92
|
MedicalReviewScope[MedicalReviewScope["MEDICAL_REVIEW_SCOPE_DONE"] = 3] = "MEDICAL_REVIEW_SCOPE_DONE";
|
|
93
93
|
MedicalReviewScope[MedicalReviewScope["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
94
94
|
})(MedicalReviewScope || (exports.MedicalReviewScope = MedicalReviewScope = {}));
|
|
95
|
+
var MedicalReviewDecision;
|
|
96
|
+
(function (MedicalReviewDecision) {
|
|
97
|
+
MedicalReviewDecision[MedicalReviewDecision["MEDICAL_REVIEW_DECISION_UNSPECIFIED"] = 0] = "MEDICAL_REVIEW_DECISION_UNSPECIFIED";
|
|
98
|
+
MedicalReviewDecision[MedicalReviewDecision["MEDICAL_REVIEW_DECISION_APPROVED"] = 1] = "MEDICAL_REVIEW_DECISION_APPROVED";
|
|
99
|
+
MedicalReviewDecision[MedicalReviewDecision["MEDICAL_REVIEW_DECISION_REJECTED"] = 2] = "MEDICAL_REVIEW_DECISION_REJECTED";
|
|
100
|
+
MedicalReviewDecision[MedicalReviewDecision["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
101
|
+
})(MedicalReviewDecision || (exports.MedicalReviewDecision = MedicalReviewDecision = {}));
|
|
95
102
|
var WithdrawalStatus;
|
|
96
103
|
(function (WithdrawalStatus) {
|
|
97
104
|
WithdrawalStatus[WithdrawalStatus["WITHDRAWAL_STATUS_UNSPECIFIED"] = 0] = "WITHDRAWAL_STATUS_UNSPECIFIED";
|
|
@@ -124,6 +131,7 @@ function TreatmentServiceControllerMethods() {
|
|
|
124
131
|
"changeMedicationWish",
|
|
125
132
|
"deleteTreatmentRequest",
|
|
126
133
|
"startPayment",
|
|
134
|
+
"cancelPayment",
|
|
127
135
|
"listProductRequesters",
|
|
128
136
|
"submitWithdrawal",
|
|
129
137
|
"listWithdrawals",
|
|
@@ -137,6 +145,7 @@ function TreatmentServiceControllerMethods() {
|
|
|
137
145
|
"approveMedicalReview",
|
|
138
146
|
"rejectMedicalReview",
|
|
139
147
|
"releaseMedicalReview",
|
|
148
|
+
"releaseDoctorReviews",
|
|
140
149
|
"retryRefund",
|
|
141
150
|
"listAppointmentSlots",
|
|
142
151
|
"listAppointments",
|
package/package.json
CHANGED
package/proto/treatment.proto
CHANGED
|
@@ -15,6 +15,7 @@ service TreatmentService {
|
|
|
15
15
|
rpc ChangeMedicationWish (ChangeMedicationWishRequest) returns (ChangeMedicationWishResponse);
|
|
16
16
|
rpc DeleteTreatmentRequest (DeleteTreatmentRequestRequest) returns (DeleteTreatmentRequestResponse);
|
|
17
17
|
rpc StartPayment (StartPaymentRequest) returns (StartPaymentResponse);
|
|
18
|
+
rpc CancelPayment (CancelPaymentRequest) returns (CancelPaymentResponse);
|
|
18
19
|
rpc ListProductRequesters (ListProductRequestersRequest) returns (ListProductRequestersResponse);
|
|
19
20
|
rpc SubmitWithdrawal (SubmitWithdrawalRequest) returns (SubmitWithdrawalResponse);
|
|
20
21
|
rpc ListWithdrawals (ListWithdrawalsRequest) returns (ListWithdrawalsResponse);
|
|
@@ -28,6 +29,7 @@ service TreatmentService {
|
|
|
28
29
|
rpc ApproveMedicalReview (ApproveMedicalReviewRequest) returns (ApproveMedicalReviewResponse);
|
|
29
30
|
rpc RejectMedicalReview (RejectMedicalReviewRequest) returns (RejectMedicalReviewResponse);
|
|
30
31
|
rpc ReleaseMedicalReview (ReleaseMedicalReviewRequest) returns (ReleaseMedicalReviewResponse);
|
|
32
|
+
rpc ReleaseDoctorReviews (ReleaseDoctorReviewsRequest) returns (ReleaseDoctorReviewsResponse);
|
|
31
33
|
rpc RetryRefund (RetryRefundRequest) returns (RetryRefundResponse);
|
|
32
34
|
rpc ListAppointmentSlots (ListAppointmentSlotsRequest) returns (ListAppointmentSlotsResponse);
|
|
33
35
|
rpc ListAppointments (ListAppointmentsRequest) returns (ListAppointmentsResponse);
|
|
@@ -105,6 +107,12 @@ enum MedicalReviewScope {
|
|
|
105
107
|
MEDICAL_REVIEW_SCOPE_DONE = 3;
|
|
106
108
|
}
|
|
107
109
|
|
|
110
|
+
enum MedicalReviewDecision {
|
|
111
|
+
MEDICAL_REVIEW_DECISION_UNSPECIFIED = 0;
|
|
112
|
+
MEDICAL_REVIEW_DECISION_APPROVED = 1;
|
|
113
|
+
MEDICAL_REVIEW_DECISION_REJECTED = 2;
|
|
114
|
+
}
|
|
115
|
+
|
|
108
116
|
enum WithdrawalStatus {
|
|
109
117
|
WITHDRAWAL_STATUS_UNSPECIFIED = 0;
|
|
110
118
|
WITHDRAWAL_STATUS_OPEN = 1;
|
|
@@ -204,6 +212,7 @@ message TreatmentRequest {
|
|
|
204
212
|
optional string rejection_text = 22;
|
|
205
213
|
optional string patient_name = 23;
|
|
206
214
|
optional string appointment_at = 24;
|
|
215
|
+
optional string patient_blocked_at = 25;
|
|
207
216
|
}
|
|
208
217
|
|
|
209
218
|
message PatientSnapshot {
|
|
@@ -402,6 +411,7 @@ message ListMedicalReviewsRequest {
|
|
|
402
411
|
optional string from = 7;
|
|
403
412
|
optional string to = 8;
|
|
404
413
|
optional TreatmentType type = 9;
|
|
414
|
+
optional MedicalReviewDecision decision = 10;
|
|
405
415
|
}
|
|
406
416
|
|
|
407
417
|
message ListMedicalReviewsResponse {
|
|
@@ -419,6 +429,7 @@ message MedicalReviewCount {
|
|
|
419
429
|
TreatmentType type = 1;
|
|
420
430
|
int32 queue = 2;
|
|
421
431
|
int32 in_review = 3;
|
|
432
|
+
int32 done = 4;
|
|
422
433
|
}
|
|
423
434
|
|
|
424
435
|
message CountMedicalReviewsResponse {
|
|
@@ -477,6 +488,23 @@ message ReleaseMedicalReviewResponse {
|
|
|
477
488
|
TreatmentRequest request = 1;
|
|
478
489
|
}
|
|
479
490
|
|
|
491
|
+
message ReleaseDoctorReviewsRequest {
|
|
492
|
+
string doctor_id = 1;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
message ReleaseDoctorReviewsResponse {
|
|
496
|
+
int32 released = 1;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
message CancelPaymentRequest {
|
|
500
|
+
string user_id = 1;
|
|
501
|
+
string id = 2;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
message CancelPaymentResponse {
|
|
505
|
+
TreatmentRequest request = 1;
|
|
506
|
+
}
|
|
507
|
+
|
|
480
508
|
message RetryRefundRequest {
|
|
481
509
|
string id = 1;
|
|
482
510
|
}
|