Exemplo n.º 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",
        ]
    ]
Exemplo n.º 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"]
Exemplo n.º 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"]
Exemplo n.º 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"] ]