-
Notifications
You must be signed in to change notification settings - Fork 3
Feature/Adding-HTS-data-to-data-exchange-schema #711
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
base: dev
Are you sure you want to change the base?
Conversation
Reviewer's GuideThis PR extends the HTS data pipeline by adding support for a third test kit (including its name, lot number, expiry, and result) across ODS intermediate tables, dimension loads, NDWH fact tables, and the data-exchange reporting schema, with appropriate joins into DimTestKitName and DimDate and a new linelist_hts_tests table. Entity Relationship diagram for updated FactHTSTestKits and DimTestKitName tableserDiagram
NDWH_Fact_FactHTSTestKits {
INT FactKey PK
INT EncounterId
INT PatientKey FK
INT FacilityKey FK
INT PartnerKey FK
INT AgencyKey FK
INT TestKitName1Key FK
VARCHAR TestKitLotNumber1
INT TestKitExpiry1DateKey FK
VARCHAR TestResult1
INT TestKitName2Key FK
VARCHAR TestKitLotNumber2
INT TestKitExpiry2DateKey FK
VARCHAR TestResult2
INT TestKitName3Key FK
VARCHAR TestKitLotNumber3
INT TestKitExpiry3DateKey FK
VARCHAR TestResult3
DATE LoadDate
}
NDWH_Dim_DimTestKitName {
INT TestKitNameKey PK
VARCHAR TestKitName
}
NDWH_Dim_DimDate {
INT DateKey PK
DATE Date
}
NDWH_Fact_FactHTSTestKits ||--o| NDWH_Dim_DimTestKitName : "TestKitName1Key"
NDWH_Fact_FactHTSTestKits ||--o| NDWH_Dim_DimTestKitName : "TestKitName2Key"
NDWH_Fact_FactHTSTestKits ||--o| NDWH_Dim_DimTestKitName : "TestKitName3Key"
NDWH_Fact_FactHTSTestKits ||--o| NDWH_Dim_DimDate : "TestKitExpiry1DateKey"
NDWH_Fact_FactHTSTestKits ||--o| NDWH_Dim_DimDate : "TestKitExpiry2DateKey"
NDWH_Fact_FactHTSTestKits ||--o| NDWH_Dim_DimDate : "TestKitExpiry3DateKey"
Entity Relationship diagram for updated DimFacility tableerDiagram
NDWH_Dim_DimFacility {
INT FacilityKey PK
VARCHAR FacilityName
VARCHAR Agency
VARCHAR Ward
VARCHAR KEPH_Level
DATE LoadDate
}
Entity Relationship diagram for new linelist_hts_tests reporting tableerDiagram
REPORTING_DATA_EXCHANGE_linelist_hts_tests {
INT EncounterId
INT PatientKey
INT FacilityKey
INT PartnerKey
INT AgencyKey
INT TestKitName1Key
VARCHAR TestKitLotNumber1
INT TestKitExpiry1DateKey
VARCHAR TestResult1
INT TestKitName2Key
VARCHAR TestKitLotNumber2
INT TestKitExpiry2DateKey
VARCHAR TestResult2
INT TestKitName3Key
VARCHAR TestKitLotNumber3
INT TestKitExpiry3DateKey
VARCHAR TestResult3
DATE LoadDate
}
Class diagram for updated HTS Test Kit data structuresclassDiagram
class HTS_TestKits {
+TestKitName1: string
+TestKitLotNumber1: string
+TestKitExpiry1: date
+TestResult1: string
+TestKitName2: string
+TestKitLotNumber2: string
+TestKitExpiry2: date
+TestResult2: string
+TestKitName3: string
+TestKitLotNumber3: string
+TestKitExpiry3: date
+TestResult3: string
}
class Intermediate_EncounterHTSTests {
+TestResult1: string
+TestResult2: string
+TestResult3: string
+FinalTestResult: string
+LoadDate: date
}
class FactHTSTestKits {
+TestKitName1Key: int
+TestKitLotNumber1: string
+TestKitExpiry1DateKey: int
+TestResult1: string
+TestKitName2Key: int
+TestKitLotNumber2: string
+TestKitExpiry2DateKey: int
+TestResult2: string
+TestKitName3Key: int
+TestKitLotNumber3: string
+TestKitExpiry3DateKey: int
+TestResult3: string
+LoadDate: date
}
HTS_TestKits <|-- Intermediate_EncounterHTSTests
Intermediate_EncounterHTSTests <|-- FactHTSTestKits
Class diagram for updated DimFacility structureclassDiagram
class DimFacility {
+FacilityKey: int
+FacilityName: string
+Agency: string
+Ward: string
+KEPH_Level: string
+LoadDate: date
}
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.
Jira ticket : https://thepalladiumgroup.atlassian.net/browse/KHP3-8648
Summary by Sourcery
Add third test kit support to HTS pipelines and introduce a new data exchange table for HTS test linelists
New Features:
Enhancements: