-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4577 from hmislk/Issue#4576
closes #4576
- Loading branch information
Showing
4 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
src/main/webapp/resources/ezcomp/emr/patient_procedures.xhtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?xml version='1.0' encoding='UTF-8' ?> | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:cc="http://xmlns.jcp.org/jsf/composite" | ||
xmlns:f="http://xmlns.jcp.org/jsf/core" | ||
xmlns:h="http://xmlns.jcp.org/jsf/html" | ||
xmlns:p="http://primefaces.org/ui"> | ||
|
||
<!-- INTERFACE --> | ||
<cc:interface> | ||
<cc:attribute name="procedures" /> | ||
<cc:attribute name="editable" type="boolean" default="false" /> | ||
</cc:interface> | ||
|
||
<!-- IMPLEMENTATION --> | ||
<cc:implementation> | ||
<p:dataTable | ||
id="tblPrc" | ||
value="#{cc.attrs.procedures}" | ||
var="pr"> | ||
|
||
<p:column headerText="Procedure"> | ||
<p:outputLabel value="#{pr.itemValue.name}" /> | ||
<h:outputText value="#{not empty pr.stringValue ? ' - '.concat(pr.stringValue) : ''}" /> | ||
<p:spacer height="1" width="20" ></p:spacer> | ||
<p:commandButton | ||
rendered="#{cc.attrs.editable}" | ||
icon="pi pi-times" | ||
styleClass="ui-button-danger float-right" | ||
process="@this" | ||
update="tblPrc" | ||
onclick="if (!confirm('Are you sure you want to delete this diagnosis?')) return false;" | ||
action="#{patientEncounterController.removeClinicalFindingValueForComposite(cc.attrs.procedures, pr)}"> | ||
</p:commandButton> | ||
</p:column> | ||
</p:dataTable> | ||
</cc:implementation> | ||
</html> |