Search in sources :

Example 1 with State

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()));
    }
}
Also used : DvCodedText(com.nedap.archie.rm.datavalues.DvCodedText) State(org.ehrbase.client.classgenerator.shareddefinition.State)

Aggregations

DvCodedText (com.nedap.archie.rm.datavalues.DvCodedText)1 State (org.ehrbase.client.classgenerator.shareddefinition.State)1