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

Add manipulation to create ContextState with Association, specific Validator and excluded Identification #80

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
037acde
Added manipulation CreateContextStateWithAssocAndSpecificValidatorAnd…
ben-Draeger May 30, 2024
e99bc57
updated Changelog.
ben-Draeger May 30, 2024
f63be31
Merge branch 'main' into add_manipulation_CreateContextStateWithAssoc…
ben-Draeger May 31, 2024
8fddb9d
Updated manipulation.
ben-Draeger Jun 7, 2024
87c763b
Updated manipulation.
ben-Draeger Jun 10, 2024
2458ad6
Updated CHANGELOG.md and fixed linter issues.
ben-Draeger Jun 10, 2024
179319b
Updated manipulation.
ben-Draeger Jun 11, 2024
f3c1d55
simplified manipulation.
ben-Draeger Jun 12, 2024
aa3c04c
Fixed linter warning.
ben-Draeger Jun 12, 2024
2239065
WIP.
ben-Draeger Jun 13, 2024
b5a2412
updated return value of manipulation.
ben-Draeger Jun 13, 2024
6225903
Merge branch 'main' into add_manipulation_CreateContextStateWithAssoc…
ben-Draeger Jun 20, 2024
bdad961
changes proposed by reviewers.
ben-Draeger Jun 20, 2024
065fd9f
Reordered entries in changelog.
ben-Draeger Jun 21, 2024
9e2d065
Merge branch 'main' into add_manipulation_CreateContextStateWithAssoc…
ben-Draeger Jun 21, 2024
247b837
improved documentation of manipulation.
ben-Draeger Jun 21, 2024
46e0ef7
the manipulation
ben-Draeger Jun 21, 2024
0e00dd4
changes requested by reviewers.
ben-Draeger Jun 21, 2024
45a5466
changes proposed by Reviewers.
ben-Draeger Jun 24, 2024
a51f841
changes proposed by Reviewers.
ben-Draeger Jun 24, 2024
55c4777
changes proposed by Reviewers.
ben-Draeger Jun 24, 2024
8467d22
changes discussed in meeting on 2024.06.28
ben-Draeger Jun 28, 2024
4ee70b2
corrected a spelling error.
ben-Draeger Jul 1, 2024
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
pstaeck marked this conversation as resolved.
Show resolved Hide resolved
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 AssociateValidateAndChangeIdentificationOfPatientOrLocationContextState for contexts
- manipulation ProvideInformationAboutLastCalibration for devices
- manipulation ProvideInformationAboutNextCalibration for devices
- manipulation SetSystemContextActivationStateAndContextAssociation for combined settings
Expand Down
10 changes: 10 additions & 0 deletions src/t2iapi/context/context_requests.proto
pstaeck marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@ message CreateContextStateWithAssociationAndValidatorsRequest {
string num_validators = 3; // number of pm:Validator elements
}

/*
Request to create or adapt a pm:PatientContextState or pm:LocationContextState instance with
@ContextAssociation = Assoc for the given @DescriptorHandle, with a given number
of pm:Validator elements and a changed pm:Identification.
*/
message AssociateValidateAndChangeIdentificationOfPatientOrLocationContextStateRequest {
string descriptor_handle = 1;
string num_validators = 2; // number of pm:Validator elements
}

/*
Request to create or adapt a context state with a given association and specific validator.
*/
Expand Down
11 changes: 11 additions & 0 deletions src/t2iapi/context/context_responses.proto
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@ message CreateContextStateWithAssociationResponse {
string context_state_handle = 2; // handle of the context state, that was created or adapted
}

/*
Response containing the context state handle and the prior mdib version.
*/
message AssociateValidateAndChangeIdentificationOfPatientOrLocationContextStateResponse {
BasicResponse status = 1;
string context_state_handle = 2; // handle of the context state, that was created or adapted
uint64 prior_mdib_version = 3; // mdib version before the change - contains the previously associated
// context state whose pm:Identification the changed
// pm:Identification must structurally differ from.
}

/*
Response which contains all context types supported by the DUT.
*/
Expand Down
20 changes: 20 additions & 0 deletions src/t2iapi/context/service.proto
pstaeck marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,26 @@ service ContextService {
t2iapi.context.CreateContextStateWithAssocAndSpecificValidatorRequest)
returns (t2iapi.context.CreateContextStateWithAssociationResponse);

/*
pstaeck marked this conversation as resolved.
Show resolved Hide resolved
Create or adapt a patient- or location context state, such that
- it belongs to the given @DescriptorHandle,
- it has @ContextAssociation = Assoc,
- it has the given number of pm:Validators, and
- its pm:Identification changes.
The pm:Identification of the created resp. adapted context state must differ structurally from
the pm:Identification of the previously associated context state of the same @DescriptorHandle.
Returns the handle of the created or adapted context state and an mdib version
that contains the version of the previously associated context state whose pm:Identification
the changed pm:Identification must structurally differ from.
pstaeck marked this conversation as resolved.
Show resolved Hide resolved
The mdib version must represent the mdib of the device before the changes of the
manipulation are applied to the mdib.
The manipulated state shall be persistent until a next manipulation call. If the device is not able to maintain
the static state, it shall return RESULT_NOT_SUPPORTED.
*/
rpc AssociateValidateAndChangeIdentificationOfPatientOrLocationContextState(
t2iapi.context.AssociateValidateAndChangeIdentificationOfPatientOrLocationContextStateRequest)
returns (AssociateValidateAndChangeIdentificationOfPatientOrLocationContextStateResponse);

/*
Create or adapt neonatal patient with a given type of association and
including the mothers identification.
Expand Down
Loading