···7474 )
7575 if self.patient and self.origin:
7676 raise ValidationError("Patient and origin cannot be provided together")
7777+ if self.status.value not in [
7878+ SupplyDeliveryOrderStatusOptions.draft.value,
7979+ SupplyDeliveryOrderStatusOptions.pending.value,
8080+ ]:
8181+ raise ValidationError("Status must be draft or pending on create")
7782 return obj
78837984