-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modified Compliance Xcel formatting reports.
- Loading branch information
Showing
12 changed files
with
630 additions
and
1 deletion.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
ONPRC_EHR_ComplianceDB/resources/queries/EHR_ComplianceDB/EmployeeAssignedStatus.query.xml
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,12 @@ | ||
<query xmlns="http://labkey.org/data/xml/query"> | ||
<metadata> | ||
<tables xmlns="http://labkey.org/data/xml"> | ||
<table tableName="EmployeeAssignedStatus" tableDbType="NOT_IN_DB"> | ||
<tableTitle>Employee Assigned Status</tableTitle> | ||
|
||
<columns> | ||
</columns> | ||
</table> | ||
</tables> | ||
</metadata> | ||
</query> |
4 changes: 4 additions & 0 deletions
4
ONPRC_EHR_ComplianceDB/resources/queries/EHR_ComplianceDB/EmployeeAssignedStatus.sql
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,4 @@ | ||
|
||
Select value from ehr_compliancedb.employee_Reference_Data | ||
Where columnname = 'training_status' | ||
And endDate is null |
10 changes: 10 additions & 0 deletions
10
ONPRC_EHR_ComplianceDB/resources/queries/EHR_ComplianceDB/EmployeeToLocationXcel.query.xml
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,10 @@ | ||
<query xmlns="http://labkey.org/data/xml/query"> | ||
<metadata> | ||
<tables xmlns="http://labkey.org/data/xml"> | ||
<table tableName="EmployeeToLocationXcel" tableDbType="NOT_IN_DB"> | ||
<tableTitle>Employee To Training Location PIVOT</tableTitle> | ||
|
||
</table> | ||
</tables> | ||
</metadata> | ||
</query> |
12 changes: 12 additions & 0 deletions
12
ONPRC_EHR_ComplianceDB/resources/queries/EHR_ComplianceDB/EmployeeToLocationXcel.sql
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,12 @@ | ||
select | ||
|
||
coalesce(jj.location, '') as location, | ||
|
||
jj.employeeid as employeeid | ||
|
||
|
||
from ehr_compliancedb.employee_assigned_location jj | ||
|
||
group by jj.employeeid, jj.location | ||
|
||
PIVOT location by employeeid |
10 changes: 10 additions & 0 deletions
10
..._EHR_ComplianceDB/resources/queries/EHR_ComplianceDB/EmployeeToRequirementsXcel.query.xml
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,10 @@ | ||
<query xmlns="http://labkey.org/data/xml/query"> | ||
<metadata> | ||
<tables xmlns="http://labkey.org/data/xml"> | ||
<table tableName="EmployeeToRequirementsXcel" tableDbType="NOT_IN_DB"> | ||
<tableTitle>Employee To Requirement Name PIVOT</tableTitle> | ||
|
||
</table> | ||
</tables> | ||
</metadata> | ||
</query> |
8 changes: 8 additions & 0 deletions
8
ONPRC_EHR_ComplianceDB/resources/queries/EHR_ComplianceDB/EmployeeToRequirementsXcel.sql
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,8 @@ | ||
select | ||
jj.employeeid as employeeid, | ||
coalesce(jj.requirementname, '') as requirementname | ||
from ehr_compliancedb.employeeTraining jj where | ||
jj.employeeid in (select ss.employeeid from ehr_compliancedb.Employees ss where ss.MajorUDDS = 'OPS - ASB') | ||
|
||
group by jj.employeeid, jj.Requirementname | ||
PIVOT requirementname by employeeid |
53 changes: 53 additions & 0 deletions
53
..._EHR_ComplianceDB/resources/queries/EHR_ComplianceDB/Employee_Assigned_Location.query.xml
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,53 @@ | ||
<query xmlns="http://labkey.org/data/xml/query"> | ||
<metadata> | ||
<tables xmlns="http://labkey.org/data/xml"> | ||
<table tableName="Employee_Assigned_Location" tableDbType="NOT_IN_DB"> | ||
<tableTitle>Employee Assigned Areas</tableTitle> | ||
|
||
<columns> | ||
<column columnName="employeeId"> | ||
<fk> | ||
<fkDbSchema>ehr_compliancedb</fkDbSchema> | ||
<fkTable>employees</fkTable> | ||
<fkColumnName>employeeId</fkColumnName> | ||
</fk> | ||
</column> | ||
|
||
<column columnName="location"> | ||
<fk> | ||
<fkDbSchema>ehr_compliancedb</fkDbSchema> | ||
<fkTable>employees</fkTable> | ||
<fkColumnName>employeeId</fkColumnName> | ||
</fk> | ||
</column> | ||
|
||
<column columnName="status"> | ||
<fk> | ||
<fkDbSchema>ehr_compliancedb</fkDbSchema> | ||
<fkTable>employeeAssignedStatus</fkTable> | ||
<fkColumnName>value</fkColumnName> | ||
</fk> | ||
</column> | ||
<column columnName ="rowId"> | ||
<isHidden>true</isHidden> | ||
</column> | ||
|
||
<column columnName="objectid"> | ||
<isHidden>true</isHidden> | ||
</column> | ||
<column columnName="taskid"> | ||
<fk> | ||
<fkDbSchema>ehr</fkDbSchema> | ||
<fkTable>tasks</fkTable> | ||
<fkColumnName>taskid</fkColumnName> | ||
<fkDisplayColumnName>rowid</fkDisplayColumnName> | ||
</fk> | ||
</column> | ||
<column columnName="container"> | ||
<isHidden>true</isHidden> | ||
</column> | ||
</columns> | ||
</table> | ||
</tables> | ||
</metadata> | ||
</query> |
40 changes: 40 additions & 0 deletions
40
ONPRC_EHR_ComplianceDB/resources/queries/EHR_ComplianceDB/Employee_Reference_Data.query.xml
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,40 @@ | ||
<query xmlns="http://labkey.org/data/xml/query"> | ||
<metadata> | ||
<tables xmlns="http://labkey.org/data/xml"> | ||
<table tableName="Employee_Reference_Data" tableDbType="NOT_IN_DB"> | ||
<tableTitle>Employee Reference Data</tableTitle> | ||
|
||
<columns> | ||
<column columnName ="rowId"> | ||
<isHidden>true</isHidden> | ||
</column> | ||
<column columnName="value"> | ||
<columnTitle>Host Name</columnTitle> | ||
</column> | ||
<column columnName="endDate"> | ||
<columnTitle>End Date</columnTitle> | ||
</column> | ||
<column columnName="objectid"> | ||
<isHidden>true</isHidden> | ||
</column> | ||
<column columnName="columnName"> | ||
<columnTitle>Column Name</columnTitle> | ||
<!-- <fk>--> | ||
<!-- <fkTable>ComplianceHostIdentifier</fkTable>--> | ||
<!-- <fkColumnName>value</fkColumnName>--> | ||
<!-- --> | ||
<!-- </fk>--> | ||
</column> | ||
|
||
<column columnName="Label"> | ||
<isHidden>true</isHidden> | ||
</column> | ||
|
||
<column columnName="sort_order"> | ||
<isHidden>true</isHidden> | ||
</column> | ||
</columns> | ||
</table> | ||
</tables> | ||
</metadata> | ||
</query> |
93 changes: 93 additions & 0 deletions
93
ONPRC_EHR_ComplianceDB/resources/queries/EHR_ComplianceDB/employeeTraining.query.xml
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,93 @@ | ||
<query xmlns="http://labkey.org/data/xml/query"> | ||
<metadata> | ||
<tables xmlns="http://labkey.org/data/xml"> | ||
<table tableName="employeeTraining" tableDbType="NOT_IN_DB"> | ||
<tableTitle>Employee Requirement Details</tableTitle> | ||
|
||
<columns> | ||
<column columnName="employeeId"> | ||
<fk> | ||
<fkDbSchema>ehr_compliancedb</fkDbSchema> | ||
<fkTable>employees</fkTable> | ||
<fkColumnName>employeeId</fkColumnName> | ||
</fk> | ||
</column> | ||
|
||
|
||
<column columnName ="rowId"> | ||
<isHidden>true</isHidden> | ||
</column> | ||
|
||
<column columnName="objectid"> | ||
<isHidden>true</isHidden> | ||
</column> | ||
<column columnName="taskid"> | ||
<isHidden>true</isHidden> | ||
</column> | ||
<column columnName="next_training"> | ||
<columnTitle>Assigned_Status</columnTitle> | ||
<fk> | ||
<fkDbSchema>ehr_compliancedb</fkDbSchema> | ||
<fkTable>employeeAssignedStatus</fkTable> | ||
<fkColumnName>value</fkColumnName> | ||
</fk> | ||
<conditionalFormats> | ||
<conditionalFormat> | ||
<filters> | ||
<filter operator="eq" value="Proficient"/> | ||
</filters> | ||
<backgroundColor>9FE2BF</backgroundColor> | ||
</conditionalFormat> | ||
<conditionalFormat> | ||
<filters> | ||
<filter operator="eq" value="Partial Trained"/> | ||
</filters> | ||
<backgroundColor>6495ED</backgroundColor> | ||
</conditionalFormat> | ||
<conditionalFormat> | ||
<filters> | ||
<filter operator="eq" value="Next To Train"/> | ||
</filters> | ||
<backgroundColor>FFBF00</backgroundColor> | ||
</conditionalFormat> | ||
<conditionalFormat> | ||
<filters> | ||
<filter operator="eq" value="Not Trained"/> | ||
</filters> | ||
<backgroundColor>CD5C5C</backgroundColor> | ||
</conditionalFormat> | ||
<conditionalFormat> | ||
<filters> | ||
<filter operator="eq" value="Partial Trained"/> | ||
</filters> | ||
<backgroundColor>1F618D</backgroundColor> | ||
</conditionalFormat> | ||
</conditionalFormats> | ||
</column> | ||
<column columnName="unit"> | ||
<columnTitle>Unit</columnTitle> | ||
<fk> | ||
<fkFolderPath>/ONPRC/Admin/Compliance</fkFolderPath> | ||
<fkDbSchema>ehr_compliancedb</fkDbSchema> | ||
<fkTable>unit_names</fkTable> | ||
<fkColumnName>unit</fkColumnName> | ||
</fk> | ||
</column> | ||
<column columnName="category"> | ||
<columnTitle>Category</columnTitle> | ||
<fk> | ||
<fkFolderPath>/ONPRC/Admin/Compliance</fkFolderPath> | ||
<fkDbSchema>ehr_compliancedb</fkDbSchema> | ||
<fkTable>employeecategory</fkTable> | ||
<fkColumnName>categoryname</fkColumnName> | ||
</fk> | ||
</column> | ||
<column columnName="container"> | ||
<isHidden>true</isHidden> | ||
</column> | ||
</columns> | ||
</table> | ||
</tables> | ||
</metadata> | ||
</query> | ||
|
Oops, something went wrong.