diff --git a/src/data/repositories/consts/DiseaseOutbreakConstants.ts b/src/data/repositories/consts/DiseaseOutbreakConstants.ts index 76635cf5..5bd6360e 100644 --- a/src/data/repositories/consts/DiseaseOutbreakConstants.ts +++ b/src/data/repositories/consts/DiseaseOutbreakConstants.ts @@ -181,10 +181,6 @@ export function getHazardTypeFromString(hazardTypeString: string): HazardType | ); } -function getOUTextFromList(OUs: string[]): string { - return OUs[0] ?? ""; //TO DO : Handle multiple provinces/districts once metadata change is done -} - function getNaValue(naValue: Maybe): string { return naValue ? "true" : ""; } diff --git a/src/data/repositories/utils/DiseaseOutbreakMapper.ts b/src/data/repositories/utils/DiseaseOutbreakMapper.ts index 1b5323ce..f09b9a06 100644 --- a/src/data/repositories/utils/DiseaseOutbreakMapper.ts +++ b/src/data/repositories/utils/DiseaseOutbreakMapper.ts @@ -96,11 +96,6 @@ export function mapTrackedEntityAttributesToDiseaseOutbreak( return diseaseOutbreak; } -function getMultipleOUFromText(text: string): string[] { - //TO DO : FIXME handle multiple provinces when metadata change is done - return [text].filter(ou => ou !== ""); -} - export function mapDiseaseOutbreakEventToTrackedEntityAttributes( diseaseOutbreak: DiseaseOutbreakEventBaseAttrs, attributesMetadata: D2TrackedEntityAttribute[] diff --git a/src/domain/entities/disease-outbreak-event/DiseaseOutbreakEvent.ts b/src/domain/entities/disease-outbreak-event/DiseaseOutbreakEvent.ts index f3258416..24008c51 100644 --- a/src/domain/entities/disease-outbreak-event/DiseaseOutbreakEvent.ts +++ b/src/domain/entities/disease-outbreak-event/DiseaseOutbreakEvent.ts @@ -2,8 +2,7 @@ import { Struct } from "../generic/Struct"; import { IncidentActionPlan } from "../incident-action-plan/IncidentActionPlan"; import { IncidentManagementTeam } from "../incident-management-team/IncidentManagementTeam"; import { TeamMember } from "../incident-management-team/TeamMember"; -import { OrgUnit } from "../OrgUnit"; -import { Code, Id, NamedRef } from "../Ref"; +import { Code, NamedRef } from "../Ref"; import { RiskAssessment } from "../risk-assessment/RiskAssessment"; import { Maybe } from "../../../utils/ts-utils"; import { ValidationError } from "../ValidationError"; diff --git a/src/domain/usecases/utils/disease-outbreak/SaveDiseaseOutbreak.ts b/src/domain/usecases/utils/disease-outbreak/SaveDiseaseOutbreak.ts index 472b3547..65231991 100644 --- a/src/domain/usecases/utils/disease-outbreak/SaveDiseaseOutbreak.ts +++ b/src/domain/usecases/utils/disease-outbreak/SaveDiseaseOutbreak.ts @@ -1,4 +1,3 @@ -import { AppConfig } from "../../../../app-config"; import { FutureData } from "../../../../data/api-futures"; import { INCIDENT_MANAGER_ROLE } from "../../../../data/repositories/consts/IncidentManagementTeamBuilderConstants"; import { Configurations } from "../../../entities/AppConfigurations";