-
Notifications
You must be signed in to change notification settings - Fork 3
Query customizer for HL7 Pivot tables #881
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
Query customizer for HL7 Pivot tables #881
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request adds calculated at-time columns (assignments and accounts) and age columns to HL7 Pivot tables through both Java customizer code and query XML configuration changes. It also introduces a composite key field for each pivot table and creates a new query view (qview) for routine chemistry results.
Changes:
- Added Java customizer logic to append assignment and age calculated columns to HL7 pivot tables
- Added composite key fields (id + date concatenation) to all HL7 pivot table SQL queries
- Configured key field metadata and added DefaultEHRCustomizer to all HL7 pivot table query.xml files
- Created a new RoutineChemistry.qview.xml file with specific column selections for biochemistry results
- Applied ltrim/rtrim to TestName in HL7BiochemistryPivot for whitespace handling
Reviewed changes
Copilot reviewed 20 out of 20 changed files in this pull request and generated 19 comments.
Show a summary per file
| File | Description |
|---|---|
| SNPRC_EHRCustomizer.java | Added logic to detect HL7 pivot tables and append assignment and age calculated columns |
| HL7BiochemistryPivot.sql | Added key field and trimmed TestName in the IN clause |
| HL7BiochemistryPivot.query.xml | Added DefaultEHRCustomizer and key field configuration |
| HL7CulturePivot.sql | Added key field composed of id and date |
| HL7CulturePivot.query.xml | Added DefaultEHRCustomizer and key field configuration |
| HL7HematologyPivot.sql | Added key field composed of id and date |
| HL7HematologyPivot.query.xml | Added DefaultEHRCustomizer and key field configuration |
| HL7HistologyPivot.sql | Added key field composed of id and date |
| HL7HistologyPivot.query.xml | Added DefaultEHRCustomizer and key field configuration |
| HL7MiscPivot.sql | Added key field composed of id and date |
| HL7MiscPivot.query.xml | Added DefaultEHRCustomizer and key field configuration |
| HL7ParasitologyPivot.sql | Added key field composed of id and date |
| HL7ParasitologyPivot.query.xml | Added DefaultEHRCustomizer and key field configuration |
| HL7SurveillancePivot.sql | Added key field but with incorrect column references |
| HL7SurveillancePivot.query.xml | Added DefaultEHRCustomizer and key field configuration |
| HL7UnknownPivot.sql | Added key field composed of id and date |
| HL7UnknownPivot.query.xml | Added DefaultEHRCustomizer and key field configuration |
| HL7UrinalysisPivot.sql | Added key field composed of id and date |
| HL7Urinalysis.query.xml | Added DefaultEHRCustomizer and key field configuration |
| RoutineChemistry.qview.xml | New query view defining specific columns for routine chemistry results |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Rationale
Added calculated at-time columns for assignments and accounts to HL7 Pivot tables. Started creating qviews for routine lab results.