|
|
|
syntax = "proto3";
|
|
|
|
import "okapi-onboarding.proto";
|
|
|
|
import "okapi-service-config.proto";
|
|
|
|
import "okapi-patient-registration.proto";
|
|
|
|
import "okapi-events.proto";
|
|
|
|
option go_package = "src.whiteboxsystems.nl/DECOZO/okapi";
|
|
|
|
|
|
|
|
service OkAPI {
|
|
|
|
// Onboarding
|
|
|
|
rpc GetMetadata (GetMetadataRequest) returns (GetMetadataResponse) {}
|
|
|
|
rpc Register (RegisterRequest) returns (RegisterResponse) {}
|
|
|
|
rpc CompleteRegistration (CompleteRegistrationRequest) returns (CompleteRegistrationResponse) {}
|
|
|
|
|
|
|
|
// Configuration
|
|
|
|
rpc ListServices (ListServicesRequest) returns (ListServicesResponse) {}
|
|
|
|
rpc EnableService (EnableServiceRequest) returns (EnableServiceResponse) {}
|
|
|
|
rpc DisableService (DisableServiceRequest) returns (DisableServiceResponse) {}
|
|
|
|
|
|
|
|
rpc ListPatientRegistrations (ListPatientRegistrationsRequest) returns (ListPatientRegistrationsResponse) {}
|
|
|
|
rpc CreateOrUpdatePatientRegistrations (CreateOrUpdatePatientRegistrationsRequest) returns (CreateOrUpdatePatientRegistrationsResponse) {}
|
|
|
|
rpc RemovePatientRegistrations (RemovePatientRegistrationsRequest) returns (RemovePatientRegistrationsResponse) {}
|
|
|
|
|
|
|
|
// Events
|
|
|
|
rpc GetEvents (GetEventsRequest) returns (GetEventsResponse) {}
|
|
|
|
rpc GetEventsStream (GetEventsStreamRequest) returns (stream Event) {}
|
|
|
|
// rpc RegisterEventCallback (RegisterEventCallbackRequest) returns (RegisterEventCallbackResponse) {}
|
|
|
|
// rpc ListEventCallbacks (ListEventCallbacksRequest) returns (ListEventCallbacksResponse) {}
|
|
|
|
}
|
|
|
|
|