medications merge UI with sub directives