>
                                <p:dialog id="dlgPath" header="Pathology Report" widgetVar="dlgPath" modal="true">
                                    <h:panelGroup rendered="#{patientReportController.investigationItem eq null}" >
                                        <p:outputLabel value="Please select a template first" ></p:outputLabel>
                                        <p:commandButton id="btnCloseGlg1"
                                                         oncomplete="PF('dlgPath').hide();" 