{"id":23421411,"url":"https://github.com/nhsdigital/c19terms","last_synced_at":"2025-07-31T23:33:25.133Z","repository":{"id":37965904,"uuid":"388427769","full_name":"NHSDigital/c19terms","owner":"NHSDigital","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-12T11:55:25.000Z","size":62,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":23,"default_branch":"master","last_synced_at":"2025-04-09T09:44:54.820Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NHSDigital.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-22T10:50:11.000Z","updated_at":"2021-12-22T15:10:45.000Z","dependencies_parsed_at":"2025-04-09T09:41:44.904Z","dependency_job_id":"3b73faaf-a443-4a5e-b90b-42f04da3f88f","html_url":"https://github.com/NHSDigital/c19terms","commit_stats":null,"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"purl":"pkg:github/NHSDigital/c19terms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NHSDigital%2Fc19terms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NHSDigital%2Fc19terms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NHSDigital%2Fc19terms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NHSDigital%2Fc19terms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NHSDigital","download_url":"https://codeload.github.com/NHSDigital/c19terms/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NHSDigital%2Fc19terms/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262963741,"owners_count":23391887,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-23T02:15:04.095Z","updated_at":"2025-07-01T12:36:40.146Z","avatar_url":"https://github.com/NHSDigital.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Covid 19 Terms\n\njson covid snomed codes from \"COVID-19 Vaccination Codes\"\n[https://hscic.kahootz.com/connect.ti/t_c_home/view?objectId=16878800](https://hscic.kahootz.com/connect.ti/t_c_home/view?objectId=16878800)\n\n# get latest terms.json\n\n\n## curl\nensure to use `curl -L` to follow redirects\n```bash\n\ncurl -sL $(curl -s https://api.github.com/repos/NHSDigital/c19terms/releases/latest \\\n| jq -r '.assets[] | select(.name=\"terms.json\") | .browser_download_url')\n```\n\n## wget\n```bash\n\nwget $(curl -s https://api.github.com/repos/NHSDigital/c19terms/releases/latest \\\n| jq -r '.assets[] | select(.name=\"terms.json\") | .browser_download_url')\n```\n\n## python\n```python\nimport requests\n\nterms_asset = next(\n    filter(\n        (lambda asset: asset['name'] == 'terms.json'), \n        requests.get(url=\"https://api.github.com/repos/NHSDigital/c19terms/releases/latest\").json()['assets']\n    )\n)\n\nterms = requests.get(url=terms_asset['browser_download_url']).json()\n\n\n```\n\n# get product terms as a dictionary\n## build locally    \n```shell\nmake dist products-as-dict\n```\n\n## read from latest release\n```shell\ncurl -sL $(curl -s https://api.github.com/repos/NHSDigital/c19terms/releases/latest \\\n| jq -r '.assets[] | select(.name=\"terms.json\") | .browser_download_url') \\\n| jq '[.products | to_entries[] | {key: .key, value: .value.term}] | from_entries'\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnhsdigital%2Fc19terms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnhsdigital%2Fc19terms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnhsdigital%2Fc19terms/lists"}