示例#1
0
def make_json_hhs():
    packages = p.toolkit.get_action("current_package_list_with_resources")(None, {})
    return [
        make_datajson_entry(pkg, DataJsonPlugin)
        for pkg in packages
        if pkg["type"] == "dataset"
        and pkg["author"]
        in [
            "Administration for Children and Families",
            "Administration for Community Living",
            "Agency for Healthcare Research and Quality",
            "Centers for Disease Control and Prevention",
            "Centers for Medicare & Medicaid Services",
            "Department of Health & Human Services",
            "Health Resources and Services Administration",
            "Indian Health Service",
            "National Cancer Institute",
            "National Institute on Drug Abuse",
            "National Institutes of Health",
            "National Library of Medicine",
            "Substance Abuse & Mental Health Services Administration",
            "U.S. Food and Drug Administration",
        ]
    ]
示例#2
0
def make_json():
    # Build the data.json file.
    packages = p.toolkit.get_action("current_package_list_with_resources")(None, {})
    return [make_datajson_entry(pkg, DataJsonPlugin) for pkg in packages if pkg["type"] == "dataset"]
示例#3
0
def make_json():
    # Build the data.json file.
    packages = p.toolkit.get_action("current_package_list_with_resources")(None, {})
    return [make_datajson_entry(pkg, DataJsonPlugin) for pkg in packages if pkg["type"] == "dataset"]
示例#4
0
def make_json_hhs():
    packages = p.toolkit.get_action("current_package_list_with_resources")(None, {})
    return [make_datajson_entry(pkg, DataJsonPlugin) for pkg in packages if pkg["type"] == "dataset" and pkg["author"] in ["Administration for Children and Families", "Administration for Community Living", "Agency for Healthcare Research and Quality", "Centers for Disease Control and Prevention", "Centers for Medicare & Medicaid Services", "Department of Health & Human Services", "Health Resources and Services Administration", "Indian Health Service", "National Cancer Institute", "National Institute on Drug Abuse", "National Institutes of Health", "National Library of Medicine", "Substance Abuse & Mental Health Services Administration", "U.S. Food and Drug Administration"] ]