You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
okapi/okapi-patient-registration....

56 lines
1.2 KiB

syntax = "proto3";
import "google/protobuf/struct.proto";
import "okapi-errors.proto";
option go_package = "whiteboxsystems.nl/okapi";
message Identifier {
string type = 1;
string value = 2;
}
message PatientRegistrationData {
PatientMeta subject = 1;
bool registered = 2;
string id = 3;
google.protobuf.Struct callbackProtocolMeta = 4;
}
message PatientMeta {
repeated Identifier identifier = 1;
string firstname = 2;
string surname = 3;
string surnamePrefix = 4;
string birthdate = 5;
string street = 6;
string streetNumber = 7;
string streetNumberExtension = 8;
string postalCode = 9;
string city = 10;
string country = 11;
google.protobuf.Struct extra = 12;
}
message PatientRegistrationError {
int32 index = 1;
OkAPIError error = 2;
}
// Probably do this steaming (also)?
message UpdatePatientRegistrationRequest {
string serviceId = 1;
repeated PatientRegistrationData PatientRegistrationData = 2;
bool atomicUpdate = 3;
}
message UpdatePatientRegistrationResponse {
repeated PatientRegistrationError errors = 1;
}
message ListPatientRegistrationRequest {
string serviceId = 1;
}
message ListPatientRegistrationResponse {
repeated PatientRegistrationData PatientRegistrationData = 1;
}