Skip to content

Orchard Harvest HL7 Integration#484

Merged
spamhurts merged 18 commits intorelease22.7-SNAPSHOTfrom
22.7_fb_HL7Integration
Aug 16, 2022
Merged

Orchard Harvest HL7 Integration#484
spamhurts merged 18 commits intorelease22.7-SNAPSHOTfrom
22.7_fb_HL7Integration

Conversation

@spamhurts
Copy link
Copy Markdown
Collaborator

Rationale

Related Pull Requests

Changes

• Created new tables for HL7 results import
• Added missing remark column to labwork pivot queries
• Added pivot tables for Clinical Path Lab data - Updated table names - updated stored procedure for new table names - changed file path
• Fixed FK in OBR table in metadata
• Added SQL scripts in source_queries to migrate old clinpath data to new datasets; runs in SSMS -Refactored FK link between assay_labworkResults, labworkTaqman and labworkPanels;
• FK changed from RowId to ObjectId - added pivot columns to test type specific pivot queries -
• added metadata for pivot queries -
• Refactored LabResultsLabworkType.java to use LabworkResultsAll as data source for labwork data -
• removed unused source queries and ETLs -
• added serviceTestId column to HL7_OBX table
• new tables for HL7 results import
• Added missing remark column to labwork pivot queries
• Added remark column to Culture pivot report and fixed foreign key
• Added remark column to Chemistry pivot report
• Added remark column to Hematology pivot report and fixed foreign key
• re-fixed CulturePivot foreign key
• Fixed remark value in MiscPivot
• fixed foreign key
• Add remark value to Parasitology pivot
• fixed foreign key
• Add remark value to Parasitology O&P pivot and fixed foreign key
• Add remark value to Surveillance pivot and fixed foreign key
• Add remark value to Urinalysis pivot and fixed foreign key
• Added pivot tables for Clinical Path Lab data
o - Updated table names
o - updated stored procedure for new table names
o - changed file structure
• Added SQL scripts in source_queries to migrate old clinpath data to new datasets; runs in SSMS
• -Refactored FK link between assay_labworkResults, labworkTaqman and labworkPanels;
• FK changed from RowId to ObjectId
• - added pivot columns to test type specific pivot queries
• - added metadata for pivot queries
• - Refactored LabResultsLabworkType.java to use LabworkResultsAll as data source for labwork data
• - removed unused source queries and ETLs
• - added serviceTestId column to HL7_OBX table
• Added study.labworkResults dataset to labworkResultsAll.sql query; TODO: remove study.labworkResults from query after data is merged into HL7_MSH, HL7_OBR, and HL7_OBX
• copy Sqlmed Msh to LK.sql - fixed column order and removed CAST from MESSAGE_DATE_TM source column
• Added HL7_GroupNTE view to concatenate NTE records into a single field for HL7 pivots
• - Updated HL7 pivot queries to use HL7_GroupNTE
• - added ProcedureName and TestName logic to HL7HematologyPivot.sql
• - added container column to HL7 tables
• - added container to Sqlmed migration scripts
• - added container column to Herme Tech stored procedure

spamhurts added 16 commits June 2, 2022 17:24
* - Added remark column to Culture pivot report
- fixed foreign key

* - Added remark column to Chemistry pivot report

* - Added remark column to Hematology pivot report
- fixed foreign key

* - re-fixed CulturePivot foreign key

* - Fixed remark value in MiscPivot
- fixed foreign key

* - Add remark value to Parasitology pivot
- fixed foreign key

* - Add remark value to Parasitology O&P pivot
- fixed foreign key

* - Add remark value to Surveillance pivot
- fixed foreign key

* - Add remark value to Urinalysis pivot
- fixed foreign key
- Updated table names
- updated stored procedure for new table names
- changed file structure
- Begin adding ETLs to bring Sqlmed data into new table structures
- Fixed FK in OBR table in metadata
… new datasets; runs in SSMS

-Refactored FK link between assay_labworkResults, labworkTaqman and labworkPanels;
 FK changed from RowId to ObjectId
 - added pivot columns to test type specific pivot queries
 - added metadata for pivot queries
 - Refactored LabResultsLabworkType.java to use LabworkResultsAll as data source for labwork data
 - removed unused source queries and ETLs
 - added serviceTestId column to HL7_OBX table
…DO: remove study.labworkResults from query after data is merged into HL7_MSH, HL7_OBR, and HL7_OBX
…eld for HL7 pivots

- Updated HL7 pivot queries to use HL7_GroupNTE

- added ProcedureName and TestName logic to HL7HematologyPivot.sql

- added container column to HL7 tables

- added container to Sqlmed migration scripts

- added container column to Herme Tech stored procedure
…tored existing queries to include data from new sources.
-Updated clinpathRunsAll.sql to include Orchard sourced data
-Added Orchard data to labwork pivot queries in study. e.g., hematologyPivot, chemPivot, culturePivot, etc..
-Added abnormal flags to clinpath pivot queries
-Added color highlighting for abnormal test results to labwork history (in animal history > Clinical > Clinical History
-Fixed wrong field display for DietDataSource in Clinical History
-Fixed diet data source in CurrentDietDemographicsProvider.java and snprcOverrides.js (in animal snapshot view)
…snprc_ehr.labwork_services data is not populated

-incremented module version number
-renamed module upgrade script to align with new module version
@spamhurts spamhurts merged commit 00b6796 into release22.7-SNAPSHOT Aug 16, 2022
@spamhurts spamhurts deleted the 22.7_fb_HL7Integration branch August 16, 2022 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants