https://github.com/cdcgov/data-exchange-api-examples

The Public Health Data Operations (PHDO) Upload service provides secure ingestion, delivery, and observability of public health files from data senders to CDC program target locations via Application Programming Interfaces (APIs).

https://github.com/cdcgov/data-exchange-api-examples

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.0%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

The Public Health Data Operations (PHDO) Upload service provides secure ingestion, delivery, and observability of public health files from data senders to CDC program target locations via Application Programming Interfaces (APIs).

Basic Info
Statistics
  • Stars: 5
  • Watchers: 11
  • Forks: 2
  • Open Issues: 0
  • Releases: 0
Archived
Created over 3 years ago · Last pushed 10 months ago
Metadata Files
Readme Contributing License Code of conduct

README.md

Public Health Data Operations (PHDO) API Examples

Note: This repository will no longer receive updates and will be archived as of 8/30/2025

Overview

This repository contains example upload client scripts demonstrating use PHDO upload services.

PHDO Upload API Environment Hostnames

| Environment | Hostname | | ---- | ---------------------- | | Development | https://apidev.cdc.gov | | Test | https://apitst.cdc.gov | | Staging | https://apistg.cdc.gov | | Production | https://api.cdc.gov |

Setup

Authentication via Secure Authentication Management Services (SAMS)

Users must first authenticate with SAMS before using the Upload API and retrieve an authorization token via a POST request to the /auth API endpoint.

The OAuth request must have the following header: - Content-Type: application/x-www-form-urlencoded

The following query parameters must be provided: - username - SAMS system account username - password - SAMS system account password

Example request: https://<hostname>/oauth?username=<your-username>&password=<your-password>

Provide Environment Variables via Dotenv

Once the hostname has been selected and token retrieved, those values must be set to environment variables for the example scripts to use. These can be set at the command line, or using dotenv. To do this, create a file in the root of this repo called .env.

Add the following lines to the .env file and fill out their values: AUTH_TOKEN= DEX_URL=

Disclaimer

The client examples provided in this repository are meant to serve as a starting point in the development of a client and are not intended to be a final solution or a recommendation for implementation. The individual requirements of an entity implementing a client is strictly the responsibility of that entity.

Examples provided include clients written in nodejs, python, java, and javascript (for use in a browser), serving as a subset of potential implementation options. Please note that the metadata fields provided in the clients are subject to change as PHDO upload services evolve and may not be kept current with PHDO code and the metadata values provided in the example clients are strictly placeholder values.

Public Domain Standard Notice

This repository constitutes a work of the United States Government and is not subject to domestic copyright protection under 17 USC § 105. This repository is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication. All contributions to this repository will be released under the CC0 dedication. By submitting a pull request you are agreeing to comply with this waiver of copyright interest.

License Standard Notice

The repository utilizes code licensed under the terms of the Apache Software License and therefore is licensed under ASL v2 or later.

This source code in this repository is free: you can redistribute it and/or modify it under the terms of the Apache Software License version 2, or (at your option) any later version.

This source code in this repository is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Apache Software License for more details.

You should have received a copy of the Apache Software License along with this program. If not, see http://www.apache.org/licenses/LICENSE-2.0.html.

The source code forked from other open source projects will inherit its license.

Privacy Standard Notice

This repository contains only non-sensitive, publicly available data and information. All material and community participation is covered by the Disclaimer and Code of Conduct. For more information about CDC's privacy policy, please visit http://www.cdc.gov/other/privacy.html.

Contributing Standard Notice

Anyone is encouraged to contribute to the repository by forking and submitting a pull request. (If you are new to GitHub, you might start with a basic tutorial.) By contributing to this project, you grant a world-wide, royalty-free, perpetual, irrevocable, non-exclusive, transferable license to all users under the terms of the Apache Software License v2 or later.

All comments, messages, pull requests, and other submissions received through CDC including this GitHub page may be subject to applicable federal law, including but not limited to the Federal Records Act, and may be archived. Learn more at http://www.cdc.gov/other/privacy.html.

Records Management Standard Notice

This repository is not a source of government records, but is a copy to increase collaboration and collaborative potential. All government records will be published through the CDC web site.

Additional Standard Notices

Please refer to CDC's Template Repository for more information about contributing to this repository, public domain notices and disclaimers, and code of conduct.

Owner

  • Name: Centers for Disease Control and Prevention
  • Login: CDCgov
  • Kind: organization
  • Email: data@cdc.gov
  • Location: Atlanta, GA

CDC's collaborative software projects to protect America from health, safety, and security threats, both foreign and in the U.S.

GitHub Events

Total
  • Watch event: 1
  • Delete event: 19
  • Issue comment event: 11
  • Push event: 6
  • Pull request review event: 9
  • Pull request event: 25
  • Fork event: 3
  • Create event: 9
Last Year
  • Watch event: 1
  • Delete event: 19
  • Issue comment event: 11
  • Push event: 6
  • Pull request review event: 9
  • Pull request event: 25
  • Fork event: 3
  • Create event: 9

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 0
  • Total pull requests: 69
  • Average time to close issues: N/A
  • Average time to close pull requests: about 2 months
  • Total issue authors: 0
  • Total pull request authors: 11
  • Average comments per issue: 0
  • Average comments per pull request: 0.2
  • Merged pull requests: 47
  • Bot issues: 0
  • Bot pull requests: 24
Past Year
  • Issues: 0
  • Pull requests: 12
  • Average time to close issues: N/A
  • Average time to close pull requests: about 2 months
  • Issue authors: 0
  • Pull request authors: 3
  • Average comments per issue: 0
  • Average comments per pull request: 0.08
  • Merged pull requests: 4
  • Bot issues: 0
  • Bot pull requests: 10
Top Authors
Issue Authors
Pull Request Authors
  • dependabot[bot] (25)
  • cfarmer-fearless (12)
  • cosmycx (11)
  • boris-ning-usds (7)
  • AJKimpo (5)
  • rohitpanwar (3)
  • dancing-goats (3)
  • uil9 (2)
  • USZ7 (2)
  • mkrystof (1)
  • candace-campbell (1)
Top Labels
Issue Labels
Pull Request Labels
dependencies (25) python (11) javascript (10) documentation (4) enhancement (2) bug (2) v2-sender-manifest (2) go (1)

Dependencies

.github/workflows/cypress-int-tests.yml actions
  • actions/checkout v3 composite
  • cypress-io/github-action 5 composite
.github/workflows/playwright-tests.yaml actions
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
  • actions/upload-artifact v3 composite
tus-servers/file-server-https/go.mod go
tus-servers/tusd-go-server-local/go.mod go
  • github.com/bmizerany/pat v0.0.0-20170815010413-6226ea591a40
  • github.com/tus/tusd v1.10.1
tus-servers/tusd-go-server-local/go.sum go
  • 1185 dependencies
tus-clients/java/build.gradle maven
  • com.fasterxml.jackson.core:jackson-databind 2.13.0 implementation
  • com.squareup.okhttp3:okhttp 4.9.1 implementation
  • commons-io:commons-io 2.13.0 implementation
  • io.tus.java.client:tus-java-client 0.5.0 implementation
tests/cypress/package-lock.json npm
  • 198 dependencies
tests/cypress/package.json npm
  • cypress ^12.11.0 development
  • cypress-plugin-api ^2.11.0 development
  • dotenv ^16.0.3 development
tests/playwright/package-lock.json npm
  • @playwright/test 1.33.0
  • @types/node 20.1.2
  • fsevents 2.3.2
  • playwright-core 1.33.0
tests/playwright/package.json npm
  • @playwright/test ^1.33.0
tests/supertest/package-lock.json npm
  • 134 dependencies
tests/supertest/package.json npm
  • dotenv ^16.0.3 development
  • mocha ^10.2.0 development
  • mochawesome ^7.1.3 development
  • supertest ^6.3.3 development
tus-clients/nodejs/package-lock.json npm
  • 130 dependencies
tus-clients/nodejs/package.json npm
  • dotenv ^16.0.3 development
  • eslint ^8.38.0 development
  • prettier ^2.8.7 development
  • axios 1.3.5
  • tus-js-client 3.1.0
  • uuid 9.0.0
tus-clients/python/requirements.txt pypi
  • Click ==7.0
  • Nuitka ==1.4.2
  • PyYAML ==6.0
  • aiohttp ==3.8.3
  • aiosignal ==1.3.1
  • altgraph ==0.17.3
  • async-timeout ==4.0.2
  • attrs ==22.1.0
  • azure-core ==1.26.3
  • azure-cosmos ==4.3.0
  • azure-storage-blob ==12.9.0
  • certifi ==2022.12.7
  • cffi ==1.15.0
  • charset-normalizer ==2.1.1
  • click-conf ==0.0.1
  • click-stream ==0.0.10
  • cryptography ==41.0.0
  • cx-Freeze ==6.14.2
  • elastic-transport ==8.1.2
  • elasticsearch ==8.3.3
  • elasticsearch-loader ==0.6.0
  • frozenlist ==1.3.3
  • future ==0.18.3
  • idna ==3.4
  • isodate ==0.6.0
  • jmespath ==1.0.1
  • kafka-python ==2.0.2
  • macholib ==1.16.2
  • msrest ==0.6.21
  • multidict ==6.0.3
  • oauthlib ==3.2.2
  • pyaml ==21.10.1
  • pycparser ==2.21
  • pyinstaller ==5.7.0
  • pyinstaller-hooks-contrib ==2022.15
  • python-dotenv ==0.21.1
  • requests ==2.31.0
  • requests-oauthlib ==1.3.0
  • six ==1.16.0
  • tinydb ==4.7.0
  • tus.py ==1.3.4
  • tuspy ==1.0.0
  • typing_extensions ==4.4.0
  • urllib3 ==1.26.13
  • yarl ==1.8.2