@@ -103,22 +103,18 @@ private void SetupRules(string ruleType)
103103 // Try various paths for the rules files
104104 string [ ] possiblePaths = new [ ]
105105 {
106- // Original paths with different nesting depths
107- Path . Combine ( "../../../../../application/CohortManager/src/Functions/ScreeningValidationService/LookupValidation" , filename ) ,
108- Path . Combine ( "../../../application/CohortManager/src/Functions/ScreeningValidationService/LookupValidation" , filename ) ,
109-
110- // Try paths relative to project root
111- Path . Combine ( "../../application/CohortManager/src/Functions/ScreeningValidationService/LookupValidation" , filename ) ,
112- Path . Combine ( "../../../../application/CohortManager/src/Functions/ScreeningValidationService/LookupValidation" , filename ) ,
113- Path . Combine ( "../../../../../../../../../application/CohortManager/src/Functions/ScreeningValidationService/LookupValidation" , filename ) ,
114-
115- // Try absolute path to handle any directory structure
116- Path . Combine ( "/Users/sam/git/nhs/dtos-cohort-manager/application/CohortManager/src/Functions/ScreeningValidationService/LookupValidation" , filename ) ,
117-
118- // Try with the ScreeningValidationService root directory
119- Path . Combine ( "../../../../../application/CohortManager/src/Functions/ScreeningValidationService" , filename ) ,
120- Path . Combine ( "../../../application/CohortManager/src/Functions/ScreeningValidationService" , filename )
121- } ;
106+ // Relative paths with different nesting depths
107+ Path . Combine ( "../../../../../application/CohortManager/src/Functions/ScreeningValidationService/LookupValidation" , filename ) ,
108+ Path . Combine ( "../../../application/CohortManager/src/Functions/ScreeningValidationService/LookupValidation" , filename ) ,
109+ Path . Combine ( "../../application/CohortManager/src/Functions/ScreeningValidationService/LookupValidation" , filename ) ,
110+ Path . Combine ( "../../../../application/CohortManager/src/Functions/ScreeningValidationService/LookupValidation" , filename ) ,
111+ Path . Combine ( "../../../../../../../../../application/CohortManager/src/Functions/ScreeningValidationService/LookupValidation" , filename ) ,
112+
113+
114+ // Try with the ScreeningValidationService root directory
115+ Path . Combine ( "../../../../../application/CohortManager/src/Functions/ScreeningValidationService" , filename ) ,
116+ Path . Combine ( "../../../application/CohortManager/src/Functions/ScreeningValidationService" , filename )
117+ } ;
122118
123119 // Try to find the file in any of the possible locations
124120 string jsonContent = null ;
0 commit comments