covid19-etl/etl/idph.py
def parse_county_data_for_date(self, date_str, county, county_json):
        """
        From county-level data, generate the data we can submit via Sheepdog

        Args:
            date_str (str): date in "%Y-%m-%d" format
            county_json (dict): JSON for county statistics

        Returns:
            (dict, dict): "summary_location" and "summary_clinical" records
        """
        (
            summary_location_submitter_id,
            summary_clinical_submitter_id,
        ) = self.get_location_and_clinical_submitter_id(county, date_str)

        summary_location = {
            "submitter_id": summary_location_submitter_id,
            "country_region": self.country,
            "province_state": self.state,
            "projects": [{"code": self.project_code}],
            "county": county,
            "latitude": self.county_dict[county]["lat"],
            "longitude": self.county_dict[county]["lon"],
        }

        summary_clinical = {
            "submitter_id": summary_clinical_submitter_id,
            "date": date_str,
            "confirmed": county_json["CumulativeCases"],
            "testing": county_json["TotalTested"],
            "deaths": county_json["Deaths"],
            "summary_locations": [{"submitter_id": summary_location_submitter_id}],
        }

        return summary_location, summary_clinical

        From county-level data, generate the data we can submit via Sheepdog

        Args:
            date_str (str): date in "%Y-%m-%d" format
            county_json (dict): JSON for county statistics

        Returns:
            (dict, dict): "summary_location" and "summary_clinical" records
        
From county-level data, generate the data we can submit via Sheepdog
From county - level data generate the data we can submit via Sheepdog
def parse_county_data_for_date(self, date_str, county, county_json):
        (
            summary_location_submitter_id,
            summary_clinical_submitter_id,
        ) = self.get_location_and_clinical_submitter_id(county, date_str)
        summary_location = {
            "submitter_id": summary_location_submitter_id,
            "country_region": self.country,
            "province_state": self.state,
            "projects": [{"code": self.project_code}],
            "county": county,
            "latitude": self.county_dict[county]["lat"],
            "longitude": self.county_dict[county]["lon"],
        }
        summary_clinical = {
            "submitter_id": summary_clinical_submitter_id,
            "date": date_str,
            "confirmed": county_json["CumulativeCases"],
            "testing": county_json["TotalTested"],
            "deaths": county_json["Deaths"],
            "summary_locations": [{"submitter_id": summary_location_submitter_id}],
        }
        return summary_location, summary_clinical
def parse_county_data_for_date ( self , date_str , county , county_json ) : ( summary_location_submitter_id , summary_clinical_submitter_id , ) = self . get_location_and_clinical_submitter_id ( county , date_str ) summary_location = { "submitter_id" : summary_location_submitter_id , "country_region" : self . country , "province_state" : self . state , "projects" : [ { "code" : self . project_code } ] , "county" : county , "latitude" : self . county_dict [ county ] [ "lat" ] , "longitude" : self . county_dict [ county ] [ "lon" ] , } summary_clinical = { "submitter_id" : summary_clinical_submitter_id , "date" : date_str , "confirmed" : county_json [ "CumulativeCases" ] , "testing" : county_json [ "TotalTested" ] , "deaths" : county_json [ "Deaths" ] , "summary_locations" : [ { "submitter_id" : summary_location_submitter_id } ] , } return summary_location , summary_clinical
From county-level data, generate the data we can submit via Sheepdog
From county - level data generate the data we can submit via Sheepdog
"""
        From county-level data, generate the data we can submit via Sheepdog

        Args:
            date_str (str): date in "%Y-%m-%d" format
            county_json (dict): JSON for county statistics

        Returns:
            (dict, dict): "summary_location" and "summary_clinical" records
        """
(dict, dict): "summary_location" and "summary_clinical" records
( dict dict ) : " summary_location " and " summary_clinical " records
self
date_str
date in "%Y-%m-%d" format
date in " %Y - %m - %d " format
county
county_json
JSON for county statistics
JSON for county statistics