Skip to content
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

Add Chlamydia support to test card #8389

Merged
merged 3 commits into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public class FeatureFlagsConfig {
private final FeatureFlagRepository _repo;

private boolean oktaMigrationEnabled;
private boolean chlamydiaEnabled;
private boolean gonorrheaEnabled;
private boolean hepatitisCEnabled;
private boolean syphilisEnabled;
Expand All @@ -42,6 +43,7 @@ private void loadFeatureFlagsFromDB() {
private void flagMapping(String flagName, Boolean flagValue) {
switch (flagName) {
case "oktaMigrationEnabled" -> setOktaMigrationEnabled(flagValue);
case "chlamydiaEnabled" -> setChlamydiaEnabled(flagValue);
case "gonorrheaEnabled" -> setGonorrheaEnabled(flagValue);
case "hepatitisCEnabled" -> setHepatitisCEnabled(flagValue);
case "syphilisEnabled" -> setSyphilisEnabled(flagValue);
Expand Down
1 change: 1 addition & 0 deletions backend/src/main/resources/application-azure-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ twilio:
from-number: "+14045312484"
features:
oktaMigrationEnabled: false
chlamydiaEnabled: false
gonorrheaEnabled: false
hepatitisCEnabled: false
syphilisEnabled: false
Expand Down
1 change: 1 addition & 0 deletions backend/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ datahub:
csv-upload-api-fhir-client: "simple_report.fullelr-bulkuploader"
features:
oktaMigrationEnabled: false
chlamydiaEnabled: true
gonorrheaEnabled: true
hepatitisCEnabled: true
syphilisEnabled: true
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/app/commonComponents/TestResultsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const diseaseResultTitlePxpMap: Record<MULTIPLEX_DISEASES, string> = {
[MULTIPLEX_DISEASES.SYPHILIS]: "constants.diseaseResultTitle.SYPHILIS",
[MULTIPLEX_DISEASES.HEPATITIS_C]: "constants.diseaseResultTitle.HEPATITIS_C",
[MULTIPLEX_DISEASES.GONORRHEA]: "constants.diseaseResultTitle.GONORRHEA",
[MULTIPLEX_DISEASES.CHLAMYDIA]: "constants.diseaseResultTitle.CHLAMYDIA",
};

const diseaseResultReportingAppMap: Record<MULTIPLEX_DISEASES, string> = {
Expand All @@ -45,6 +46,7 @@ const diseaseResultReportingAppMap: Record<MULTIPLEX_DISEASES, string> = {
[MULTIPLEX_DISEASES.SYPHILIS]: "constants.disease.SYPHILIS",
[MULTIPLEX_DISEASES.HEPATITIS_C]: "constants.disease.HEPATITIS_C",
[MULTIPLEX_DISEASES.GONORRHEA]: "constants.disease.GONORRHEA",
[MULTIPLEX_DISEASES.CHLAMYDIA]: "constants.disease.CHLAMYDIA",
};

const setResult = (result: string, t: translateFn) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const mockSupportedDiseaseTestPerformedChlamydia = [
{
supportedDisease: {
internalId: "6517fcbd-e094-4384-9eef-a5c7f373a015",
loinc: "LP14298-1",
name: "Chlamydia",
},
testPerformedLoincCode: "80124-8",
equipmentUid: "ChlamydiaEquipmentUid123",
testkitNameId: "ChlamydiaTestkitNameId123",
testOrderedLoincCode: "80124-8",
},
];

export default mockSupportedDiseaseTestPerformedChlamydia;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be worth a clean up PR to consolidate most of these mock files for the SupportedDiseaseTestPerformed entities

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Def worth a PR in my opinion. Maybe we can do it with the corresponding Chlamydia ticket since that should be the last STI?

Loading
Loading