bshepp commited on
Commit
13d4b74
·
1 Parent(s): 28e85d4

fix: make ClinicalConflict fields optional to prevent synthesis crash

Browse files
Files changed (1) hide show
  1. src/backend/app/models/schemas.py +4 -4
src/backend/app/models/schemas.py CHANGED
@@ -183,10 +183,10 @@ class ClinicalConflict(BaseModel):
183
  @classmethod
184
  def _normalise_severity(cls, v: str) -> str:
185
  return v.lower() if isinstance(v, str) else v
186
- guideline_source: str = Field(..., description="Which guideline flagged this")
187
- guideline_text: str = Field(..., description="What the guideline recommends")
188
- patient_data: str = Field(..., description="Relevant patient data that conflicts")
189
- description: str = Field(..., description="Plain-language explanation of the gap")
190
  suggested_resolution: Optional[str] = Field(
191
  None, description="Potential resolution for the clinician to consider"
192
  )
 
183
  @classmethod
184
  def _normalise_severity(cls, v: str) -> str:
185
  return v.lower() if isinstance(v, str) else v
186
+ guideline_source: str = Field("", description="Which guideline flagged this")
187
+ guideline_text: str = Field("", description="What the guideline recommends")
188
+ patient_data: str = Field("", description="Relevant patient data that conflicts")
189
+ description: str = Field("", description="Plain-language explanation of the gap")
190
  suggested_resolution: Optional[str] = Field(
191
  None, description="Potential resolution for the clinician to consider"
192
  )