use of org.ehrbase.client.classgenerator.shareddefinition.State in project openEHR_SDK by ehrbase.
the class IsmTransitionValueInserter method insert.
@Override
public void insert(IsmTransition rmObject, DefaultValues defaultValues) {
if (RMHelper.isEmpty(rmObject.getCurrentState()) && defaultValues.containsDefaultValue(DefaultValuePath.ACTION_ISM_TRANSITION_CURRENT_STATE)) {
State defaultValue = defaultValues.getDefaultValue(DefaultValuePath.ACTION_ISM_TRANSITION_CURRENT_STATE);
rmObject.setCurrentState(new DvCodedText(defaultValue.getValue(), defaultValue.toCodePhrase()));
}
}
Aggregations