Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Histology request form #828

Open
wants to merge 3 commits into
base: release23.3-SNAPSHOT
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions onprc_ehr/resources/queries/study/IPC_CassetteColors.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SELECT value, name from Site.{substitutePath moduleProperty('EHR','EHRStudyContainer')}.onprc_ehr.IPC_Reference_Data
Where name like 'IPCCassetteColor' and dateDisabled is null
87 changes: 87 additions & 0 deletions onprc_ehr/resources/queries/study/IPC_CassettePrinting.query.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
<!--IPC schema. Added by Kolli, 04/2020 -->
<query xmlns="http://labkey.org/data/xml/query">
<metadata>
<tables xmlns="http://labkey.org/data/xml">
<table tableName="IPC_CassettePrinting" tableDbType="TABLE" useColumnOrder="true">
<tableUrl />
<tableTitle>IPC Cassette Printing</tableTitle>
<columns>
<column columnName="rowId">
<isHidden>true</isHidden>
</column>

<column columnName="Id">
<columnTitle>Id</columnTitle>
</column>

<column columnName="Date">
<columnTitle>Date</columnTitle>
</column>

<column columnName="tissueType">
<columnTitle>Tissue Types</columnTitle>
<fk>
<fkDbSchema>study</fkDbSchema>
<fkTable>IPC_TissueTypes</fkTable>
<fkColumnName>value</fkColumnName>
</fk>
</column>

<column columnName="PILabel">
<columnTitle>PI Label Text</columnTitle>
</column>

<column columnName="cassetteColor">
<columnTitle>Cassette Color</columnTitle>
<fk>
<fkDbSchema>study</fkDbSchema>
<fkTable>IPC_CassetteColors</fkTable>
<fkColumnName>value</fkColumnName>
</fk>
</column>

<column columnName="remark">
<columnTitle>Remarks</columnTitle>
</column>

<column columnName="qcstate">
<fk>
<fkDbSchema>study</fkDbSchema>
<fkTable>qcstate</fkTable>
<fkColumnName>RowId</fkColumnName>
</fk>
</column>

<column columnName="taskid">
<columnTitle>Task Id</columnTitle>
<fk>
<fkDbSchema>ehr</fkDbSchema>
<fkTable>tasks</fkTable>
<fkColumnName>taskid</fkColumnName>
</fk>
</column>
<column columnName="objectid">
<isHidden>true</isHidden>
</column>
<column columnName="performedBy">
<columnTitle>Performed By</columnTitle>
</column>
<column columnName="created">
<isHidden>true</isHidden>
</column>
<column columnName="createdby"/>

<column columnName="modified">
<isHidden>true</isHidden>
</column>
<column columnName="modifiedby"/>

<column columnName="container">
<isHidden>true</isHidden>
</column>

</columns>
</table>
</tables>
</metadata>
</query>
2 changes: 2 additions & 0 deletions onprc_ehr/resources/queries/study/IPC_CurrentFixative.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SELECT value, name from Site.{substitutePath moduleProperty('EHR','EHRStudyContainer')}.onprc_ehr.IPC_Reference_Data
Where name like 'IPCCurrentFixative' and dateDisabled is null
3 changes: 3 additions & 0 deletions onprc_ehr/resources/queries/study/IPC_Embedding.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-- Get Embedding values
SELECT value, name from Site.{substitutePath moduleProperty('EHR','EHRStudyContainer')}.onprc_ehr.IPC_Reference_Data
Where name like 'IPCEmbedding' and dateDisabled is null
2 changes: 2 additions & 0 deletions onprc_ehr/resources/queries/study/IPC_FixationMethod.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SELECT value, name from Site.{substitutePath moduleProperty('EHR','EHRStudyContainer')}.onprc_ehr.IPC_Reference_Data
Where name like 'IPCFixationMethod' and dateDisabled is null
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SELECT value, name from Site.{substitutePath moduleProperty('EHR','EHRStudyContainer')}.onprc_ehr.IPC_Reference_Data
Where name like 'IPCFrozenSectionThickness' and dateDisabled is null
2 changes: 2 additions & 0 deletions onprc_ehr/resources/queries/study/IPC_FrozenSectioning.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SELECT value, name from Site.{substitutePath moduleProperty('EHR','EHRStudyContainer')}.onprc_ehr.IPC_Reference_Data
Where name like 'IPCFrozenSectioning' and dateDisabled is null
2 changes: 2 additions & 0 deletions onprc_ehr/resources/queries/study/IPC_HandE.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SELECT value, name from Site.{substitutePath moduleProperty('EHR','EHRStudyContainer')}.onprc_ehr.IPC_Reference_Data
Where name like 'IPCHAndE' and dateDisabled is null
2 changes: 2 additions & 0 deletions onprc_ehr/resources/queries/study/IPC_IHC.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SELECT value, name from Site.{substitutePath moduleProperty('EHR','EHRStudyContainer')}.onprc_ehr.IPC_Reference_Data
Where name like 'IPCIHC' and dateDisabled is null
2 changes: 2 additions & 0 deletions onprc_ehr/resources/queries/study/IPC_IHCAntibody.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SELECT value, name from Site.{substitutePath moduleProperty('EHR','EHRStudyContainer')}.onprc_ehr.IPC_Reference_Data
Where name like 'IPCIHCAntibody' and dateDisabled is null
3 changes: 3 additions & 0 deletions onprc_ehr/resources/queries/study/IPC_Investigators.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SELECT lastName + ', ' + firstName as name
From Site.{substitutePath moduleProperty('EHR','EHRStudyContainer')}.onprc_ehr.investigators
Where dateDisabled is null
3 changes: 3 additions & 0 deletions onprc_ehr/resources/queries/study/IPC_Locations.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SELECT room
From Site.{substitutePath moduleProperty('EHR','EHRStudyContainer')}.ehr_lookups.rooms
Where dateDisabled is null order by room
80 changes: 80 additions & 0 deletions onprc_ehr/resources/queries/study/IPC_Other.query.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<!--IPC schema. Added by Kolli, 04/2020 -->
<query xmlns="http://labkey.org/data/xml/query">
<metadata>
<tables xmlns="http://labkey.org/data/xml">
<table tableName="IPC_Other" tableDbType="TABLE" useColumnOrder="true">
<tableUrl />
<tableTitle>IPC Other</tableTitle>
<columns>
<column columnName="rowId">
<isHidden>true</isHidden>
</column>

<column columnName="Id">
<columnTitle>Id</columnTitle>
</column>

<column columnName="Date">
<columnTitle>Date</columnTitle>
</column>

<column columnName="tissueType">
<columnTitle>Tissue Types</columnTitle>
<fk>
<fkDbSchema>study</fkDbSchema>
<fkTable>IPC_TissueTypes</fkTable>
<fkColumnName>value</fkColumnName>
</fk>
</column>

<column columnName="serviceAndProducts">
<columnTitle>Services And Products</columnTitle>
<fk>
<fkDbSchema>study</fkDbSchema>
<fkTable>IPC_OtherServices</fkTable>
<fkColumnName>value</fkColumnName>
</fk>
</column>

<column columnName="performedBy">
<columnTitle>Performed By</columnTitle>
</column>

<column columnName="qcstate">
<fk>
<fkDbSchema>study</fkDbSchema>
<fkTable>qcstate</fkTable>
<fkColumnName>RowId</fkColumnName>
</fk>
</column>

<column columnName="taskid">
<columnTitle>Task Id</columnTitle>
<fk>
<fkDbSchema>ehr</fkDbSchema>
<fkTable>tasks</fkTable>
<fkColumnName>taskid</fkColumnName>
</fk>
</column>
<column columnName="objectid">
<isHidden>true</isHidden>
</column>
<column columnName="created">
<isHidden>true</isHidden>
</column>
<column columnName="createdby"/>

<column columnName="modified">
<isHidden>true</isHidden>
</column>
<column columnName="modifiedby"/>

<column columnName="container">
<isHidden>true</isHidden>
</column>

</columns>
</table>
</tables>
</metadata>
</query>
2 changes: 2 additions & 0 deletions onprc_ehr/resources/queries/study/IPC_OtherServices.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SELECT value, name from Site.{substitutePath moduleProperty('EHR','EHRStudyContainer')}.onprc_ehr.IPC_Reference_Data
Where name like 'IPCOtherServices' and dateDisabled is null
2 changes: 2 additions & 0 deletions onprc_ehr/resources/queries/study/IPC_ParaffinSectioning.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SELECT value, name from Site.{substitutePath moduleProperty('EHR','EHRStudyContainer')}.onprc_ehr.IPC_Reference_Data
Where name like 'IPCParaffinSectioning' and dateDisabled is null
3 changes: 3 additions & 0 deletions onprc_ehr/resources/queries/study/IPC_Pathologist.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SELECT displayname as name
From Site.{substitutePath moduleProperty('EHR','EHRStudyContainer')}.onprc_ehr.Reference_StaffNames
Where Type like 'Necropsy' and DisableDate is null
115 changes: 115 additions & 0 deletions onprc_ehr/resources/queries/study/IPC_ProcessingEmbedding.query.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
<!--IPC schema. Added by Kolli, 04/2020 -->
<query xmlns="http://labkey.org/data/xml/query">
<metadata>
<tables xmlns="http://labkey.org/data/xml">
<table tableName="IPC_ProcessingEmbedding" tableDbType="TABLE" useColumnOrder="true">
<tableUrl />
<tableTitle>IPC Processing Embedding</tableTitle>
<columns>
<column columnName="rowId">
<isHidden>true</isHidden>
</column>

<column columnName="Id">
<columnTitle>Id</columnTitle>
</column>

<column columnName="Date">
<columnTitle>Date</columnTitle>
</column>

<column columnName="tissueType">
<columnTitle>Tissue Types</columnTitle>
<fk>
<fkDbSchema>study</fkDbSchema>
<fkTable>IPC_TissueTypes</fkTable>
<fkColumnName>value</fkColumnName>
</fk>
</column>

<column columnName="embedding">
<columnTitle>Embedding</columnTitle>
<fk>
<fkDbSchema>study</fkDbSchema>
<fkTable>IPC_Embedding</fkTable>
<fkColumnName>value</fkColumnName>
</fk>
</column>

<column columnName="fixationMethod">
<columnTitle>Initial Fixative</columnTitle>
<fk>
<fkDbSchema>study</fkDbSchema>
<fkTable>IPC_FixationMethod</fkTable>
<fkColumnName>value</fkColumnName>
</fk>
</column>

<column columnName="fixationDuration">
<columnTitle>Fixation Duration</columnTitle>
</column>

<column columnName="currentFixative">
<columnTitle>Current Fixative</columnTitle>
<fk>
<fkDbSchema>study</fkDbSchema>
<fkTable>IPC_CurrentFixative</fkTable>
<fkColumnName>value</fkColumnName>
</fk>
</column>

<column columnName="processingType">
<columnTitle>Processing Type</columnTitle>
<fk>
<fkDbSchema>study</fkDbSchema>
<fkTable>IPC_ProcessingType</fkTable>
<fkColumnName>value</fkColumnName>
</fk>
</column>

<column columnName="embeddingIns">
<columnTitle>Embedding Instructions</columnTitle>
</column>

<column columnName="performedBy">
<columnTitle>Performed By</columnTitle>
</column>

<column columnName="qcstate">
<fk>
<fkDbSchema>study</fkDbSchema>
<fkTable>qcstate</fkTable>
<fkColumnName>RowId</fkColumnName>
</fk>
</column>

<column columnName="taskid">
<columnTitle>Task Id</columnTitle>
<fk>
<fkDbSchema>ehr</fkDbSchema>
<fkTable>tasks</fkTable>
<fkColumnName>taskid</fkColumnName>
</fk>
</column>
<column columnName="objectid">
<isHidden>true</isHidden>
</column>
<column columnName="created">
<isHidden>true</isHidden>
</column>
<column columnName="createdby"/>

<column columnName="modified">
<isHidden>true</isHidden>
</column>
<column columnName="modifiedby"/>

<column columnName="container">
<isHidden>true</isHidden>
</column>

</columns>
</table>
</tables>
</metadata>
</query>
2 changes: 2 additions & 0 deletions onprc_ehr/resources/queries/study/IPC_ProcessingType.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SELECT value, name from Site.{substitutePath moduleProperty('EHR','EHRStudyContainer')}.onprc_ehr.IPC_Reference_Data
Where name like 'IPCProcessingType' and dateDisabled is null
2 changes: 2 additions & 0 deletions onprc_ehr/resources/queries/study/IPC_RNAScope.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SELECT value, name from Site.{substitutePath moduleProperty('EHR','EHRStudyContainer')}.onprc_ehr.IPC_Reference_Data
Where name like 'IPCRNAScope' and dateDisabled is null
2 changes: 2 additions & 0 deletions onprc_ehr/resources/queries/study/IPC_SectionThickness.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SELECT value, name from Site.{substitutePath moduleProperty('EHR','EHRStudyContainer')}.onprc_ehr.IPC_Reference_Data
Where name like 'IPCSectionThickness' and dateDisabled is null
Loading