- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
var me = this;
if (me.profile.carveoutSettings) {
me.profile.carveoutSettings.truncationMethod = fields.truncationMethod;
me.profile.carveoutSettings.truncationMode = fields.truncationMode;
me.profile.carveoutSettings.applyTruncation = fields.applyTruncation;
me.profile.carveoutSettings.truncationValue = fields.truncationValue;
me.profile.carveoutSettings.applyExclusion = fields.applyExclusion;
me.profile.carveoutSettings.serviceTypes = me.getSelected(me.getServiceTypeSelector().getStore(), 'ServiceSubCategoryID');
me.profile.carveoutSettings.placeOfServices = me.getSelected(me.getPlaceOfServiceSelector().getStore(), 'code');
me.profile.carveoutSettings.chronicConditions = me.getSelected(me.getChronicConditionSelector().getStore(), 'column');
} else {
this.profile.carveoutSettings = {
truncationMethod: fields.truncationMethod,
truncationMode: fields.truncationMode,
applyTruncation: fields.applyTruncation,
truncationValue: fields.truncationValue,
applyExclusion: fields.applyExclusion,
serviceTypes: me.getSelected(me.getServiceTypeSelector().getStore(), 'ServiceSubCategoryID'),
placeOfServices: me.getSelected(me.getPlaceOfServiceSelector().getStore(), 'code'),
chronicConditions: me.getSelected(me.getChronicConditionSelector().getStore(), 'column')
}
}