Rajan Sharma commited on
Commit
a26767a
·
verified ·
1 Parent(s): 5cd1b74

Update settings.py

Browse files
Files changed (1) hide show
  1. settings.py +22 -6
settings.py CHANGED
@@ -9,13 +9,26 @@ PERSIST_CONTENT = os.getenv("PERSIST_CONTENT", "false").lower() == "true"
9
  HEALTHCARE_SETTINGS = {
10
  "phi_detection_enabled": True,
11
  "min_facility_count_for_aggregation": 10,
12
- "default_occupancy_threshold": 85.0, # Percentage
13
- "bed_change_significance_threshold": 5.0, # Percentage
14
- "supported_file_types": [".csv", ".xlsx", ".pdf", ".docx", ".txt"],
15
  "healthcare_keywords": [
16
  "hospital", "patient", "bed", "care", "health", "medical", "clinical",
17
- "facility", "nursing", "residential", "ambulatory", "healthcare", "occupancy"
18
- ]
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  }
20
 
21
  # Model settings
@@ -24,4 +37,7 @@ MODEL_SETTINGS = {
24
  "temperature": 0.3,
25
  "top_p": 0.9,
26
  "repetition_penalty": 1.15
27
- }
 
 
 
 
9
  HEALTHCARE_SETTINGS = {
10
  "phi_detection_enabled": True,
11
  "min_facility_count_for_aggregation": 10,
12
+ "default_occupancy_threshold": 85.0,
13
+ "bed_change_significance_threshold": 5.0,
14
+ "supported_file_types": [".csv", ".xlsx", ".xls", ".json", ".parquet", ".pdf", ".docx", ".txt"],
15
  "healthcare_keywords": [
16
  "hospital", "patient", "bed", "care", "health", "medical", "clinical",
17
+ "facility", "nursing", "residential", "ambulatory", "healthcare", "occupancy",
18
+ "capacity", "staff", "zone", "province", "alberta", "cihi", "odhf",
19
+ "respiratory", "virus", "flu", "surge", "acute", "long-term", "ltc"
20
+ ],
21
+ # Dynamic column patterns for detection
22
+ "column_patterns": {
23
+ "facility_name": ["facility", "name", "hospital", "site", "location"],
24
+ "facility_type": ["type", "category", "class", "facility_type", "odhf_facility_type"],
25
+ "beds_current": ["current", "2023", "2024", "beds_current", "staffed_beds", "capacity"],
26
+ "beds_prev": ["prev", "previous", "2022", "beds_prev", "previous_beds"],
27
+ "zone": ["zone", "region", "area", "district"],
28
+ "province": ["province", "state", "territory"],
29
+ "city": ["city", "municipality", "town"],
30
+ "teaching_status": ["teaching", "status", "type", "hospital_type"]
31
+ }
32
  }
33
 
34
  # Model settings
 
37
  "temperature": 0.3,
38
  "top_p": 0.9,
39
  "repetition_penalty": 1.15
40
+ }
41
+
42
+ # Debug settings
43
+ DEBUG = os.getenv("DEBUG", "false").lower() == "true"