Skip to content

Conversation

@spamhurts
Copy link
Collaborator

Rationale

Added calculated at-time columns for assignments and accounts to HL7 Pivot tables. Started creating qviews for routine lab results.

Copy link

Copilot AI left a 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.

@spamhurts spamhurts merged commit 20cffb6 into release25.7-SNAPSHOT Jan 29, 2026
6 of 7 checks passed
@spamhurts spamhurts deleted the 25.7_fb_queryCustomizerForSnprc_ehr branch January 29, 2026 17:59
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.

3 participants