Skip to content

Commit

Permalink
Fix health data loading dams
Browse files Browse the repository at this point in the history
  • Loading branch information
szabozoltan69 committed Sep 22, 2024
1 parent 0938f9c commit cc11ba1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
2 changes: 2 additions & 0 deletions local_units/management/commands/import_health_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ def numerize(value):
facilitytype_id_map["hospitals"] = facilitytype_id_map["hospital"]
facilitytype_id_map["pharmacies"] = facilitytype_id_map["pharmacy"]
facilitytype_id_map["bloodcentres"] = facilitytype_id_map["bloodcenter"]
facilitytype_id_map["bloodcentre"] = facilitytype_id_map["bloodcenter"]
# facilitytype_id_map["blood"] = facilitytype_id_map["bloodcenter"]
specializedmedicalservice_id_map["surgicalspecialties"] = specializedmedicalservice_id_map["surgicalspecialities"]

primaryhcc_id_map[""] = None
Expand Down
18 changes: 9 additions & 9 deletions local_units/management/commands/import_local_units_health.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def parse_date(date):
except ValueError:
pass
validated = True
level_id = int(row["COVERAGECODE"]) + 1
level_id = int(row["COVERAGECODE"]) # + 1
local_branch_name = row["NAME_LOC"]
english_branch_name = row["NAME_EN"]
postcode = row["POSTCODE"]
Expand All @@ -89,19 +89,19 @@ def parse_date(date):
type_id=type,
# is_public=is_public,
validated=validated,
local_branch_name=local_branch_name,
english_branch_name=english_branch_name,
focal_person_loc=focal_person_loc,
focal_person_en=focal_person_en,
local_branch_name=local_branch_name[:255],
english_branch_name=english_branch_name[:255],
focal_person_loc=focal_person_loc[:255],
focal_person_en=focal_person_en[:255],
location=location,
postcode=postcode,
address_loc=address_loc,
address_en=address_en,
city_loc=city_loc,
city_en=city_en,
city_loc=city_loc[:255],
city_en=city_en[:255],
phone=phone,
email=email,
link=link,
email=email[:255],
link=link[:255],
source_loc=source_loc,
source_en=source_en,
date_of_data=date_of_data,
Expand Down

0 comments on commit cc11ba1

Please sign in to comment.