-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
43 changed files
with
1,987 additions
and
631 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
WNPRC_EHR/resources/queries/study/Necropsy/mostRecentNecropsy.qview.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 @@ | ||
<customView xmlns="http://labkey.org/data/xml/queryCustomView"> | ||
<columns> | ||
<column name="Id"> | ||
<properties> | ||
<property name="columnTitle" value="ID"/> | ||
</properties> | ||
</column> | ||
</columns> | ||
<sorts> | ||
<sort column="date" descending="true"/> | ||
</sorts> | ||
</customView> |
44 changes: 44 additions & 0 deletions
44
WNPRC_EHR/resources/queries/study/Necropsy/notificationView.qview.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,44 @@ | ||
<customView xmlns="http://labkey.org/data/xml/queryCustomView"> | ||
<columns> | ||
<column name="Id"> | ||
<properties> | ||
<property name="columnTitle" value="ID"/> | ||
</properties> | ||
</column> | ||
<column name="caseno"> | ||
<properties> | ||
<property name="columnTitle" value="Necropsy Case Number"/> | ||
</properties> | ||
</column> | ||
<column name="taskid"> | ||
<properties> | ||
<property name="columnTitle" value="Task ID"/> | ||
</properties> | ||
</column> | ||
<column name="date"> | ||
<properties> | ||
<property name="columnTitle" value="Date of Necropsy"/> | ||
</properties> | ||
</column> | ||
<column name="timeofdeath"> | ||
<properties> | ||
<property name="columnTitle" value="Time of Death"/> | ||
</properties> | ||
</column> | ||
<column name="causeofdeath"> | ||
<properties> | ||
<property name="columnTitle" value="Type of Death"/> | ||
</properties> | ||
</column> | ||
<column name="project"> | ||
<properties> | ||
<property name="columnTitle" value="Project"/> | ||
</properties> | ||
</column> | ||
<column name="mannerofdeath"> | ||
<properties> | ||
<property name="columnTitle" value="Manner of Death"/> | ||
</properties> | ||
</column> | ||
</columns> | ||
</customView> |
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,23 @@ | ||
|
||
//This is REQUIRED to make the script functions (onInit, onComplete, etc.) work. | ||
require("ehr/triggers").initScript(this); | ||
|
||
//Sets up class variables. | ||
EHR.Server.Utils = require("ehr/utils").EHR.Server.Utils; | ||
var WNPRC = require("wnprc_ehr/WNPRC").WNPRC; | ||
var LABKEY = require("labkey"); | ||
var console = require("console"); | ||
|
||
//This is called when the death record is officially submitted. | ||
function onComplete(event, errors, helper) { | ||
console.log("deaths.js: ONCOMPLETE (correct version)"); | ||
|
||
//Gets ID's. | ||
var ids = helper.getRows().map(function (row) { | ||
return row.row.id; | ||
}); | ||
|
||
//Sends notification. | ||
var hostName = 'https://' + LABKEY.serverName; | ||
WNPRC.Utils.getJavaHelper().sendDeathNotification(ids, hostName); | ||
} |
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
32 changes: 32 additions & 0 deletions
32
...ources/queries/study/validationSuiteSuffixCheckerRhesusDamSire/notificationView.qview.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,32 @@ | ||
<customView xmlns="http://labkey.org/data/xml/queryCustomView"> | ||
<columns> | ||
<column name="last_four"> | ||
<properties> | ||
<property name="columnTitle" value="ID Last Four"/> | ||
</properties> | ||
</column> | ||
<column name="sire"> | ||
<properties> | ||
<property name="columnTitle" value="Sire"/> | ||
</properties> | ||
</column> | ||
<column name="dam"> | ||
<properties> | ||
<property name="columnTitle" value="Dam"/> | ||
</properties> | ||
</column> | ||
<column name="frequency"> | ||
<properties> | ||
<property name="columnTitle" value="Frequency"/> | ||
</properties> | ||
</column> | ||
<column name="species"> | ||
<properties> | ||
<property name="columnTitle" value="Species"/> | ||
</properties> | ||
</column> | ||
</columns> | ||
<sorts> | ||
<sort column="last_four" descending="false"/> | ||
</sorts> | ||
</customView> |
37 changes: 37 additions & 0 deletions
37
...rces/queries/study/validationSuiteSuffixCheckerRhesusDamSireID/notificationView.qview.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,37 @@ | ||
<customView xmlns="http://labkey.org/data/xml/queryCustomView"> | ||
<columns> | ||
<column name="last_four"> | ||
<properties> | ||
<property name="columnTitle" value="ID Last Four"/> | ||
</properties> | ||
</column> | ||
<column name="sire"> | ||
<properties> | ||
<property name="columnTitle" value="Sire"/> | ||
</properties> | ||
</column> | ||
<column name="dam"> | ||
<properties> | ||
<property name="columnTitle" value="Dam"/> | ||
</properties> | ||
</column> | ||
<column name="id"> | ||
<properties> | ||
<property name="columnTitle" value="ID"/> | ||
</properties> | ||
</column> | ||
<column name="frequency"> | ||
<properties> | ||
<property name="columnTitle" value="Frequency"/> | ||
</properties> | ||
</column> | ||
<column name="species"> | ||
<properties> | ||
<property name="columnTitle" value="Species"/> | ||
</properties> | ||
</column> | ||
</columns> | ||
<sorts> | ||
<sort column="last_four" descending="false"/> | ||
</sorts> | ||
</customView> |
22 changes: 22 additions & 0 deletions
22
...R/resources/queries/study/validationSuiteSuffixCheckerRhesusID/notificationView.qview.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,22 @@ | ||
<customView xmlns="http://labkey.org/data/xml/queryCustomView"> | ||
<columns> | ||
<column name="last_four"> | ||
<properties> | ||
<property name="columnTitle" value="ID Last Four"/> | ||
</properties> | ||
</column> | ||
<column name="id"> | ||
<properties> | ||
<property name="columnTitle" value="ID"/> | ||
</properties> | ||
</column> | ||
<column name="species"> | ||
<properties> | ||
<property name="columnTitle" value="Species"/> | ||
</properties> | ||
</column> | ||
</columns> | ||
<sorts> | ||
<sort column="last_four" descending="false"/> | ||
</sorts> | ||
</customView> |
37 changes: 37 additions & 0 deletions
37
...rces/queries/study/validationSuiteSuffixCheckerRhesusIDDamSire/notificationView.qview.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,37 @@ | ||
<customView xmlns="http://labkey.org/data/xml/queryCustomView"> | ||
<columns> | ||
<column name="last_four"> | ||
<properties> | ||
<property name="columnTitle" value="ID Last Four"/> | ||
</properties> | ||
</column> | ||
<column name="sire"> | ||
<properties> | ||
<property name="columnTitle" value="Sire"/> | ||
</properties> | ||
</column> | ||
<column name="dam"> | ||
<properties> | ||
<property name="columnTitle" value="Dam"/> | ||
</properties> | ||
</column> | ||
<column name="id"> | ||
<properties> | ||
<property name="columnTitle" value="ID"/> | ||
</properties> | ||
</column> | ||
<column name="frequency"> | ||
<properties> | ||
<property name="columnTitle" value="Frequency"/> | ||
</properties> | ||
</column> | ||
<column name="species"> | ||
<properties> | ||
<property name="columnTitle" value="Species"/> | ||
</properties> | ||
</column> | ||
</columns> | ||
<sorts> | ||
<sort column="last_four" descending="false"/> | ||
</sorts> | ||
</customView> |
Oops, something went wrong.