public JoinableCollectionNodeMenu(RDMPContextMenuStripArgs args, JoinableCollectionNode patientIndexTablesNode) : base(args, patientIndexTablesNode)
 {
     Add(new ExecuteCommandAddCatalogueToCohortIdentificationAsPatientIndexTable(_activator, patientIndexTablesNode.Configuration));
 }
Exemplo n.º 2
0
        private ICommandExecution CreateWhenTargetIsJoinableCollectionNode(ICombineToMakeCommand cmd, JoinableCollectionNode targetJoinableCollectionNode)
        {
            if (cmd is AggregateConfigurationCombineable sourceAggregateConfigurationCombineable)
            {
                if (sourceAggregateConfigurationCombineable.Aggregate.IsCohortIdentificationAggregate)
                {
                    return(new ExecuteCommandConvertAggregateConfigurationToPatientIndexTable(_activator, sourceAggregateConfigurationCombineable, targetJoinableCollectionNode.Configuration));
                }
            }

            if (cmd is CatalogueCombineable sourceCatalogueCombineable)
            {
                return(new ExecuteCommandAddCatalogueToCohortIdentificationAsPatientIndexTable(_activator, sourceCatalogueCombineable, targetJoinableCollectionNode.Configuration));
            }

            return(null);
        }