Ali2206 commited on
Commit
69dfbeb
·
1 Parent(s): 6c177da

device token

Browse files
api/services/synthea_integration.py CHANGED
@@ -131,7 +131,7 @@ class SyntheaIntegrationService:
131
 
132
  return str(config_file)
133
 
134
- async def run_synthea_generation(self, config_file: str) -> bool:
135
  """
136
  Run Synthea to generate FHIR data
137
  """
@@ -608,7 +608,7 @@ class SyntheaIntegrationService:
608
  config_file = await self.generate_synthea_config(config_overrides)
609
 
610
  # Run generation
611
- if not await self.run_synthea_generation(config_file):
612
  logger.error("❌ Synthea generation failed")
613
  raise Exception("Synthea generation failed")
614
 
 
131
 
132
  return str(config_file)
133
 
134
+ async def run_synthea_generation(self, config_file: str, population: int = 10) -> bool:
135
  """
136
  Run Synthea to generate FHIR data
137
  """
 
608
  config_file = await self.generate_synthea_config(config_overrides)
609
 
610
  # Run generation
611
+ if not await self.run_synthea_generation(config_file, population):
612
  logger.error("❌ Synthea generation failed")
613
  raise Exception("Synthea generation failed")
614