···107107 raise PermissionDenied(
108108 "User does not have the required permissions to delete organizations"
109109 )
110110- # TODO delete should not be allowed if there are any children left
111110112111 def authorize_update(self, request_obj, model_instance):
113112 if self.request.user.is_superuser:
+1-1
care/emr/resources/facility_organization/spec.py
···4242 @classmethod
4343 def validate_encounter_exists(cls, facility):
4444 if not Facility.objects.filter(external_id=facility).exists():
4545- err = "Faciltiy not found"
4545+ err = "Facility not found"
4646 raise ValueError(err)
4747 return facility
4848