Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new manipulation SetOperationModeStatusAndSetOperatingMode #70

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- manipulation SetModeOfOperationAndSetOperatingMode for combined settings
- manipulation ConveyMetricDemoValues for metrics
- manipulation SetAlertConditionAndAlertSignalActivationState for alert activation states

Expand Down
13 changes: 13 additions & 0 deletions src/t2iapi/combined/combined_requests.proto
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ package t2iapi.combined;
import "t2iapi/context/types.proto";
import "t2iapi/operation/types.proto";
import "t2iapi/activation_state/types.proto";
import "t2iapi/metric/types.proto";


option java_package = "com.draeger.medical.t2iapi.combined";
Expand Down Expand Up @@ -57,3 +58,15 @@ message SetAlertActivationAndSetOperatingModeRequest {
// shall be set
t2iapi.operation.OperatingMode operating_mode = 4; // the requested OperatingMode value of the operation state
}

/*
Request to set the non-exclusive mode of operation represented by an enum metric with the given handle to the
requested value and set the @OperatingMode of the operation with the given handle to the requested OperatingMode value.
*/
message SetModeOfOperationAndSetOperatingModeRequest {
string metric_descriptor_handle = 1; // handle of the enum metric, which represents the mode of operation
t2iapi.metric.ModeOfOperation mode_of_operation = 2; // defines the mode of operation to be applied
string operation_descriptor_handle = 3; // the operation descriptor handle for which the OperatingMode value
// shall be set
t2iapi.operation.OperatingMode operating_mode = 4; // OperatingMode value to be set for the operation
}
11 changes: 11 additions & 0 deletions src/t2iapi/combined/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,15 @@ service CombinedService {
rpc SetAlertActivationAndSetOperatingMode (
t2iapi.combined.SetAlertActivationAndSetOperatingModeRequest)
returns (BasicResponse);

/*
Request to set the non-exclusive mode of operation represented by an enum metric with the given handle to the
pstaeck marked this conversation as resolved.
Show resolved Hide resolved
requested value and set the @OperatingMode of the operation with the given handle to the requested OperatingMode
value.
The manipulated states shall be persistent until a next manipulation call or an SDC operation invocation.
If the device is not able to maintain the static states, it shall return RESULT_NOT_SUPPORTED.
*/
rpc SetModeOfOperationAndSetOperatingMode (
t2iapi.combined.SetModeOfOperationAndSetOperatingModeRequest)
returns (BasicResponse);
}
13 changes: 13 additions & 0 deletions src/t2iapi/metric/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,19 @@ enum OperationModeStatus {
OPERATION_MODE_STATUS_PAUSED = 2; // operation mode is not applied, but available
}

/*
Defines the possible non-exclusive MODE OF OPERATION according to MPKP (11073-10701-2022).
These are represented as an enum metric where the instances of pm:AllowedValue have the pm:Type of:
- MDC_MODE_OF_OPERATION_ON,
- MDC_MODE_OF_OPERATION_OFF, and
- optionally MDC_MODE_OF_OPERATION_PAUSED.
*/
enum ModeOfOperation {
MODE_OF_OPERATION_ON = 0; // mode of operation is applied
MODE_OF_OPERATION_OFF = 1; // mode of operation is not applied, but available
MODE_OF_OPERATION_PAUSED = 2; // mode of operation is not applied, but available
}

/*
The MetricStatus is intended to reflect the state of the device and is not the ActivationState.
This state in turn should trigger the setting of the ActivationState, it is linked to the
Expand Down
Loading