-
Notifications
You must be signed in to change notification settings - Fork 3
Feat/Update-HEIs-without-dna-pcr-results-Indicator-to-have-HEis-turning-8-weeks-only in assessment period #714
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
Open
nobert-mumo
wants to merge
1
commit into
dev
Choose a base branch
from
Feat/Update-HEIs-without-dna-pcr-results-Indicator-to-have-HEis-turning-8-weeks-only
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or 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
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR refactors the HEI aggregate query to only consider infants at exactly eight weeks, simplifying the CTE and updating downstream references accordingly. Entity Relationship diagram for updated HEI aggregate queryerDiagram
HEIS {
string client_id
date dob
string mfl_code
string sex
}
HEIS_8_WEEKS_BIRTHDAY {
string client_id
date dob
string mfl_code
string sex
date eight_weeks_birthday
}
HEISWITHOUTDNAPCR {
string client_id
string mfl_code
}
MFL_PARTNER_AGENCY_COMBINATION {
string mfl_code
string County
string SubCounty
string PartnerName
string Agency
string FacilityName
}
CSRTAggregateHeisWithoutDnaPcr {
string County
string SubCounty
string PartnerName
string Agency
string FacilityName
date AssessmentPeriod
string MFLCode
string Sex
int TotalHeis
int TotalHeiWithoutDnaPcr
string Indicator
date LoadDate
}
HEIS ||--o| HEIS_8_WEEKS_BIRTHDAY : "generates"
HEIS_8_WEEKS_BIRTHDAY ||--o| HEISWITHOUTDNAPCR : "left join"
HEIS_8_WEEKS_BIRTHDAY ||--o| MFL_PARTNER_AGENCY_COMBINATION : "left join"
HEIS_8_WEEKS_BIRTHDAY ||--o| CSRTAggregateHeisWithoutDnaPcr : "aggregates into"
Class diagram for updated CTE and downstream referencesclassDiagram
class HEIS {
+client_id: string
+dob: date
+mfl_code: string
+sex: string
}
class HEIS_8_WEEKS_BIRTHDAY {
+client_id: string
+dob: date
+mfl_code: string
+sex: string
+eight_weeks_birthday: date
}
HEIS --|> HEIS_8_WEEKS_BIRTHDAY : derives
class CSRTAggregateHeisWithoutDnaPcr {
+County: string
+SubCounty: string
+PartnerName: string
+Agency: string
+FacilityName: string
+AssessmentPeriod: date
+MFLCode: string
+Sex: string
+TotalHeis: int
+TotalHeiWithoutDnaPcr: int
+Indicator: string
+LoadDate: date
}
HEIS_8_WEEKS_BIRTHDAY --> CSRTAggregateHeisWithoutDnaPcr : aggregates
class HEISWITHOUTDNAPCR {
+client_id: string
+mfl_code: string
}
HEIS_8_WEEKS_BIRTHDAY --> HEISWITHOUTDNAPCR : left join
class MFL_PARTNER_AGENCY_COMBINATION {
+mfl_code: string
+County: string
+SubCounty: string
+PartnerName: string
+Agency: string
+FacilityName: string
}
HEIS_8_WEEKS_BIRTHDAY --> MFL_PARTNER_AGENCY_COMBINATION : left join
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Jira ticket: https://thepalladiumgroup.atlassian.net/browse/KHP3-8657
Summary by Sourcery
Enhancements: