diff --git a/care/emr/resources/user/spec.py b/care/emr/resources/user/spec.py index 05708e6ce2..769601a437 100644 --- a/care/emr/resources/user/spec.py +++ b/care/emr/resources/user/spec.py @@ -113,4 +113,4 @@ def perform_extra_serialization(cls, mapping, obj: User): mapping["geo_organization"] = OrganizationReadSpec.serialize( obj.geo_organization ).to_json() - mapping["flags"] = obj.get_facility_flags() + mapping["flags"] = obj.get_all_flags()