From 94e9f18864a68214a172fabf20350cadfe1f6cc6 Mon Sep 17 00:00:00 2001 From: Andy Rae <1127507+AndyRae@users.noreply.github.com> Date: Fri, 20 Nov 2026 15:42:47 +0000 Subject: [PATCH 01/10] feat: add HDR UK Gateway publish action and workflows Add the gateway-publish composite action (a Python CLI, installed with uv from its lock file) and two reusable workflows that use it: - gateway-validate.yml builds a dataset repo's Gateway metadata from its LinkML schema and gateway/metadata.yaml, and validates it against HDRUK 4.1.0 and HDR UK's TRASER service. No secrets; for PRs. - gateway-publish.yml validates a release, then, in an approval environment, sends it to the Gateway as a new version of an existing dataset and reads it back. Also add the action's pytest suite to action-tests.yml, a Dependabot entry for its uv.lock, docs and samples. Co-Authored-By: Claude Opus 5.5 --- .github/actions/gateway-publish/.gitignore | 3 + .github/actions/gateway-publish/README.md | 65 + .github/actions/gateway-publish/action.yml | 87 + .../actions/gateway-publish/pyproject.toml | 34 + .../actions/gateway-publish/scripts/run.sh | 58 + .../src/gateway_publish/__init__.py | 1 + .../src/gateway_publish/build.py | 211 ++ .../src/gateway_publish/cli.py | 294 ++ .../src/gateway_publish/client.py | 209 ++ .../src/gateway_publish/config.py | 63 + .../schemas/HDRUK/3.0.0/schema.json | 2714 ++++++++++++++ .../schemas/HDRUK/4.1.0/schema.json | 3333 +++++++++++++++++ .../src/gateway_publish/traser.py | 81 + .../src/gateway_publish/validate.py | 58 + .../actions/gateway-publish/tests/__init__.py | 0 .../actions/gateway-publish/tests/conftest.py | 36 + .../tests/fixtures/demographics.golden.json | 225 ++ .../fixtures/demographics/demographics.yaml | 267 ++ .../demographics/gateway/gateway.yaml | 8 + .../demographics/gateway/metadata.yaml | 63 + .../tests/fixtures/example-hdruk300.json | 160 + .../fixtures/example-hdruk410-structural.json | 125 + .../tests/fixtures/example-hdruk410.json | 100 + .../gateway-publish/tests/test_build.py | 163 + .../actions/gateway-publish/tests/test_cli.py | 282 ++ .../gateway-publish/tests/test_client.py | 180 + .../gateway-publish/tests/test_config.py | 43 + .../gateway-publish/tests/test_live.py | 41 + .../gateway-publish/tests/test_traser.py | 61 + .github/actions/gateway-publish/uv.lock | 850 +++++ .github/dependabot.yml | 10 + .github/workflows/action-tests.yml | 24 +- .github/workflows/gateway-publish.yml | 135 + .github/workflows/gateway-validate.yml | 54 + docs/workflows/gateway-publish.md | 83 + docs/workflows/readme.md | 1 + samples/check.gateway.yaml | 13 + samples/release.gateway.yaml | 40 + 38 files changed, 10172 insertions(+), 3 deletions(-) create mode 100644 .github/actions/gateway-publish/.gitignore create mode 100644 .github/actions/gateway-publish/README.md create mode 100644 .github/actions/gateway-publish/action.yml create mode 100644 .github/actions/gateway-publish/pyproject.toml create mode 100755 .github/actions/gateway-publish/scripts/run.sh create mode 100644 .github/actions/gateway-publish/src/gateway_publish/__init__.py create mode 100644 .github/actions/gateway-publish/src/gateway_publish/build.py create mode 100644 .github/actions/gateway-publish/src/gateway_publish/cli.py create mode 100644 .github/actions/gateway-publish/src/gateway_publish/client.py create mode 100644 .github/actions/gateway-publish/src/gateway_publish/config.py create mode 100644 .github/actions/gateway-publish/src/gateway_publish/schemas/HDRUK/3.0.0/schema.json create mode 100644 .github/actions/gateway-publish/src/gateway_publish/schemas/HDRUK/4.1.0/schema.json create mode 100644 .github/actions/gateway-publish/src/gateway_publish/traser.py create mode 100644 .github/actions/gateway-publish/src/gateway_publish/validate.py create mode 100644 .github/actions/gateway-publish/tests/__init__.py create mode 100644 .github/actions/gateway-publish/tests/conftest.py create mode 100644 .github/actions/gateway-publish/tests/fixtures/demographics.golden.json create mode 100644 .github/actions/gateway-publish/tests/fixtures/demographics/demographics.yaml create mode 100644 .github/actions/gateway-publish/tests/fixtures/demographics/gateway/gateway.yaml create mode 100644 .github/actions/gateway-publish/tests/fixtures/demographics/gateway/metadata.yaml create mode 100644 .github/actions/gateway-publish/tests/fixtures/example-hdruk300.json create mode 100644 .github/actions/gateway-publish/tests/fixtures/example-hdruk410-structural.json create mode 100644 .github/actions/gateway-publish/tests/fixtures/example-hdruk410.json create mode 100644 .github/actions/gateway-publish/tests/test_build.py create mode 100644 .github/actions/gateway-publish/tests/test_cli.py create mode 100644 .github/actions/gateway-publish/tests/test_client.py create mode 100644 .github/actions/gateway-publish/tests/test_config.py create mode 100644 .github/actions/gateway-publish/tests/test_live.py create mode 100644 .github/actions/gateway-publish/tests/test_traser.py create mode 100644 .github/actions/gateway-publish/uv.lock create mode 100644 .github/workflows/gateway-publish.yml create mode 100644 .github/workflows/gateway-validate.yml create mode 100644 docs/workflows/gateway-publish.md create mode 100644 samples/check.gateway.yaml create mode 100644 samples/release.gateway.yaml diff --git a/.github/actions/gateway-publish/.gitignore b/.github/actions/gateway-publish/.gitignore new file mode 100644 index 0000000..5831ca4 --- /dev/null +++ b/.github/actions/gateway-publish/.gitignore @@ -0,0 +1,3 @@ +.venv/ +__pycache__/ +.pytest_cache/ diff --git a/.github/actions/gateway-publish/README.md b/.github/actions/gateway-publish/README.md new file mode 100644 index 0000000..fb9c948 --- /dev/null +++ b/.github/actions/gateway-publish/README.md @@ -0,0 +1,65 @@ +# Gateway publish action + +A composite action that builds HDR UK Health Data Research Gateway metadata from a LinkML schema plus hand-written catalogue fields, validates it, and publishes it to the Gateway. This page is for people changing it. To use it, see [the workflow docs](../../../docs/workflows/gateway-publish.md): most repositories should call the reusable workflows, not this action. + +## How it works + +The action is a Python package, `gateway-publish`, with a CLI. [`action.yml`](action.yml) installs it with uv (from [`uv.lock`](uv.lock)) and [`scripts/run.sh`](scripts/run.sh) runs it with `validate` or `push`, copying the output to the job summary. The credentials reach the CLI as environment variables, never as arguments. + +| Module | What it does | +|---|---| +| [`build.py`](src/gateway_publish/build.py) | Finds the dataset files and builds the payload: `structuralMetadata` from the LinkML schema (one table per `tree_root` class, one column per slot, enum values as column values), the rest from `gateway/metadata.yaml`, plus the fields the Gateway overwrites anyway. | +| [`validate.py`](src/gateway_publish/validate.py) | Validates against the bundled HDRUK schemas (`schemas/HDRUK//schema.json`, from [HDRUK/schemata-2](https://github.com/HDRUK/schemata-2)), reporting the most specific error inside nested `anyOf`s. | +| [`traser.py`](src/gateway_publish/traser.py) | Sends the payload to TRASER `/translate` exactly as the Gateway does, so translation errors show up before publishing. | +| [`client.py`](src/gateway_publish/client.py) | The Gateway API client, with hints for the known error messages. | +| [`config.py`](src/gateway_publish/config.py) | Credentials and base URL from the environment. It refuses to send credentials to unknown hosts. | +| [`cli.py`](src/gateway_publish/cli.py) | `build`, `validate`, `create`, `push`, plus `get`, `list`, `update` and `delete` for manual use. | + +## Using the CLI locally + +```bash +cd .github/actions/gateway-publish +uv run gateway-publish --help +uv run gateway-publish validate --dataset ~/src/nuh-data-sact --traser +uv run gateway-publish build ~/src/nuh-data-sact --version 1.0.0 -o payload.json +uv run gateway-publish push ~/src/nuh-data-sact --version 1.0.0 --dry-run +``` + +Commands that call the Gateway need `GATEWAY_APP_ID` and `GATEWAY_CLIENT_ID` in the environment. The team comes from `gateway.yaml`, or `GATEWAY_TEAM_ID` for the commands that don't take a dataset. Keep credentials in a gitignored `.env` file and use `uv run --env-file .env ...`. + +## The Gateway API + +HDR UK's [integration docs](https://hdruk.github.io/gateway-2-integrations-testing/) are out of date: they describe the retired `/api/v1/integrations/datasets` endpoints, which now return 410. This action uses the team dataset API instead, which accepts the Private App headers (`x-application-id`, `x-client-id`). Most of what follows comes from reading the [gateway-api source](https://github.com/HDRUK/gateway-api) and was then confirmed on the live Gateway in November 2026. + +| Action | Request | +|---|---| +| Create | `POST /v2/teams/{team}/datasets?input_schema=HDRUK&input_version=4.1.0` | +| Update (adds a version) | `PUT /v3/teams/{team}/datasets/{id}` | +| Get | `GET /v2/teams/{team}/datasets/{id}[?schema_model=HDRUK&schema_version=4.1.0]` | +| List | `GET /v2/teams/{team}/datasets/status/{active,draft,archived}?title=` | +| Delete | `DELETE /v2/teams/{team}/datasets/{id}` (needs the app's delete permission) | + +- **Use v3 to update.** `PUT /v2/...` overwrites the latest version in place. `PUT /v3/...` (not in Swagger) adds a version and stores only a JSON Patch, so after a v3 update the plain GET returns `"metadata": []`. Ask for `schema_model`/`schema_version` to get the full document. +- **Body:** `{"metadata": {"metadata": , "schemaModel": "HDRUK", "schemaVersion": "4.1.0"}, "create_origin": "API", "status": "DRAFT"|"ACTIVE"}`. Always send `status`: without it an update sets the status to null. The envelope declares the input schema on update; on create, only the query parameters reach TRASER. +- **The Gateway overwrites** `identifier` (with its own `pid`), `issued`, `modified`, `revisions` and `summary.dataCustodian` (the owning team). It stores the metadata as GWDM 2.2 and translates it back on GET. +- **Drafts skip validation.** The Gateway only calls TRASER with validation for `ACTIVE` datasets, so the action always runs TRASER itself. +- **TRASER is stricter than the HDRUK schema.** For example, `provenance.temporal.endDate: CONTINUOUS` is valid HDRUK 4.1.0 but fails translation to GWDM 2.2. +- **Unknown IDs:** GET returns 404, but update and delete probably return 500. + +## Tests + +The tests use mocked HTTP for the Gateway and TRASER, so they need no credentials. [`action-tests.yml`](../../workflows/action-tests.yml) runs them on PRs that change `.github/actions/`. To run them locally: + +```bash +cd .github/actions/gateway-publish +uv run pytest +``` + +- `tests/test_build.py` has a golden-file test: the payload built from `tests/fixtures/demographics/` must match `tests/fixtures/demographics.golden.json`. After an intended change, regenerate it with `UPDATE_GOLDEN=1 uv run pytest tests/test_build.py` and review the diff. +- `tests/test_live.py` creates, updates and deletes a draft on a real Gateway. It is skipped unless `GATEWAY_LIVE_TESTS=1`, and needs credentials with delete permission. + +## Changing the action + +- **New HDRUK schema version:** add `src/gateway_publish/schemas/HDRUK//schema.json` from schemata-2, change `SCHEMA_VERSION` in `build.py`, and check that TRASER accepts the payloads. +- **GWDM version:** `GWDM_VERSION` in `traser.py` must match what the live Gateway stores (`gwdm_version` on a dataset version). +- **Dependencies:** change `pyproject.toml`, run `uv lock`, and commit `uv.lock`. Dependabot proposes updates monthly. diff --git a/.github/actions/gateway-publish/action.yml b/.github/actions/gateway-publish/action.yml new file mode 100644 index 0000000..9068f84 --- /dev/null +++ b/.github/actions/gateway-publish/action.yml @@ -0,0 +1,87 @@ +name: HDR UK Gateway publish +description: >- + Builds HDR UK Health Data Research Gateway metadata (HDRUK 4.1.0) from a LinkML schema + plus hand-written catalogue fields in gateway/, validates it, and with `command: push` + sends it to the Gateway as a new version of an existing dataset. Run it after checking + out the dataset repo. Most repositories should call the reusable workflows + (gateway-validate.yml, gateway-publish.yml), not this action. + +inputs: + command: + description: >- + validate (build and validate; needs no credentials) or push (build, validate, send a + new version, and read it back). + required: true + dataset-dir: + description: Directory holding gateway/metadata.yaml and gateway/gateway.yaml, relative to the workspace. + default: "." + schema: + description: >- + LinkML schema, relative to the workspace. Default: the only *.yaml in dataset-dir, + else in dataset-dir/schemas. + default: "" + version: + description: >- + Metadata version, major.minor.patch (a leading v is removed). Required for push; + validate uses 0.0.0 if empty. + default: "" + status: + description: DRAFT or ACTIVE. Default is the status in gateway.yaml, else DRAFT. + default: "" + dry-run: + description: With push, print the request instead of sending it. Needs no credentials. + default: "false" + traser: + description: >- + Also check the metadata with HDR UK's TRASER service, the way the Gateway does. Local + schema validation misses some errors that the Gateway rejects. + default: "true" + traser-url: + description: TRASER base URL. Default is HDR UK's dev instance. + default: "" + base-url: + description: Gateway API base URL. + default: https://api.healthdatagateway.org/api + allow-unknown-host: + description: Send credentials to a base-url that isn't a known Gateway host. + default: "false" + team-id: + description: Gateway team ID. Default is team_id in gateway.yaml; if set, it must match. + default: "" + app-id: + description: The Private App's App ID. Required for push, unless dry-run. + default: "" + client-id: + description: The Private App's Client ID. Required for push, unless dry-run. + default: "" + python-version: + description: Python version to run the tool with. + default: "3.13" + +runs: + using: composite + steps: + # uv installs the dependencies pinned in this action's uv.lock. + - name: Set up uv + uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2 + with: + python-version: ${{ inputs.python-version }} + enable-cache: false + + - name: Run gateway-publish + shell: bash + env: + COMMAND: ${{ inputs.command }} + DATASET_DIR: ${{ inputs.dataset-dir }} + SCHEMA: ${{ inputs.schema }} + VERSION: ${{ inputs.version }} + STATUS: ${{ inputs.status }} + DRY_RUN: ${{ inputs.dry-run }} + TRASER: ${{ inputs.traser }} + TRASER_URL: ${{ inputs.traser-url }} + GATEWAY_BASE_URL: ${{ inputs.base-url }} + GATEWAY_ALLOW_UNKNOWN_HOST: ${{ inputs.allow-unknown-host == 'true' && '1' || '' }} + GATEWAY_TEAM_ID: ${{ inputs.team-id }} + GATEWAY_APP_ID: ${{ inputs.app-id }} + GATEWAY_CLIENT_ID: ${{ inputs.client-id }} + run: bash "$GITHUB_ACTION_PATH/scripts/run.sh" diff --git a/.github/actions/gateway-publish/pyproject.toml b/.github/actions/gateway-publish/pyproject.toml new file mode 100644 index 0000000..e6067ae --- /dev/null +++ b/.github/actions/gateway-publish/pyproject.toml @@ -0,0 +1,34 @@ +[project] +name = "gateway-publish" +version = "0.1.0" +description = "Publish dataset metadata to the HDR UK Health Data Research Gateway" +readme = "README.md" +requires-python = ">=3.13" +dependencies = [ + "httpx>=0.28", + "jsonschema>=4.23", + "linkml-runtime>=1.12.1", + "pydantic>=2", + "pyyaml>=6.0.3", +] + +[project.scripts] +gateway-publish = "gateway_publish.cli:main" + +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[tool.hatch.build.targets.wheel] +packages = ["src/gateway_publish"] + +[dependency-groups] +dev = [ + "pytest>=8", +] + +[tool.pytest.ini_options] +testpaths = ["tests"] +markers = [ + "live: talks to a real Gateway; skipped unless GATEWAY_LIVE_TESTS=1", +] diff --git a/.github/actions/gateway-publish/scripts/run.sh b/.github/actions/gateway-publish/scripts/run.sh new file mode 100755 index 0000000..c57cc0e --- /dev/null +++ b/.github/actions/gateway-publish/scripts/run.sh @@ -0,0 +1,58 @@ +#!/usr/bin/env bash +# Runs the gateway-publish CLI (this action's Python package) and copies its output to the +# job summary. +# +# Environment (set by action.yml): +# COMMAND validate or push +# DATASET_DIR, SCHEMA the dataset directory and, optionally, the LinkML schema +# VERSION the metadata version (required for push) +# STATUS DRAFT, ACTIVE or empty (gateway.yaml decides) +# DRY_RUN, TRASER "true" or "false" +# TRASER_URL, GATEWAY_* read by the CLI itself; GATEWAY_APP_ID and GATEWAY_CLIENT_ID are +# secrets, so they are never put on the command line +# GITHUB_ACTION_PATH this action's directory +# GITHUB_STEP_SUMMARY the file that GitHub Actions shows as the job summary +set -euo pipefail + +args=() +case "$COMMAND" in + validate) + args=(validate --dataset "$DATASET_DIR") + if [ -n "$VERSION" ]; then args+=(--version "$VERSION"); fi + if [ "$TRASER" = "true" ]; then args+=(--traser); fi + ;; + push) + if [ -z "$VERSION" ]; then + echo "::error::The version input is required for push" + exit 1 + fi + args=(push "$DATASET_DIR" --version "$VERSION") + if [ -n "$STATUS" ]; then args+=(--status "$STATUS"); fi + if [ "$DRY_RUN" = "true" ]; then args+=(--dry-run); fi + if [ "$TRASER" != "true" ]; then args+=(--skip-traser); fi + ;; + *) + echo "::error::Unknown command '$COMMAND' (expected validate or push)" + exit 1 + ;; +esac +if [ -n "$SCHEMA" ]; then args+=(--schema "$SCHEMA"); fi + +log=$(mktemp) +set +e +uv run --quiet --frozen --no-dev --project "$GITHUB_ACTION_PATH" gateway-publish "${args[@]}" 2>&1 | tee "$log" +result=${PIPESTATUS[0]} +set -e + +{ + echo "### HDR UK Gateway: $COMMAND" + echo + echo '```' + cat "$log" + echo '```' +} >> "$GITHUB_STEP_SUMMARY" + +if [ "$result" -ne 0 ]; then + echo "::error::gateway-publish $COMMAND failed; see the log above or the job summary" +fi +exit "$result" diff --git a/.github/actions/gateway-publish/src/gateway_publish/__init__.py b/.github/actions/gateway-publish/src/gateway_publish/__init__.py new file mode 100644 index 0000000..8ee057c --- /dev/null +++ b/.github/actions/gateway-publish/src/gateway_publish/__init__.py @@ -0,0 +1 @@ +"""Publish dataset metadata to the HDR UK Health Data Research Gateway.""" diff --git a/.github/actions/gateway-publish/src/gateway_publish/build.py b/.github/actions/gateway-publish/src/gateway_publish/build.py new file mode 100644 index 0000000..010ea81 --- /dev/null +++ b/.github/actions/gateway-publish/src/gateway_publish/build.py @@ -0,0 +1,211 @@ +"""Build a Gateway payload (HDRUK 4.1.0) from a dataset directory. + +A dataset directory (in a dataset repo, the repo root) holds: + .yaml or schemas/.yaml + LinkML schema; supplies structuralMetadata + gateway/metadata.yaml hand-written catalogue fields, in HDRUK 4.1.0 shape + gateway/gateway.yaml the Gateway team, the status to publish with and, once created, + the dataset ID and pid + +`build_payload` merges them and fills the fields the Gateway overwrites anyway (identifier, +issued, modified, revisions, summary.dataCustodian) so the payload passes validation. +""" + +import re +from dataclasses import dataclass +from datetime import UTC, datetime +from pathlib import Path +from typing import Any + +import yaml +from linkml_runtime.utils.schemaview import SchemaView + +from gateway_publish.client import STATUSES + +SCHEMA_MODEL = "HDRUK" +SCHEMA_VERSION = "4.1.0" +TODO_MARKER = "TODO" +# Filled by build; metadata.yaml must not set them. +GENERATED_FIELDS = ("identifier", "version", "issued", "modified", "revisions", "structuralMetadata") + + +class BuildError(Exception): + pass + + +class _Loader(yaml.SafeLoader): + """SafeLoader that keeps unquoted dates (startDate: 2020-01-01) as strings, as HDRUK expects.""" + + +_Loader.yaml_implicit_resolvers = { + first: [(tag, regexp) for tag, regexp in resolvers if tag != "tag:yaml.org,2002:timestamp"] + for first, resolvers in yaml.SafeLoader.yaml_implicit_resolvers.items() +} + + +@dataclass +class DatasetDir: + root: Path + schema: Path + metadata: Path + gateway: Path + + @classmethod + def find(cls, root: Path, schema: Path | None = None) -> "DatasetDir": + """`schema` defaults to the only *.yaml in `root`, or failing that in `root`/schemas.""" + if not root.is_dir(): + raise BuildError(f"Not a directory: {root}") + if schema is None: + schema = _find_schema(root) + dataset = cls(root, schema, root / "gateway" / "metadata.yaml", root / "gateway" / "gateway.yaml") + for path in (dataset.schema, dataset.metadata, dataset.gateway): + if not path.is_file(): + raise BuildError(f"Missing {path}") + return dataset + + def load_metadata(self) -> dict[str, Any]: + return _load_yaml(self.metadata) + + def load_gateway(self) -> dict[str, Any]: + gateway = _load_yaml(self.gateway) + for key in ("team_id", "team_name"): + if not gateway.get(key): + raise BuildError(f"{self.gateway}: '{key}' is required") + if gateway.get("status") not in (None, *STATUSES): + raise BuildError(f"{self.gateway}: status must be one of {', '.join(STATUSES)}") + return gateway + + def record_created(self, dataset_id: int, pid: str | None) -> None: + """Write dataset_id and pid into gateway.yaml, keeping its comments and other keys.""" + text = self.gateway.read_text() + for key, value in (("dataset_id", dataset_id), ("pid", pid)): + line = f"{key}: {yaml.safe_dump(value, default_style=None).splitlines()[0]}" + text, found = re.subn(rf"^{key}:.*$", line, text, count=1, flags=re.MULTILINE) + if not found: + text = text.rstrip("\n") + f"\n{line}\n" + self.gateway.write_text(text) + + +def _find_schema(root: Path) -> Path: + for folder in (root, root / "schemas"): + schemas = sorted(folder.glob("*.yaml")) + if len(schemas) == 1: + return schemas[0] + if schemas: + found = ", ".join(p.name for p in schemas) + raise BuildError(f"More than one *.yaml in {folder} ({found}); pass the LinkML schema with --schema") + raise BuildError(f"No LinkML schema (*.yaml) in {root} or {root / 'schemas'}; pass it with --schema") + + +def _load_yaml(path: Path) -> dict[str, Any]: + try: + data = yaml.load(path.read_text(), Loader=_Loader) + except yaml.YAMLError as e: + raise BuildError(f"{path} is not valid YAML: {e}") from None + if not isinstance(data, dict): + raise BuildError(f"{path} must contain a mapping") + return data + + +def find_todos(value: Any, path: str = "") -> list[str]: + """Paths of string values that still start with the TODO marker.""" + if isinstance(value, dict): + return [p for k, v in value.items() for p in find_todos(v, f"{path}/{k}")] + if isinstance(value, list): + return [p for i, v in enumerate(value) for p in find_todos(v, f"{path}/{i}")] + if isinstance(value, str) and value.strip().startswith(TODO_MARKER): + return [path or "/"] + return [] + + +def _values(sv: SchemaView, range_name: str | None) -> list[dict[str, Any]] | None: + """An enum's permissible values as HDRUK column values; None for other ranges.""" + enum = sv.get_enum(range_name, strict=False) if range_name else None + if enum is None: + return None + return [ + {"name": name, "description": (pv.description or "").strip() or None} + for name, pv in enum.permissible_values.items() + ] + + +def _data_type(sv: SchemaView, range_name: str | None) -> str: + if range_name is None: + return "string" + # Enums are stored as their (string) permissible values. + return "string" if sv.get_enum(range_name, strict=False) else range_name + + +def structural_metadata(schema_path: Path) -> dict[str, Any]: + """One table per tree_root class, one column per slot (as nuh-data's gen_datadict.py).""" + sv = SchemaView(str(schema_path)) + roots = [c for c in sv.all_classes().values() if c.tree_root] + if not roots: + raise BuildError(f"{schema_path}: no tree_root class found") + tables = [] + for cls in roots: + columns = [] + for slot_name in sv.class_slots(cls.name): + slot = sv.induced_slot(slot_name, cls.name) + column = { + "name": slot.name, + "dataType": _data_type(sv, slot.range), + # HDRUK rejects empty descriptions. + "description": (slot.description or "").strip() or None, + "sensitive": "sensitivity" in slot.annotations, + } + values = _values(sv, slot.range) + if values is not None: + column["values"] = values + columns.append(column) + tables.append({"name": cls.name, "description": (cls.description or "").strip() or None, "columns": columns}) + return {"tables": tables} + + +def _timestamp(now: datetime) -> str: + return now.astimezone(UTC).strftime("%Y-%m-%dT%H:%M:%S.000Z") + + +def _semver(version: str) -> str: + """HDRUK needs major.minor.patch; release tags may carry a leading v.""" + plain = version.removeprefix("v") + if not re.fullmatch(r"\d+\.\d+\.\d+", plain): + raise BuildError(f"Version {version!r} must be major.minor.patch, e.g. 1.2.3 (a leading v is allowed)") + return plain + + +def build_payload(dataset: DatasetDir, version: str, now: datetime | None = None) -> dict[str, Any]: + version = _semver(version) + metadata = dataset.load_metadata() + gateway = dataset.load_gateway() + + todos = find_todos(metadata) + if todos: + raise BuildError(f"{dataset.metadata} still has TODOs at: {', '.join(todos)}") + clashes = [f for f in GENERATED_FIELDS if f in metadata] + if "dataCustodian" in metadata.get("summary", {}): + clashes.append("summary/dataCustodian") + if clashes: + raise BuildError(f"{dataset.metadata} must not set fields that build fills: {', '.join(clashes)}") + + stamp = _timestamp(now or datetime.now(UTC)) + summary = metadata.get("summary", {}) + payload = { + "identifier": gateway.get("pid"), + "version": version, + "revisions": [], + "issued": stamp, + "modified": stamp, + **metadata, + "structuralMetadata": structural_metadata(dataset.schema), + } + # Required by the schema but replaced by the Gateway with the owning team. + payload["summary"] = { + **summary, + "dataCustodian": { + "identifier": str(gateway["team_id"]), + "name": gateway["team_name"], + "contactPoint": summary.get("contactPoint"), + }, + } + return payload diff --git a/.github/actions/gateway-publish/src/gateway_publish/cli.py b/.github/actions/gateway-publish/src/gateway_publish/cli.py new file mode 100644 index 0000000..f372d7d --- /dev/null +++ b/.github/actions/gateway-publish/src/gateway_publish/cli.py @@ -0,0 +1,294 @@ +"""Command line interface: gateway-publish ...""" + +import argparse +import json +import os +import sys +from pathlib import Path +from typing import Any + +from gateway_publish.build import SCHEMA_MODEL, SCHEMA_VERSION, BuildError, DatasetDir, build_payload +from gateway_publish.client import STATUSES, GatewayClient, GatewayError, latest_version +from gateway_publish.config import DEFAULT_BASE_URL, ConfigError, GatewayConfig +from gateway_publish.traser import TraserError, traser_errors +from gateway_publish.validate import validation_errors + +DECLARED_SCHEMA = (SCHEMA_MODEL, SCHEMA_VERSION) +# Any valid version will do when only checking a dataset directory. +VALIDATE_VERSION = "0.0.0" + + +class CommandError(Exception): + pass + + +def _load_json(path: Path) -> dict[str, Any]: + try: + return json.loads(path.read_text()) + except FileNotFoundError: + raise CommandError(f"File not found: {path}") from None + except json.JSONDecodeError as e: + raise CommandError(f"{path} is not valid JSON: {e}") from None + + +def _print_json(data: Any) -> None: + print(json.dumps(data, indent=2, ensure_ascii=False)) + + +def _client(args: argparse.Namespace, default_team_id: int | None = None) -> GatewayClient: + """`default_team_id` applies only when neither --team-id nor $GATEWAY_TEAM_ID is set.""" + team_id = args.team_id + if team_id is None and not os.environ.get("GATEWAY_TEAM_ID"): + team_id = default_team_id + return GatewayClient(GatewayConfig.from_env(base_url=args.base_url, team_id=team_id)) + + +def cmd_create(args: argparse.Namespace) -> None: + if args.dataset: + _create_dataset(args) + return + metadata = _load_json(args.file) + status = args.status or "DRAFT" + with _client(args) as client: + result = client.create(metadata, status=status) + print(f"Created {status} dataset {result.dataset_id} (version id {result.version_id})") + + +def cmd_update(args: argparse.Namespace) -> None: + metadata = _load_json(args.file) + with _client(args) as client: + _print_json(client.update(args.id, metadata, status=args.status or "DRAFT")) + + +def cmd_get(args: argparse.Namespace) -> None: + with _client(args) as client: + _print_json(client.get(args.id, args.schema_model, args.schema_version)) + + +def cmd_delete(args: argparse.Namespace) -> None: + if args.confirm != args.id: + raise CommandError(f"Refusing to delete: pass --confirm {args.id} to confirm") + with _client(args) as client: + _print_json(client.delete(args.id)) + + +def cmd_list(args: argparse.Namespace) -> None: + with _client(args) as client: + _print_json(client.list(status=args.status, title=args.title)) + + +def _check(metadata: dict[str, Any], label: str, model: str, version: str, traser: bool) -> None: + """Validate locally, then optionally with TRASER; exit 1 with readable errors on failure.""" + errors = validation_errors(metadata, version, model) + if errors: + print(f"{label} is NOT valid {model} {version}:", file=sys.stderr) + for error in errors: + print(f" {error}", file=sys.stderr) + raise SystemExit(1) + print(f"{label} is valid {model} {version}") + + if traser: + errors = traser_errors(metadata, version, model) + if errors: + print(f"{label} failed the TRASER translation check:", file=sys.stderr) + for error in errors: + print(f" {error}", file=sys.stderr) + raise SystemExit(1) + print("TRASER: translates to GWDM with input and output validation") + + +def _dataset(args: argparse.Namespace) -> DatasetDir: + return DatasetDir.find(args.dataset, schema=args.schema) + + +def cmd_validate(args: argparse.Namespace) -> None: + if args.dataset: + payload = build_payload(_dataset(args), args.version or VALIDATE_VERSION) + _check(payload, f"{args.dataset} (built)", SCHEMA_MODEL, SCHEMA_VERSION, args.traser) + else: + _check(_load_json(args.file), str(args.file), args.schema_model, args.schema_version, args.traser) + + +def cmd_build(args: argparse.Namespace) -> None: + payload = build_payload(_dataset(args), args.version) + text = json.dumps(payload, indent=2, ensure_ascii=False) + "\n" + if args.output: + args.output.write_text(text) + print(f"Wrote {args.output}") + else: + print(text, end="") + + +def _status(args: argparse.Namespace, gateway: dict[str, Any]) -> str: + """--status if given, else gateway.yaml's status, else DRAFT.""" + return args.status or gateway.get("status") or "DRAFT" + + +def _dataset_client(args: argparse.Namespace, gateway: dict[str, Any]) -> GatewayClient: + """A client for gateway.yaml's team. --team-id or $GATEWAY_TEAM_ID, if set, must agree.""" + client = _client(args, default_team_id=gateway["team_id"]) + if client.config.team_id != gateway["team_id"]: + client.close() + raise CommandError( + f"gateway.yaml is for team {gateway['team_id']} but the credentials are for team " + f"{client.config.team_id}" + ) + return client + + +def _create_dataset(args: argparse.Namespace) -> None: + if not args.version: + raise CommandError("--version is required with --dataset") + dataset = _dataset(args) + gateway = dataset.load_gateway() + if gateway.get("dataset_id"): + raise CommandError( + f"{dataset.gateway} already has dataset_id {gateway['dataset_id']}; use push to update it" + ) + payload = build_payload(dataset, args.version) + _check(payload, f"{args.dataset} (built)", SCHEMA_MODEL, SCHEMA_VERSION, traser=not args.skip_traser) + + status = _status(args, gateway) + with _dataset_client(args, gateway) as client: + result = client.create(payload, status=status, schema=DECLARED_SCHEMA) + # Record the ID before anything else can fail, so it is never lost. + dataset.record_created(result.dataset_id, None) + pid = client.get(result.dataset_id)["data"].get("pid") + dataset.record_created(result.dataset_id, pid) + print(f"Created {status} dataset {result.dataset_id} (pid {pid}); recorded in {dataset.gateway}") + + +def cmd_push(args: argparse.Namespace) -> None: + dataset = _dataset(args) + gateway = dataset.load_gateway() + status = _status(args, gateway) + payload = build_payload(dataset, args.version) + _check(payload, f"{args.dataset} (built)", SCHEMA_MODEL, SCHEMA_VERSION, traser=not args.skip_traser) + + dataset_id = gateway.get("dataset_id") + if not dataset_id: + raise CommandError( + f"{dataset.gateway} has no dataset_id. Create the dataset once with " + f"`gateway-publish create --dataset {args.dataset} --version {args.version}` " + "(then commit gateway.yaml), " + "or recover the ID with `gateway-publish list --status draft --title ...`." + ) + + if args.dry_run: + base_url = (args.base_url or os.environ.get("GATEWAY_BASE_URL") or DEFAULT_BASE_URL).rstrip("/") + print(f"DRY RUN: would send (credential headers omitted)\n" + f"PUT {base_url}/v3/teams/{gateway['team_id']}/datasets/{dataset_id}") + _print_json(GatewayClient._body(payload, status, DECLARED_SCHEMA)) + return + + title = payload["summary"]["title"] + with _dataset_client(args, gateway) as client: + before = latest_version(client.get(dataset_id)) + client.update(dataset_id, payload, status=status, schema=DECLARED_SCHEMA) + after = latest_version(client.get(dataset_id)) + + print(f"Dataset {dataset_id}: version {before.version} -> {after.version}, status {status}") + problems = [] + if after.version <= before.version: + problems.append(f"no new version (still {after.version})") + if after.title != title: + problems.append(f"retrieved title is {after.title!r}, expected {title!r}") + if problems: + raise CommandError("Read-back check failed: " + "; ".join(problems)) + print("OK: new version with the expected title") + + +def add_status(parser: argparse.ArgumentParser, default: str = "DRAFT") -> None: + parser.add_argument( + "--status", + choices=STATUSES, + help=f"dataset status to set (default: {default}). The Gateway skips its validation for DRAFT", + ) + + +def add_dataset(parser: argparse.ArgumentParser, positional: bool) -> None: + if positional: + parser.add_argument("dataset", type=Path, help="dataset directory (holds gateway/)") + parser.add_argument("--schema", type=Path, + help="LinkML schema (default: the only *.yaml in the dataset directory, else in its schemas/)") + + +def build_parser() -> argparse.ArgumentParser: + parser = argparse.ArgumentParser(prog="gateway-publish", description=__doc__) + parser.add_argument("--base-url", help=f"Gateway API base URL (default: $GATEWAY_BASE_URL, else {DEFAULT_BASE_URL})") + parser.add_argument("--team-id", type=int, + help="Gateway team ID (default: $GATEWAY_TEAM_ID, else gateway.yaml's team_id for dataset commands)") + sub = parser.add_subparsers(dest="command", required=True) + + p = sub.add_parser("create", help="create a dataset from a metadata file or, once, from a dataset directory") + source = p.add_mutually_exclusive_group(required=True) + source.add_argument("--file", type=Path, help="metadata JSON (Phase 0 testing)") + source.add_argument("--dataset", type=Path, help="dataset directory; writes the new ID to gateway/gateway.yaml") + p.add_argument("--version", help="metadata version, with --dataset") + p.add_argument("--skip-traser", action="store_true", help="with --dataset, skip the TRASER check") + add_dataset(p, positional=False) + add_status(p, default="gateway.yaml's status, else DRAFT") + p.set_defaults(func=cmd_create) + + p = sub.add_parser("update", help="push a new version of a dataset") + p.add_argument("--id", type=int, required=True) + p.add_argument("--file", type=Path, required=True) + add_status(p) + p.set_defaults(func=cmd_update) + + p = sub.add_parser("get", help="retrieve a dataset") + p.add_argument("--id", type=int, required=True) + p.add_argument("--schema-model") + p.add_argument("--schema-version") + p.set_defaults(func=cmd_get) + + p = sub.add_parser("delete", help="delete a dataset") + p.add_argument("--id", type=int, required=True) + p.add_argument("--confirm", type=int, help="repeat the dataset ID to confirm") + p.set_defaults(func=cmd_delete) + + p = sub.add_parser("list", help="list the team's datasets") + p.add_argument("--status", choices=["active", "draft", "archived"], default="active") + p.add_argument("--title", help="substring match on title") + p.set_defaults(func=cmd_list) + + p = sub.add_parser("validate", help="validate a metadata file or built dataset offline against a bundled schema") + source = p.add_mutually_exclusive_group(required=True) + source.add_argument("--file", type=Path) + source.add_argument("--dataset", type=Path, help=f"dataset directory; built and checked against {SCHEMA_MODEL} {SCHEMA_VERSION}") + p.add_argument("--version", help=f"metadata version to build with --dataset (default: {VALIDATE_VERSION})") + add_dataset(p, positional=False) + p.add_argument("--schema-model", default="HDRUK") + p.add_argument("--schema-version", default="4.1.0") + p.add_argument("--traser", action="store_true", + help="also translate via TRASER to GWDM as the Gateway does (sends the file to TRASER)") + p.set_defaults(func=cmd_validate) + + p = sub.add_parser("build", help="build the payload for a dataset directory") + add_dataset(p, positional=True) + p.add_argument("--version", required=True, help="metadata version (in a dataset repo: the release version)") + p.add_argument("-o", "--output", type=Path, help="write to this file (default: stdout)") + p.set_defaults(func=cmd_build) + + p = sub.add_parser("push", help="build, validate and push a new version of an existing dataset") + add_dataset(p, positional=True) + p.add_argument("--version", required=True, help="metadata version (in a dataset repo: the release version)") + p.add_argument("--dry-run", action="store_true", help="print the request instead of sending it") + p.add_argument("--skip-traser", action="store_true", help="skip the TRASER check") + add_status(p, default="gateway.yaml's status, else DRAFT") + p.set_defaults(func=cmd_push) + + return parser + + +def main(argv: list[str] | None = None) -> None: + args = build_parser().parse_args(argv) + try: + args.func(args) + except (BuildError, ConfigError, CommandError, GatewayError, TraserError, ValueError) as e: + print(f"error: {e}", file=sys.stderr) + raise SystemExit(1) from None + + +if __name__ == "__main__": + main() diff --git a/.github/actions/gateway-publish/src/gateway_publish/client.py b/.github/actions/gateway-publish/src/gateway_publish/client.py new file mode 100644 index 0000000..fcc03bf --- /dev/null +++ b/.github/actions/gateway-publish/src/gateway_publish/client.py @@ -0,0 +1,209 @@ +"""HTTP client for the Gateway's team dataset API (/api/v{2,3}/teams/{teamId}/datasets). + +Authenticates with a Private App's x-application-id / x-client-id headers. Updates go to +v3, because the v2 PUT overwrites the latest version in place instead of adding one. The +older /api/v1/integrations/datasets endpoints have been retired. See docs/gateway-notes.md. +""" + +import json +import time +from dataclasses import dataclass +from typing import Any + +import httpx + +from gateway_publish.config import GatewayConfig + +TIMEOUT = httpx.Timeout(60.0, connect=10.0) +# Reads are retried on 5xx and connection errors, waiting 2s then 4s. Writes are not: a +# retried update could add a second version. +READ_ATTEMPTS = 3 +RETRY_WAIT = 2.0 +STATUSES = ("ACTIVE", "DRAFT") + + +class GatewayError(Exception): + def __init__(self, status_code: int, message: str, hint: str | None, body: Any): + self.status_code = status_code + self.message = message + self.hint = hint + self.body = body + super().__init__(str(self)) + + def __str__(self) -> str: + text = f"HTTP {self.status_code}: {self.message}" + if self.hint: + text += f"\n Likely cause: {self.hint}" + return text + + +# (status code, substring of the response message, hint). First match wins; a None +# substring matches any message for that status. +ERROR_HINTS: list[tuple[int, str | None, str]] = [ + (400, "permissions do not allow", "the Private App lacks the permission for this action " + "(datasets.create / datasets.update / datasets.delete). Fix on the app's Permissions tab."), + (400, "not been enabled", "the Private App is disabled. Set it to Enabled on the App Info tab."), + (400, "unknown format", "the metadata matched no supported schema. Run `gateway-publish validate` " + "and see the TRASER details in the response."), + (400, "Title is required", "summary.title is missing from the metadata."), + (401, "No known integration", "GATEWAY_APP_ID does not match any app on this Gateway " + "(wrong value, or credentials from a different environment)."), + (401, "credentials provided are invalid", "GATEWAY_CLIENT_ID does not match the app."), + (401, "another team", "the app belongs to a different team from GATEWAY_TEAM_ID or from the dataset."), + (401, None, "credentials missing, wrong, or not valid for this team."), + (404, None, "no dataset with that ID in this team (wrong ID or team, or it was deleted)."), + (410, None, "this endpoint has been retired by the Gateway."), + (500, None, "server error. For update/delete this can also mean the dataset ID does not exist."), +] + + +def _hint_for(status_code: int, message: str) -> str | None: + for code, needle, hint in ERROR_HINTS: + if code == status_code and (needle is None or needle.lower() in message.lower()): + return hint + if status_code >= 500: + return "server error on the Gateway; retrying later may help." + return None + + +def _raise_for_status(response: httpx.Response) -> None: + if response.is_success: + return + try: + body = response.json() + except ValueError: + body = response.text + message = body.get("message", "") if isinstance(body, dict) else str(body)[:500] + raise GatewayError(response.status_code, message, _hint_for(response.status_code, message), body) + + +@dataclass +class CreateResult: + dataset_id: int + version_id: int + + +@dataclass +class LatestVersion: + version: int + title: str | None + metadata: dict[str, Any] + + +class GatewayClient: + def __init__(self, config: GatewayConfig, transport: httpx.BaseTransport | None = None, sleep=time.sleep): + self.config = config + self._sleep = sleep + self._http = httpx.Client( + base_url=config.base_url, + headers={ + "x-application-id": config.app_id.get_secret_value(), + "x-client-id": config.client_id.get_secret_value(), + "Accept": "application/json", + }, + timeout=TIMEOUT, + transport=transport, + ) + + def __enter__(self) -> "GatewayClient": + return self + + def __exit__(self, *exc: object) -> None: + self.close() + + def close(self) -> None: + self._http.close() + + def _datasets_path(self, api: str = "v2") -> str: + return f"/{api}/teams/{self.config.team_id}/datasets" + + @staticmethod + def _body(metadata: dict[str, Any], status: str, schema: tuple[str, str] | None = None) -> dict[str, Any]: + # create_origin and status are read unconditionally by the Gateway; omitting + # status on update would blank the dataset's status. DRAFT datasets are left out + # of search, but the Gateway skips schema validation for them. + if status not in STATUSES: + raise ValueError(f"status must be one of {', '.join(STATUSES)}") + if schema: + # The envelope the Gateway's own form sends. Update passes schemaModel and + # schemaVersion to TRASER; create records them as the version's source schema. + metadata = {"metadata": metadata, "schemaModel": schema[0], "schemaVersion": schema[1]} + return {"metadata": metadata, "create_origin": "API", "status": status} + + def create( + self, metadata: dict[str, Any], *, status: str, schema: tuple[str, str] | None = None + ) -> CreateResult: + """Create a dataset. `schema` = (model, version) declares the input schema.""" + # Create only passes the query parameters to TRASER, not the envelope's schema. + params = {"input_schema": schema[0], "input_version": schema[1]} if schema else None + response = self._http.post(self._datasets_path(), params=params, json=self._body(metadata, status, schema)) + _raise_for_status(response) + body = response.json() + return CreateResult(dataset_id=int(body["data"]), version_id=int(body["version"])) + + def update( + self, dataset_id: int, metadata: dict[str, Any], *, status: str, schema: tuple[str, str] | None = None + ) -> dict[str, Any]: + """Add a new version of the dataset (v3; the v2 PUT would overwrite the latest one).""" + response = self._http.put( + f"{self._datasets_path('v3')}/{dataset_id}", json=self._body(metadata, status, schema) + ) + _raise_for_status(response) + return response.json() + + def _read(self, path: str, params: dict[str, Any] | None = None) -> httpx.Response: + for attempt in range(1, READ_ATTEMPTS + 1): + try: + response = self._http.get(path, params=params) + if response.status_code < 500 or attempt == READ_ATTEMPTS: + return response + except httpx.TransportError: + if attempt == READ_ATTEMPTS: + raise + self._sleep(RETRY_WAIT * 2 ** (attempt - 1)) + raise AssertionError("unreachable") + + def get( + self, + dataset_id: int, + schema_model: str | None = None, + schema_version: str | None = None, + ) -> dict[str, Any]: + if bool(schema_model) != bool(schema_version): + raise ValueError("schema_model and schema_version must be given together") + params = {"schema_model": schema_model, "schema_version": schema_version} if schema_model else None + response = self._read(f"{self._datasets_path()}/{dataset_id}", params=params) + _raise_for_status(response) + return response.json() + + def delete(self, dataset_id: int) -> dict[str, Any]: + response = self._http.delete(f"{self._datasets_path()}/{dataset_id}") + _raise_for_status(response) + return response.json() + + def list(self, status: str = "active", title: str | None = None) -> dict[str, Any]: + """List the team's datasets. `title` is a substring match on the Gateway side.""" + params: dict[str, Any] = {"with_metadata": "false"} + if title: + params["title"] = title + response = self._read(f"{self._datasets_path()}/status/{status}", params=params) + _raise_for_status(response) + return response.json() + + +def latest_version(get_response: dict[str, Any]) -> LatestVersion: + """Pull the latest version number, title and stored metadata out of a GET response. + + The Gateway returns only the latest version in `data.versions`; its `metadata` may be + a JSON string or an object, wrapping the GWDM document under a further `metadata` key. + """ + versions = get_response["data"].get("versions") or [] + if not versions: + raise ValueError("GET response contains no versions") + latest = max(versions, key=lambda v: v.get("version", 0)) + stored = latest.get("metadata") or {} + if isinstance(stored, str): + stored = json.loads(stored) + document = stored.get("metadata", stored) + title = (document.get("summary") or {}).get("title") or latest.get("title") + return LatestVersion(version=int(latest.get("version", 0)), title=title, metadata=document) diff --git a/.github/actions/gateway-publish/src/gateway_publish/config.py b/.github/actions/gateway-publish/src/gateway_publish/config.py new file mode 100644 index 0000000..337f5ee --- /dev/null +++ b/.github/actions/gateway-publish/src/gateway_publish/config.py @@ -0,0 +1,63 @@ +"""Connection settings, read from the environment. + +Credentials are held as SecretStr so they never appear in reprs, tracebacks or logs. +""" + +import os +from urllib.parse import urlparse + +from pydantic import BaseModel, SecretStr + +DEFAULT_BASE_URL = "https://api.healthdatagateway.org/api" +KNOWN_HOSTS = {"api.healthdatagateway.org", "api.dev.hdruk.cloud"} + + +class ConfigError(Exception): + pass + + +class GatewayConfig(BaseModel): + base_url: str = DEFAULT_BASE_URL + app_id: SecretStr + client_id: SecretStr + team_id: int + + @classmethod + def from_env(cls, base_url: str | None = None, team_id: int | None = None) -> "GatewayConfig": + missing = [ + name + for name in ("GATEWAY_APP_ID", "GATEWAY_CLIENT_ID") + if not os.environ.get(name) + ] + if team_id is None and not os.environ.get("GATEWAY_TEAM_ID"): + missing.append("GATEWAY_TEAM_ID") + if missing: + raise ConfigError( + f"Missing environment variable(s): {', '.join(missing)}. " + "App ID and Client ID come from the Private App's Authentication tab " + "(Integrations > API Management > Manage API); the team ID is the " + "Gateway team that owns the app." + ) + + try: + resolved_team_id = team_id if team_id is not None else int(os.environ["GATEWAY_TEAM_ID"]) + except ValueError: + raise ConfigError("GATEWAY_TEAM_ID must be an integer") from None + + config = cls( + base_url=(base_url or os.environ.get("GATEWAY_BASE_URL") or DEFAULT_BASE_URL).rstrip("/"), + app_id=SecretStr(os.environ["GATEWAY_APP_ID"]), + client_id=SecretStr(os.environ["GATEWAY_CLIENT_ID"]), + team_id=resolved_team_id, + ) + config.check_target_allowed() + return config + + def check_target_allowed(self) -> None: + """Refuse to send credentials to an unknown host unless explicitly opted in.""" + host = urlparse(self.base_url).hostname + if host not in KNOWN_HOSTS and os.environ.get("GATEWAY_ALLOW_UNKNOWN_HOST") != "1": + raise ConfigError( + f"Refusing to send credentials to unknown host {host} " + f"(known: {', '.join(sorted(KNOWN_HOSTS))}). Set GATEWAY_ALLOW_UNKNOWN_HOST=1 to override." + ) diff --git a/.github/actions/gateway-publish/src/gateway_publish/schemas/HDRUK/3.0.0/schema.json b/.github/actions/gateway-publish/src/gateway_publish/schemas/HDRUK/3.0.0/schema.json new file mode 100644 index 0000000..d1525e8 --- /dev/null +++ b/.github/actions/gateway-publish/src/gateway_publish/schemas/HDRUK/3.0.0/schema.json @@ -0,0 +1,2714 @@ +{ + "$defs": { + "AbstractText": { + "anyOf": [ + { + "maxLength": 500, + "minLength": 5, + "type": "string" + }, + { + "type": "null" + } + ], + "title": "AbstractText" + }, + "Access": { + "additionalProperties": false, + "properties": { + "accessRights": { + "allOf": [ + { + "$ref": "#/$defs/LongDescription" + } + ], + "description": "Please provide details for the data access rights.", + "examples": [ + "In Progress" + ], + "guidance": "The URL of a webpage where the data access request process and/or guidance is provided. If there is more than one access process i.e. industry vs academic please provide both separated by a comma.- If such a resource or the underlying process doesn\u2019t exist, please provide \u201cIn Progress\u201d, until both the process and the documentation are ready.", + "title": "Access rights" + }, + "accessServiceCategory": { + "anyOf": [ + { + "$ref": "#/$defs/AccessService" + }, + { + "type": "null" + } + ], + "default": null, + "description": "The method a Researcher will use to access the dataset, if approved.", + "examples": [ + "TRE/SDE" + ], + "guidance": "Select the category which best matches how a Researcher will access the dataset, if approved for access. If the access method changes based on the data required for the project (e.g. the dataset can be shared via secure email if the extract is fully anonymised, but must be accessed via a TRE/SDE if the extract is only pseudonymised) then select 'varies based on project'.", + "title": "Access method category" + }, + "accessService": { + "anyOf": [ + { + "$ref": "#/$defs/LongDescription" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please provide a brief description of the data access services that are available including: environment that is currently available to researchers; additional consultancy and services; any indication of costs associated. If no environment is currently available, please indicate the current plans and timelines when and how data will be made available to researchers Note: This value will be used as default access environment for all datasets submitted by the organisation. However, there will be the opportunity to overwrite this value for each dataset.", + "examples": [ + "https://re-docs.genomicsengland.co.uk/tutorials/", + "https://publichealthscotland.scot/services/data-research-and-innovation-services/electronic-data-research-and-innovation-service-edris/national-safe-haven-nsh/" + ], + "guidance": "Please provide a brief description of the data access services that are available including:- environment that is currently available to researchers- additional consultancy and services- any indication of costs associated If no environment is currently available, please indicate the current plans and timelines when and how data will be made available to researchers. Note: This value will be used as default access environment for all datasets submitted by the organisation. However, there will be the opportunity to overwrite this value for each dataset.", + "title": "Access service description" + }, + "accessRequestCost": { + "anyOf": [ + { + "$ref": "#/$defs/LongDescription" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please provide link(s) to a webpage or description detailing the service or cost model for processing data access requests.", + "guidance": "This information should cover the costs and/or services available to different audiences (i.e. academic, commercial, non-UK, etc.). This can be in the form of text or a URL.", + "title": "Access request cost" + }, + "deliveryLeadTime": { + "anyOf": [ + { + "$ref": "#/$defs/DeliveryLeadTimeV2" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please provide an indication of the typical processing times based on the types of requests typically received.", + "guidance": "Less than 1 week: Access request process typically processed in less than a week.- 1-2 weeks: Access request process typically processed in one to two weeks.- 2-4 weeks: Access request process typically processed in two to four weeks.- 1-2 months: Access request process typically processed in one to two months.- 2-6 months: Access request process typically processed in two to six months.- More than 6 months: Access request process typically processed in more than six months.- Variable: Access request lead time is variable.- Not applicable: Access request process duration is not applicable.- Other: If the typical timeframe does not fit into the broad ranges i.e. lightweight application vs linked data application, please choose \u201cOther\u201d and indicate the typical timeframe within the description for the dataset.", + "title": "Time to dataset access" + }, + "jurisdiction": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/Isocountrycode" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please use country code from ISO 3166-1 country codes and the associated ISO 3166-2 for regions, cities, states etc. for the country/state under whose laws the data subjects' data is collected, processed and stored.", + "guidance": "A full list of country codes can be found here (alpha-2 column): https://www.iso.org/obp/ui/#search/code/", + "title": "Jurisdiction" + }, + "dataController": { + "anyOf": [ + { + "$ref": "#/$defs/LongDescription" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Data Controller means a person/entity who (either alone or jointly or in common with other persons/entities) determines the purposes for which and the way any Data Subject data, specifically personal data or are to be processed.", + "examples": [ + "NHS England" + ], + "guidance": "Data Controller means a person/entity who (either alone or jointly or in common with other persons/entities) determines the purposes for which and the way any Data Subject data, specifically personal data or are to be processed.- Notes: For most organisations this will be the same as the Data Custodian of the dataset. If this is not the case, please indicate that there is a different controller.- If there is a different controller please complete the Data Processor attribute to indicate if the Data Custodian is a Processor rather than the Data Controller.- In some cases, there may be multiple Data Controllers i.e. GP data. If this is the case, please indicate the fact in a free-text field and describe the data sharing arrangement or a link to it, so that this can be understood by research users.- Example: NHS England", + "title": "Data Controller" + }, + "dataProcessor": { + "anyOf": [ + { + "$ref": "#/$defs/LongDescription" + }, + { + "type": "null" + } + ], + "default": null, + "description": "A Data Processor, in relation to any Data Subject data, specifically personal data, means any person/entity (other than an employee of the data controller) who processes the data on behalf of the data controller.", + "examples": [ + "Not Applicable", + "SAIL" + ], + "guidance": "A Data Processor, in relation to any Data Subject data, specifically personal data, means any person/entity (other than an employee of the data controller) who processes the data on behalf of the data controller.- Notes: Required to complete if the Data Custodian is the Data Processor rather than the Data Controller.- If the Publisher is also the Data Controller please provide \u201cNot Applicable\u201d.- Examples: Not Applicable, SAIL", + "title": "Data Processor" + } + }, + "required": [ + "accessRights" + ], + "title": "Access", + "type": "object" + }, + "AccessService": { + "enum": [ + "TRE/SDE", + "Direct access", + "Open access", + "Varies based on project" + ], + "title": "AccessService", + "type": "string" + }, + "Accessibility": { + "additionalProperties": false, + "properties": { + "usage": { + "anyOf": [ + { + "$ref": "#/$defs/Usage" + }, + { + "type": "null" + } + ], + "default": null, + "description": "This section includes information about how the data can be used and how it is currently being used.", + "title": "Usage" + }, + "access": { + "allOf": [ + { + "$ref": "#/$defs/Access" + } + ], + "description": "Accessibility information allows researchers to understand access, usage, limitations, formats, standards and linkage or interoperability with toolsets.", + "title": "Accessibility" + }, + "formatAndStandards": { + "anyOf": [ + { + "$ref": "#/$defs/FormatAndStandards" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Section includes technical attributes for language vocabularies, sizes etc. and gives researchers facts about and processing the underlying data in the dataset.", + "title": "Format and Standards" + } + }, + "required": [ + "access" + ], + "title": "Accessibility", + "type": "object" + }, + "Age": { + "properties": { + "bin": { + "allOf": [ + { + "$ref": "#/$defs/AgeEnum" + } + ], + "examples": [ + "30-34 years" + ], + "title": "Age grouping" + }, + "count": { + "examples": [ + 1000 + ], + "title": "Age count", + "type": "integer" + } + }, + "required": [ + "bin", + "count" + ], + "title": "Age", + "type": "object" + }, + "AgeEnum": { + "enum": [ + "0-6 days", + "7-27 days", + "1-11 months", + "1-4 years", + "5-9 years", + "10-14 years", + "15-19 years", + "20-24 years", + "25-29 years", + "30-34 years", + "35-39 years", + "40-44 years", + "45-49 years", + "50-54 years", + "55-59 years", + "60-64 years", + "65-69 years", + "70-74 years", + "75-79 years", + "80-84 years", + "85-89 years", + "90-94 years", + "95-99 years", + "100+ years" + ], + "title": "AgeEnum", + "type": "string" + }, + "Assay": { + "enum": [ + "NMR spectroscopy", + "Mass-spectrometry", + "Whole genome sequencing", + "Exome sequencing", + "Genotyping by array", + "Transcriptome profiling by high-throughput sequencing", + "Transcriptome profiling by array", + "Amplicon sequencing", + "Methylation binding domain sequencing", + "Methylation profiling by high-throughput sequencing", + "Genomic variant calling", + "Chromatin accessibility profiling by high-throughput sequencing", + "Histone modification profiling by high-throughput sequencing", + "Chromatin immunoprecipitation sequencing", + "Whole genome shotgun sequencing", + "Whole transcriptome sequencing", + "Targeted mutation analysis" + ], + "title": "Assay", + "type": "string" + }, + "CommaSeparatedValues": { + "anyOf": [ + { + "pattern": "([^,]+)", + "type": "string" + }, + { + "type": "null" + } + ], + "title": "CommaSeparatedValues" + }, + "ControlledVocabularyEnum": { + "enum": [ + "LOCAL", + "OPCS4", + "READ", + "SNOMED CT", + "SNOMED RT", + "DM PLUS D", + "DM+D", + "NHS NATIONAL CODES", + "NHS SCOTLAND NATIONAL CODES", + "NHS WALES NATIONAL CODES", + "ODS", + "LOINC", + "ICD10", + "ICD10CM", + "ICD10PCS", + "ICD9CM", + "ICD9", + "ICDO3", + "AMT", + "APC", + "ATC", + "CIEL", + "HPO", + "CPT4", + "DPD", + "DRG", + "HEMONC", + "JMDC", + "KCD7", + "MULTUM", + "NAACCR", + "NDC", + "NDFRT", + "OXMIS", + "RXNORM", + "RXNORM EXTENSION", + "SPL", + "OTHER" + ], + "title": "ControlledVocabularyEnum", + "type": "string" + }, + "Coverage": { + "additionalProperties": false, + "properties": { + "spatial": { + "anyOf": [ + { + "$ref": "#/$defs/CommaSeparatedValues" + }, + { + "items": { + "$ref": "#/$defs/Url" + }, + "type": "array" + } + ], + "description": "The geographical area covered by the dataset. It is recommended that links are to entries in one of the recommended standards:- For locations in the UK: ONS standards- For locations in other countries: ISO 3166-1 & ISO 3166-2", + "examples": [ + "United Kingdom", + "https://www.geonames.org/2635167/united-kingdom-of-great-britain-and-northern-ireland.html" + ], + "guidance": "The geographical area covered by the dataset.- Please provide a valid location.- For locations in the UK, this location should conform to ONS standards.- For locations in other countries we use ISO 3166-1 & ISO 3166-2.", + "title": "Geographic coverage" + }, + "typicalAgeRangeMin": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please indicate the minimum age in years of participants in the dataset as a whole number (integer).", + "examples": [ + 18 + ], + "guidance": "Please indicate the minimum of the age range in whole years of participants in the dataset.- What if my dataset has participants of all \u201cAll Ages\u201d or \u201cAny Ages\u201d?: In that case, please enter 0.", + "title": "Minimum age range" + }, + "typicalAgeRangeMax": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please indicate the maximum age in years of participants in the dataset as a whole number (integer).", + "examples": [ + 90 + ], + "guidance": "Please indicate the maximum of the age range in whole years of participants in the dataset.- What if my dataset has participants of all \u201cAll Ages\u201d or \u201cAny Ages\u201d?: In that case, please enter 150.", + "title": "Maximum age range" + }, + "datasetCompleteness": { + "anyOf": [ + { + "$ref": "#/$defs/Url" + }, + { + "type": "null" + } + ], + "default": null, + "description": "The URL where a Researcher can learn more about the completeness of the dataset.", + "examples": [ + "https://bhfdatasciencecentre.org/dashboard/" + ], + "guidance": "If your organisation has a publicly available site which contains information on the completeness of a dataset, add that URL here.Example: https://bhfdatasciencecentre.org/dashboard/", + "title": "Dataset coverage/completeness/quality" + }, + "materialType": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/MaterialTypeCategoriesV2" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "The type of biospecimen saved from a biological entity.", + "guidance": "Indicate the specimen type, can be several values from the list below:- Availability of physical samples associated with the dataset.- If samples are available, please indicate the types of samples that are available.- More than one type may be provided.- If samples are not yet available, please provide \u201cAvailability to be confirmed\u201d.- If samples are not available, then please provide \u201cNot available\u201d.- Not available: Samples associated with the dataset are not available.- Bone marrow: Bone marrow samples associated with the data are available.- Cancer cell lines: Cancer cell line samples associated with the data are available.- CDNA/MRNA: CDNA/MRNA samples associated with the data are available.- Core biopsy: Core biopsy samples associated with the data are available.- DNA: DNA samples associated with the data are available.- Entire body organ: Entire body organ associated with the data are available.- Faeces: Faeces samples associated with the data are available.- Immortalized cell lines: Immortalized cell line samples associated with the data are available.- Isolated pathogen: Isolated pathogen associated with the data are available.- MicroRNA: MicroRNA samples associated with the data are available.- Peripheral blood cells: Peripheral blood cell samples associated with the data are available.- Plasma: Plasma samples associated with the data are available.- PM Tissue: PM Tissue samples associated with the data are available.- Primary cells: Primary cell samples associated with the data are available.- RNA: RNA samples associated with the data are available.- Saliva: Saliva samples associated with the data are available.- Serum: Serum samples associated with the data are available.- Swabs: Swab samples associated with the data are available.- Tissue: Tissue samples associated with the data are available.- Urine: Urine samples associated with the data are available.- Whole blood: Whole blood samples associated with the data are available.- Availability to be confirmed: Availability of samples is currently being confirmed.- Other: Other types of sample available.", + "title": "Biological sample availability" + }, + "followUp": { + "anyOf": [ + { + "$ref": "#/$defs/FollowupV2" + }, + { + "type": "null" + } + ], + "default": "Unknown", + "description": "If known, what is the typical time span that a patient appears in the dataset (follow up period). In a prospective cohort study, after baseline information is collected, participants are followed \u201clongitudinally\u201d i.e. new information is collected about them for a period of time afterward. This is known as the \u201cfollow up period\u201d. What is the typical time span of follow up, e.g. 1 year, 5 years? If there are multiple cohorts in the dataset with varying follow up periods, please provide the longest follow up period.", + "guidance": "If known, please indicate the typical time span that a patient appears in the dataset (follow up period).-0 - 6 MONTHS: Data typically available for a patient over a 0-6 month period.-6 - 12 MONTHS: Data typically available for a patient over a 6-12 month period.-1 - 10 YEARS: Data typically available for a patient over a 1-10 year period.-> 10 YEARS: Data typically available for a patient for over a 10 year period.-CONTINUOUS: Data for patients is being regularly added to and updated.-UNKNOWN: Timespan is Unknown.-OTHER: Data available for a patient over another time period.", + "title": "Follow-up" + }, + "pathway": { + "anyOf": [ + { + "$ref": "#/$defs/Description" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please indicate if the dataset is representative of the patient pathway and any limitations the dataset may have with respect to pathway coverage. This could include if the dataset is from a single speciality or area, a single tier of care, linked across two tiers (e.g. primary and secondary care), or an integrated care record covering the whole patient pathway.", + "guidance": "Please indicate if the dataset is representative of the patient pathway and any limitations the dataset may have with respect to pathway coverage.- This could include if the dataset is from a single speciality or area, a single tier of care, linked across two tiers (e.g. primary and secondary care), or an integrated care record covering the whole patient pathway.", + "title": "Patient pathway description" + } + }, + "required": [ + "spatial" + ], + "title": "Coverage", + "type": "object" + }, + "DataColumn": { + "properties": { + "name": { + "allOf": [ + { + "$ref": "#/$defs/Name" + } + ], + "description": "The name of a column in a table.", + "title": "Column name" + }, + "dataType": { + "description": "The data type of values in the column.", + "title": "Data type", + "type": "string" + }, + "description": { + "anyOf": [ + { + "maxLength": 20000, + "minLength": 1, + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "A description of a column in a table.", + "title": "Column description" + }, + "sensitive": { + "description": "A True or False value, indicating if the field is sensitive or not.", + "title": "Sensitive", + "type": "boolean" + }, + "values": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/DataValue" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Values in a dataset.", + "title": "Values" + } + }, + "required": [ + "name", + "dataType", + "sensitive" + ], + "title": "DataColumn", + "type": "object" + }, + "DataTable": { + "additionalProperties": false, + "properties": { + "name": { + "anyOf": [ + { + "maxLength": 500, + "minLength": 1, + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "The name of a table in a dataset.", + "title": "Table name" + }, + "description": { + "anyOf": [ + { + "maxLength": 20000, + "minLength": 1, + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "A description of a table in a dataset.", + "title": "Table description" + }, + "columns": { + "description": "A list of columns contained within a table in a dataset.", + "items": { + "$ref": "#/$defs/DataColumn" + }, + "title": "Data columns", + "type": "array" + } + }, + "required": [ + "columns" + ], + "title": "DataTable", + "type": "object" + }, + "DataUseLimitationV2": { + "enum": [ + "General research use", + "Commercial research use", + "Genetic studies only", + "No general methods research", + "No restriction", + "Geographical restrictions", + "Institution-specific restrictions", + "Not for profit use", + "Project-specific restrictions", + "Research-specific restrictions", + "User-specific restrictions", + "Research use only", + "No linkage" + ], + "title": "DataUseLimitationV2", + "type": "string" + }, + "DataUseRequirementsV2": { + "enum": [ + "Collaboration required", + "Project-specific restrictions", + "Ethics approval required", + "Institution-specific restrictions", + "Geographical restrictions", + "Publication moratorium", + "Publication required", + "Return to database or resource", + "Time limit on use", + "Disclosure control", + "Not for profit use", + "User-specific restriction" + ], + "title": "DataUseRequirementsV2", + "type": "string" + }, + "DataValue": { + "properties": { + "name": { + "allOf": [ + { + "$ref": "#/$defs/Name" + } + ], + "description": "Unique value in a column.", + "title": "Value name" + }, + "description": { + "anyOf": [ + { + "maxLength": 20000, + "minLength": 1, + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "A description of a unique value in a column.", + "title": "Value description" + }, + "frequency": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null, + "description": "The frequency of occurrance of a value in a column.", + "title": "Value frequency" + } + }, + "required": [ + "name" + ], + "title": "DataValue", + "type": "object" + }, + "DatasetDescriptor": { + "properties": { + "pid": { + "anyOf": [ + { + "$ref": "#/$defs/OneHundredFiftyCharacters" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Persistent identifier of a dataset" + }, + "title": { + "anyOf": [ + { + "$ref": "#/$defs/OneHundredFiftyCharacters" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Title of a dataset" + }, + "url": { + "anyOf": [ + { + "$ref": "#/$defs/Url" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Url of a dataset" + } + }, + "title": "DatasetDescriptor", + "type": "object" + }, + "DatasetSubType": { + "enum": [ + "Mental health", + "Cardiovascular", + "Cancer", + "Rare diseases", + "Metabolic and endocrine", + "Neurological", + "Reproductive", + "Maternity and neonatology", + "Respiratory", + "Immunity", + "Musculoskeletal", + "Vision", + "Renal and urogenital", + "Oral and gastrointestinal", + "Cognitive function", + "Hearing", + "Others", + "Vaccines", + "Preventive", + "Therapeutic", + "Laboratory", + "Other diagnostics", + "CT", + "MRI", + "PET", + "X-ray", + "Ultrasound", + "Pathology", + "Head", + "Chest", + "Arm", + "Abdomen", + "Leg", + "Proteomics", + "Transcriptomics", + "Epigenomics", + "Metabolomics", + "Metagenomics", + "Genomics", + "Lipidomics", + "Education", + "Crime and justice", + "Ethnicity", + "Housing", + "Labour", + "Ageing", + "Economics", + "Marital status", + "Social support", + "Deprivation", + "Religion", + "Occupation", + "Finances", + "Family circumstance", + "Smoking", + "Physical activity", + "Dietary habits", + "Alcohol", + "Disease registry (research)", + "National disease registries and audits", + "Births and deaths", + "Not applicable" + ], + "title": "DatasetSubType", + "type": "string" + }, + "DatasetTypeV2": { + "enum": [ + "Health and disease", + "Treatments/Interventions", + "Measurements/Tests", + "Imaging types", + "Imaging area of the body", + "Omics", + "Socioeconomic", + "Lifestyle", + "Registry", + "Environment and energy", + "Information and communication", + "Politics" + ], + "title": "DatasetTypeV2", + "type": "string" + }, + "DeliveryLeadTimeV2": { + "enum": [ + "Less than 1 week", + "1-2 weeks", + "2-4 weeks", + "1-2 months", + "2-6 months", + "More than 6 months", + "Variable", + "Not applicable", + "Other" + ], + "title": "DeliveryLeadTimeV2", + "type": "string" + }, + "DemographicFrequency": { + "additionalProperties": false, + "properties": { + "age": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/Age" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Array of bins, based off the UK Office for National Statistics (ONS) groupings, and their corresponding counts as represented within the dataset.", + "title": "Age" + }, + "ethnicity": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/Ethnicity" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Array of bins, based off the UK Office for National Statistics (ONS) census groupings, and their corresponding counts as represented within the dataset.", + "guidance": "Enter the count of population represented in the dataset within the ethnicity bins provided. Clearly indicate where ethnicity is not stated or not known. Ensure you apply low number suppression and rounding where appropriate.", + "title": "Ethnicity" + }, + "disease": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/Disease" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Array of health conditions or diseases (based around ICD-10, SNOMED CT and MeSH disease vocabularies) and their corresponding counts as represented within the dataset.", + "guidance": "Create bins based on standard vocabulary (ICD-10, SNOMED CT or MeSH) and disease code. Then enter the count of population represented in the dataset within the disease bins created. Ensure you apply low number suppression and rounding where appropriate.", + "title": "Disease" + } + }, + "title": "DemographicFrequency", + "type": "object" + }, + "Description": { + "anyOf": [ + { + "maxLength": 10000, + "minLength": 2, + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Description" + }, + "Disease": { + "properties": { + "diseaseCode": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "integer" + } + ], + "examples": [ + "J45" + ], + "title": "Disease code" + }, + "diseaseCodeVocabulary": { + "allOf": [ + { + "$ref": "#/$defs/DiseaseCodeEnum" + } + ], + "examples": [ + "ICD10" + ], + "title": "Disease code vocabulary" + }, + "count": { + "examples": [ + 1000 + ], + "title": "Disease count", + "type": "integer" + } + }, + "required": [ + "diseaseCode", + "diseaseCodeVocabulary", + "count" + ], + "title": "Disease", + "type": "object" + }, + "DiseaseCodeEnum": { + "enum": [ + "ICD10", + "SNOMED CT", + "MeSH" + ], + "title": "DiseaseCodeEnum", + "type": "string" + }, + "Documentation": { + "additionalProperties": false, + "properties": { + "description": { + "allOf": [ + { + "$ref": "#/$defs/Description" + } + ], + "description": "A free-text description of the dataset.A URL can also be provided as the description of the dataset.Gateway Feature: Keywords and text may be extracted out of the description and indexed for search.", + "examples": [ + "CPRD Aurum contains primary care data contributed by General Practitioner (GP) practices using EMIS Web\u00ae including patient registration information and all care events that GPs have chosen to record as part of their usual medical practice." + ], + "guidance": "An HTML account of the data that provides context and scope of the data, limited to 10000 characters, and/or a resolvable URL that describes the dataset.- Additional information can be recorded and included using the Associated media field." + }, + "associatedMedia": { + "anyOf": [ + { + "$ref": "#/$defs/CommaSeparatedValues" + }, + { + "items": { + "anyOf": [ + { + "$ref": "#/$defs/Url" + }, + { + "type": "null" + } + ] + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please provide any media associated with the Gateway Organisation using a valid URL for the content. This is an opportunity to provide additional context that could be useful for researchers wanting to understand more about the dataset and its relevance to their research question. The following formats will be accepted .jpg, .png or .svg, .pdf, .xslx or .docx. Note: media asset can be hosted by the organisation or uploaded using the onboarding portal.", + "examples": [ + "PDF document that describes study protocol - https://link.to/document.pdf" + ], + "guidance": "Please provide any media associated with the Gateway Organisation using a valid URL for the content.- This is an opportunity to provide additional context that could be useful for researchers wanting to understand more about the dataset and its relevance to their research question.- Note: media assets should be hosted by the organisation.Example: This could be a link to a PDF Document that describes methodology or further detail about the datasets, or a graph or chart that provides further context about the dataset.- If you are providing multiple links for associated media, we recommend that you separate these with a comma.", + "title": "Associated media" + }, + "inPipeline": { + "anyOf": [ + { + "$ref": "#/$defs/Pipeline" + }, + { + "type": "null" + } + ], + "default": "Not available", + "description": "Indicate whether this dataset is currently available for Researchers to request access.", + "guidance": "If a dataset is being prepared for sharing but not yet ready and available for researchers to apply for access, select 'Not available'. If Researchers can currently apply for access to the dataset, select 'Available'.", + "title": "Dataset pipeline status" + } + }, + "required": [ + "description" + ], + "title": "Documentation", + "type": "object" + }, + "Doi": { + "anyOf": [ + { + "pattern": "^10.\\d{4,9}/[-._;()/:a-zA-Z0-9]+$", + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Doi" + }, + "EmailAddress": { + "anyOf": [ + { + "format": "email", + "type": "string" + }, + { + "type": "null" + } + ], + "title": "EmailAddress" + }, + "EndDateEnum": { + "enum": [ + "CONTINUOUS", + null + ], + "title": "EndDateEnum" + }, + "EnrichmentAndLinkage": { + "additionalProperties": false, + "properties": { + "derivedFrom": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/DatasetDescriptor" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "If applicable, please provide DOIs or links to datasets from which data in this dataset has been derived or calculated from.", + "title": "Derived from" + }, + "isPartOf": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/DatasetDescriptor" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "This relationship indicates that the dataset is a component or subset of a broader collection of related datasets. For example, clinical trial data for a specific drug may be part of a larger database of pharmaceutical research data. Complete only if the dataset is part of a group or family of datasets i.e. Hospital Episode Statistics has several constituents. If your dataset is not part of a group, please enter \u201cNOT APPLICABLE\u201d Example: Hospital Episodes Statistics datasets (A&E, APC, OP, AC MSDS).", + "examples": [ + "Hospital Episodes Statistics datasets (A&E, APC, OP, AC MSDS)" + ], + "title": "Is part of" + }, + "linkableDatasets": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/DatasetDescriptor" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "If applicable, please provide the DOI of other datasets that have previously been linked to this dataset and their availability. If no DOI is available, please provide the title of the datasets that can be linked.", + "title": "Linked datasets" + }, + "similarToDatasets": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/DatasetDescriptor" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Datasets that are similar to each other in some way, collect similar patients, regional equivalent etc.", + "title": "Similar to datasets" + }, + "investigations": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/Url" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please provide link to any active projects that are using the dataset.", + "guidance": "Please provide the website address(es) which document information related to active projects utilising the dataset.- Please split your existing list of citations into separate fields.- To add multiple entries, type in each website and press enter to add it to the list.- Example: https://dataloch.org/insights/projects-delivered/data-driven-innovation-multi-morbidity-report-partner-gps", + "title": "Investigations" + }, + "tools": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/Url" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please provide the URL of any analysis tools or models that have been created for this dataset and are available for further use. Multiple tools may be provided. Note: We encourage users to adopt a model along the lines of https://www.ga4gh.org/news/tool-registry-service-api-enabling-an-interoperable-library-of-genomics-analysis-tools/", + "guidance": "Please provide the URL of any analysis tools or models that have been created for this dataset and are available for further use.- Multiple tools may be provided.- Note: We encourage users to adopt a model along the lines of https://www.ga4gh.org/news/tool-registry-service-api-enabling-an-interoperable-library-of-genomics-analysis-tools/", + "title": "Tools" + }, + "publicationAboutDataset": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/Doi" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "DOIs for publications which describe the dataset.", + "examples": [ + "10.1093/ije/dyab028" + ], + "guidance": "Please provide the DOIs for publications which describe the dataset.- Please split your existing list of citations into separate fields.- To add multiple entries, type in each citation and press enter to add it to the list.- Example: <10.1093/ije/dyab028>", + "title": "Publication about the dataset" + }, + "publicationUsingDataset": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/Doi" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "DOIs for publications which use the dataset for analysis.", + "examples": [ + "10.1001/jamapediatrics.2016.3633" + ], + "guidance": "Please provide the DOIs for publications which have used the dataset in their analysis.- Please split your existing list of citations into separate fields.- To add multiple entries, type in each citation and press enter to add it to the list.- Example: <10.1001/jamapediatrics.2016.3633>", + "title": "Publication using the dataset" + } + }, + "title": "EnrichmentAndLinkage", + "type": "object" + }, + "Ethnicity": { + "properties": { + "bin": { + "allOf": [ + { + "$ref": "#/$defs/EthnicityEnum" + } + ], + "examples": [ + "Black or Black British - Any other Black background" + ], + "title": "Ethnicity grouping" + }, + "count": { + "examples": [ + 1000 + ], + "title": "Ethnicity count", + "type": "integer" + } + }, + "required": [ + "bin", + "count" + ], + "title": "Ethnicity", + "type": "object" + }, + "EthnicityEnum": { + "enum": [ + "White - British", + "White - Irish", + "White - Any other White background", + "Mixed - White and Black Caribbean", + "Mixed - White and Black African", + "Mixed - White and Asian", + "Mixed - Any other mixed background", + "Asian or Asian British - Indian", + "Asian or Asian British - Pakistani", + "Asian or Asian British - Bangladeshi", + "Asian or Asian British - Any other Asian background", + "Black or Black British - Caribbean", + "Black or Black British - African", + "Black or Black British - Any other Black background", + "Other Ethnic Groups - Chinese", + "Other Ethnic Groups - Any other ethnic group", + "Not stated", + "Not known" + ], + "title": "EthnicityEnum", + "type": "string" + }, + "FollowupV2": { + "enum": [ + "0 - 6 Months", + "6 - 12 Months", + "1 - 10 Years", + "> 10 Years", + "Unknown", + "Continuous", + "Other", + null + ], + "title": "FollowupV2" + }, + "Format": { + "minLength": 1, + "title": "Format", + "type": "string" + }, + "FormatAndStandards": { + "additionalProperties": false, + "properties": { + "vocabularyEncodingScheme": { + "description": "List any relevant terminologies / ontologies / controlled vocabularies, such as ICD 10 Codes, NHS Data Dictionary National Codes or SNOMED CT International, that are being used by the dataset. If the controlled vocabularies are local standards, please make that explicit. If you are using a standard that has not been included in the list, please use \u201cother\u201d and contact support desk to ask for an addition. Notes: More than one vocabulary may be provided.", + "examples": [ + "LOCAL", + "ICD10" + ], + "guidance": "List any relevant terminologies / ontologies / controlled vocabularies, such as ICD 10 Codes, NHS Data Dictionary National Codes or SNOMED CT International, that are being used by the dataset.- If the controlled vocabularies are local standards, please make that explicit. If you are using a standard that has not been included in the list, please use \u201cother\u201d and contact support desk to ask for an addition.- Notes: More than one vocabulary may be provided.- Local: Local Coding Standard.- OPCS4- READ- SNOMED CT- SNOMED RT- DM+D- NHS National Codes- ODS- LOINC- ICD10- ICD10CM- ICD10PCS- ICD9CM- ICD9- ICDO3- AMT- APC- ATC- CIEL- HPO- CPT4- DPD- DRG- HEMONC- JMDC- KCD7- MULTUM- NAACCR- NDC- NDFRT- OXMIS- RXNORM- RXNORM EXTENSION- SPL- Other: Please indicate if there is another standard that you are using. This will trigger a support ticket where you can request the addition of the terminology to the HOP.- NHS Scotland National Codes- NHS Wales National Codes", + "items": { + "$ref": "#/$defs/ControlledVocabularyEnum" + }, + "title": "Controlled vocabulary", + "type": "array" + }, + "conformsTo": { + "description": "List standardised data models that the dataset has been stored in or transformed to, such as OMOP or FHIR. If the data is only available in a local format, please make that explicit. If you are using a standard that has not been included in the list, please use \u201cother\u201d and contact support desk to ask for an addition.", + "examples": [ + "LOCAL", + "NHS DATA DICTIONARY" + ], + "guidance": "List standardised data models that the dataset has been stored in or transformed to, such as OMOP or FHIR.- If the data is only available in a local format, please make that explicit. If you are using a standard that has not been included in the list, please use \u201cother\u201d and contact support desk to ask for an addition.- British National Formulary (BNF) codes- HL7 FHIR- HL7 V2- HL7 CDA- HL7 CCOW- LOINC- DICOM- I2B2- IHE- OMOP- openEHR- Sentinel- PCORnet- CDISC- Local: In-house developed data model.- Other: Other standardised data model.- NHS Data Dictionary- NHS Scotland Data Dictionary- NHS Wales Data Dictionary", + "items": { + "$ref": "#/$defs/StandardisedDataModelsEnumV1_1" + }, + "title": "Alignment with standardised data models", + "type": "array" + }, + "language": { + "description": "This should list all the languages in which the dataset metadata and underlying data is made available complaint with ISO 639.", + "examples": [ + "en" + ], + "guidance": "https://www.iso.org/iso-639-language-code- aa: Afar- ab: Abkhazian- af: Afrikaans- ak: Akan- sq: Albanian- am: Amharic- ar: Arabic- an: Aragonese- hy: Armenian- as: Assamese- av: Avaric- ae: Avestan- ay: Aymara- az: Azerbaijani- ba: Bashkir- bm: Bambara- eu: Basque- be: Belarusian- bn: Bengali- bh: Bihari languages- bi: Bislama- bo: Tibetan- bs: Bosnian- br: Breton- bg: Bulgarian- my: Burmese- ca: Catalan; Valencian- cs: Czech- ch: Chamorro- ce: Chechen- zh: Chinese- cu: Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic- cv: Chuvash- kw: Cornish- co: Corsican- cr: Cree- cy: Welsh- cs: Czech- da: Danish- de: German- dv: Divehi; Dhivehi; Maldivian- nl: Dutch; Flemish- dz: Dzongkha- el: Greek, Modern (1453-)- en: English- eo: Esperanto- et: Estonian- eu: Basque- ee: Ewe- fo: Faroese- fa: Persian- fj: Fijian- fi: Finnish- fr: French- fy: Western Frisian- ff: Fulah- ka: Georgian- de: German- gd: Gaelic; Scottish Gaelic- ga: Irish- gl: Galician- gv: Manx- el: Greek, Modern (1453-)- gn: Guarani- gu: Gujarati- ht: Haitian; Haitian Creole- ha: Hausa- ho: Hiri Motu- hr: Croatian- hu: Hungarian- hy: Armenian- ig: Igbo- is: Icelandic- io: Ido- ii: Sichuan Yi; Nuosu- iu: Inuktitut- ie: Interlingue; Occidental- ia: Interlingua (International Auxiliary Language Association)- id: Indonesian- ik: Inupiaq- is: Icelandic- it: Italian- jv: Javanese- ja: Japanese- kl: Kalaallisut; Greenlandic- kn: Kannada- ks: Kashmiri- ka: Georgian- kr: Kanuri- kk: Kazakh- km: Central Khmer- ki: Kikuyu; Gikuyu- rw: Kinyarwanda- ky: Kirghiz; Kyrgyz- kv: Komi- kg: Kongo- ko: Korean- kj: Kuanyama; Kwanyama- ku: Kurdish- lo: Lao- la: Latin- lv: Latvian- li: Limburgan; Limburger; limburgish- ln: Lingala- lt: Lithuanian- lb: Luxembourgish; Letzeburgesch- lu: Luba-Katanga- lg: Ganda- mk: Macedonian- mh: Marshallese- ml: Malayalam- mi: Maori- mr: Marathi- ms: Malay- mk: Macedonian- mg: Malagasy- mt: Maltese- mn: Mongolian- mi: Maori- ms: Malay- my: Burmese- na: Nauru- nv: Navajo; Navaho- nr: Ndebele, South; South Ndebele- nd: Ndebele, North; North Ndebele- ng: Ndonga- ne: Nepali- nl: Dutch; Flemish- nn: Norwegian Nynorsk; Nynorsk, Norwegian- nb: Bokm\u00e5l, Norwegian; Norwegian Bokm\u00e5l- no: Norwegian- ny: Chichewa; Chewa; Nyanja- oc: Occitan (post 1500)- oj: Ojibwa- or: Oriya- om: Oromo- os: Ossetian; Ossetic- pa: Panjabi; Punjabi- fa: Persian- pi: Pali- pl: Polish- pt: Portuguese- ps: Pushto; Pashto- qu: Quechua- rm: Romansh- ro: Romanian; Moldavian; Moldovan- rn: Rundi- ru: Russian- sg: Sango- sa: Sanskrit- si: Sinhala; Sinhalese- sk: Slovak- sl: Slovenian- se: Northern Sami- sm: Samoan- sn: Shona- sd: Sindhi- so: Somali- st: Sotho, Southern- es: Spanish; Castilian- sq: Albanian- sc: Sardinian- sr: Serbian- ss: Swati- su: Sundanese- sw: Swahili- sv: Swedish- ty: Tahitian- ta: Tamil- tt: Tatar- te: Telugu- tg: Tajik- tl: Tagalog- th: Thai- bo: Tibetan- ti: Tigrinya- to: Tonga (Tonga Islands)- tn: Tswana- ts: Tsonga- tk: Turkmen- tr: Turkish- tw: Twi- ug: Uighur; Uyghur- uk: Ukrainian- ur: Urdu- uz: Uzbek- ve: Venda- vi: Vietnamese- vo: Volap\u00fck- cy: Welsh- wa: Walloon- wo: Wolof- xh: Xhosa- yi: Yiddish- yo: Yoruba- za: Zhuang; Chuang- zh: Chinese- zu: Zulu", + "items": { + "$ref": "#/$defs/LanguageEnum" + }, + "title": "Language", + "type": "array" + }, + "format": { + "description": "If multiple formats are available please specify. See application, audio, image, message, model, multipart, text, video, https://www.iana.org/assignments/media-types/media-types.xhtml Note: If your file format is not included in the current list of formats, please indicate other. If you are using the HOP you will be directed to a service desk page where you can request your additional format. If not please go to: https://metadata.atlassian.net/servicedesk/customer/portal/4 to request your format.", + "examples": [ + "text/tab-separated-values", + "application/sql", + "text/csv", + "image/diacom-rle" + ], + "guidance": "If multiple formats are available, please specify. See application, audio, image, message, model, multipart, text, video, https://www.iana.org/assignments/media-types/media-types.xhtml.- Please enter one format type at a time and click Add New Field to add further keywords.- Note: If your file format is not included in the current list of formats, please indicate other.- Example: text/tab-separated-values, application/sql, text/csv, image/diacom-rle", + "items": { + "$ref": "#/$defs/Format" + }, + "title": "Format", + "type": "array" + } + }, + "required": [ + "vocabularyEncodingScheme", + "conformsTo", + "language", + "format" + ], + "title": "FormatAndStandards", + "type": "object" + }, + "Isocountrycode": { + "pattern": "^[A-Z]{2}(-[A-Z]{2,3})?$", + "title": "Isocountrycode", + "type": "string" + }, + "LanguageEnum": { + "enum": [ + "aa", + "ab", + "ae", + "af", + "ak", + "am", + "an", + "ar", + "as", + "av", + "ay", + "az", + "ba", + "be", + "bg", + "bh", + "bi", + "bm", + "bn", + "bo", + "br", + "bs", + "ca", + "ce", + "ch", + "co", + "cr", + "cs", + "cu", + "cv", + "cy", + "da", + "de", + "dv", + "dz", + "ee", + "el", + "en", + "eo", + "es", + "et", + "eu", + "fa", + "ff", + "fi", + "fj", + "fo", + "fr", + "fy", + "ga", + "gd", + "gl", + "gn", + "gu", + "gv", + "ha", + "he", + "hi", + "ho", + "hr", + "ht", + "hu", + "hy", + "hz", + "ia", + "id", + "ie", + "ig", + "ii", + "ik", + "io", + "is", + "it", + "iu", + "ja", + "jv", + "ka", + "kg", + "ki", + "kj", + "kk", + "kl", + "km", + "kn", + "ko", + "kr", + "ks", + "ku", + "kv", + "kw", + "ky", + "la", + "lb", + "lg", + "li", + "ln", + "lo", + "lt", + "lu", + "lv", + "mg", + "mh", + "mi", + "mk", + "ml", + "mn", + "mr", + "ms", + "mt", + "my", + "na", + "nb", + "nd", + "ne", + "ng", + "nl", + "nn", + "no", + "nr", + "nv", + "ny", + "oc", + "oj", + "om", + "or", + "os", + "pa", + "pi", + "pl", + "ps", + "pt", + "qu", + "rm", + "rn", + "ro", + "ru", + "rw", + "sa", + "sc", + "sd", + "se", + "sg", + "si", + "sk", + "sl", + "sm", + "sn", + "so", + "sq", + "sr", + "ss", + "st", + "su", + "sv", + "sw", + "ta", + "te", + "tg", + "th", + "ti", + "tk", + "tl", + "tn", + "to", + "tr", + "ts", + "tt", + "tw", + "ty", + "ug", + "uk", + "ur", + "uz", + "ve", + "vi", + "vo", + "wa", + "wo", + "xh", + "yi", + "yo", + "za", + "zh", + "zu" + ], + "title": "LanguageEnum", + "type": "string" + }, + "LongDescription": { + "anyOf": [ + { + "maxLength": 50000, + "minLength": 2, + "type": "string" + }, + { + "type": "null" + } + ], + "title": "LongDescription" + }, + "MaterialTypeCategoriesV2": { + "enum": [ + "None/not available", + "Bone marrow", + "Cancer cell lines", + "CDNA/MRNA", + "Core biopsy", + "DNA", + "Entire body organ", + "Faeces", + "Immortalized cell lines", + "Isolated pathogen", + "MicroRNA", + "Peripheral blood cells", + "Plasma", + "PM Tissue", + "Primary cells", + "RNA", + "Saliva", + "Serum", + "Swabs", + "Tissue", + "Urine", + "Whole blood", + "Availability to be confirmed", + "Other" + ], + "title": "MaterialTypeCategoriesV2", + "type": "string" + }, + "MeasuredProperty": { + "title": "MeasuredProperty" + }, + "MemberOfV2": { + "enum": [ + "Hub", + "Alliance", + "Other", + "NCS" + ], + "title": "MemberOfV2", + "type": "string" + }, + "Name": { + "title": "Name" + }, + "Observation": { + "additionalProperties": false, + "properties": { + "observedNode": { + "allOf": [ + { + "$ref": "#/$defs/StatisticalPopulationConstrainedV2" + } + ], + "description": "Please select one of the following broad notes for your measured observation. Indicating whether the measured property is a recording of unique persons, events, findings or scans per modality.", + "examples": [ + "Persons" + ], + "guidance": "Persons: Unique persons recorded in the dataset- Events: Unique events such as procedures and prescriptions within the dataset-Findings: Unique findings included in the dataset such as diagnoses'-Number of scans per modality: Unique scans for a specified imaging method modality (e.g. 12 x-rays)", + "title": "Dataset volume measure" + }, + "measuredValue": { + "description": "An integer value size of the measured property, such as \u20181000\u2019 for 1000 people in the study or \u201887\u2019 for 87 MRI scans in the dataset.", + "examples": [ + 1000 + ], + "guidance": "An integer value size of the measured property, such as \u20181000\u2019 for 1000 people in the study or \u201887\u2019 for 87 MRI scans in the dataset.", + "title": "Measured value", + "type": "integer" + }, + "disambiguatingDescription": { + "anyOf": [ + { + "$ref": "#/$defs/AbstractText" + }, + { + "type": "null" + } + ], + "default": null, + "description": "If required, please provide additional details that help distinguish between similar measured properties within your dataset, for example this is useful when SNOMED CT terms do not provide sufficient detail to distinguish between parts of the dataset population. Limited to 500 characters.", + "guidance": "If required please provide additional details that help distinguish between similar measured properties within your dataset, for example this is useful when SNOMED CT terms do not provide sufficient detail to distinguish between parts of the dataset population.", + "title": "Disambiguating description" + }, + "observationDate": { + "anyOf": [ + { + "format": "date", + "type": "string" + }, + { + "format": "date-time", + "type": "string" + } + ], + "description": "Provide the date, or datetime that the observation was made. Multiple observations of the same property can be provided, for example an observation of cumulative COVID positive cases by specimen on the 1/1/2021 with a measuredValue of 2000000, and a second observation entry on 8/2/2021 recording a measuredValue of as 3100000.", + "examples": [ + "2024-10-24" + ], + "guidance": "Provide the date, or datetime that the observation was made. Multiple observations of the same property can be provided, for example an observation of cumulative COVID positive cases by specimen on the 1/1/2021 with a measuredValue of 2000000, and a second observation entry on 8/2/2021 recording a measuredValue of as 3100000.", + "title": "Observation date" + }, + "measuredProperty": { + "allOf": [ + { + "$ref": "#/$defs/MeasuredProperty" + } + ], + "description": "Descriptive term for the observation property measured. For example, people, procedures, x-rays, or diagnosis of type 1 diabetes. This could also be a specific SNOMED CT term.", + "examples": [ + "Count" + ], + "guidance": "Descriptive term for the observation property measured.", + "title": "Measured property" + } + }, + "required": [ + "observedNode", + "measuredValue", + "observationDate", + "measuredProperty" + ], + "title": "Observation", + "type": "object" + }, + "Omics": { + "additionalProperties": false, + "properties": { + "assay": { + "anyOf": [ + { + "$ref": "#/$defs/Assay" + }, + { + "type": "null" + } + ], + "default": null, + "description": "The specific 'omics assay that generated the dataset.", + "guidance": "The specific 'omics assay that generated the dataset. If the assay used to generate your dataset is not listed, please contract the gateway team by submitting an enquiry.", + "title": "Omics assay" + }, + "platform": { + "anyOf": [ + { + "$ref": "#/$defs/Platform" + }, + { + "type": "null" + } + ], + "default": null, + "description": "The specific technology or infrastructure used to perform the assay. If the omics platform used to create your dataset is not listed, please select other, a member of the gateway team will contact you to add an appropriate term(s) both to your record and to the metadata schema on your behalf.", + "guidance": "The specific technology or infrastructure used to perform the assay. If the omics platform used to create your dataset is not listed, please select other, a member of the gateway team will contact you to add an appropriate term(s) both to your record and to the metadata schema on your behalf.", + "title": "Omics Platform" + } + }, + "title": "Omics", + "type": "object" + }, + "OneHundredFiftyCharacters": { + "maxLength": 150, + "minLength": 2, + "title": "OneHundredFiftyCharacters", + "type": "string" + }, + "Organisation": { + "additionalProperties": false, + "properties": { + "identifier": { + "anyOf": [ + { + "maxLength": 50, + "minLength": 2, + "type": "string" + }, + { + "type": "integer" + } + ], + "description": "Please provide a Research Organization Registry (ROR) identifier (see https://ror.org/) for your organisation.", + "examples": [ + "30f16703-28bc-4f45-9ce5-625d2d3db27d" + ], + "guidance": "Example: https://ror.org/053fq8t95If your organisation does not have a ROR identifier please use the \u201csuggest and institute\u201d function here: https://docs.google.com/forms/d/e/1FAIpQLSdJYaMTCwS7muuTa-B_CnAtCSkKzt19lkirAKG4u7umH9Nosg/viewform", + "title": "identifier" + }, + "name": { + "allOf": [ + { + "$ref": "#/$defs/OneHundredFiftyCharacters" + } + ], + "description": "The organisation responsible for running or supporting the data access request process, as well as publishing and maintaining the metadata.", + "examples": [ + "Health Data Research UK" + ], + "guidance": "In most this will be the same as the Team you have on the Gateway. However, in some cases this will be different. For example, Tissue Directory are a Team on the Gateway but coordinate activities across a number of Data Custodians such as Cambridge Blood and Stem Cell Biobank.", + "title": "Name of Data Custodian" + }, + "logo": { + "anyOf": [ + { + "$ref": "#/$defs/Url" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please provide a logo associated with the Gateway Organisation using a valid URL. The following formats will be accepted .jpg, .png or .svg. If a logo is not submitted this will default to the logo for the team submitting the metadata.", + "title": "Organisation Logo" + }, + "description": { + "anyOf": [ + { + "$ref": "#/$defs/Description" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please provide a URL that describes the organisation. If a description is not provided this will default to the description of the team submitting the metadata.", + "title": "Organisation Description" + }, + "contactPoint": { + "anyOf": [ + { + "$ref": "#/$defs/EmailAddress" + }, + { + "items": { + "$ref": "#/$defs/EmailAddress" + }, + "type": "array" + } + ], + "description": "Organisation contact point(s) which will be used for receiving queries from HDR, and enquiries and data access requests from Researchers. If a contact point is not provided this will default to the contact point for the team submitting the metadata.", + "examples": [ + "test@test.co.uk" + ], + "title": "contact point" + }, + "memberOf": { + "anyOf": [ + { + "$ref": "#/$defs/MemberOfV2" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please indicate if the organisation is an Alliance Member or a Hub. If this field is not submitted this will default to the membership for the team submitting the metadata.", + "title": "Organisation Membership" + } + }, + "required": [ + "identifier", + "name", + "contactPoint" + ], + "title": "Organisation", + "type": "object" + }, + "Origin": { + "additionalProperties": false, + "properties": { + "purpose": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/PurposeV2" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please indicate the purpose(s) that the dataset was collected.", + "guidance": "Research cohort: Data collected for a defined group of people.- Study: Data collected for a specific research study.- Disease registry: Data collected as part of a disease registry.- Trial: Data collected for as part of a clinical trial.- Care: Data collected as part of routine clinical care.- Audit: Data collected as part of an audit programme.- Administrative: Data collected for administrative and management information purposes.- Financial: Data collected either for payments or for billing.- Statutory: Data collected in compliance with statutory requirements.- Other: Data collected for other purpose.", + "title": "Purpose of dataset collection" + }, + "datasetType": { + "description": "The topic areas to which the dataset content relates.", + "examples": [ + "Health and disease" + ], + "guidance": "Types include those listed below. Datasets can have more than one type associated.- Health and disease: Includes any data related to mental health, cardiovascular, cancer, rare diseases, metabolic and endocrine, neurological, reproductive, maternity and neonatology, respiratory, immunity, musculoskeletal, vision, renal and urogenital, oral and gastrointestinal, cognitive function or hearing.- Treatments/Interventions: Includes any data related to treatment or interventions related to vaccines or which are preventative or therapeutic in nature.- Measurements/Tests: Includes any data related to laboratory or other diagnostics.- Imaging types: Includes any data related to CT, MRI, PET, x-ray, ultrasound or pathology imaging.- Imaging area of the body: Indicates whether the dataset relates to head, chest, arm abdomen or leg imaging.- Omics: Includes any data related to proteomics, transcriptomics, epigenomics, metabolomics, multiomics, metagenomics or genomics.- Socioeconomic: Includes any data related to education, crime and justice, ethnicity, housing, labour, ageing, economics, marital status, social support, deprivation, religion, occupation, finances or family circumstances.- Lifestyle: Includes any data related to smoking, physical activity, dietary habits or alcohol.- Registry: Includes any data related to disease registries for research, national disease registries, audits, or birth and deaths records.- Environment and energy: Includes any data related to the monitoring or study of environmental or energy factors or events.- Information and communication: Includes any data related to the study or application of information and communication.- Politics: Includes any data related to political views, activities, voting, etc.", + "items": { + "$ref": "#/$defs/DatasetTypeV2" + }, + "title": "Dataset type", + "type": "array" + }, + "datasetSubType": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/DatasetSubType" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "The sub-type of the dataset content. Multiomics is selected on behalf of the submitter if more that one omics datasetSubType ('proteomics', 'transcriptomics', 'epigenomics', 'metabolomics', 'metagenomics', 'genomics', 'lipidomics') is selected", + "guidance": "Sub-types include those listed below under each data type. Datasets can have more than one sub-type associated.- Health and disease: Includes any data related to mental health, cardiovascular, cancer, rare diseases, metabolic and endocrine, neurological, reproductive, maternity and neonatology, respiratory, immunity, musculoskeletal, vision, renal and urogenital, oral and gastrointestinal, cognitive function or hearing.- Treatments/Interventions: Includes any data related to treatment or interventions related to vaccines or which are preventative or therapeutic in nature.- Measurements/Tests- Includes any data related to laboratory or other diagnostics.- Imaging types: Includes any data related to CT, MRI, PET, x-ray, ultrasound or pathology imaging.- Imaging area of the body: Indicates whether the dataset relates to head, chest, arm abdomen or leg imaging.- Omics: Includes any data related to proteomics, transcriptomics, epigenomics, metabolomics, multiomics, metagenomics or genomics. Multiomics is selected on behalf of the submitter if more that one omics datasetSubType is selected.- Socioeconomic: Includes any data related to education, crime and justice, ethnicity, housing, labour, ageing, economics, marital status, social support, deprivation, religion, occupation, finances or family circumstances.- Lifestyle: Includes any data related to smoking, physical activity, dietary habits or alcohol.- Registry: Includes any data related to disease registries for research, national disease registries, audits, or birth and deaths records.- Environment and energy: Includes any data related to the monitoring or study of environmental or energy factors or events.- Information and communication: Includes any data related to the study or application of information and communication.- Politics: Includes any data related to political views, activities, voting, etc.", + "title": "Dataset sub-type" + }, + "source": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/SourceV2" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please indicate the source of the data extraction.", + "guidance": "EPR: Data Extracted from Electronic Patient Record.- Electronic survey: Data has been extracted from electronic surveys.- LIMS: Data has been extracted from a laboratory information management system.- Paper-based: Data has been extracted from paper forms.- Free text NLP: Data has been extracted from unstructured freetext using natural language processing.- Machine generated: Data has been machine generated i.e. imaging.- Other: Data has been extracted by other means.", + "title": "Source of data extraction" + }, + "collectionSource": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/SettingV2" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please indicate the setting(s) where data was collected. Multiple settings may be provided.", + "guidance": "Cohort, study, trial: Cohort, study or trial data collection as part of protocol.- Clinic: Specific clinic such as antenatal clinic.- Primary care - Referrals: General medical practitioner referral to another service.- Primary care - Clinic: General medical practitioner practice.- Primary care - Out of hours: General medical practitioner care or advice outside of standard hours.- Secondary care - Accident and emergency: Accident emergency department.- Secondary care - Outpatients: Outpatient care.- Secondary care - In-patients: In-patient care.- Secondary care - Ambulance: Care provided in association with ambulance service.- Secondary care - ICU: Intensive care units, also referred to as critical care units (CCUs) or intensive therapy units (ITUs).- Prescribing - Community pharmacy: Pharmacy based in the community.- Prescribing - Community pharmacy: Pharmacy based in a hospital setting.- Patient report outcome: Reported by patient.- Wearables: Data collection devices worn on the body.- Local authority: Local authority or entity associated with a local authority.- National government: National government or entity associated with the national government.- Community: Community settings.- Services: Services such as drug misuse or blood transfusion.- Home: Home setting.- Private: Private medical clinic.- Social care - Health care at home: service provided in the home or residence of a person.- Social care - Other social data: service provided in a setting outside of the person's home or residence.- Census: collected as part of census.- Other: Other setting.", + "title": "Collection source setting" + }, + "imageContrast": { + "anyOf": [ + { + "$ref": "#/$defs/Ternary" + }, + { + "type": "null" + } + ], + "default": "Not stated", + "description": "Indicate whether usage of imaging contrast is captured within the dataset.", + "guidance": "If any contrast media or contrast agents were used in creating the images within the dataset and the contrast is known, mark 'Yes'. If this information is not known or not captured, indicate 'Not stated'. If there was no contrast used in the images, mark 'No'.", + "title": "Image contrast" + } + }, + "required": [ + "datasetType" + ], + "title": "Origin", + "type": "object" + }, + "PeriodicityV2": { + "enum": [ + "Static", + "Irregular", + "Continuous", + "Biennial", + "Annual", + "Biannual", + "Quarterly", + "Bimonthly", + "Monthly", + "Biweekly", + "Weekly", + "Twice a week", + "Daily", + "Other", + null + ], + "title": "PeriodicityV2" + }, + "Pipeline": { + "enum": [ + "Available", + "Not available" + ], + "title": "Pipeline", + "type": "string" + }, + "Platform": { + "enum": [ + "Other", + "NMR Nightingale", + "Metabolon", + "Biocrates", + "Illumina", + "Oxford Nanopore", + "454", + "Hi-C", + "HiFi" + ], + "title": "Platform", + "type": "string" + }, + "Provenance": { + "additionalProperties": false, + "properties": { + "origin": { + "anyOf": [ + { + "$ref": "#/$defs/Origin" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Coverage by origin (geographical and situations).", + "title": "Origin Coverage" + }, + "temporal": { + "allOf": [ + { + "$ref": "#/$defs/Temporal" + } + ], + "description": "Dates and other temporal coverage information.", + "title": "Temporal Coverage" + } + }, + "required": [ + "temporal" + ], + "title": "Provenance", + "type": "object" + }, + "PurposeV2": { + "enum": [ + "Research cohort", + "Study", + "Disease registry", + "Trial", + "Care", + "Audit", + "Administrative", + "Financial", + "Statutory", + "Other", + null + ], + "title": "PurposeV2" + }, + "Revision": { + "additionalProperties": false, + "properties": { + "version": { + "allOf": [ + { + "$ref": "#/$defs/Semver" + } + ], + "description": "Version number used for previous version of this dataset", + "examples": [ + "6.0.0" + ], + "title": "revision version" + }, + "url": { + "anyOf": [ + { + "$ref": "#/$defs/UrlV2" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Some url with a reference to the record of a previous version of this dataset", + "examples": [ + "https://api.service.nhs.uk/health-research-data-catalogue/datasetrevisions/841f7da2-b018-41f6-b4ae-2e0aadab6561" + ], + "title": "revision url" + } + }, + "required": [ + "version" + ], + "title": "Revision", + "type": "object" + }, + "Semver": { + "pattern": "^([0-9]+)\\.([0-9]+)\\.([0-9]+)$", + "title": "Semver", + "type": "string" + }, + "SettingV2": { + "enum": [ + "Cohort, study, trial", + "Clinic", + "Primary care - Referrals", + "Primary care - Clinic", + "Primary care - Out of hours", + "Secondary care - Accident and Emergency", + "Secondary care - Outpatients", + "Secondary care - In-patients", + "Secondary care - Ambulance", + "Secondary care - ICU", + "Prescribing - Community pharmacy", + "Prescribing - Hospital", + "Patient report outcome", + "Wearables", + "Local authority", + "National government", + "Community", + "Services", + "Home", + "Private", + "Social care - Health care at home", + "Social care - Other social data", + "Census", + "Other", + null + ], + "title": "SettingV2" + }, + "ShortDescription": { + "anyOf": [ + { + "maxLength": 1000, + "minLength": 2, + "type": "string" + }, + { + "type": "null" + } + ], + "title": "ShortDescription" + }, + "SourceV2": { + "enum": [ + "EPR", + "Electronic survey", + "LIMS", + "Paper-based", + "Free text NLP", + "Machine generated", + "Other" + ], + "title": "SourceV2", + "type": "string" + }, + "StandardisedDataModelsEnumV1_1": { + "enum": [ + "BNF", + "HL7 FHIR", + "HL7 V2", + "HL7 CDA", + "HL7 CCOW", + "LOINC", + "DICOM", + "I2B2", + "IHE", + "OMOP", + "OPENEHR", + "SENTINEL", + "PCORNET", + "CDISC", + "LOCAL", + "OTHER", + "NHS DATA DICTIONARY", + "NHS SCOTLAND DATA DICTIONARY", + "NHS WALES DATA DICTIONARY" + ], + "title": "StandardisedDataModelsEnumV1_1", + "type": "string" + }, + "StatisticalPopulationConstrainedV2": { + "enum": [ + "Persons", + "Events", + "Findings", + "Number of scans per modality" + ], + "title": "StatisticalPopulationConstrainedV2", + "type": "string" + }, + "StructuralMetadata": { + "additionalProperties": false, + "properties": { + "tables": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/DataTable" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Tables in the dataset", + "title": "Tables" + }, + "syntheticDataWebLink": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/Url" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please provide the website address(es) with information on your synthetic dataset creation, or the location where a synthetic version of the dataset can be accessed.- Please split your existing list of citations into separate fields.- To add multiple entries, select from the drop-down list, or add to the drop-down. Click the 'x' symbol to remove any entries.- Example: https://www.pioneerdatahub.co.uk/dataset/synthetic-dataset-patients-at-risk-of-sudden-death-hypertrophic-cardiomyopathy/", + "title": "Synthetic data web links" + } + }, + "title": "StructuralMetadata", + "type": "object" + }, + "Summary": { + "additionalProperties": false, + "properties": { + "title": { + "allOf": [ + { + "$ref": "#/$defs/OneHundredFiftyCharacters" + } + ], + "description": "Title of the dataset limited to 150 characters. It should provide a short description of the dataset and be unique across the gateway. If your title is not unique, please add a prefix with your organisation name or identifier to differentiate it from other datasets within the Gateway. Good titles should summarise the content of the dataset and if relevant, the region the dataset covers.", + "examples": [ + "North West London COVID-19 Patient Level Situation Report", + "Scottish Morbidity Record (SMR)" + ], + "guidance": "The title should provide a short description of the dataset and be unique across the gateway.- If your title is not unique, please add a prefix with your organisation name or identifier to differentiate it from other datasets within the Gateway.- If an accronym is widely used the dataset name, please add it in brackets () at the end of the title.- Good titles should summarise the content of the dataset and if relevant, the region the dataset covers.- Example: North West London COVID-19 Patient Level Situation Report", + "title": "Title" + }, + "abstract": { + "allOf": [ + { + "$ref": "#/$defs/AbstractText" + } + ], + "description": "Provide a clear and brief descriptive signpost for researchers who are searching for data that may be relevant to their research. The abstract should allow the reader to determine the scope of the data collection and accurately summarise its content. The optimal length is one paragraph (limited to 255 characters) and effective abstracts should avoid long sentences and abbreviations where possible.", + "examples": [ + "CPRD Aurum contains primary care data contributed by General Practitioner (GP) practices using EMIS Web\u00ae including patient registration information and all care events that GPs have chosen to record as part of their usual medical practice." + ], + "guidance": "The abstract should provide a clear and brief descriptive signpost for researchers who are searching for data that may be relevant to their research.- The abstract should allow the reader to determine the scope of the data collection and accurately summarise its content.- Effective abstracts should avoid long sentences and abbreviations where possible.- Note: Researchers will view Titles and the first line of Abstracts (list view) when searching for datasets and choosing whether to explore their content further.- Abstracts should be different from the full description for a dataset.- Example: CPRD Aurum contains primary care data contributed by General Practitioner (GP) practices using EMIS Web\u00ae including patient registration information and all care events that GPs have chosen to record as part of their usual medical practice.", + "title": "Dataset abstract" + }, + "dataCustodian": { + "allOf": [ + { + "$ref": "#/$defs/Organisation" + } + ], + "description": "This is the organisation responsible for running or supporting the data access request process, as well as enquiries about a dataset. In most this will be the same as the HDR UK Organisation (Hub or Alliance Member). However, in some cases this will be different i.e. Tissue Directory are an HDR UK Gateway organisation but coordinate activities across a number of data publishers i.e. Cambridge Blood and Stem Cell Biobank.", + "title": "Dataset Custodian" + }, + "populationSize": { + "description": "Input the number of people captured within the dataset.", + "examples": [ + 1000 + ], + "guidance": "This number informs a filter for Researchers to differentiate dataset search results based on the number of people in the dataset, and does not pull from the Observations fields. The filter also allows for Researchers to search datasets which have no population size reported, but will not pull any population size captured in the Observations section.", + "title": "Dataset population size", + "type": "integer" + }, + "keywords": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/OneHundredFiftyCharacters" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please provide a list of relevant and specific keywords that can improve the search engine optimisation (SEO) of your dataset as a comma separated list. Notes: Onboarding portal will suggest keywords based on title, abstract and description. We are compiling a standardised list of keywords and synonyms across datasets to make filtering easier for users.", + "examples": [ + "Outpatient Care", + "Socioeconomic Deprivation", + "Infant Morbidity", + "Learning disability", + "Primary Care Prescription", + "Accident and Emergency Admissions" + ], + "guidance": "Please provide relevant and specific keywords that can improve the search engine optimization of your dataset.- Please enter one keyword at a time and click Add New Field to add further keywords.- Text from the title is automatically included in the search, there is no need to include this in the keywords.- Include words that researcher may include in their searches.", + "title": "Keywords" + }, + "doiName": { + "anyOf": [ + { + "$ref": "#/$defs/Doi" + }, + { + "type": "null" + } + ], + "default": null, + "description": "DOI associated to this dataset. Find out more about DOIs here: https://www.doi.org/the-identifier/what-is-a-doi/", + "examples": [ + "10.1093/ije/dyx196" + ], + "guidance": "Please note: This is not the DOI of the publication(s) associated with the dataset.- All HDR UK registered datasets should either have a (DOI) or be working towards obtaining one.- If a DOI is available, please provide the DOI.- What happens if I do not have a DOI?: Contact your academic organisation to find out if there is an existing relationship with a DOI provider. If that is not available, sites such as figshare offer free services to mint a DOI for your dataset. Subsequent versions of the Metadata Exchange will provide a DOI minting service.", + "title": "Digital Object Identifier (DOI) for dataset" + }, + "contactPoint": { + "allOf": [ + { + "$ref": "#/$defs/EmailAddress" + } + ], + "description": "Please provide a valid email address that can be used to coordinate data access requests.", + "examples": [ + "gateway@hdruk.ac.uk" + ], + "guidance": "Organisations are expected to provide a dedicated email address associated with the data access request process. If no contact point is provided in this field, this field will be defaulted to the teams support email provided in the teams setting.Note: An employee's email address can only be provided on a temporary basis and if one is provided, you must obtain explicit consent for this purpose.", + "title": "Contact point" + }, + "alternateIdentifiers": { + "anyOf": [ + { + "$ref": "#/$defs/CommaSeparatedValues" + }, + { + "items": { + "anyOf": [ + { + "$ref": "#/$defs/ShortDescription" + }, + { + "type": "null" + } + ] + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Alternate dataset identifiers or local identifiers.", + "guidance": "Alternate dataset identifiers or local identifiers.", + "title": "Alternate dataset identifiers" + } + }, + "required": [ + "title", + "abstract", + "dataCustodian", + "populationSize", + "contactPoint" + ], + "title": "Summary", + "type": "object" + }, + "Temporal": { + "additionalProperties": false, + "properties": { + "publishingFrequency": { + "allOf": [ + { + "$ref": "#/$defs/PeriodicityV2" + } + ], + "description": "Please indicate the frequency of distribution release. If a dataset is distributed regularly please choose a distribution release periodicity from the constrained list and indicate the next release date. When the release date becomes historical, a new release date will be calculated based on the publishing periodicity. If a dataset has been published and will remain static please indicate that it is static and indicated when it was released. If a dataset is released on an irregular basis or \u201con-demand\u201d please indicate that it is Irregular and leave release date as null. If a dataset can be published in real-time or near-real-time please indicate that it is continuous and leave release date as null. Notes: see https://www.dublincore.org/specifications/dublin-core/collection-description/frequency/", + "examples": [ + "Continuous" + ], + "guidance": "Please indicate the frequency of publishing.- If a dataset is published regularly please choose a publishing periodicity from the constrained list and indicate the next release date.- When the release date becomes historical, a new release date will be calculated based on the publishing periodicity.- If a dataset has been published and will remain static please indicate that it is static and indicate when it was released.- If a dataset is released on an irregular basis or \u201con-demand\u201d please indicate that it is Irregular and leave release date as null.- If a dataset can be published in real-time or near-real-time please indicate that it is continuous and leave release date as null.- Notes: see https://www.dublincore.org/specifications/dublin-core/collection-description/frequency/. Options:- Static: Dataset published once.- Irregular: Dataset published at uneven intervals.- Continuous: Dataset published without interruption.- Biennial: Dataset published every two years.- Annual: Dataset published occurs once a year.- Biannual: Dataset published twice a year.- Quarterly: Dataset published every three months.- Bimonthly: Dataset published every two months.- Monthly: Dataset published once a month.- Biweekly: Dataset published every two weeks.- Weekly: Dataset published once a week.- Twice weekly: Dataset published twice a week.- Daily: Dataset published once a day.- Other: Dataset published using other interval.", + "title": "Publishing frequency" + }, + "distributionReleaseDate": { + "anyOf": [ + { + "format": "date", + "type": "string" + }, + { + "format": "date-time", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Date of the latest release of the dataset. If this is a regular release i.e. quarterly, or this is a static dataset please complete this alongside Periodicity. If this is Irregular or Continuously released please leave this blank. Notes: Periodicity and release date will be used to determine when the next release is expected. E.g. if the release date is documented as 01/01/2020 and it is now 20/04/2020 and there is a quarterly release schedule, the latest release will be calculated as 01/04/2020.", + "examples": [ + "2024-10-24T00:00:00.000Z" + ], + "guidance": "Please indicate the frequency the dataset is published.- If a dataset is published regularly please choose a publishing periodicity from the constrained list and indicate the next release date.- When the release date becomes historical, a new release date will be calculated based on the publishing periodicity.- If a dataset has been published and will remain static please indicate that it is static and indicate when it was released.- If a dataset is released on an irregular basis or \u201con-demand\u201d please indicate that it is Irregular and leave release date as null.- If a dataset can be published in real-time or near-real-time please indicate that it is continuous and leave release date as null.- Notes: see https://www.dublincore.org/specifications/dublin-core/collection-description/frequency/", + "title": "Distribution release date" + }, + "startDate": { + "anyOf": [ + { + "format": "date", + "type": "string" + }, + { + "format": "date-time", + "type": "string" + } + ], + "description": "The start of the time period that the dataset provides coverage for. If there are multiple cohorts in the dataset with varying start dates, please provide the earliest date and use the description or the media attribute to provide more information.", + "examples": [ + "2024-10-24T00:00:00.000Z" + ], + "guidance": "The start of the time period that the dataset provides coverage for.- If there are multiple cohorts in the dataset with varying start dates, please provide the earliest date and use the description or the media attribute to provide more information.", + "title": "Start date" + }, + "endDate": { + "anyOf": [ + { + "format": "date", + "type": "string" + }, + { + "format": "date-time", + "type": "string" + }, + { + "$ref": "#/$defs/EndDateEnum" + }, + { + "type": "null" + } + ], + "default": null, + "description": "The end of the time period that the dataset provides coverage for. If the dataset is \u201cContinuous\u201d and has no known end date, please state continuous. If there are multiple cohorts in the dataset with varying end dates, please provide the latest date and use the description or the media attribute to provide more information.", + "examples": [ + "2024-10-24T00:00:00.000Z" + ], + "guidance": "The end of the time period that the dataset provides coverage for.- If the dataset is \u201cContinuous\u201d and has no known end date, please leave blank.- If there are multiple cohorts in the dataset with varying end dates, please provide the latest date.", + "title": "End date" + }, + "timeLag": { + "allOf": [ + { + "$ref": "#/$defs/TimeLagV2" + } + ], + "description": "Please indicate the typical time-lag between an event and the data for that event appearing in the dataset.", + "examples": [ + "Not applicable" + ], + "guidance": "Please indicate the typical time-lag between an event and the data for that event appearing in the dataset.- Less than 1 week: Typical time lag of less than a week.- 1-2 weeks: Typical time-lag of one to two weeks.- 2-4 weeks: Typical time-lag of two to four weeks.- 1-2 months: Typical time-lag of one to two months.- 2-6 months: Typical time-lag of two to six months.- 6 months plus: Typical time-lag of more than six months.- Variable: Variable time-lag.- Not applicable: Not Applicable i.e. static dataset.- Other: Other time-lag.", + "title": "Time lag" + } + }, + "required": [ + "publishingFrequency", + "startDate", + "timeLag" + ], + "title": "Temporal", + "type": "object" + }, + "Ternary": { + "enum": [ + "Yes", + "No", + "Not stated" + ], + "title": "Ternary", + "type": "string" + }, + "TimeLagV2": { + "enum": [ + "Less than 1 week", + "1-2 weeks", + "2-4 weeks", + "1-2 months", + "2-6 months", + "More than 6 months", + "Variable", + "Not applicable", + "Other" + ], + "title": "TimeLagV2", + "type": "string" + }, + "Url": { + "anyOf": [ + { + "format": "uri", + "minLength": 1, + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Url" + }, + "UrlV2": { + "anyOf": [ + { + "pattern": "^\\s*((https?:\\/\\/)*([a-zA-Z0-9-]+\\.?)+[a-zA-Z]{2,}(:\\d+)?(\\/[^\\s]*)?(\\n)?)+$", + "type": "string" + }, + { + "type": "null" + } + ], + "title": "UrlV2" + }, + "Usage": { + "additionalProperties": false, + "properties": { + "dataUseLimitation": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/DataUseLimitationV2" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please provide an indication of consent permissions for datasets and/or materials, and relates to the purposes for which datasets and/or material might be removed, stored or used. NOTE: we have extended the Data Use Ontology to include a value for NO LINKAGE.", + "guidance": "Please provide an indication of consent permissions for datasets and/or materials, and relates to the purposes for which datasets and/or material might be removed, stored or used.- General research use: This data use limitation indicates that use is allowed for general research use for any research purpose.- Genetic studies only: This data use limitation indicates that use is limited to genetic studies only (i.e., no phenotype-only research).- No general methods research: This data use limitation indicates that use includes methods development research(e.g., development of software or algorithms) only within the bounds of other use limitations.- No restriction: This data use limitation indicates there is no restriction on use.- Research-specific restrictions: This data use limitation indicates that use is limited to studies of a certain research type.- Research use only: This data use limitation indicates that use is limited to research purposes (e.g., does not include its use in clinical care).- No linkage: This data use limitation indicates there is a restriction on linking to any other datasets", + "title": "Data use limitation" + }, + "dataUseRequirements": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/DataUseRequirementsV2" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please indicate fit here are any additional conditions set for use if any, multiple requirements may be provided. Please ensure that these restrictions are documented in access rights information.", + "guidance": "Please indicate if there are any additional conditions set for use if any, multiple requirements may be provided.- Please ensure that these restrictions are documented in access rights information.- Collaboration required: This requirement indicates that the requestor must either agree to join a research consortium or collaborate with the primary study investigator(s).- Ethics approval required: This requirement indicates that the requestor must provide documentation of local institutional review board (IRB)/ ethics review board (ERB) approval.- Geographical restrictions: This requirement indicates that use is limited to within a specific geographic region.- Institution-specific restrictions: This requirement indicates that use is limited to use within an approved institution.- Not for profit use: This requirement indicates that use of the data is limited to not-for-profit organizations and not-for-profit use, non-commercial use.- Project-specific restrictions: This requirement indicates that use is limited to use within an approved project.- Publication moratorium: This requirement indicates that requestor agrees not to publish results of studies until a specific date.- Publication required: This requirement indicates that requestor agrees to make results of studies using the data available to the larger scientific community.- Return to database or resource: This requirement indicates that the requestor must return derived/enriched data to the database/resource.- Time limit on use: This requirement indicates that use is approved for a specific number of months.- User-specific restriction: This requirement indicates that use is limited to use by approved users.", + "title": "Data use requirements" + }, + "resourceCreator": { + "anyOf": [ + { + "$ref": "#/$defs/ShortDescription" + }, + { + "items": { + "anyOf": [ + { + "$ref": "#/$defs/ShortDescription" + }, + { + "type": "null" + } + ] + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please provide the text that you would like included as part of any citation that credits this dataset. This is typically just the name of the publisher. No employee details should be provided.", + "examples": [ + "National Services Scotland" + ], + "guidance": "Please provide the text that you would like included as part of any citation that credits this dataset.- This is typically just the name of the publisher. No employee details should be provided.- To add multiple entries, please click on '+' symbol to enter each separate website.- Example: National Services Scotland", + "title": "Citation requirements" + } + }, + "title": "Usage", + "type": "object" + }, + "Uuidv4": { + "maxLength": 36, + "minLength": 36, + "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", + "title": "Uuidv4", + "type": "string" + } + }, + "additionalProperties": false, + "properties": { + "identifier": { + "anyOf": [ + { + "$ref": "#/$defs/Uuidv4" + }, + { + "$ref": "#/$defs/Url" + }, + { + "type": "null" + } + ], + "description": "System dataset identifier.", + "examples": [ + "226fb3f1-4471-400a-8c39-2b66d46a39b6", + "https://web.www.healthdatagateway.org/dataset/226fb3f1-4471-400a-8c39-2b66d46a39b6" + ], + "guidance": "N/A", + "title": "Dataset identifier" + }, + "version": { + "allOf": [ + { + "$ref": "#/$defs/Semver" + } + ], + "description": "Dataset metadata version.", + "examples": [ + "1.1.0" + ], + "guidance": "Dataset metadata version should follow standard SEMVER naming conventions (https://semver.org). For example: 1.1.0 major.minor.patch.Major: Significant/breaking changes.Minor: New features and bug fixes.Patch: Minor fixes without new features.", + "title": "Dataset Version" + }, + "revisions": { + "description": "A list of persistent identifiers and version numbers for previous versions of metadata for this dataset", + "items": { + "$ref": "#/$defs/Revision" + }, + "title": "Metadata Version Revisions", + "type": "array" + }, + "issued": { + "description": "Datetime stamp of when this metadata version was initially issued", + "examples": [ + "2024-10-24T00:00:00.000Z" + ], + "format": "date-time", + "title": "Metadata Issued Datetime", + "type": "string" + }, + "modified": { + "description": "Datetime stamp of when this metadata was last modified", + "examples": [ + "2024-10-24T00:00:00.000Z" + ], + "format": "date-time", + "title": "Last Modified Datetime", + "type": "string" + }, + "summary": { + "allOf": [ + { + "$ref": "#/$defs/Summary" + } + ], + "description": "Summary of metadata describing key pieces of information." + }, + "documentation": { + "anyOf": [ + { + "$ref": "#/$defs/Documentation" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Documentation can include a rich text description of the dataset or links to media such as documents, images, presentations, videos or links to data dictionaries, profiles or dashboards. Organisations are required to confirm that they have permission to distribute any additional media.", + "title": "Documentation" + }, + "coverage": { + "anyOf": [ + { + "$ref": "#/$defs/Coverage" + }, + { + "type": "null" + } + ], + "default": null, + "description": "This information includes attributes for geographical and temporal coverage, cohort details etc. to enable a deeper understanding of the dataset content so that researchers can make decisions about the relevance of the underlying data.", + "title": "Coverage" + }, + "provenance": { + "anyOf": [ + { + "$ref": "#/$defs/Provenance" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Provenance information allows researchers to understand data within the context of its origins and can be an indicator of quality, authenticity and timeliness.", + "title": "Provenance" + }, + "accessibility": { + "allOf": [ + { + "$ref": "#/$defs/Accessibility" + } + ], + "description": "Accessibility information allows researchers to understand access, usage, limitations, formats, standards and linkage or interoperability with toolsets." + }, + "enrichmentAndLinkage": { + "anyOf": [ + { + "$ref": "#/$defs/EnrichmentAndLinkage" + }, + { + "type": "null" + } + ], + "default": null, + "description": "This section includes information about related datasets that may have previously been linked, as well as indicating if there is the opportunity to link to other datasets in the future. If a dataset has been enriched and/or derivations, scores and existing tools are available this section allows providers to indicate this to researchers.", + "title": "Enrichment and Linkage" + }, + "observations": { + "description": "This section provides an overview of observations of your dataset linked to specific points in time. Multiple observations about the dataset are encouraged to be provided, including multiple observations of the same property at different timepoints. At least one observation is required.", + "items": { + "$ref": "#/$defs/Observation" + }, + "title": "Observations", + "type": "array" + }, + "structuralMetadata": { + "anyOf": [ + { + "$ref": "#/$defs/StructuralMetadata" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Descriptions of all tables and data elements that can be included in the dataset.", + "title": "Structural metadata" + }, + "demographicFrequency": { + "anyOf": [ + { + "$ref": "#/$defs/DemographicFrequency" + }, + { + "type": "null" + } + ], + "default": null, + "description": "The statistical characteristics of a population or group within the dataset.", + "title": "Demographic frequency" + }, + "omics": { + "anyOf": [ + { + "$ref": "#/$defs/Omics" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Omics", + "title": "Omics" + } + }, + "required": [ + "identifier", + "version", + "revisions", + "issued", + "modified", + "summary", + "accessibility", + "observations" + ], + "title": "Hdruk300", + "type": "object" +} \ No newline at end of file diff --git a/.github/actions/gateway-publish/src/gateway_publish/schemas/HDRUK/4.1.0/schema.json b/.github/actions/gateway-publish/src/gateway_publish/schemas/HDRUK/4.1.0/schema.json new file mode 100644 index 0000000..e74cf67 --- /dev/null +++ b/.github/actions/gateway-publish/src/gateway_publish/schemas/HDRUK/4.1.0/schema.json @@ -0,0 +1,3333 @@ +{ + "$defs": { + "AbstractText": { + "anyOf": [ + { + "maxLength": 500, + "minLength": 5, + "type": "string" + }, + { + "type": "null" + } + ], + "title": "AbstractText" + }, + "Access": { + "additionalProperties": false, + "properties": { + "accessRights": { + "allOf": [ + { + "$ref": "#/$defs/LongDescription" + } + ], + "description": "Please provide details for the data access rights.", + "examples": [ + "In Progress" + ], + "guidance": "- The URL of a webpage where the data access request process and/or guidance is provided. If there is more than one access process i.e. industry vs academic please provide both separated by a comma.\\n- If such a resource or the underlying process doesn\u2019t exist, please provide \u201cIn Progress\u201d, until both the process and the documentation are ready.", + "title": "Access rights" + }, + "accessServiceCategory": { + "anyOf": [ + { + "$ref": "#/$defs/AccessService" + }, + { + "type": "null" + } + ], + "default": null, + "description": "The method a Researcher will use to access the dataset, if approved.", + "examples": [ + "TRE/SDE" + ], + "guidance": "Select the category which best matches how a Researcher will access the dataset, if approved for access. If the access method changes based on the data required for the project (e.g. the dataset can be shared via secure email if the extract is fully anonymised, but must be accessed via a TRE/SDE if the extract is only pseudonymised) then select 'varies based on project'.", + "title": "Access method category" + }, + "accessService": { + "anyOf": [ + { + "$ref": "#/$defs/LongDescription" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please provide a brief description of the data access services that are available including: environment that is currently available to researchers; additional consultancy and services; any indication of costs associated. If no environment is currently available, please indicate the current plans and timelines when and how data will be made available to researchers Note: This value will be used as default access environment for all datasets submitted by the organisation. However, there will be the opportunity to overwrite this value for each dataset.", + "examples": [ + "https://re-docs.genomicsengland.co.uk/tutorials/", + "https://publichealthscotland.scot/services/data-research-and-innovation-services/electronic-data-research-and-innovation-service-edris/national-safe-haven-nsh/" + ], + "guidance": "Please provide a brief description of the data access services that are available including:\\n- environment that is currently available to researchers\\n- additional consultancy and services\\n- any indication of costs associated\\n\\n If no environment is currently available, please indicate the current plans and timelines when and how data will be made available to researchers.\\n **Note**: This value will be used as default access environment for all datasets submitted by the organisation. However, there will be the opportunity to overwrite this value for each dataset.", + "title": "Access service description" + }, + "accessRequestCost": { + "anyOf": [ + { + "$ref": "#/$defs/LongDescription" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please provide link(s) to a webpage or description detailing the service or cost model for processing data access requests.", + "guidance": "This information should cover the costs and/or services available to different audiences (i.e. academic, commercial, non-UK, etc.). This can be in the form of text or a URL.", + "title": "Access request cost" + }, + "deliveryLeadTime": { + "anyOf": [ + { + "$ref": "#/$defs/DeliveryLeadTimeV2" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please provide an indication of the typical processing times based on the types of requests typically received.", + "guidance": "- **Less than 1 week**: Access request process typically processed in less than a week.\\n- **1-2 weeks**: Access request process typically processed in one to two weeks.\\n- **2-4 weeks**: Access request process typically processed in two to four weeks.\\n- **1-2 months**: Access request process typically processed in one to two months.\\n- **2-6 months**: Access request process typically processed in two to six months.\\n- **More than 6 months**: Access request process typically processed in more than six months.\\n- **Variable**: Access request lead time is variable.\\n- **Not applicable**: Access request process duration is not applicable.\\n- **Other**: If the typical timeframe does not fit into the broad ranges i.e. lightweight application vs linked data application, please choose \u201cOther\u201d and indicate the typical timeframe within the description for the dataset.", + "title": "Time to dataset access" + }, + "jurisdiction": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/Isocountrycode" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please use country code from ISO 3166-1 country codes and the associated ISO 3166-2 for regions, cities, states etc. for the country/state under whose laws the data subjects' data is collected, processed and stored.", + "guidance": "A full list of country codes can be found here (alpha-2 column): https://www.iso.org/obp/ui/#search/code/", + "title": "Jurisdiction" + }, + "dataController": { + "anyOf": [ + { + "$ref": "#/$defs/LongDescription" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Data Controller means a person/entity who (either alone or jointly or in common with other persons/entities) determines the purposes for which and the way any Data Subject data, specifically personal data or are to be processed.", + "examples": [ + "NHS England" + ], + "guidance": "- Data Controller means a person/entity who (either alone or jointly or in common with other persons/entities) determines the purposes for which and the way any Data Subject data, specifically personal data or are to be processed.\\n- Notes: For most organisations this will be the same as the Data Custodian of the dataset. If this is not the case, please indicate that there is a different controller.\\n- If there is a different controller please complete the Data Processor attribute to indicate if the Data Custodian is a Processor rather than the Data Controller.\\n- In some cases, there may be multiple Data Controllers i.e. GP data. If this is the case, please indicate the fact in a free-text field and describe the data sharing arrangement or a link to it, so that this can be understood by research users.\\n- Example: NHS England", + "title": "Data Controller" + }, + "dataProcessor": { + "anyOf": [ + { + "$ref": "#/$defs/LongDescription" + }, + { + "type": "null" + } + ], + "default": null, + "description": "A Data Processor, in relation to any Data Subject data, specifically personal data, means any person/entity (other than an employee of the data controller) who processes the data on behalf of the data controller.", + "examples": [ + "Not Applicable", + "SAIL" + ], + "guidance": "A Data Processor, in relation to any Data Subject data, specifically personal data, means any person/entity (other than an employee of the data controller) who processes the data on behalf of the data controller.\\n- Notes: Required to complete if the Data Custodian is the Data Processor rather than the Data Controller.\\n- If the Publisher is also the Data Controller please provide \u201cNot Applicable\u201d.\\n- Examples: Not Applicable, SAIL", + "title": "Data Processor" + } + }, + "required": [ + "accessRights" + ], + "title": "Access", + "type": "object" + }, + "AccessService": { + "enum": [ + "TRE/SDE", + "Direct access", + "Open access", + "Varies based on project" + ], + "title": "AccessService", + "type": "string" + }, + "Accessibility": { + "additionalProperties": false, + "properties": { + "usage": { + "anyOf": [ + { + "$ref": "#/$defs/Usage" + }, + { + "type": "null" + } + ], + "default": null, + "description": "This section includes information about how the data can be used and how it is currently being used.", + "title": "Usage" + }, + "access": { + "allOf": [ + { + "$ref": "#/$defs/Access" + } + ], + "description": "Accessibility information allows researchers to understand access, usage, limitations, formats, standards and linkage or interoperability with toolsets.", + "title": "Accessibility" + }, + "formatAndStandards": { + "anyOf": [ + { + "$ref": "#/$defs/FormatAndStandards" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Section includes technical attributes for language vocabularies, sizes etc. and gives researchers facts about and processing the underlying data in the dataset.", + "title": "Format and Standards" + } + }, + "required": [ + "access" + ], + "title": "Accessibility", + "type": "object" + }, + "Age": { + "properties": { + "bin": { + "allOf": [ + { + "$ref": "#/$defs/AgeEnum" + } + ], + "examples": [ + "30-34 years" + ], + "title": "Age grouping" + }, + "count": { + "examples": [ + 1000 + ], + "title": "Age count", + "type": "integer" + } + }, + "required": [ + "bin", + "count" + ], + "title": "Age", + "type": "object" + }, + "AgeEnum": { + "enum": [ + "0-6 days", + "7-27 days", + "1-11 months", + "1-4 years", + "5-9 years", + "10-14 years", + "15-19 years", + "20-24 years", + "25-29 years", + "30-34 years", + "35-39 years", + "40-44 years", + "45-49 years", + "50-54 years", + "55-59 years", + "60-64 years", + "65-69 years", + "70-74 years", + "75-79 years", + "80-84 years", + "85-89 years", + "90-94 years", + "95-99 years", + "100+ years" + ], + "title": "AgeEnum", + "type": "string" + }, + "Assay": { + "enum": [ + "NMR spectroscopy", + "Mass-spectrometry", + "Whole genome sequencing", + "Exome sequencing", + "Genotyping by array", + "Transcriptome profiling by high-throughput sequencing", + "Transcriptome profiling by array", + "Amplicon sequencing", + "Methylation binding domain sequencing", + "Methylation profiling by high-throughput sequencing", + "Genomic variant calling", + "Chromatin accessibility profiling by high-throughput sequencing", + "Histone modification profiling by high-throughput sequencing", + "Chromatin immunoprecipitation sequencing", + "Whole genome shotgun sequencing", + "Whole transcriptome sequencing", + "Targeted mutation analysis" + ], + "title": "Assay", + "type": "string" + }, + "CommaSeparatedValues": { + "anyOf": [ + { + "pattern": "([^,]+)", + "type": "string" + }, + { + "type": "null" + } + ], + "title": "CommaSeparatedValues" + }, + "ControlledVocabularyEnum": { + "enum": [ + "LOCAL", + "OPCS4", + "READ", + "SNOMED CT", + "SNOMED RT", + "DM PLUS D", + "DM+D", + "NHS NATIONAL CODES", + "NHS SCOTLAND NATIONAL CODES", + "NHS WALES NATIONAL CODES", + "ODS", + "LOINC", + "ICD10", + "ICD10CM", + "ICD10PCS", + "ICD9CM", + "ICD9", + "ICDO3", + "AMT", + "APC", + "ATC", + "CIEL", + "HPO", + "CPT4", + "DPD", + "DRG", + "HEMONC", + "JMDC", + "KCD7", + "MULTUM", + "NAACCR", + "NDC", + "NDFRT", + "OXMIS", + "RXNORM", + "RXNORM EXTENSION", + "SPL", + "OTHER" + ], + "title": "ControlledVocabularyEnum", + "type": "string" + }, + "Coverage": { + "additionalProperties": false, + "properties": { + "spatial": { + "anyOf": [ + { + "$ref": "#/$defs/CommaSeparatedValues" + }, + { + "items": { + "$ref": "#/$defs/Url" + }, + "type": "array" + } + ], + "description": "The geographical area covered by the dataset. It is recommended that links are to entries in one of the recommended standards:\\n- For locations in the UK: [ONS standards](https://geoportal.statistics.gov.uk/datasets/208d9884575647c29f0dd5a1184e711a/about)\\n- For locations in other countries: [ISO 3166-1 & ISO 3166-2](https://github.com/HDRUK/reference-codes)", + "examples": [ + "United Kingdom", + "https://www.geonames.org/2635167/united-kingdom-of-great-britain-and-northern-ireland.html" + ], + "guidance": "- The geographical area covered by the dataset.\\n- Please provide a valid location.\\n- For locations in the UK, this location should conform to [ONS standards](https://geoportal.statistics.gov.uk/datasets/208d9884575647c29f0dd5a1184e711a/about).\\n- For locations in other countries we use [ISO 3166-1 & ISO 3166-2](https://github.com/HDRUK/reference-codes).", + "title": "Geographic coverage" + }, + "typicalAgeRangeMin": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please indicate the minimum age in years of participants in the dataset as a whole number (integer).", + "examples": [ + 18 + ], + "guidance": "- Please indicate the minimum of the age range in whole years of participants in the dataset.\\n- **What if my dataset has participants of all \u201cAll Ages\u201d or \u201cAny Ages\u201d?**: In that case, please enter 0.", + "title": "Minimum age range" + }, + "typicalAgeRangeMax": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please indicate the maximum age in years of participants in the dataset as a whole number (integer).", + "examples": [ + 90 + ], + "guidance": "- Please indicate the maximum of the age range in whole years of participants in the dataset.\\n- **What if my dataset has participants of all \u201cAll Ages\u201d or \u201cAny Ages\u201d?**: In that case, please enter 150.", + "title": "Maximum age range" + }, + "datasetCompleteness": { + "anyOf": [ + { + "$ref": "#/$defs/Url" + }, + { + "type": "null" + } + ], + "default": null, + "description": "The URL where a Researcher can learn more about the completeness of the dataset.", + "examples": [ + "https://bhfdatasciencecentre.org/dashboard/" + ], + "guidance": "If your organisation has a publicly available site which contains information on the completeness of a dataset, add that URL here.\\n**Example**: https://bhfdatasciencecentre.org/dashboard/", + "title": "Dataset coverage/completeness/quality" + }, + "materialType": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/MaterialTypeCategoriesV2" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "The type of biospecimen saved from a biological entity.", + "guidance": "Indicate the specimen type, can be several values from the list below:\\n- Availability of physical samples associated with the dataset.\\n- If samples are available, please indicate the types of samples that are available.\\n- More than one type may be provided.\\n- If samples are not yet available, please provide **\u201cAvailability to be confirmed\u201d**.\\n- If samples are not available, then please provide **\u201cNot available\u201d**.\\n- **Not available**: Samples associated with the dataset are not available.\\n- **Bone marrow**: Bone marrow samples associated with the data are available.\\n- **Cancer cell lines**: Cancer cell line samples associated with the data are available.\\n- **CDNA/MRNA**: CDNA/MRNA samples associated with the data are available.\\n- **Core biopsy**: Core biopsy samples associated with the data are available.\\n- **DNA**: DNA samples associated with the data are available.\\n- **Entire body organ**: Entire body organ associated with the data are available.\\n- **Faeces**: Faeces samples associated with the data are available.\\n- **Immortalized cell lines**: Immortalized cell line samples associated with the data are available.\\n- **Isolated pathogen**: Isolated pathogen associated with the data are available.\\n- **MicroRNA**: MicroRNA samples associated with the data are available.\\n- **Peripheral blood cells**: Peripheral blood cell samples associated with the data are available.\\n- **Plasma**: Plasma samples associated with the data are available.\\n- **PM Tissue**: PM Tissue samples associated with the data are available.\\n- **Primary cells**: Primary cell samples associated with the data are available.\\n- **RNA**: RNA samples associated with the data are available.\\n- **Saliva**: Saliva samples associated with the data are available.\\n- **Serum**: Serum samples associated with the data are available.\\n- **Swabs**: Swab samples associated with the data are available.\\n- **Tissue**: Tissue samples associated with the data are available.\\n- **Urine**: Urine samples associated with the data are available.\\n- **Whole blood**: Whole blood samples associated with the data are available.\\n- **Availability to be confirmed**: Availability of samples is currently being confirmed.\\n- **Other**: Other types of sample available.", + "title": "Biological sample availability" + }, + "followUp": { + "anyOf": [ + { + "$ref": "#/$defs/FollowupV2" + }, + { + "type": "null" + } + ], + "default": "Unknown", + "description": "If known, what is the typical time span that a patient appears in the dataset (follow up period). In a prospective cohort study, after baseline information is collected, participants are followed \u201clongitudinally\u201d i.e. new information is collected about them for a period of time afterward. This is known as the \u201cfollow up period\u201d. What is the typical time span of follow up, e.g. 1 year, 5 years? If there are multiple cohorts in the dataset with varying follow up periods, please provide the longest follow up period.", + "guidance": "If known, please indicate the typical time span that a patient appears in the dataset (follow up period).\\n-**0 - 6 MONTHS**: Data typically available for a patient over a 0-6 month period.\\n-**6 - 12 MONTHS**: Data typically available for a patient over a 6-12 month period.\\n-**1 - 10 YEARS**: Data typically available for a patient over a 1-10 year period.\\n-**> 10 YEARS**: Data typically available for a patient for over a 10 year period.\\n-**CONTINUOUS**: Data for patients is being regularly added to and updated.\\n-**UNKNOWN**: Timespan is Unknown.\\n-**OTHER**: Data available for a patient over another time period.", + "title": "Follow-up" + }, + "pathway": { + "anyOf": [ + { + "$ref": "#/$defs/Description" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please indicate if the dataset is representative of the patient pathway and any limitations the dataset may have with respect to pathway coverage. This could include if the dataset is from a single speciality or area, a single tier of care, linked across two tiers (e.g. primary and secondary care), or an integrated care record covering the whole patient pathway.", + "guidance": "- Please indicate if the dataset is representative of the patient pathway and any limitations the dataset may have with respect to pathway coverage.\\n- This could include if the dataset is from a single speciality or area, a single tier of care, linked across two tiers (e.g. primary and secondary care), or an integrated care record covering the whole patient pathway.", + "title": "Patient pathway description" + } + }, + "required": [ + "spatial" + ], + "title": "Coverage", + "type": "object" + }, + "DataColumn": { + "properties": { + "name": { + "allOf": [ + { + "$ref": "#/$defs/Name" + } + ], + "description": "The name of a column in a table.", + "title": "Column name" + }, + "dataType": { + "description": "The data type of values in the column.", + "title": "Data type", + "type": "string" + }, + "description": { + "anyOf": [ + { + "maxLength": 20000, + "minLength": 1, + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "A description of a column in a table.", + "title": "Column description" + }, + "sensitive": { + "description": "A True or False value, indicating if the field is sensitive or not.", + "title": "Sensitive", + "type": "boolean" + }, + "values": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/DataValue" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Values in a dataset.", + "title": "Values" + } + }, + "required": [ + "name", + "dataType", + "sensitive" + ], + "title": "DataColumn", + "type": "object" + }, + "DataTable": { + "additionalProperties": false, + "properties": { + "name": { + "anyOf": [ + { + "maxLength": 500, + "minLength": 1, + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "The name of a table in a dataset.", + "title": "Table name" + }, + "description": { + "anyOf": [ + { + "maxLength": 20000, + "minLength": 1, + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "A description of a table in a dataset.", + "title": "Table description" + }, + "columns": { + "description": "A list of columns contained within a table in a dataset.", + "items": { + "$ref": "#/$defs/DataColumn" + }, + "title": "Data columns", + "type": "array" + } + }, + "required": [ + "columns" + ], + "title": "DataTable", + "type": "object" + }, + "DataUseLimitationV2": { + "enum": [ + "General research use", + "Commercial research use", + "Genetic studies only", + "No general methods research", + "No restriction", + "Geographical restrictions", + "Institution-specific restrictions", + "Not for profit use", + "Project-specific restrictions", + "Research-specific restrictions", + "User-specific restrictions", + "Research use only", + "No linkage" + ], + "title": "DataUseLimitationV2", + "type": "string" + }, + "DataUsePermissions": { + "additionalProperties": false, + "properties": { + "patientRecontact": { + "anyOf": [ + { + "$ref": "#/$defs/YesNo" + }, + { + "type": "null" + } + ], + "default": "No", + "description": "Indicates whether the people from whom the dataset is generated can be recontacted as part of a follow-up or new study.", + "examples": [ + "No" + ], + "guidance": "Please indicate whether the people from whom the dataset is generated can be recontacted as part of a follow-up or new study.\\n- **Yes**: The people within this dataset can be recontacted, subject to any applicable ethical/consent requirements.\\n- **No**: The people within this dataset cannot be recontacted.", + "title": "Patient recontact" + } + }, + "title": "DataUsePermissions", + "type": "object" + }, + "DataUseRequirementsV2": { + "enum": [ + "Collaboration required", + "Project-specific restrictions", + "Ethics approval required", + "Institution-specific restrictions", + "Geographical restrictions", + "Publication moratorium", + "Publication required", + "Return to database or resource", + "Time limit on use", + "Disclosure control", + "Not for profit use", + "User-specific restriction" + ], + "title": "DataUseRequirementsV2", + "type": "string" + }, + "DataValue": { + "properties": { + "name": { + "allOf": [ + { + "$ref": "#/$defs/Name" + } + ], + "description": "Unique value in a column.", + "title": "Value name" + }, + "description": { + "anyOf": [ + { + "maxLength": 20000, + "minLength": 1, + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "A description of a unique value in a column.", + "title": "Value description" + }, + "frequency": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null, + "description": "The frequency of occurrance of a value in a column.", + "title": "Value frequency" + } + }, + "required": [ + "name" + ], + "title": "DataValue", + "type": "object" + }, + "DatasetDescriptor": { + "properties": { + "pid": { + "anyOf": [ + { + "$ref": "#/$defs/OneHundredFiftyCharacters" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Persistent identifier of a dataset" + }, + "title": { + "anyOf": [ + { + "$ref": "#/$defs/OneHundredFiftyCharacters" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Title of a dataset" + }, + "url": { + "anyOf": [ + { + "$ref": "#/$defs/Url" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Url of a dataset" + } + }, + "title": "DatasetDescriptor", + "type": "object" + }, + "DeliveryLeadTimeV2": { + "enum": [ + "Less than 1 week", + "1-2 weeks", + "2-4 weeks", + "1-2 months", + "2-6 months", + "More than 6 months", + "Variable", + "Not applicable", + "Other" + ], + "title": "DeliveryLeadTimeV2", + "type": "string" + }, + "DemographicFrequency": { + "additionalProperties": false, + "properties": { + "age": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/Age" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Array of bins, based off the UK Office for National Statistics (ONS) groupings, and their corresponding counts as represented within the dataset.", + "title": "Age" + }, + "ethnicity": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/Ethnicity" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Array of bins, based off the UK Office for National Statistics (ONS) census groupings, and their corresponding counts as represented within the dataset.", + "guidance": "Enter the count of population represented in the dataset within the ethnicity bins provided. Clearly indicate where ethnicity is not stated or not known. Ensure you apply low number suppression and rounding where appropriate.", + "title": "Ethnicity" + }, + "disease": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/Disease" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Array of health conditions or diseases (based around ICD-10, SNOMED CT and MeSH disease vocabularies) and their corresponding counts as represented within the dataset.", + "guidance": "Create bins based on standard vocabulary (ICD-10, SNOMED CT or MeSH) and disease code. Then enter the count of population represented in the dataset within the disease bins created. Ensure you apply low number suppression and rounding where appropriate.", + "title": "Disease" + } + }, + "title": "DemographicFrequency", + "type": "object" + }, + "Description": { + "anyOf": [ + { + "maxLength": 10000, + "minLength": 2, + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Description" + }, + "Disease": { + "properties": { + "diseaseCode": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "integer" + } + ], + "examples": [ + "J45" + ], + "title": "Disease code" + }, + "diseaseCodeVocabulary": { + "allOf": [ + { + "$ref": "#/$defs/DiseaseCodeEnum" + } + ], + "examples": [ + "ICD10" + ], + "title": "Disease code vocabulary" + }, + "count": { + "examples": [ + 1000 + ], + "title": "Disease count", + "type": "integer" + } + }, + "required": [ + "diseaseCode", + "diseaseCodeVocabulary", + "count" + ], + "title": "Disease", + "type": "object" + }, + "DiseaseCodeEnum": { + "enum": [ + "ICD10", + "SNOMED CT", + "MeSH" + ], + "title": "DiseaseCodeEnum", + "type": "string" + }, + "Documentation": { + "additionalProperties": false, + "properties": { + "description": { + "allOf": [ + { + "$ref": "#/$defs/Description" + } + ], + "description": "A free-text description of the dataset.\\nA URL can also be provided as the description of the dataset.\\nGateway Feature: Keywords and text may be extracted out of the description and indexed for search.", + "examples": [ + "CPRD Aurum contains primary care data contributed by General Practitioner (GP) practices using EMIS Web\u00ae including patient registration information and all care events that GPs have chosen to record as part of their usual medical practice." + ], + "guidance": "- An HTML account of the data that **provides context and scope** of the data, **limited to 10000 characters, and/or a resolvable URL** that describes the dataset.\\n- Additional information can be recorded and included using the Associated media field." + }, + "associatedMedia": { + "anyOf": [ + { + "$ref": "#/$defs/CommaSeparatedValues" + }, + { + "items": { + "anyOf": [ + { + "$ref": "#/$defs/Url" + }, + { + "type": "null" + } + ] + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please provide any media associated with the Gateway Organisation using a valid URL for the content. This is an opportunity to provide additional context that could be useful for researchers wanting to understand more about the dataset and its relevance to their research question. The following formats will be accepted .jpg, .png or .svg, .pdf, .xslx or .docx. Note: media asset can be hosted by the organisation or uploaded using the onboarding portal.", + "examples": [ + "PDF document that describes study protocol - https://link.to/document.pdf" + ], + "guidance": "- Please provide any media associated with the Gateway Organisation **using a valid URL** for the content.\\n- This is an opportunity to **provide additional context** that could be useful for researchers wanting to understand more about the dataset and its relevance to their research question.\\n- Note: media assets should be hosted by the organisation.\n- **Example**: This could be a **link to a PDF Document** that describes methodology or further detail about the datasets, or a graph or chart that provides further context about the dataset.\\n- If you are providing multiple links for associated media, we recommend that you separate these with a comma.", + "title": "Associated media" + }, + "inPipeline": { + "anyOf": [ + { + "$ref": "#/$defs/Pipeline" + }, + { + "type": "null" + } + ], + "default": "Not available", + "description": "Indicate whether this dataset is currently available for Researchers to request access.", + "guidance": "If a dataset is being prepared for sharing but not yet ready and available for researchers to apply for access, select 'Not available'. If Researchers can currently apply for access to the dataset, select 'Available'.", + "title": "Dataset pipeline status" + } + }, + "required": [ + "description" + ], + "title": "Documentation", + "type": "object" + }, + "Doi": { + "anyOf": [ + { + "pattern": "^10.\\d{4,9}/[-._;()/:a-zA-Z0-9]+$", + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Doi" + }, + "DuoCodesEnum": { + "oneOf": [ + { + "const": "DUO:0000001", + "description": "A data item that is used to indicate consent permissions for datasets and/or materials, and relates to the purposes for which datasets and/or material might be removed, stored or used.", + "shortcode": "", + "title": "data use permission" + }, + { + "const": "DUO:0000004", + "description": "This data use permission indicates there is no restriction on use.", + "shortcode": "NRES", + "title": "no restriction" + }, + { + "const": "DUO:0000006", + "description": "This data use permission indicates that use is allowed for health/medical/biomedical purposes; does not include the study of population origins or ancestry.", + "shortcode": "HMB", + "title": "health or medical or biomedical research" + }, + { + "const": "DUO:0000007", + "description": "This data use permission indicates that use is allowed provided it is related to the specified disease.", + "shortcode": "DS", + "title": "disease specific research" + }, + { + "const": "DUO:0000011", + "description": "This data use permission indicates that use of the data is limited to the study of population origins or ancestry.", + "shortcode": "POA", + "title": "population origins or ancestry research only" + }, + { + "const": "DUO:0000012", + "description": "This data use modifier indicates that use is limited to studies of a certain research type.", + "shortcode": "RS", + "title": "research specific restrictions" + }, + { + "const": "DUO:0000015", + "description": "This data use modifier indicates that use does not allow methods development research (e.g., development of software or algorithms).", + "shortcode": "NMDS", + "title": "no general methods research" + }, + { + "const": "DUO:0000016", + "description": "This data use modifier indicates that use is limited to genetic studies only (i.e., studies that include genotype research alone or both genotype and phenotype research, but not phenotype research exclusively)", + "shortcode": "GSO", + "title": "genetic studies only" + }, + { + "const": "DUO:0000017", + "description": "Data use modifiers indicate additional conditions for use.", + "shortcode": "", + "title": "data use modifier" + }, + { + "const": "DUO:0000018", + "description": "This data use modifier indicates that use of the data is limited to not-for-profit organizations and not-for-profit use, non-commercial use.", + "shortcode": "NPUNCU", + "title": "not for profit, non commercial use only" + }, + { + "const": "DUO:0000019", + "description": "This data use modifier indicates that requestor agrees to make results of studies using the data available to the larger scientific community.", + "shortcode": "PUB", + "title": "publication required" + }, + { + "const": "DUO:0000020", + "description": "This data use modifier indicates that the requestor must agree to collaboration with the primary study investigator(s).", + "shortcode": "COL", + "title": "collaboration required" + }, + { + "const": "DUO:0000021", + "description": "This data use modifier indicates that the requestor must provide documentation of local IRB/ERB approval.", + "shortcode": "IRB", + "title": "ethics approval required" + }, + { + "const": "DUO:0000022", + "description": "This data use modifier indicates that use is limited to within a specific geographic region.", + "shortcode": "GS", + "title": "geographical restriction" + }, + { + "const": "DUO:0000024", + "description": "This data use modifier indicates that requestor agrees not to publish results of studies until a specific date.", + "shortcode": "MOR", + "title": "publication moratorium" + }, + { + "const": "DUO:0000025", + "description": "This data use modifier indicates that use is approved for a specific number of months.", + "shortcode": "TS", + "title": "time limit on use" + }, + { + "const": "DUO:0000026", + "description": "This data use modifier indicates that use is limited to use by approved users.", + "shortcode": "US", + "title": "user specific restriction" + }, + { + "const": "DUO:0000027", + "description": "This data use modifier indicates that use is limited to use within an approved project.", + "shortcode": "PS", + "title": "project specific restriction" + }, + { + "const": "DUO:0000028", + "description": "This data use modifier indicates that use is limited to use within an approved institution.", + "shortcode": "IS", + "title": "institution specific restriction" + }, + { + "const": "DUO:0000029", + "description": "This data use modifier indicates that the requestor must return derived/enriched data to the database/resource.", + "shortcode": "RTN", + "title": "return to database or resource" + }, + { + "const": "DUO:0000042", + "description": "This data use permission indicates that use is allowed for general research use for any research purpose.", + "shortcode": "GRU", + "title": "general research use" + }, + { + "const": "DUO:0000043", + "description": "This data use modifier indicates that use is allowed for clinical use and care.", + "shortcode": "CC", + "title": "clinical care use" + }, + { + "const": "DUO:0000044", + "description": "This data use modifier indicates use for purposes of population, origin, or ancestry research is prohibited.", + "shortcode": "NPOA", + "title": "population origins or ancestry research prohibited" + }, + { + "const": "DUO:0000045", + "description": "This data use modifier indicates that use of the data is limited to not-for-profit organizations.", + "shortcode": "NPU", + "title": "not for profit organisation use only" + }, + { + "const": "DUO:0000046", + "description": "This data use modifier indicates that use of the data is limited to not-for-profit use.", + "shortcode": "NCU", + "title": "non-commercial use only" + } + ], + "title": "DuoCodesEnum", + "type": "string" + }, + "EmailAddress": { + "anyOf": [ + { + "format": "email", + "type": "string" + }, + { + "type": "null" + } + ], + "title": "EmailAddress" + }, + "EndDateEnum": { + "enum": [ + "CONTINUOUS", + null + ], + "title": "EndDateEnum" + }, + "EnrichmentAndLinkage": { + "additionalProperties": false, + "properties": { + "derivedFrom": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/DatasetDescriptor" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "If applicable, please provide DOIs or links to datasets from which data in this dataset has been derived or calculated from.", + "title": "Derived from" + }, + "isPartOf": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/DatasetDescriptor" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "This relationship indicates that the dataset is a component or subset of a broader collection of related datasets. For example, clinical trial data for a specific drug may be part of a larger database of pharmaceutical research data. Complete only if the dataset is part of a group or family of datasets i.e. Hospital Episode Statistics has several constituents. If your dataset is not part of a group, please enter \u201cNOT APPLICABLE\u201d **Example**: Hospital Episodes Statistics datasets (A&E, APC, OP, AC MSDS).", + "examples": [ + "Hospital Episodes Statistics datasets (A&E, APC, OP, AC MSDS)" + ], + "title": "Is part of" + }, + "linkableDatasets": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/DatasetDescriptor" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "If applicable, please provide the DOI of other datasets that have previously been linked to this dataset and their availability. If no DOI is available, please provide the title of the datasets that can be linked.", + "title": "Linked datasets" + }, + "similarToDatasets": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/DatasetDescriptor" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Datasets that are similar to each other in some way, collect similar patients, regional equivalent etc.", + "title": "Similar to datasets" + }, + "investigations": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/Url" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please provide link to any active projects that are using the dataset.", + "guidance": "- Please provide the website address(es) which document information related to active projects utilising the dataset.\\n- Please split your existing list of citations into separate fields.\\n- To add multiple entries, type in each website and press enter to add it to the list.\\n- **Example**: ", + "title": "Investigations" + }, + "tools": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/Url" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please provide the URL of any analysis tools or models that have been created for this dataset and are available for further use. Multiple tools may be provided. Note: We encourage users to adopt a model along the lines of https://www.ga4gh.org/news/tool-registry-service-api-enabling-an-interoperable-library-of-genomics-analysis-tools/", + "guidance": "- Please provide the URL of any analysis tools or models that have been created for this dataset and are available for further use.\\n- Multiple tools may be provided.\\n- Note: We encourage users to adopt a model along the lines of https://www.ga4gh.org/news/tool-registry-service-api-enabling-an-interoperable-library-of-genomics-analysis-tools/", + "title": "Tools" + }, + "publicationAboutDataset": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/Doi" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "DOIs for publications which describe the dataset.", + "examples": [ + "10.1093/ije/dyab028" + ], + "guidance": "- Please provide the DOIs for publications which describe the dataset.\\n- Please split your existing list of citations into separate fields.\\n- To add multiple entries, type in each citation and press enter to add it to the list.\\n- **Example**: <10.1093/ije/dyab028>", + "title": "Publication about the dataset" + }, + "publicationUsingDataset": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/Doi" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "DOIs for publications which use the dataset for analysis.", + "examples": [ + "10.1001/jamapediatrics.2016.3633" + ], + "guidance": "- Please provide the DOIs for publications which have used the dataset in their analysis.\\n- Please split your existing list of citations into separate fields.\\n- To add multiple entries, type in each citation and press enter to add it to the list.\\n- **Example**: <10.1001/jamapediatrics.2016.3633>", + "title": "Publication using the dataset" + } + }, + "title": "EnrichmentAndLinkage", + "type": "object" + }, + "EnvironmentAndEnergy": { + "properties": { + "name": { + "Literal": true, + "default": "Environment and energy", + "title": "Name", + "type": "string" + }, + "subTypes": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/NotApplicableSubTypes" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Subtypes" + } + }, + "required": [ + "subTypes" + ], + "title": "EnvironmentAndEnergy", + "type": "object" + }, + "Ethnicity": { + "properties": { + "bin": { + "allOf": [ + { + "$ref": "#/$defs/EthnicityEnum" + } + ], + "examples": [ + "Black or Black British - Any other Black background" + ], + "title": "Ethnicity grouping" + }, + "count": { + "examples": [ + 1000 + ], + "title": "Ethnicity count", + "type": "integer" + } + }, + "required": [ + "bin", + "count" + ], + "title": "Ethnicity", + "type": "object" + }, + "EthnicityEnum": { + "enum": [ + "White - British", + "White - Irish", + "White - Any other White background", + "Mixed - White and Black Caribbean", + "Mixed - White and Black African", + "Mixed - White and Asian", + "Mixed - Any other mixed background", + "Asian or Asian British - Indian", + "Asian or Asian British - Pakistani", + "Asian or Asian British - Bangladeshi", + "Asian or Asian British - Any other Asian background", + "Black or Black British - Caribbean", + "Black or Black British - African", + "Black or Black British - Any other Black background", + "Other Ethnic Groups - Chinese", + "Other Ethnic Groups - Any other ethnic group", + "Not stated", + "Not known" + ], + "title": "EthnicityEnum", + "type": "string" + }, + "FollowupV2": { + "enum": [ + "0 - 6 Months", + "6 - 12 Months", + "1 - 10 Years", + "> 10 Years", + "Unknown", + "Continuous", + "Other", + null + ], + "title": "FollowupV2" + }, + "Format": { + "minLength": 1, + "title": "Format", + "type": "string" + }, + "FormatAndStandards": { + "additionalProperties": false, + "properties": { + "vocabularyEncodingScheme": { + "description": "List any relevant terminologies / ontologies / controlled vocabularies, such as ICD 10 Codes, NHS Data Dictionary National Codes or SNOMED CT International, that are being used by the dataset. If the controlled vocabularies are local standards, please make that explicit. If you are using a standard that has not been included in the list, please use \u201cother\u201d and contact support desk to ask for an addition. Notes: More than one vocabulary may be provided.", + "examples": [ + "LOCAL", + "ICD10" + ], + "guidance": "- List any relevant terminologies / ontologies / controlled vocabularies, such as ICD 10 Codes, NHS Data Dictionary National Codes or SNOMED CT International, that are being used by the dataset.\\n- If the controlled vocabularies are local standards, please make that explicit. If you are using a standard that has not been included in the list, please use \u201cother\u201d and contact support desk to ask for an addition.\\n- Notes: More than one vocabulary may be provided.\\n- **Local**: Local Coding Standard.\\n- [**OPCS4**](https://digital.nhs.uk/data-and-information/information-standards/governance/latest-activity/standards-and-collections/dapb0084-opcs-classification-of-interventions-and-procedures/)\\n- [**READ**](https://digital.nhs.uk/services/terminology-and-classifications/read-codes)\\n- [**SNOMED CT**](http://www.snomed.org/)\\n- [**SNOMED RT**](https://confluence.ihtsdotools.org/display/DOCGLOSS/SNOMED+RT)\\n- [**DM+D**](https://digital.nhs.uk/data-and-information/information-standards/information-standards-and-data-collections-including-extractions/publications-and-notifications/standards-and-collections/scci0052-dictionary-of-medicines-and-devices-dm-d)\\n- [**NHS National Codes**](https://www.datadictionary.nhs.uk/)\\n- [**ODS**](https://digital.nhs.uk/services/organisation-data-service)\\n- [**LOINC**](https://loinc.org/)\\n- [**ICD10**](https://www.who.int/classifications/icd/icdonlineversions/en/)\\n- [**ICD10CM**](https://www.cdc.gov/nchs/icd/icd10cm.htm)\\n- [**ICD10PCS**](https://ec.europa.eu/eip/ageing/standards/healthcare/e-health/icd-10-pcs_en)\\n- [**ICD9CM**](https://www.cdc.gov/nchs/icd/icd9cm.htm)\\n- [**ICD9**](https://www.cdc.gov/nchs/icd/icd9.htm)\\n- [**ICDO3**](https://www.who.int/standards/classifications/other-classifications/international-classification-of-diseases-for-oncology)\\n- [**AMT**](https://www.digitalhealth.gov.au/healthcare-providers/product-releases)\\n- [**APC**](https://www.acep.org/administration/reimbursement/reimbursement-faqs/apc-ambulatory-payment-classifications-faq/)\\n- [**ATC**](https://www.whocc.no/atc_ddd_index/)\\n- [**CIEL**](https://github.com/OpenConceptLab/ocl_web/wiki/CIEL)\\n- [**HPO**](https://hpo.jax.org/app/)\\n- [**CPT4**](https://www.ama-assn.org/practice-management/cpt)\\n- [**DPD**](https://health-products.canada.ca/dpd-bdpp/index-eng.jsp)\\n- [**DRG**](https://www.who.int/publications/i/item/WHO-UHC-HGF-Guidance-20.10)\\n- [**HEMONC**](https://hemonc.org/wiki/Main_Page)\\n- [**JMDC**](https://www.jmdc.co.jp/en/)\\n- [**KCD7**](https://forums.ohdsi.org/t/adding-kcd7-code-korean-icd-10-to-the-omop-vocabulary/7576)\\n- [**MULTUM**](https://www.cerner.com/solutions/drug-database)\\n- [**NAACCR**](https://www.naaccr.org/)\\n- [**NDC**](https://www.fda.gov/drugs/drug-approvals-and-databases/national-drug-code-directory)\\n- [**NDFRT**](https://bioportal.bioontology.org/ontologies/NDFRT)\\n- [**OXMIS**](https://oxrisk.com/oxmis/)\\n- [**RXNORM**](https://www.nlm.nih.gov/research/umls/rxnorm/index.html)\\n- [**RXNORM EXTENSION**](https://www.nlm.nih.gov/research/umls/rxnorm/index.html)\\n- [**SPL**](https://www.fda.gov/industry/fda-resources-data-standards/structured-product-labeling-resources)\\n- **Other**: Please indicate if there is another standard that you are using. This will trigger a support ticket where you can request the addition of the terminology to the HOP.\\n- [**NHS Scotland National Codes**](https://www.ndc.scot.nhs.uk/Data-Dictionary/)\\n- [**NHS Wales National Codes**](http://www.datadictionary.wales.nhs.uk/)", + "items": { + "$ref": "#/$defs/ControlledVocabularyEnum" + }, + "title": "Controlled vocabulary", + "type": "array" + }, + "conformsTo": { + "description": "List standardised data models that the dataset has been stored in or transformed to, such as OMOP or FHIR. If the data is only available in a local format, please make that explicit. If you are using a standard that has not been included in the list, please use \u201cother\u201d and contact support desk to ask for an addition.", + "examples": [ + "LOCAL", + "NHS DATA DICTIONARY" + ], + "guidance": "- List standardised data models that the dataset has been stored in or transformed to, such as OMOP or FHIR.\\n- If the data is only available in a local format, please make that explicit. If you are using a standard that has not been included in the list, please use \u201cother\u201d and contact support desk to ask for an addition.\\n- [**British National Formulary (BNF) codes**](https://bnf.nice.org.uk/)\\n- [**HL7 FHIR**](https://www.hl7.org/fhir/)\\n- [**HL7 V2**](https://www.hl7.org/implement/standards/product_section.cfm?section=13)\\n- [**HL7 CDA**](https://www.hl7.org/implement/standards/product_section.cfm?section=10)\\n- [**HL7 CCOW**](https://www.hl7.org/implement/standards/product_section.cfm?section=16)\\n- [**LOINC**](https://loinc.org/)\\n- [**DDI**](https://ddialliance.org/)\\n- [**DCAT**](https://www.w3.org/TR/vocab-dcat-3/)\\n- [**DICOM**](https://www.dicomstandard.org/)\\n- [**I2B2**](https://www.i2b2.org/)\\n- [**IHE**](https://www.ihe.net/resources/profiles/)\\n- [**OMOP**](https://www.ohdsi.org/data-standardization/the-common-data-model/)\\n- [**openEHR**](https://www.openehr.org/)\\n- [**Sentinel**](https://www.sentinelinitiative.org/sentinel/data/distributed-database-common-data-model)\\n- [**PCORnet**](https://pcornet.org/data-driven-common-model/)\\n- [**CDISC**](https://www.cdisc.org/standards/data-exchange/odm)\\n- **Local**: In-house developed data model.\\n- **Other**: Other standardised data model.\\n- [**NHS Data Dictionary**](https://www.datadictionary.nhs.uk/)\\n- [**NHS Scotland Data Dictionary**](https://www.ndc.scot.nhs.uk/Data-Dictionary/)\\n- [**NHS Wales Data Dictionary**](https://www.datadictionary.wales.nhs.uk/)", + "items": { + "$ref": "#/$defs/StandardisedDataModelsEnumV2" + }, + "title": "Alignment with standardised data models", + "type": "array" + }, + "language": { + "description": "This should list all the languages in which the dataset metadata and underlying data is made available complaint with ISO 639.", + "examples": [ + "en" + ], + "guidance": "https://www.iso.org/iso-639-language-code\\n- **aa**: Afar\\n- **ab**: Abkhazian\\n- **af**: Afrikaans\\n- **ak**: Akan\\n- **sq**: Albanian\\n- **am**: Amharic\\n- **ar**: Arabic\\n- **an**: Aragonese\\n- **hy**: Armenian\\n- **as**: Assamese\\n- **av**: Avaric\\n- **ae**: Avestan\\n- **ay**: Aymara\\n- **az**: Azerbaijani\\n- **ba**: Bashkir\\n- **bm**: Bambara\\n- **eu**: Basque\\n- **be**: Belarusian\\n- **bn**: Bengali\\n- **bh**: Bihari languages\\n- **bi**: Bislama\\n- **bo**: Tibetan\\n- **bs**: Bosnian\\n- **br**: Breton\\n- **bg**: Bulgarian\\n- **my**: Burmese\\n- **ca**: Catalan; Valencian\\n- **cs**: Czech\\n- **ch**: Chamorro\\n- **ce**: Chechen\\n- **zh**: Chinese\\n- **cu**: Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic\\n- **cv**: Chuvash\\n- **kw**: Cornish\\n- **co**: Corsican\\n- **cr**: Cree\\n- **cy**: Welsh\\n- **cs**: Czech\\n- **da**: Danish\\n- **de**: German\\n- **dv**: Divehi; Dhivehi; Maldivian\\n- **nl**: Dutch; Flemish\\n- **dz**: Dzongkha\\n- **el**: Greek, Modern (1453-)\\n- **en**: English\\n- **eo**: Esperanto\\n- **et**: Estonian\\n- **eu**: Basque\\n- **ee**: Ewe\\n- **fo**: Faroese\\n- **fa**: Persian\\n- **fj**: Fijian\\n- **fi**: Finnish\\n- **fr**: French\\n- **fy**: Western Frisian\\n- **ff**: Fulah\\n- **ka**: Georgian\\n- **de**: German\\n- **gd**: Gaelic; Scottish Gaelic\\n- **ga**: Irish\\n- **gl**: Galician\\n- **gv**: Manx\\n- **el**: Greek, Modern (1453-)\\n- **gn**: Guarani\\n- **gu**: Gujarati\\n- **ht**: Haitian; Haitian Creole\\n- **ha**: Hausa\\n- **ho**: Hiri Motu\\n- **hr**: Croatian\\n- **hu**: Hungarian\\n- **hy**: Armenian\\n- **ig**: Igbo\\n- **is**: Icelandic\\n- **io**: Ido\\n- **ii**: Sichuan Yi; Nuosu\\n- **iu**: Inuktitut\\n- **ie**: Interlingue; Occidental\\n- **ia**: Interlingua (International Auxiliary Language Association)\\n- **id**: Indonesian\\n- **ik**: Inupiaq\\n- **is**: Icelandic\\n- **it**: Italian\\n- **jv**: Javanese\\n- **ja**: Japanese\\n- **kl**: Kalaallisut; Greenlandic\\n- **kn**: Kannada\\n- **ks**: Kashmiri\\n- **ka**: Georgian\\n- **kr**: Kanuri\\n- **kk**: Kazakh\\n- **km**: Central Khmer\\n- **ki**: Kikuyu; Gikuyu\\n- **rw**: Kinyarwanda\\n- **ky**: Kirghiz; Kyrgyz\\n- **kv**: Komi\\n- **kg**: Kongo\\n- **ko**: Korean\\n- **kj**: Kuanyama; Kwanyama\\n- **ku**: Kurdish\\n- **lo**: Lao\\n- **la**: Latin\\n- **lv**: Latvian\\n- **li**: Limburgan; Limburger; limburgish\\n- **ln**: Lingala\\n- **lt**: Lithuanian\\n- **lb**: Luxembourgish; Letzeburgesch\\n- **lu**: Luba-Katanga\\n- **lg**: Ganda\\n- **mk**: Macedonian\\n- **mh**: Marshallese\\n- **ml**: Malayalam\\n- **mi**: Maori\\n- **mr**: Marathi\\n- **ms**: Malay\\n- **mk**: Macedonian\\n- **mg**: Malagasy\\n- **mt**: Maltese\\n- **mn**: Mongolian\\n- **mi**: Maori\\n- **ms**: Malay\\n- **my**: Burmese\\n- **na**: Nauru\\n- **nv**: Navajo; Navaho\\n- **nr**: Ndebele, South; South Ndebele\\n- **nd**: Ndebele, North; North Ndebele\\n- **ng**: Ndonga\\n- **ne**: Nepali\\n- **nl**: Dutch; Flemish\\n- **nn**: Norwegian Nynorsk; Nynorsk, Norwegian\\n- **nb**: Bokm\u00e5l, Norwegian; Norwegian Bokm\u00e5l\\n- **no**: Norwegian\\n- **ny**: Chichewa; Chewa; Nyanja\\n- **oc**: Occitan (post 1500)\\n- **oj**: Ojibwa\\n- **or**: Oriya\\n- **om**: Oromo\\n- **os**: Ossetian; Ossetic\\n- **pa**: Panjabi; Punjabi\\n- **fa**: Persian\\n- **pi**: Pali\\n- **pl**: Polish\\n- **pt**: Portuguese\\n- **ps**: Pushto; Pashto\\n- **qu**: Quechua\\n- **rm**: Romansh\\n- **ro**: Romanian; Moldavian; Moldovan\\n- **rn**: Rundi\\n- **ru**: Russian\\n- **sg**: Sango\\n- **sa**: Sanskrit\\n- **si**: Sinhala; Sinhalese\\n- **sk**: Slovak\\n- **sl**: Slovenian\\n- **se**: Northern Sami\\n- **sm**: Samoan\\n- **sn**: Shona\\n- **sd**: Sindhi\\n- **so**: Somali\\n- **st**: Sotho, Southern\\n- **es**: Spanish; Castilian\\n- **sq**: Albanian\\n- **sc**: Sardinian\\n- **sr**: Serbian\\n- **ss**: Swati\\n- **su**: Sundanese\\n- **sw**: Swahili\\n- **sv**: Swedish\\n- **ty**: Tahitian\\n- **ta**: Tamil\\n- **tt**: Tatar\\n- **te**: Telugu\\n- **tg**: Tajik\\n- **tl**: Tagalog\\n- **th**: Thai\\n- **bo**: Tibetan\\n- **ti**: Tigrinya\\n- **to**: Tonga (Tonga Islands)\\n- **tn**: Tswana\\n- **ts**: Tsonga\\n- **tk**: Turkmen\\n- **tr**: Turkish\\n- **tw**: Twi\\n- **ug**: Uighur; Uyghur\\n- **uk**: Ukrainian\\n- **ur**: Urdu\\n- **uz**: Uzbek\\n- **ve**: Venda\\n- **vi**: Vietnamese\\n- **vo**: Volap\u00fck\\n- **cy**: Welsh\\n- **wa**: Walloon\\n- **wo**: Wolof\\n- **xh**: Xhosa\\n- **yi**: Yiddish\\n- **yo**: Yoruba\\n- **za**: Zhuang; Chuang\\n- **zh**: Chinese\\n- **zu**: Zulu", + "items": { + "$ref": "#/$defs/LanguageEnum" + }, + "title": "Language", + "type": "array" + }, + "format": { + "description": "If multiple formats are available please specify. See application, audio, image, message, model, multipart, text, video, https://www.iana.org/assignments/media-types/media-types.xhtml Note: If your file format is not included in the current list of formats, please indicate other. If you are using the HOP you will be directed to a service desk page where you can request your additional format. If not please go to: https://metadata.atlassian.net/servicedesk/customer/portal/4 to request your format.", + "examples": [ + "text/tab-separated-values", + "application/sql", + "text/csv", + "image/diacom-rle" + ], + "guidance": "- If multiple formats are available, please specify. See application, audio, image, message, model, multipart, text, video, .\\n- Please **enter one format type at a time** and click **Add New Field** to add further keywords.\\n- Note: If your file format is not included in the current list of formats, please indicate other.\\n- **Example**: text/tab-separated-values, application/sql, text/csv, image/diacom-rle", + "items": { + "$ref": "#/$defs/Format" + }, + "title": "Format", + "type": "array" + } + }, + "required": [ + "vocabularyEncodingScheme", + "conformsTo", + "language", + "format" + ], + "title": "FormatAndStandards", + "type": "object" + }, + "HealthAndDisease": { + "properties": { + "name": { + "Literal": true, + "default": "Health and disease", + "title": "Name", + "type": "string" + }, + "subTypes": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/HealthAndDiseaseSubTypes" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Subtypes" + } + }, + "required": [ + "subTypes" + ], + "title": "HealthAndDisease", + "type": "object" + }, + "HealthAndDiseaseSubTypes": { + "enum": [ + "Mental health", + "Cardiovascular", + "Cancer", + "Rare diseases", + "Metabolic and endocrine", + "Neurological", + "Reproductive", + "Maternity and neonatology", + "Respiratory", + "Immunity", + "Musculoskeletal", + "Vision", + "Renal and urogenital", + "Oral and gastrointestinal", + "Cognitive function", + "Hearing", + "Others" + ], + "title": "HealthAndDiseaseSubTypes", + "type": "string" + }, + "ImagingAreaOfTheBody": { + "properties": { + "name": { + "Literal": true, + "default": "Imaging Area Of The Body", + "title": "Name", + "type": "string" + }, + "subTypes": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/ImagingAreaOfTheBodySubTypes" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Subtypes" + } + }, + "required": [ + "subTypes" + ], + "title": "ImagingAreaOfTheBody", + "type": "object" + }, + "ImagingAreaOfTheBodySubTypes": { + "enum": [ + "Head", + "Chest", + "Arm", + "Abdomen", + "Leg", + "Others" + ], + "title": "ImagingAreaOfTheBodySubTypes", + "type": "string" + }, + "ImagingTypes": { + "properties": { + "name": { + "Literal": true, + "default": "Imaging types", + "title": "Name", + "type": "string" + }, + "subTypes": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/ImagingTypesSubTypes" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Subtypes" + } + }, + "required": [ + "subTypes" + ], + "title": "ImagingTypes", + "type": "object" + }, + "ImagingTypesSubTypes": { + "enum": [ + "CT", + "MRI", + "PET", + "X-ray", + "Ultrasound", + "Pathology", + "Others" + ], + "title": "ImagingTypesSubTypes", + "type": "string" + }, + "InformationAndCommunication": { + "properties": { + "name": { + "Literal": true, + "default": "Information and communication", + "title": "Name", + "type": "string" + }, + "subTypes": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/NotApplicableSubTypes" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Subtypes" + } + }, + "required": [ + "subTypes" + ], + "title": "InformationAndCommunication", + "type": "object" + }, + "Isocountrycode": { + "pattern": "^[A-Z]{2}(-[A-Z]{2,3})?$", + "title": "Isocountrycode", + "type": "string" + }, + "LanguageEnum": { + "enum": [ + "aa", + "ab", + "ae", + "af", + "ak", + "am", + "an", + "ar", + "as", + "av", + "ay", + "az", + "ba", + "be", + "bg", + "bh", + "bi", + "bm", + "bn", + "bo", + "br", + "bs", + "ca", + "ce", + "ch", + "co", + "cr", + "cs", + "cu", + "cv", + "cy", + "da", + "de", + "dv", + "dz", + "ee", + "el", + "en", + "eo", + "es", + "et", + "eu", + "fa", + "ff", + "fi", + "fj", + "fo", + "fr", + "fy", + "ga", + "gd", + "gl", + "gn", + "gu", + "gv", + "ha", + "he", + "hi", + "ho", + "hr", + "ht", + "hu", + "hy", + "hz", + "ia", + "id", + "ie", + "ig", + "ii", + "ik", + "io", + "is", + "it", + "iu", + "ja", + "jv", + "ka", + "kg", + "ki", + "kj", + "kk", + "kl", + "km", + "kn", + "ko", + "kr", + "ks", + "ku", + "kv", + "kw", + "ky", + "la", + "lb", + "lg", + "li", + "ln", + "lo", + "lt", + "lu", + "lv", + "mg", + "mh", + "mi", + "mk", + "ml", + "mn", + "mr", + "ms", + "mt", + "my", + "na", + "nb", + "nd", + "ne", + "ng", + "nl", + "nn", + "no", + "nr", + "nv", + "ny", + "oc", + "oj", + "om", + "or", + "os", + "pa", + "pi", + "pl", + "ps", + "pt", + "qu", + "rm", + "rn", + "ro", + "ru", + "rw", + "sa", + "sc", + "sd", + "se", + "sg", + "si", + "sk", + "sl", + "sm", + "sn", + "so", + "sq", + "sr", + "ss", + "st", + "su", + "sv", + "sw", + "ta", + "te", + "tg", + "th", + "ti", + "tk", + "tl", + "tn", + "to", + "tr", + "ts", + "tt", + "tw", + "ty", + "ug", + "uk", + "ur", + "uz", + "ve", + "vi", + "vo", + "wa", + "wo", + "xh", + "yi", + "yo", + "za", + "zh", + "zu" + ], + "title": "LanguageEnum", + "type": "string" + }, + "Lifestyle": { + "properties": { + "name": { + "Literal": true, + "default": "Lifestyle", + "title": "Name", + "type": "string" + }, + "subTypes": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/LifestyleSubTypes" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Subtypes" + } + }, + "required": [ + "subTypes" + ], + "title": "Lifestyle", + "type": "object" + }, + "LifestyleSubTypes": { + "enum": [ + "Smoking", + "Physical activity", + "Dietary habits", + "Alcohol", + "Others" + ], + "title": "LifestyleSubTypes", + "type": "string" + }, + "LongDescription": { + "anyOf": [ + { + "maxLength": 50000, + "minLength": 2, + "type": "string" + }, + { + "type": "null" + } + ], + "title": "LongDescription" + }, + "MaterialTypeCategoriesV2": { + "enum": [ + "None/not available", + "Bone marrow", + "Cancer cell lines", + "CDNA/MRNA", + "Core biopsy", + "DNA", + "Entire body organ", + "Faeces", + "Immortalized cell lines", + "Isolated pathogen", + "MicroRNA", + "Peripheral blood cells", + "Plasma", + "PM Tissue", + "Primary cells", + "RNA", + "Saliva", + "Serum", + "Swabs", + "Tissue", + "Urine", + "Whole blood", + "Availability to be confirmed", + "Other" + ], + "title": "MaterialTypeCategoriesV2", + "type": "string" + }, + "MeasuredProperty": { + "title": "MeasuredProperty" + }, + "MeasurementsTests": { + "properties": { + "name": { + "Literal": true, + "default": "Measurements/Tests", + "title": "Name", + "type": "string" + }, + "subTypes": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/MeasurementsTestsSubTypes" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Subtypes" + } + }, + "required": [ + "subTypes" + ], + "title": "MeasurementsTests", + "type": "object" + }, + "MeasurementsTestsSubTypes": { + "enum": [ + "Laboratory", + "Other diagnostics" + ], + "title": "MeasurementsTestsSubTypes", + "type": "string" + }, + "MemberOfV2": { + "enum": [ + "Hub", + "Alliance", + "Other", + "NCS" + ], + "title": "MemberOfV2", + "type": "string" + }, + "Name": { + "title": "Name" + }, + "NotApplicableSubTypes": { + "const": "Not applicable", + "title": "NotApplicableSubTypes" + }, + "Observation": { + "additionalProperties": false, + "properties": { + "observedNode": { + "allOf": [ + { + "$ref": "#/$defs/StatisticalPopulationConstrainedV2" + } + ], + "description": "Please select one of the following broad notes for your measured observation. Indicating whether the measured property is a recording of unique persons, events, findings or scans per modality.", + "examples": [ + "Persons" + ], + "guidance": "- **Persons**: Unique persons recorded in the dataset\\n- **Events**: Unique events such as procedures and prescriptions within the dataset\\n-**Findings**: Unique findings included in the dataset such as diagnoses'\\n-**Number of scans per modality**: Unique scans for a specified imaging method modality (e.g. 12 x-rays)", + "title": "Dataset volume measure" + }, + "measuredValue": { + "description": "An integer value size of the measured property, such as \u20181000\u2019 for 1000 people in the study or \u201887\u2019 for 87 MRI scans in the dataset.", + "examples": [ + 1000 + ], + "guidance": "An integer value size of the measured property, such as \u20181000\u2019 for 1000 people in the study or \u201887\u2019 for 87 MRI scans in the dataset.", + "title": "Measured value", + "type": "integer" + }, + "disambiguatingDescription": { + "anyOf": [ + { + "$ref": "#/$defs/AbstractText" + }, + { + "type": "null" + } + ], + "default": null, + "description": "If required, please provide additional details that help distinguish between similar measured properties within your dataset, for example this is useful when SNOMED CT terms do not provide sufficient detail to distinguish between parts of the dataset population. Limited to 500 characters.", + "guidance": "If required please provide additional details that help distinguish between similar measured properties within your dataset, for example this is useful when SNOMED CT terms do not provide sufficient detail to distinguish between parts of the dataset population.", + "title": "Disambiguating description" + }, + "observationDate": { + "anyOf": [ + { + "format": "date", + "type": "string" + }, + { + "format": "date-time", + "type": "string" + } + ], + "description": "Provide the date, or datetime that the observation was made. Multiple observations of the same property can be provided, for example an observation of cumulative COVID positive cases by specimen on the 1/1/2021 with a measuredValue of 2000000, and a second observation entry on 8/2/2021 recording a measuredValue of as 3100000.", + "examples": [ + "2024-10-24" + ], + "guidance": "Provide the date, or datetime that the observation was made. Multiple observations of the same property can be provided, for example an observation of cumulative COVID positive cases by specimen on the 1/1/2021 with a measuredValue of 2000000, and a second observation entry on 8/2/2021 recording a measuredValue of as 3100000.", + "title": "Observation date" + }, + "measuredProperty": { + "allOf": [ + { + "$ref": "#/$defs/MeasuredProperty" + } + ], + "description": "Descriptive term for the observation property measured. For example, people, procedures, x-rays, or diagnosis of type 1 diabetes. This could also be a specific SNOMED CT term.", + "examples": [ + "Count" + ], + "guidance": "Descriptive term for the observation property measured.", + "title": "Measured property" + } + }, + "required": [ + "observedNode", + "measuredValue", + "observationDate", + "measuredProperty" + ], + "title": "Observation", + "type": "object" + }, + "Omics": { + "additionalProperties": false, + "properties": { + "assay": { + "anyOf": [ + { + "$ref": "#/$defs/Assay" + }, + { + "type": "null" + } + ], + "default": null, + "description": "The specific 'omics assay that generated the dataset.", + "guidance": "The specific 'omics assay that generated the dataset. If the assay used to generate your dataset is not listed, please contract the gateway team by submitting an enquiry.", + "title": "Omics assay" + }, + "platform": { + "anyOf": [ + { + "$ref": "#/$defs/Platform" + }, + { + "type": "null" + } + ], + "default": null, + "description": "The specific technology or infrastructure used to perform the assay. If the omics platform used to create your dataset is not listed, please select other, a member of the gateway team will contact you to add an appropriate term(s) both to your record and to the metadata schema on your behalf.", + "guidance": "The specific technology or infrastructure used to perform the assay. If the omics platform used to create your dataset is not listed, please select other, a member of the gateway team will contact you to add an appropriate term(s) both to your record and to the metadata schema on your behalf.", + "title": "Omics Platform" + } + }, + "title": "Omics", + "type": "object" + }, + "OmicsDataType": { + "properties": { + "name": { + "Literal": true, + "default": "Omics", + "title": "Name", + "type": "string" + }, + "subTypes": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/OmicsDataTypeSubTypes" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Subtypes" + } + }, + "required": [ + "subTypes" + ], + "title": "OmicsDataType", + "type": "object" + }, + "OmicsDataTypeSubTypes": { + "enum": [ + "Proteomics", + "Transcriptomics", + "Epigenomics", + "Metabolomics", + "Metagenomics", + "Genomics", + "Lipidomics", + "Others" + ], + "title": "OmicsDataTypeSubTypes", + "type": "string" + }, + "OneHundredFiftyCharacters": { + "maxLength": 150, + "minLength": 2, + "title": "OneHundredFiftyCharacters", + "type": "string" + }, + "Organisation": { + "additionalProperties": false, + "properties": { + "identifier": { + "anyOf": [ + { + "maxLength": 50, + "minLength": 2, + "type": "string" + }, + { + "type": "integer" + } + ], + "description": "Please provide a Research Organization Registry (ROR) identifier (see https://ror.org/) for your organisation.", + "examples": [ + "30f16703-28bc-4f45-9ce5-625d2d3db27d" + ], + "guidance": "**Example**: https://ror.org/053fq8t95\\nIf your organisation does not have a ROR identifier please use the \u201csuggest and institute\u201d function here: https://docs.google.com/forms/d/e/1FAIpQLSdJYaMTCwS7muuTa-B_CnAtCSkKzt19lkirAKG4u7umH9Nosg/viewform", + "title": "identifier" + }, + "name": { + "allOf": [ + { + "$ref": "#/$defs/OneHundredFiftyCharacters" + } + ], + "description": "The organisation responsible for running or supporting the data access request process, as well as publishing and maintaining the metadata.", + "examples": [ + "Health Data Research UK" + ], + "guidance": "In most this will be the same as the Team you have on the Gateway. However, in some cases this will be different. For example, Tissue Directory are a Team on the Gateway but coordinate activities across a number of Data Providers such as Cambridge Blood and Stem Cell Biobank.", + "title": "Name of Data Custodian" + }, + "logo": { + "anyOf": [ + { + "$ref": "#/$defs/Url" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please provide a logo associated with the Gateway Organisation using a valid URL. The following formats will be accepted .jpg, .png or .svg. If a logo is not submitted this will default to the logo for the team submitting the metadata.", + "title": "Organisation Logo" + }, + "description": { + "anyOf": [ + { + "$ref": "#/$defs/Description" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please provide a URL that describes the organisation. If a description is not provided this will default to the description of the team submitting the metadata.", + "title": "Organisation Description" + }, + "contactPoint": { + "anyOf": [ + { + "$ref": "#/$defs/EmailAddress" + }, + { + "items": { + "$ref": "#/$defs/EmailAddress" + }, + "type": "array" + } + ], + "description": "Organisation contact point(s) which will be used for receiving queries from HDR, and enquiries and data access requests from Researchers. If a contact point is not provided this will default to the contact point for the team submitting the metadata.", + "examples": [ + "test@test.co.uk" + ], + "title": "contact point" + }, + "memberOf": { + "anyOf": [ + { + "$ref": "#/$defs/MemberOfV2" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please indicate if the organisation is an Alliance Member or a Hub. If this field is not submitted this will default to the membership for the team submitting the metadata.", + "title": "Organisation Membership" + } + }, + "required": [ + "identifier", + "name", + "contactPoint" + ], + "title": "Organisation", + "type": "object" + }, + "Origin": { + "additionalProperties": false, + "properties": { + "purpose": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/PurposeV2" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please indicate the purpose(s) that the dataset was collected.", + "guidance": "- **Research cohort**: Data collected for a defined group of people.\\n- **Study**: Data collected for a specific research study.\\n- **Disease registry**: Data collected as part of a disease registry.\\n- **Trial**: Data collected for as part of a clinical trial.\\n- **Care**: Data collected as part of routine clinical care.\\n- **Audit**: Data collected as part of an audit programme.\\n- **Administrative**: Data collected for administrative and management information purposes.\\n- **Financial**: Data collected either for payments or for billing.\\n- **Statutory**: Data collected in compliance with statutory requirements.\\n- **Other**: Data collected for other purpose.", + "title": "Purpose of dataset collection" + }, + "datasetType": { + "description": "The topic areas to which the dataset content relates.", + "examples": [ + "Health and disease" + ], + "guidance": "Types include those listed below. Datasets can have more than one type associated.\\n- **Health and disease**: Includes any data related to mental health, cardiovascular, cancer, rare diseases, metabolic and endocrine, neurological, reproductive, maternity and neonatology, respiratory, immunity, musculoskeletal, vision, renal and urogenital, oral and gastrointestinal, cognitive function or hearing.\\n- **Treatments/Interventions**: Includes any data related to treatment or interventions related to vaccines or which are preventative or therapeutic in nature.\\n- **Measurements/Tests**: Includes any data related to laboratory or other diagnostics.\\n- **Imaging types**: Includes any data related to CT, MRI, PET, x-ray, ultrasound or pathology imaging.\\n- **Imaging area of the body**: Indicates whether the dataset relates to head, chest, arm abdomen or leg imaging.\\n- **Omics**: Includes any data related to proteomics, transcriptomics, epigenomics, metabolomics, multiomics, metagenomics or genomics.\\n- **Socioeconomic**: Includes any data related to education, crime and justice, ethnicity, housing, labour, ageing, economics, marital status, social support, deprivation, religion, occupation, finances or family circumstances.\\n- **Lifestyle**: Includes any data related to smoking, physical activity, dietary habits or alcohol.\\n- **Registry**: Includes any data related to disease registries for research, national disease registries, audits, or birth and deaths records.\\n- **Environment and energy**: Includes any data related to the monitoring or study of environmental or energy factors or events.\\n- **Information and communication**: Includes any data related to the study or application of information and communication.\\n- **Politics**: Includes any data related to political views, activities, voting, etc.", + "items": { + "anyOf": [ + { + "$ref": "#/$defs/HealthAndDisease" + }, + { + "$ref": "#/$defs/TreatmentsInterventions" + }, + { + "$ref": "#/$defs/MeasurementsTests" + }, + { + "$ref": "#/$defs/ImagingTypes" + }, + { + "$ref": "#/$defs/ImagingAreaOfTheBody" + }, + { + "$ref": "#/$defs/OmicsDataType" + }, + { + "$ref": "#/$defs/Socioeconomic" + }, + { + "$ref": "#/$defs/Lifestyle" + }, + { + "$ref": "#/$defs/Registry" + }, + { + "$ref": "#/$defs/EnvironmentAndEnergy" + }, + { + "$ref": "#/$defs/InformationAndCommunication" + }, + { + "$ref": "#/$defs/Politics" + } + ] + }, + "title": "Dataset type", + "type": "array" + }, + "source": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/SourceV2" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please indicate the source of the data extraction.", + "guidance": " - **EPR**: Data Extracted from Electronic Patient Record.\\n- **Electronic survey**: Data has been extracted from electronic surveys.\\n- **LIMS**: Data has been extracted from a laboratory information management system.\\n- **Paper-based**: Data has been extracted from paper forms.\\n- **Free text NLP**: Data has been extracted from unstructured freetext using natural language processing.\\n- **Machine generated**: Data has been machine generated i.e. imaging.\\n- **Other**: Data has been extracted by other means.", + "title": "Source of data extraction" + }, + "collectionSource": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/SettingV2" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please indicate the setting(s) where data was collected. Multiple settings may be provided.", + "guidance": "- **Cohort, study, trial**: Cohort, study or trial data collection as part of protocol.\\n- **Clinic**: Specific clinic such as antenatal clinic.\\n- **Primary care - Referrals**: General medical practitioner referral to another service.\\n- **Primary care - Clinic**: General medical practitioner practice.\\n- **Primary care - Out of hours**: General medical practitioner care or advice outside of standard hours.\\n- **Secondary care - Accident and emergency**: Accident emergency department.\\n- **Secondary care - Outpatients**: Outpatient care.\\n- **Secondary care - In-patients**: In-patient care.\\n- **Secondary care - Ambulance**: Care provided in association with ambulance service.\\n- **Secondary care - ICU**: Intensive care units, also referred to as critical care units (CCUs) or intensive therapy units (ITUs).\\n- **Prescribing - Community pharmacy**: Pharmacy based in the community.\\n- **Prescribing - Community pharmacy**: Pharmacy based in a hospital setting.\\n- **Patient report outcome**: Reported by patient.\\n- **Wearables**: Data collection devices worn on the body.\\n- **Local authority**: Local authority or entity associated with a local authority.\\n- **National government**: National government or entity associated with the national government.\\n- **Community**: Community settings.\\n- **Services**: Services such as drug misuse or blood transfusion.\\n- **Home**: Home setting.\\n- **Private**: Private medical clinic.\\n- **Social care - Health care at home**: service provided in the home or residence of a person.\\n- **Social care - Other social data**: service provided in a setting outside of the person's home or residence.\\n- **Census**: collected as part of census.\\n- **Other**: Other setting.", + "title": "Collection source setting" + }, + "imageContrast": { + "anyOf": [ + { + "$ref": "#/$defs/Ternary" + }, + { + "type": "null" + } + ], + "default": "Not stated", + "description": "Indicate whether usage of imaging contrast is captured within the dataset.", + "guidance": "If any contrast media or contrast agents were used in creating the images within the dataset and the contrast is known, mark 'Yes'. If this information is not known or not captured, indicate 'Not stated'. If there was no contrast used in the images, mark 'No'.", + "title": "Image contrast" + } + }, + "required": [ + "datasetType" + ], + "title": "Origin", + "type": "object" + }, + "PeriodicityV2": { + "enum": [ + "Static", + "Irregular", + "Continuous", + "Biennial", + "Annual", + "Biannual", + "Quarterly", + "Bimonthly", + "Monthly", + "Biweekly", + "Weekly", + "Twice a week", + "Daily", + "Other", + null + ], + "title": "PeriodicityV2" + }, + "Pipeline": { + "enum": [ + "Available", + "Not available" + ], + "title": "Pipeline", + "type": "string" + }, + "Platform": { + "enum": [ + "Other", + "NMR Nightingale", + "Metabolon", + "Biocrates", + "Illumina", + "Oxford Nanopore", + "454", + "Hi-C", + "HiFi" + ], + "title": "Platform", + "type": "string" + }, + "Politics": { + "properties": { + "name": { + "Literal": true, + "default": "Politics", + "title": "Name", + "type": "string" + }, + "subTypes": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/NotApplicableSubTypes" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Subtypes" + } + }, + "required": [ + "subTypes" + ], + "title": "Politics", + "type": "object" + }, + "Provenance": { + "additionalProperties": false, + "properties": { + "origin": { + "anyOf": [ + { + "$ref": "#/$defs/Origin" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Coverage by origin (geographical and situations).", + "title": "Origin Coverage" + }, + "temporal": { + "allOf": [ + { + "$ref": "#/$defs/Temporal" + } + ], + "description": "Dates and other temporal coverage information.", + "title": "Temporal Coverage" + } + }, + "required": [ + "temporal" + ], + "title": "Provenance", + "type": "object" + }, + "PurposeV2": { + "enum": [ + "Research cohort", + "Study", + "Disease registry", + "Trial", + "Care", + "Audit", + "Administrative", + "Financial", + "Statutory", + "Other", + null + ], + "title": "PurposeV2" + }, + "Registry": { + "properties": { + "name": { + "Literal": true, + "default": "Registry", + "title": "Name", + "type": "string" + }, + "subTypes": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/RegistrySubTypes" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Subtypes" + } + }, + "required": [ + "subTypes" + ], + "title": "Registry", + "type": "object" + }, + "RegistrySubTypes": { + "enum": [ + "Disease registry (research)", + "National disease registries and audits", + "Births and deaths", + "Others" + ], + "title": "RegistrySubTypes", + "type": "string" + }, + "Revision": { + "additionalProperties": false, + "properties": { + "version": { + "allOf": [ + { + "$ref": "#/$defs/Semver" + } + ], + "description": "Version number used for previous version of this dataset", + "examples": [ + "6.0.0" + ], + "title": "revision version" + }, + "url": { + "anyOf": [ + { + "$ref": "#/$defs/Url" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Some url with a reference to the record of a previous version of this dataset", + "examples": [ + "https://api.service.nhs.uk/health-research-data-catalogue/datasetrevisions/841f7da2-b018-41f6-b4ae-2e0aadab6561" + ], + "title": "revision url" + } + }, + "required": [ + "version" + ], + "title": "Revision", + "type": "object" + }, + "Semver": { + "pattern": "^([0-9]+)\\.([0-9]+)\\.([0-9]+)$", + "title": "Semver", + "type": "string" + }, + "SettingV2": { + "enum": [ + "Cohort, study, trial", + "Clinic", + "Primary care - Referrals", + "Primary care - Clinic", + "Primary care - Out of hours", + "Secondary care - Accident and Emergency", + "Secondary care - Outpatients", + "Secondary care - In-patients", + "Secondary care - Ambulance", + "Secondary care - ICU", + "Prescribing - Community pharmacy", + "Prescribing - Hospital", + "Patient report outcome", + "Wearables", + "Local authority", + "National government", + "Community", + "Services", + "Home", + "Private", + "Social care - Health care at home", + "Social care - Other social data", + "Census", + "Other", + null + ], + "title": "SettingV2" + }, + "ShortDescription": { + "anyOf": [ + { + "maxLength": 1000, + "minLength": 2, + "type": "string" + }, + { + "type": "null" + } + ], + "title": "ShortDescription" + }, + "Socioeconomic": { + "properties": { + "name": { + "Literal": true, + "default": "Socioeconomic", + "title": "Name", + "type": "string" + }, + "subTypes": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/SocioeconomicSubTypes" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Subtypes" + } + }, + "required": [ + "subTypes" + ], + "title": "Socioeconomic", + "type": "object" + }, + "SocioeconomicSubTypes": { + "enum": [ + "Education", + "Crime and justice", + "Ethnicity", + "Housing", + "Labour", + "Ageing", + "Economics", + "Marital status", + "Social support", + "Deprivation", + "Religion", + "Occupation", + "Finances", + "Family circumstance", + "Others" + ], + "title": "SocioeconomicSubTypes", + "type": "string" + }, + "SourceV2": { + "enum": [ + "EPR", + "Electronic survey", + "LIMS", + "Paper-based", + "Free text NLP", + "Machine generated", + "Other" + ], + "title": "SourceV2", + "type": "string" + }, + "StandardisedDataModelsEnumV2": { + "enum": [ + "BNF", + "HL7 FHIR", + "HL7 V2", + "HL7 CDA", + "HL7 CCOW", + "LOINC", + "DDI", + "DCAT", + "DICOM", + "I2B2", + "IHE", + "OMOP", + "OPENEHR", + "SENTINEL", + "PCORNET", + "CDISC", + "LOCAL", + "OTHER", + "NHS DATA DICTIONARY", + "NHS SCOTLAND DATA DICTIONARY", + "NHS WALES DATA DICTIONARY" + ], + "title": "StandardisedDataModelsEnumV2", + "type": "string" + }, + "StatisticalPopulationConstrainedV2": { + "enum": [ + "Persons", + "Events", + "Findings", + "Number of scans per modality" + ], + "title": "StatisticalPopulationConstrainedV2", + "type": "string" + }, + "StructuralMetadata": { + "additionalProperties": false, + "properties": { + "tables": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/DataTable" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Tables in the dataset", + "title": "Tables" + }, + "syntheticDataWebLink": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/Url" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please provide the website address(es) with information on your synthetic dataset creation, or the location where a synthetic version of the dataset can be accessed.\\n- Please split your existing list of citations into separate fields.\\n- To add multiple entries, select from the drop-down list, or add to the drop-down. Click the 'x' symbol to remove any entries.\\n- **Example**: https://www.pioneerdatahub.co.uk/dataset/synthetic-dataset-patients-at-risk-of-sudden-death-hypertrophic-cardiomyopathy/", + "title": "Synthetic data web links" + } + }, + "title": "StructuralMetadata", + "type": "object" + }, + "Summary": { + "additionalProperties": false, + "properties": { + "title": { + "allOf": [ + { + "$ref": "#/$defs/OneHundredFiftyCharacters" + } + ], + "description": "Title of the dataset limited to 150 characters. It should provide a short description of the dataset and be unique across the gateway. If your title is not unique, please add a prefix with your organisation name or identifier to differentiate it from other datasets within the Gateway. Good titles should summarise the content of the dataset and if relevant, the region the dataset covers.", + "examples": [ + "North West London COVID-19 Patient Level Situation Report", + "Scottish Morbidity Record (SMR)" + ], + "guidance": "- The **title** should provide a short description of the dataset and be **unique** across the gateway.\\n- If your title is not unique, please **add a prefix with your organisation name or identifier** to differentiate it from other datasets within the Gateway.\\n- If an accronym is widely used the dataset name, please add it in brackets () at the end of the title.\\n- Good titles should summarise the content of the dataset and if relevant, **the region the dataset covers**.\\n- **Example**: North West London COVID-19 Patient Level Situation Report", + "title": "Title" + }, + "abstract": { + "allOf": [ + { + "$ref": "#/$defs/AbstractText" + } + ], + "description": "Provide a clear and brief descriptive signpost for researchers who are searching for data that may be relevant to their research. The abstract should allow the reader to determine the scope of the data collection and accurately summarise its content. The optimal length is one paragraph (limited to 255 characters) and effective abstracts should avoid long sentences and abbreviations where possible.", + "examples": [ + "CPRD Aurum contains primary care data contributed by General Practitioner (GP) practices using EMIS Web\u00ae including patient registration information and all care events that GPs have chosen to record as part of their usual medical practice." + ], + "guidance": "- The abstract should provide a **clear and brief descriptive** signpost for researchers who are searching for data that may be relevant to their research.\\n- The abstract should allow the reader to determine the **scope of the data collection and accurately summarise its content**.\\n- Effective abstracts should **avoid long sentences and abbreviations** where possible.\\n- **Note**: Researchers will view Titles and the first line of Abstracts (list view) when searching for datasets and choosing whether to explore their content further.\\n- **Abstracts should be different from the full description** for a dataset.\\n- **Example**: CPRD Aurum contains primary care data contributed by General Practitioner (GP) practices using EMIS Web\u00ae including patient registration information and all care events that GPs have chosen to record as part of their usual medical practice.", + "title": "Dataset abstract" + }, + "dataCustodian": { + "allOf": [ + { + "$ref": "#/$defs/Organisation" + } + ], + "description": "This is the organisation responsible for running or supporting the data access request process, as well as enquiries about a dataset. In most this will be the same as the HDR UK Organisation (Hub or Alliance Member). However, in some cases this will be different i.e. Tissue Directory are an HDR UK Gateway organisation but coordinate activities across a number of data publishers i.e. Cambridge Blood and Stem Cell Biobank.", + "title": "Dataset Custodian" + }, + "populationSize": { + "description": "Input the number of people captured within the dataset.", + "examples": [ + 1000 + ], + "guidance": "This number informs a filter for Researchers to differentiate dataset search results based on the number of people in the dataset, and does not pull from the **Observations** fields. The filter also allows for Researchers to search datasets which have no population size reported, but will **not** pull any population size captured in the **Observations** section.", + "title": "Dataset population size", + "type": "integer" + }, + "keywords": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/OneHundredFiftyCharacters" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please provide a list of relevant and specific keywords that can improve the search engine optimisation (SEO) of your dataset as a comma separated list. Notes: Onboarding portal will suggest keywords based on title, abstract and description. We are compiling a standardised list of keywords and synonyms across datasets to make filtering easier for users.", + "examples": [ + "Outpatient Care", + "Socioeconomic Deprivation", + "Infant Morbidity", + "Learning disability", + "Primary Care Prescription", + "Accident and Emergency Admissions" + ], + "guidance": "- Please provide **relevant** and **specific keywords** that can **improve the search engine optimization** of your dataset.\\n- Please **enter one keyword at a time** and click **Add New Field** to add further keywords.\\n- Text from the title is automatically included in the search, there is no need to include this in the keywords.\\n- Include words that researcher may include in their searches.", + "title": "Keywords" + }, + "doiName": { + "anyOf": [ + { + "$ref": "#/$defs/Doi" + }, + { + "type": "null" + } + ], + "default": null, + "description": "DOI associated to this dataset. Find out more about DOIs here: [https://www.doi.org/the-identifier/what-is-a-doi/](https://www.doi.org/the-identifier/what-is-a-doi/)", + "examples": [ + "10.1093/ije/dyx196" + ], + "guidance": "- Please note: This is **not** the DOI of the publication(s) associated with the dataset.\\n- All HDR UK registered **datasets** should either have a **(DOI)** or be working towards obtaining one.\\n- If a DOI is available, please provide the DOI.\\n- **What happens if I do not have a DOI?**: Contact your academic organisation to find out if there is an existing relationship with a DOI provider. If that is not available, sites such as figshare offer free services to mint a DOI for your dataset. Subsequent versions of the Metadata Exchange will provide a DOI minting service.", + "title": "Digital Object Identifier (DOI) for dataset" + }, + "contactPoint": { + "allOf": [ + { + "$ref": "#/$defs/EmailAddress" + } + ], + "description": "Please provide a valid email address that can be used to coordinate data access requests.", + "examples": [ + "gateway@hdruk.ac.uk" + ], + "guidance": "Organisations are expected to provide a dedicated email address associated with the data access request process. If no contact point is provided in this field, this field will be defaulted to the teams support email provided in the teams setting.\\n**Note:** An employee's email address can only be provided on a temporary basis and if one is provided, **you must obtain explicit consent for this purpose**.", + "title": "Contact point" + }, + "datasetAliases": { + "anyOf": [ + { + "$ref": "#/$defs/CommaSeparatedValues" + }, + { + "items": { + "anyOf": [ + { + "$ref": "#/$defs/ShortDescription" + }, + { + "type": "null" + } + ] + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Dataset & BioSample alias or alternate names.", + "guidance": "Alternate name, acronym or other identifier for the Dataset and/or BioSamples.", + "title": "Dataset & BioSample alias" + } + }, + "required": [ + "title", + "abstract", + "dataCustodian", + "populationSize", + "contactPoint" + ], + "title": "Summary", + "type": "object" + }, + "Temporal": { + "additionalProperties": false, + "properties": { + "publishingFrequency": { + "allOf": [ + { + "$ref": "#/$defs/PeriodicityV2" + } + ], + "description": "Please indicate the frequency of distribution release. If a dataset is distributed regularly please choose a distribution release periodicity from the constrained list and indicate the next release date. When the release date becomes historical, a new release date will be calculated based on the publishing periodicity. If a dataset has been published and will remain static please indicate that it is static and indicated when it was released. If a dataset is released on an irregular basis or \u201con-demand\u201d please indicate that it is Irregular and leave release date as null. If a dataset can be published in real-time or near-real-time please indicate that it is continuous and leave release date as null. Notes: see https://www.dublincore.org/specifications/dublin-core/collection-description/frequency/", + "examples": [ + "Continuous" + ], + "guidance": "Please indicate the frequency of publishing.\\n- If a dataset is published regularly please choose a publishing periodicity from the constrained list and indicate the next release date.\\n- When the release date becomes historical, a new release date will be calculated based on the publishing periodicity.\\n- If a dataset has been published and will remain static please indicate that it is static and indicate when it was released.\\n- If a dataset is released on an irregular basis or \u201con-demand\u201d please indicate that it is Irregular and leave release date as null.\\n- If a dataset can be published in real-time or near-real-time please indicate that it is continuous and leave release date as null.\\n- Notes: see https://www.dublincore.org/specifications/dublin-core/collection-description/frequency/.\\n\\n Options:\\n- **Static**: Dataset published once.\\n- **Irregular**: Dataset published at uneven intervals.\\n- **Continuous**: Dataset published without interruption.\\n- **Biennial**: Dataset published every two years.\\n- **Annual**: Dataset published occurs once a year.\\n- **Biannual**: Dataset published twice a year.\\n- **Quarterly**: Dataset published every three months.\\n- **Bimonthly**: Dataset published every two months.\\n- **Monthly**: Dataset published once a month.\\n- **Biweekly**: Dataset published every two weeks.\\n- **Weekly**: Dataset published once a week.\\n- **Twice weekly**: Dataset published twice a week.\\n- **Daily**: Dataset published once a day.\\n- **Other**: Dataset published using other interval.", + "title": "Publishing frequency" + }, + "distributionReleaseDate": { + "anyOf": [ + { + "format": "date", + "type": "string" + }, + { + "format": "date-time", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Date of the latest release of the dataset. If this is a regular release i.e. quarterly, or this is a static dataset please complete this alongside Periodicity. If this is Irregular or Continuously released please leave this blank. Notes: Periodicity and release date will be used to determine when the next release is expected. E.g. if the release date is documented as 01/01/2020 and it is now 20/04/2020 and there is a quarterly release schedule, the latest release will be calculated as 01/04/2020.", + "examples": [ + "2024-10-24T00:00:00.000Z" + ], + "guidance": "- Please indicate the frequency the dataset is published.\\n- If a dataset is published regularly please choose a publishing periodicity from the constrained list and indicate the next release date.\\n- When the release date becomes historical, a new release date will be calculated based on the publishing periodicity.\\n- If a dataset has been published and will remain static please indicate that it is static and indicate when it was released.\\n- If a dataset is released on an irregular basis or \u201con-demand\u201d please indicate that it is Irregular and leave release date as null.\\n- If a dataset can be published in real-time or near-real-time please indicate that it is continuous and leave release date as null.\\n- Notes: see [https://www.dublincore.org/specifications/dublin-core/collection-description/frequency/](https://www.dublincore.org/specifications/dublin-core/collection-description/frequency/)", + "title": "Distribution release date" + }, + "startDate": { + "anyOf": [ + { + "format": "date", + "type": "string" + }, + { + "format": "date-time", + "type": "string" + } + ], + "description": "The start of the time period that the dataset provides coverage for. If there are multiple cohorts in the dataset with varying start dates, please provide the earliest date and use the description or the media attribute to provide more information.", + "examples": [ + "2024-10-24T00:00:00.000Z" + ], + "guidance": "- The start of the time period that the dataset provides coverage for.\\n- If there are multiple cohorts in the dataset with varying start dates, please provide the earliest date and use the description or the media attribute to provide more information.", + "title": "Start date" + }, + "endDate": { + "anyOf": [ + { + "format": "date", + "type": "string" + }, + { + "format": "date-time", + "type": "string" + }, + { + "$ref": "#/$defs/EndDateEnum" + }, + { + "type": "null" + } + ], + "default": null, + "description": "The end of the time period that the dataset provides coverage for. If the dataset is \u201cContinuous\u201d and has no known end date, please state continuous. If there are multiple cohorts in the dataset with varying end dates, please provide the latest date and use the description or the media attribute to provide more information.", + "examples": [ + "2024-10-24T00:00:00.000Z" + ], + "guidance": "- The end of the time period that the dataset provides coverage for.\\n- If the dataset is **\u201cContinuous\u201d** and has no known end date, **please leave blank**.\\n- If there are **multiple cohorts** in the dataset with varying end dates, please provide the **latest date**.", + "title": "End date" + }, + "timeLag": { + "allOf": [ + { + "$ref": "#/$defs/TimeLagV2" + } + ], + "description": "Please indicate the typical time-lag between an event and the data for that event appearing in the dataset.", + "examples": [ + "Not applicable" + ], + "guidance": "Please indicate the typical time-lag between an event and the data for that event appearing in the dataset.\\n- **Less than 1 week**: Typical time lag of less than a week.\\n- **1-2 weeks**: Typical time-lag of one to two weeks.\\n- **2-4 weeks**: Typical time-lag of two to four weeks.\\n- **1-2 months**: Typical time-lag of one to two months.\\n- **2-6 months**: Typical time-lag of two to six months.\\n- **6 months plus**: Typical time-lag of more than six months.\\n- **Variable**: Variable time-lag.\\n- **Not applicable**: Not Applicable i.e. static dataset.\\n- **Other**: Other time-lag.", + "title": "Time lag" + } + }, + "required": [ + "publishingFrequency", + "startDate", + "timeLag" + ], + "title": "Temporal", + "type": "object" + }, + "Ternary": { + "enum": [ + "Yes", + "No", + "Not stated" + ], + "title": "Ternary", + "type": "string" + }, + "TimeLagV2": { + "enum": [ + "Less than 1 week", + "1-2 weeks", + "2-4 weeks", + "1-2 months", + "2-6 months", + "More than 6 months", + "Variable", + "Not applicable", + "Other" + ], + "title": "TimeLagV2", + "type": "string" + }, + "TreatmentsInterventions": { + "properties": { + "name": { + "Literal": true, + "default": "Treatments/Interventions", + "title": "Name", + "type": "string" + }, + "subTypes": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/TreatmentsInterventionsSubTypes" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Subtypes" + } + }, + "required": [ + "subTypes" + ], + "title": "TreatmentsInterventions", + "type": "object" + }, + "TreatmentsInterventionsSubTypes": { + "enum": [ + "Vaccines", + "Preventive", + "Therapeutic", + "Others" + ], + "title": "TreatmentsInterventionsSubTypes", + "type": "string" + }, + "Url": { + "anyOf": [ + { + "format": "uri", + "minLength": 1, + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Url" + }, + "Usage": { + "additionalProperties": false, + "properties": { + "dataUseLimitation": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/DataUseLimitationV2" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please provide an indication of consent permissions for datasets and/or materials, and relates to the purposes for which datasets and/or material might be removed, stored or used. NOTE: we have extended the Data Use Ontology to include a value for NO LINKAGE.", + "guidance": "Please provide an indication of consent permissions for datasets and/or materials, and relates to the purposes for which datasets and/or material might be removed, stored or used.\\n- **General research use**: This data use limitation indicates that use is allowed for general research use for any research purpose.\\n- **Genetic studies only**: This data use limitation indicates that use is limited to genetic studies only (i.e., no phenotype-only research).\\n- **No general methods research**: This data use limitation indicates that use includes methods development research(e.g., development of software or algorithms) only within the bounds of other use limitations.\\n- **No restriction**: This data use limitation indicates there is no restriction on use.\\n- **Research-specific restrictions**: This data use limitation indicates that use is limited to studies of a certain research type.\\n- **Research use only**: This data use limitation indicates that use is limited to research purposes (e.g., does not include its use in clinical care).\\n- **No linkage**: This data use limitation indicates there is a restriction on linking to any other datasets", + "title": "Data use limitation" + }, + "dataUseRequirements": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/DataUseRequirementsV2" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please indicate fit here are any additional conditions set for use if any, multiple requirements may be provided. Please ensure that these restrictions are documented in access rights information.", + "guidance": "- Please indicate if there are any additional conditions set for use if any, multiple requirements may be provided.\\n- Please ensure that these restrictions are documented in access rights information.\\n- **Collaboration required**: This requirement indicates that the requestor must either agree to join a research consortium or collaborate with the primary study investigator(s).\\n- **Ethics approval required**: This requirement indicates that the requestor must provide documentation of local institutional review board (IRB)/ ethics review board (ERB) approval.\\n- **Geographical restrictions**: This requirement indicates that use is limited to within a specific geographic region.\\n- **Institution-specific restrictions**: This requirement indicates that use is limited to use within an approved institution.\\n- **Not for profit use**: This requirement indicates that use of the data is limited to not-for-profit organizations and not-for-profit use, non-commercial use.\\n- **Project-specific restrictions**: This requirement indicates that use is limited to use within an approved project.\\n- **Publication moratorium**: This requirement indicates that requestor agrees not to publish results of studies until a specific date.\\n- **Publication required**: This requirement indicates that requestor agrees to make results of studies using the data available to the larger scientific community.\\n- **Return to database or resource**: This requirement indicates that the requestor must return derived/enriched data to the database/resource.\\n- **Time limit on use**: This requirement indicates that use is approved for a specific number of months.\\n- **User-specific restriction**: This requirement indicates that use is limited to use by approved users.", + "title": "Data use requirements" + }, + "resourceCreator": { + "anyOf": [ + { + "$ref": "#/$defs/ShortDescription" + }, + { + "items": { + "anyOf": [ + { + "$ref": "#/$defs/ShortDescription" + }, + { + "type": "null" + } + ] + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Please provide the text that you would like included as part of any citation that credits this dataset. This is typically just the name of the publisher. No employee details should be provided.", + "examples": [ + "National Services Scotland" + ], + "guidance": "- Please provide the text that you would like included as part of any citation that credits this dataset.\\n- This is typically just the name of the publisher. No employee details should be provided.\\n- To add multiple entries, please click on **'+' symbol** to enter each separate website.\\n- **Example**: National Services Scotland", + "title": "Citation requirements" + }, + "dataUsePermissions": { + "anyOf": [ + { + "$ref": "#/$defs/DataUsePermissions" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Permissions relating to how people and materials within this dataset may be used, beyond the general access and use conditions described elsewhere in this section.", + "title": "Data Use Permissions" + }, + "duoCodes": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/DuoCodesEnum" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Machine-readable codes from the GA4GH Data Use Ontology describing the permitted or restricted uses of this dataset, for interoperability with other GA4GH-compliant systems.", + "examples": [ + "DUO:0000042" + ], + "guidance": "Please select any GA4GH Data Use Ontology (DUO) codes that describe the permitted or restricted uses of this dataset, e.g. DUO:0000042 (general research use), DUO:0000021 (ethics approval required). Multiple codes may apply to the same dataset. This is separate from Data use limitation/Data use requirements above, which use HDR UK's own free-text categories rather than the GA4GH ontology's identifiers.", + "title": "GA4GH Data Use Ontology (DUO) codes" + } + }, + "title": "Usage", + "type": "object" + }, + "Uuidv4": { + "maxLength": 36, + "minLength": 36, + "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", + "title": "Uuidv4", + "type": "string" + }, + "YesNo": { + "enum": [ + "Yes", + "No" + ], + "title": "YesNo", + "type": "string" + } + }, + "additionalProperties": false, + "properties": { + "identifier": { + "anyOf": [ + { + "$ref": "#/$defs/Uuidv4" + }, + { + "$ref": "#/$defs/Url" + }, + { + "type": "null" + } + ], + "description": "System dataset identifier.", + "examples": [ + "226fb3f1-4471-400a-8c39-2b66d46a39b6", + "https://web.www.healthdatagateway.org/dataset/226fb3f1-4471-400a-8c39-2b66d46a39b6" + ], + "guidance": "N/A", + "title": "Dataset identifier" + }, + "version": { + "allOf": [ + { + "$ref": "#/$defs/Semver" + } + ], + "description": "Dataset metadata version.", + "examples": [ + "1.1.0" + ], + "guidance": "Dataset metadata version should follow standard SEMVER naming conventions (https://semver.org). For example: 1.1.0 major.minor.patch.\\nMajor: Significant/breaking changes.\\nMinor: New features and bug fixes.\\nPatch: Minor fixes without new features.", + "title": "Dataset Version" + }, + "revisions": { + "description": "A list of persistent identifiers and version numbers for previous versions of metadata for this dataset", + "items": { + "$ref": "#/$defs/Revision" + }, + "title": "Metadata Version Revisions", + "type": "array" + }, + "issued": { + "description": "Datetime stamp of when this metadata version was initially issued", + "examples": [ + "2024-10-24T00:00:00.000Z" + ], + "format": "date-time", + "title": "Metadata Issued Datetime", + "type": "string" + }, + "modified": { + "description": "Datetime stamp of when this metadata was last modified", + "examples": [ + "2024-10-24T00:00:00.000Z" + ], + "format": "date-time", + "title": "Last Modified Datetime", + "type": "string" + }, + "summary": { + "allOf": [ + { + "$ref": "#/$defs/Summary" + } + ], + "description": "Summary of metadata describing key pieces of information." + }, + "documentation": { + "anyOf": [ + { + "$ref": "#/$defs/Documentation" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Documentation can include a rich text description of the dataset or links to media such as documents, images, presentations, videos or links to data dictionaries, profiles or dashboards. Organisations are required to confirm that they have permission to distribute any additional media.", + "title": "Documentation" + }, + "coverage": { + "anyOf": [ + { + "$ref": "#/$defs/Coverage" + }, + { + "type": "null" + } + ], + "default": null, + "description": "This information includes attributes for geographical and temporal coverage, cohort details etc. to enable a deeper understanding of the dataset content so that researchers can make decisions about the relevance of the underlying data.", + "title": "Coverage" + }, + "provenance": { + "anyOf": [ + { + "$ref": "#/$defs/Provenance" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Provenance information allows researchers to understand data within the context of its origins and can be an indicator of quality, authenticity and timeliness.", + "title": "Provenance" + }, + "accessibility": { + "allOf": [ + { + "$ref": "#/$defs/Accessibility" + } + ], + "description": "Accessibility information allows researchers to understand access, usage, limitations, formats, standards and linkage or interoperability with toolsets." + }, + "enrichmentAndLinkage": { + "anyOf": [ + { + "$ref": "#/$defs/EnrichmentAndLinkage" + }, + { + "type": "null" + } + ], + "default": null, + "description": "This section includes information about related datasets that may have previously been linked, as well as indicating if there is the opportunity to link to other datasets in the future. If a dataset has been enriched and/or derivations, scores and existing tools are available this section allows providers to indicate this to researchers.", + "title": "Enrichment and Linkage" + }, + "observations": { + "description": "This section provides an overview of observations of your dataset linked to specific points in time. Multiple observations about the dataset are encouraged to be provided, including multiple observations of the same property at different timepoints. At least one observation is required.", + "items": { + "$ref": "#/$defs/Observation" + }, + "title": "Observations", + "type": "array" + }, + "structuralMetadata": { + "anyOf": [ + { + "$ref": "#/$defs/StructuralMetadata" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Descriptions of all tables and data elements that can be included in the dataset.", + "title": "Structural metadata" + }, + "demographicFrequency": { + "anyOf": [ + { + "$ref": "#/$defs/DemographicFrequency" + }, + { + "type": "null" + } + ], + "default": null, + "description": "The statistical characteristics of a population or group within the dataset.", + "title": "Demographic frequency" + }, + "omics": { + "anyOf": [ + { + "$ref": "#/$defs/Omics" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Omics", + "title": "Omics" + } + }, + "required": [ + "identifier", + "version", + "revisions", + "issued", + "modified", + "summary", + "accessibility", + "observations" + ], + "title": "Hdruk410", + "type": "object" +} \ No newline at end of file diff --git a/.github/actions/gateway-publish/src/gateway_publish/traser.py b/.github/actions/gateway-publish/src/gateway_publish/traser.py new file mode 100644 index 0000000..2e12f9f --- /dev/null +++ b/.github/actions/gateway-publish/src/gateway_publish/traser.py @@ -0,0 +1,81 @@ +"""Check metadata with TRASER, HDR UK's translation service, the way the Gateway does. + +On create/update (non-draft) the Gateway POSTs {"metadata": ..., "extra": {...}} to TRASER's +/translate, asking for GWDM output with input and output validation on. Reproducing that call +catches problems the plain /validate endpoint would miss, such as a translation that produces +invalid GWDM. The dev TRASER is used; the live Gateway's own instance may differ. +""" + +import os +from typing import Any + +import httpx + +DEFAULT_TRASER_URL = "https://hdr-gateway-traser-dev-qmnkcg5qjq-ew.a.run.app" +# What the live Gateway stores (dataset_versions.gwdm_version, observed 2026-11-20); the +# code default is 2.0, which drops HDRUK 4.1.0-only fields. +GWDM_VERSION = "2.2" +# Mirrors the `extra` block the Gateway adds (MetadataOnboard::metadataOnboard). +EXTRA = { + "id": "placeholder", + "pid": "placeholder", + "datasetType": "Health and disease", + "publisherId": "placeholder", + "publisherName": "placeholder", +} + + +class TraserError(Exception): + pass + + +def _format_errors(errors: Any) -> list[str]: + if not isinstance(errors, list): + return [str(errors)] + return [ + f"{e.get('instancePath') or '/'}: {e.get('message')} {e.get('params') or ''}".rstrip() + if isinstance(e, dict) else str(e) + for e in errors + ] + + +def traser_errors( + metadata: dict[str, Any], + version: str, + model: str = "HDRUK", + base_url: str | None = None, + transport: httpx.BaseTransport | None = None, +) -> list[str]: + """Return readable errors from TRASER's /translate to GWDM, empty if it succeeds.""" + url = base_url or os.environ.get("TRASER_URL") or DEFAULT_TRASER_URL + with httpx.Client(base_url=url, timeout=120, transport=transport) as client: + try: + response = client.post( + "/translate", + params={ + "input_schema": model, + "input_version": version, + "output_schema": "GWDM", + "output_version": GWDM_VERSION, + "validate_input": "1", + "validate_output": "1", + }, + json={"metadata": metadata, "extra": EXTRA}, + ) + except httpx.HTTPError as e: + raise TraserError(f"Could not reach TRASER at {url}: {e}") from None + + if response.is_success: + return [] + try: + body = response.json() + except ValueError: + raise TraserError(f"TRASER returned HTTP {response.status_code}: {response.text[:300]}") from None + if response.status_code != 400: + raise TraserError(f"TRASER returned HTTP {response.status_code}: {body}") + + message = body.get("message", "") + details = body.get("details") + if isinstance(details, dict) and "validationErrors" in details: + details = details["validationErrors"] + return [f"{message}:"] + [f" {line}" for line in _format_errors(details)] diff --git a/.github/actions/gateway-publish/src/gateway_publish/validate.py b/.github/actions/gateway-publish/src/gateway_publish/validate.py new file mode 100644 index 0000000..eddd289 --- /dev/null +++ b/.github/actions/gateway-publish/src/gateway_publish/validate.py @@ -0,0 +1,58 @@ +"""Offline validation against the HDR UK schemas bundled from HDRUK/schemata-2.""" + +import json +from collections.abc import Iterator +from importlib import resources +from typing import Any + +from jsonschema import Draft202012Validator +from jsonschema.exceptions import ValidationError + +DEFAULT_MODEL = "HDRUK" + + +def available_versions(model: str = DEFAULT_MODEL) -> list[str]: + root = resources.files("gateway_publish").joinpath("schemas", model) + return sorted(p.name for p in root.iterdir() if p.is_dir()) + + +def load_schema(version: str, model: str = DEFAULT_MODEL) -> dict[str, Any]: + path = resources.files("gateway_publish").joinpath("schemas", model, version, "schema.json") + if not path.is_file(): + raise ValueError( + f"No bundled schema for {model} {version}; available: {', '.join(available_versions(model))}" + ) + return json.loads(path.read_text()) + + +def validation_errors(metadata: dict[str, Any], version: str, model: str = DEFAULT_MODEL) -> list[str]: + """Return readable error messages, empty if the metadata is valid.""" + validator = Draft202012Validator(load_schema(version, model)) + messages: list[str] = [] + for error in sorted(validator.iter_errors(metadata), key=lambda e: list(map(str, e.absolute_path))): + for leaf in _specific_errors(error): + message = f"/{'/'.join(str(p) for p in leaf.absolute_path)}: {leaf.message}" + if message not in messages: + messages.append(message) + return messages + + +def _leaves(error: ValidationError) -> Iterator[ValidationError]: + if error.context: + for child in error.context: + yield from _leaves(child) + else: + yield error + + +def _specific_errors(error: ValidationError) -> list[ValidationError]: + """The deepest failures inside nested anyOfs, rather than " is not valid". + + The schemas wrap most fields in anyOf[, null], so the "is not of type 'null'" + branch failures are noise whenever another branch explains the problem. + """ + leaves = [e for e in _leaves(error) if not (e.validator == "type" and e.validator_value == "null")] + if not leaves: + return [error] + depth = max(len(e.absolute_path) for e in leaves) + return [e for e in leaves if len(e.absolute_path) == depth] diff --git a/.github/actions/gateway-publish/tests/__init__.py b/.github/actions/gateway-publish/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/.github/actions/gateway-publish/tests/conftest.py b/.github/actions/gateway-publish/tests/conftest.py new file mode 100644 index 0000000..edcd3ed --- /dev/null +++ b/.github/actions/gateway-publish/tests/conftest.py @@ -0,0 +1,36 @@ +import json +from pathlib import Path + +import pytest + +from gateway_publish.config import GatewayConfig + +FIXTURES = Path(__file__).parent / "fixtures" +APP_ID = "test-app-id-0123456789" +CLIENT_ID = "test-client-id-9876543210" +TEAM_ID = 42 + + +@pytest.fixture +def gateway_env(monkeypatch): + monkeypatch.setenv("GATEWAY_APP_ID", APP_ID) + monkeypatch.setenv("GATEWAY_CLIENT_ID", CLIENT_ID) + monkeypatch.setenv("GATEWAY_TEAM_ID", str(TEAM_ID)) + monkeypatch.delenv("GATEWAY_BASE_URL", raising=False) + monkeypatch.delenv("GATEWAY_ALLOW_UNKNOWN_HOST", raising=False) + + +@pytest.fixture +def config(gateway_env) -> GatewayConfig: + return GatewayConfig.from_env() + + +@pytest.fixture +def example_metadata() -> dict: + return json.loads((FIXTURES / "example-hdruk410.json").read_text()) + + +@pytest.fixture(autouse=True) +def no_retry_wait(monkeypatch): + """Retried reads don't wait in tests; tests of the waits pass their own `sleep`.""" + monkeypatch.setattr("gateway_publish.client.RETRY_WAIT", 0.0) diff --git a/.github/actions/gateway-publish/tests/fixtures/demographics.golden.json b/.github/actions/gateway-publish/tests/fixtures/demographics.golden.json new file mode 100644 index 0000000..8c40025 --- /dev/null +++ b/.github/actions/gateway-publish/tests/fixtures/demographics.golden.json @@ -0,0 +1,225 @@ +{ + "identifier": null, + "version": "1.2.3", + "revisions": [], + "issued": "2026-01-02T03:04:05.000Z", + "modified": "2026-01-02T03:04:05.000Z", + "summary": { + "title": "NUH Pseudonymised Patient Demographics", + "abstract": "Pseudonymised demographic data for patients of Nottingham University Hospitals NHS Trust, including sex, gender identity, month of birth, date of death, ethnicity, marital status, religion, nationality and Lower Layer Super Output Area. Intended for linkage with NUH clinical research datasets.", + "contactPoint": "data.access@example.org", + "populationSize": -1, + "keywords": [ + "demographics", + "NHS", + "Nottingham", + "pseudonymised", + "linkage", + "ethnicity" + ], + "dataCustodian": { + "identifier": "74", + "name": "Nottingham University Hospitals - NHS Trust", + "contactPoint": "data.access@example.org" + } + }, + "documentation": { + "description": "One row per patient, pseudonymised for research use. Dates of birth are given as the first of the month, and home postcode is replaced by the Lower Layer Super Output Area. Coded fields (sex, gender identity, ethnicity, marital status, religion) are provided as both a code and its description, following the NHS Data Dictionary where one exists. Records carry ETL and pipeline run metadata. Access requires a data access request." + }, + "coverage": { + "spatial": "Nottinghamshire, England", + "typicalAgeRangeMin": 0, + "typicalAgeRangeMax": 110 + }, + "provenance": { + "origin": { + "purpose": [ + "Care" + ], + "source": [ + "EPR" + ], + "collectionSource": [ + "Secondary care - In-patients", + "Secondary care - Outpatients", + "Secondary care - Accident and Emergency" + ], + "datasetType": [ + { + "name": "Socioeconomic", + "subTypes": [ + "Ethnicity", + "Marital status", + "Religion" + ] + } + ] + }, + "temporal": { + "publishingFrequency": "Quarterly", + "startDate": "2009-01-01", + "timeLag": "1-2 months" + } + }, + "accessibility": { + "access": { + "accessRights": "In Progress", + "accessServiceCategory": "TRE/SDE", + "jurisdiction": [ + "GB-ENG" + ], + "dataController": "Nottingham University Hospitals NHS Trust" + }, + "formatAndStandards": { + "vocabularyEncodingScheme": [ + "NHS NATIONAL CODES" + ], + "conformsTo": [ + "NHS DATA DICTIONARY" + ], + "language": [ + "en" + ], + "format": [ + "CSV" + ] + } + }, + "observations": [], + "structuralMetadata": { + "tables": [ + { + "name": "CoreDemographics", + "description": "Pseudonymised patient demographic data (sex, DOB, ethnicity, LLSOA, etc.) for linkage with clinical datasets.", + "columns": [ + { + "name": "etl_id", + "dataType": "integer", + "description": "Internal identifier for the ETL batch run that loaded this record.", + "sensitive": false + }, + { + "name": "etl_date", + "dataType": "datetime", + "description": "Date and time the ETL process ran.", + "sensitive": false + }, + { + "name": "core_pid_published_runid", + "dataType": "integer", + "description": "pipeline meta data", + "sensitive": false + }, + { + "name": "ndo_run_date", + "dataType": "date", + "description": null, + "sensitive": false + }, + { + "name": "pseudo_nhs_number", + "dataType": "string", + "description": "The NHS NUMBER, the primary identifier of a PERSON, is a unique identifier for a PATIENT within the NHS in England and Wales. Pseudonymised for research use.", + "sensitive": true + }, + { + "name": "dob_first_of_month", + "dataType": "date", + "description": "First of month proxy date of birth.", + "sensitive": false + }, + { + "name": "deceased", + "dataType": "integer", + "description": "an integer code defining wether the participant is deceased", + "sensitive": false + }, + { + "name": "date_of_death", + "dataType": "date", + "description": "The date of the participant's death", + "sensitive": false + }, + { + "name": "sex", + "dataType": "string", + "description": "The sex of PATIENTS intended to use a WARD indicated in the WARD OPERATIONAL PLANS, with the addition of Home Leave.\nhttps://www.datadictionary.nhs.uk/data_elements/sex_of_patients_code.html", + "sensitive": false + }, + { + "name": "sex_desc", + "dataType": "string", + "description": "The sex of PATIENTS intended to use a WARD indicated in the WARD OPERATIONAL PLANS, with the addition of Home Leave.\nhttps://www.datadictionary.nhs.uk/data_elements/sex_of_patients_code.html", + "sensitive": false + }, + { + "name": "gender_identity", + "dataType": "string", + "description": "The gender identity of a PERSON as stated by the PERSON.\nhttps://www.datadictionary.nhs.uk/attributes/gender_identity_code.html", + "sensitive": false + }, + { + "name": "gender_identity_desc", + "dataType": "string", + "description": "The gender identity of a PERSON as stated by the PERSON.\nhttps://www.datadictionary.nhs.uk/attributes/gender_identity_code.html", + "sensitive": false + }, + { + "name": "admin_gender", + "dataType": "string", + "description": "a code detailing the patient's gender from and administrative perspective", + "sensitive": false + }, + { + "name": "ethnicity", + "dataType": "string", + "description": "The ethnicity of a PERSON, as specified by the PERSON.", + "sensitive": false + }, + { + "name": "ethnicity_desc", + "dataType": "string", + "description": "The ethnicity of a PERSON, as specified by the PERSON.", + "sensitive": false + }, + { + "name": "marital_status", + "dataType": "string", + "description": "An indicator to identify the legal marital status of a PERSON.\nhttps://www.datadictionary.nhs.uk/data_elements/person_marital_status.html", + "sensitive": false + }, + { + "name": "marital_status_desc", + "dataType": "string", + "description": "An indicator to identify the legal marital status of a PERSON.\nhttps://www.datadictionary.nhs.uk/data_elements/person_marital_status.html", + "sensitive": false + }, + { + "name": "religion", + "dataType": "string", + "description": "The RELIGIOUS OR OTHER BELIEF SYSTEM AFFILIATION of a PERSON , as specified by a PERSON .\nhttps://archive.datadictionary.nhs.uk/DD%20Release%20May%202024/attributes/religious_or_other_belief_system_affiliation_code.html", + "sensitive": false + }, + { + "name": "religion_desc", + "dataType": "string", + "description": "The RELIGIOUS OR OTHER BELIEF SYSTEM AFFILIATION of a PERSON , as specified by a PERSON .\nhttps://archive.datadictionary.nhs.uk/DD%20Release%20May%202024/attributes/religious_or_other_belief_system_affiliation_code.html", + "sensitive": false + }, + { + "name": "nationality", + "dataType": "string", + "description": "a text description of the patient's nationality", + "sensitive": false + }, + { + "name": "llsoa", + "dataType": "string", + "description": "Lower Layer Super Output Area, derived from PATIENT POSTCODE for geographic analysis while preserving patient privacy.", + "sensitive": false + } + ] + } + ] + } +} diff --git a/.github/actions/gateway-publish/tests/fixtures/demographics/demographics.yaml b/.github/actions/gateway-publish/tests/fixtures/demographics/demographics.yaml new file mode 100644 index 0000000..bf9bfef --- /dev/null +++ b/.github/actions/gateway-publish/tests/fixtures/demographics/demographics.yaml @@ -0,0 +1,267 @@ +id: https://health-informatics-uon.github.io/nuh-data/datasets/demographics +name: demographics +title: demographics +description: >- + demographics + +license: demographics + +created_by: https://github.com/Health-Informatics-UoN + +annotations: + data_custodian: Nottingham University Hospitals NHS Trust + created_by_name: Nottingham University Hospitals NHS Trust + geographic_coverage: Nottinghamshire, England + data_standards: OTHER + access_request_type: Data Access Request + access_status: In Progress + +keywords: + - NHS + - Nottingham + - clinical + +prefixes: + linkml: https://w3id.org/linkml/ + SNOMED: http://snomed.info/id/ + ICD: http://id.who.int/icd/entity/ + OPCS: https://datadictionary.nhs.uk/attributes/opcs_code/ + NICIP: https://www.datadictionary.nhs.uk/nhs_business_definitions/nicip_code/ + dmd: https://dmd.nhs.uk/concept/ + +default_prefix: demographics +default_range: string + +imports: + - linkml:types + +classes: + CoreDemographics: + description: >- + Pseudonymised patient demographic data (sex, DOB, ethnicity, LLSOA, etc.) for linkage with clinical datasets. + tree_root: true + slots: + - etl_id + - etl_date + - core_pid_published_runid + - ndo_run_date + - pseudo_nhs_number + - dob_first_of_month + - deceased + - date_of_death + - sex + - sex_desc + - gender_identity + - gender_identity_desc + - admin_gender + - ethnicity + - ethnicity_desc + - marital_status + - marital_status_desc + - religion + - religion_desc + - nationality + - llsoa + +slots: + etl_id: + description: "Internal identifier for the ETL batch run that loaded this record." + range: integer + required: false + annotations: + sql_column: ETL_ID + sql_type: "INT" + + etl_date: + description: "Date and time the ETL process ran." + range: datetime + required: false + annotations: + sql_column: ETL_DATE + sql_type: "DATETIME" + + ndo_run_date: + description: "" + range: date + required: false + annotations: + sql_column: NDO_RUN_DATE + sql_type: DATE + + pseudo_nhs_number: + description: >- + The NHS NUMBER, the primary identifier of a PERSON, is a unique identifier + for a PATIENT within the NHS in England and Wales. Pseudonymised for + research use. + range: string + required: false + annotations: + sql_column: PSEUDO_NHS_NUMBER + sql_type: "VARBINARY(100)" + sensitivity: pseudonymised + + dob_first_of_month: + description: "First of month proxy date of birth." + range: date + required: false + annotations: + sql_column: DOB_FIRST_OF_MONTH + sql_type: "DATE" + + llsoa: + description: >- + Lower Layer Super Output Area, derived from PATIENT POSTCODE for + geographic analysis while preserving patient privacy. + range: string + required: false + annotations: + sql_column: LLSOA + sql_type: "NVARCHAR(100)" + + core_pid_published_runid: + description: "pipeline meta data" + range: integer + required: false + annotations: + sql_column: CORE_PID_PUBLISHED_RUNID + sql_type: "INT" + + deceased: + description: "an integer code defining wether the participant is deceased" + range: integer + required: false + annotations: + sql_column: DECEASED + sql_type: "INT" + + date_of_death: + description: "The date of the participant's death" + range: date + required: false + annotations: + sql_column: DATE_OF_DEATH + sql_type: "DATE" + + sex_desc: + description: >- + The sex of PATIENTS intended to use a WARD indicated in the WARD OPERATIONAL PLANS, with the addition of Home Leave. + + https://www.datadictionary.nhs.uk/data_elements/sex_of_patients_code.html + range: string + required: false + annotations: + sql_column: SEX_DESC + sql_type: "NVARCHAR(64)" + + sex: + description: >- + The sex of PATIENTS intended to use a WARD indicated in the WARD OPERATIONAL PLANS, with the addition of Home Leave. + + https://www.datadictionary.nhs.uk/data_elements/sex_of_patients_code.html + range: string + required: false + annotations: + sql_column: SEX + sql_type: "NVARCHAR(6)" + + gender_identity_desc: + description: >- + The gender identity of a PERSON as stated by the PERSON. + + https://www.datadictionary.nhs.uk/attributes/gender_identity_code.html + range: string + required: false + annotations: + sql_column: GENDER_IDENTITY_DESC + sql_type: "NVARCHAR(64)" + + gender_identity: + description: >- + The gender identity of a PERSON as stated by the PERSON. + + https://www.datadictionary.nhs.uk/attributes/gender_identity_code.html + range: string + required: false + annotations: + sql_column: GENDER_IDENTITY + sql_type: "NVARCHAR(6)" + + admin_gender: + description: "a code detailing the patient's gender from and administrative perspective" + range: string + required: false + annotations: + sql_column: ADMIN_GENDER + sql_type: "NVARCHAR(64)" + + ethnicity_desc: + description: >- + The ethnicity of a PERSON, as specified by the PERSON. + + range: string + required: false + annotations: + sql_column: ETHNICITY_DESC + sql_type: "NVARCHAR(64)" + + ethnicity: + description: >- + The ethnicity of a PERSON, as specified by the PERSON. + + range: string + required: false + annotations: + sql_column: ETHNICITY + sql_type: "NVARCHAR(6)" + + marital_status_desc: + description: >- + An indicator to identify the legal marital status of a PERSON. + + https://www.datadictionary.nhs.uk/data_elements/person_marital_status.html + range: string + required: false + annotations: + sql_column: MARITAL_STATUS_DESC + sql_type: "NVARCHAR(64)" + + marital_status: + description: >- + An indicator to identify the legal marital status of a PERSON. + + https://www.datadictionary.nhs.uk/data_elements/person_marital_status.html + range: string + required: false + annotations: + sql_column: MARITAL_STATUS + sql_type: "NVARCHAR(6)" + + religion_desc: + description: >- + The RELIGIOUS OR OTHER BELIEF SYSTEM AFFILIATION of a PERSON , as specified by a PERSON . + + https://archive.datadictionary.nhs.uk/DD%20Release%20May%202024/attributes/religious_or_other_belief_system_affiliation_code.html + range: string + required: false + annotations: + sql_column: RELIGION_DESC + sql_type: "NVARCHAR(64)" + + religion: + description: >- + The RELIGIOUS OR OTHER BELIEF SYSTEM AFFILIATION of a PERSON , as specified by a PERSON . + + https://archive.datadictionary.nhs.uk/DD%20Release%20May%202024/attributes/religious_or_other_belief_system_affiliation_code.html + range: string + required: false + annotations: + sql_column: RELIGION + sql_type: "NVARCHAR(6)" + + nationality: + description: a text description of the patient's nationality + range: string + required: false + annotations: + sql_column: NATIONALITY + sql_type: "NVARCHAR(50)" diff --git a/.github/actions/gateway-publish/tests/fixtures/demographics/gateway/gateway.yaml b/.github/actions/gateway-publish/tests/fixtures/demographics/gateway/gateway.yaml new file mode 100644 index 0000000..5d08e55 --- /dev/null +++ b/.github/actions/gateway-publish/tests/fixtures/demographics/gateway/gateway.yaml @@ -0,0 +1,8 @@ +# HDR UK Gateway settings for this dataset. +team_id: 74 +team_name: Nottingham University Hospitals - NHS Trust +# Status each release publishes with: DRAFT or ACTIVE (listed in the Gateway's catalogue). +status: DRAFT +# Written by `gateway-publish create`. Edit by hand only to recover a lost ID. +dataset_id: null +pid: null diff --git a/.github/actions/gateway-publish/tests/fixtures/demographics/gateway/metadata.yaml b/.github/actions/gateway-publish/tests/fixtures/demographics/gateway/metadata.yaml new file mode 100644 index 0000000..73c9076 --- /dev/null +++ b/.github/actions/gateway-publish/tests/fixtures/demographics/gateway/metadata.yaml @@ -0,0 +1,63 @@ +# Test catalogue fields for the demographics schema, with made-up values. + +summary: + title: NUH Pseudonymised Patient Demographics + abstract: >- + Pseudonymised demographic data for patients of Nottingham University Hospitals NHS + Trust, including sex, gender identity, month of birth, date of death, ethnicity, + marital status, religion, nationality and Lower Layer Super Output Area. Intended + for linkage with NUH clinical research datasets. + contactPoint: data.access@example.org + populationSize: -1 + keywords: + - demographics + - NHS + - Nottingham + - pseudonymised + - linkage + - ethnicity + +documentation: + description: >- + One row per patient, pseudonymised for research use. Dates of birth are given as the + first of the month, and home postcode is replaced by the Lower Layer Super Output Area. + Coded fields (sex, gender identity, ethnicity, marital status, religion) are provided as + both a code and its description, following the NHS Data Dictionary where one exists. + Records carry ETL and pipeline run metadata. Access requires a data access request. + +coverage: + spatial: Nottinghamshire, England + typicalAgeRangeMin: 0 + typicalAgeRangeMax: 110 + +provenance: + origin: + purpose: [Care] + source: [EPR] + collectionSource: + - Secondary care - In-patients + - Secondary care - Outpatients + - Secondary care - Accident and Emergency + datasetType: + - name: Socioeconomic + subTypes: [Ethnicity, Marital status, Religion] + temporal: + publishingFrequency: Quarterly + startDate: "2009-01-01" + # No endDate for an ongoing dataset: HDRUK allows "CONTINUOUS", but it fails + # TRASER's translation to GWDM 2.2 (the live Gateway would reject an ACTIVE push). + timeLag: 1-2 months + +accessibility: + access: + accessRights: In Progress # replace with the access-request page URL when there is one + accessServiceCategory: TRE/SDE + jurisdiction: [GB-ENG] + dataController: Nottingham University Hospitals NHS Trust + formatAndStandards: + vocabularyEncodingScheme: [NHS NATIONAL CODES] + conformsTo: [NHS DATA DICTIONARY] + language: [en] + format: [CSV] + +observations: [] diff --git a/.github/actions/gateway-publish/tests/fixtures/example-hdruk300.json b/.github/actions/gateway-publish/tests/fixtures/example-hdruk300.json new file mode 100644 index 0000000..725a9ff --- /dev/null +++ b/.github/actions/gateway-publish/tests/fixtures/example-hdruk300.json @@ -0,0 +1,160 @@ +{ + "identifier": "https://web.www.healthdatagateway.org/19525c5f-92ee-41b6-bb79-673624b27bdd", + "version": "3.0.0", + "issued": "2021-05-10T00:00:00.000Z", + "modified": "2021-05-10T00:00:00.000Z", + "revisions": [], + "summary": { + "title": "Improving Access to Psychological Therapies Data Set", + "abstract": "Patient-level data set that captures information about people in contact with services commissioned as part of the adult Improving Access to Psychological Services (IAPT) programme.", + "contactPoint": "enquiries@nhsdigital.nhs.uk", + "keywords": " Depression,Anxiety,CBT,Counselling,Talking theraphy,Cognitive,National Core Study,NCS", + "alternateIdentifiers": null, + "doiName": null, + "populationSize": -1, + "dataProvider": { + "identifier": "https://web.www.healthdatagateway.org/5f86cd34980f41c6f02261f4", + "name": "NHS DIGITAL", + "logo": null, + "description": null, + "contactPoint": null, + "memberOf": "ALLIANCE" + } + }, + "documentation": { + "description": "Collecting information about people in contact with adult psychological therapy services in England. The IAPT data set was developed with the IAPT programme as a patient level, output based, secondary uses data set which aims to deliver robust, comprehensive, nationally consistent and comparable information for patients accessing NHS-funded IAPT services in England. This national data set has been collected since April 2012 and is a mandatory submission for all NHS funded care, including care delivered by independent sector healthcare providers. Data collection on patients with depression and anxiety disorders that are offered psychological therapies, so that we can improve the delivery of care for these conditions.\n\nProviders of NHS-funded IAPT services are required to submit data to NHS Digital on a monthly basis.\n\nAs a secondary uses data set the IAPT data set re-uses clinical and operational data for purposes other than direct patient care. It defines the data items, definitions and associated value sets extracted or derived from local information systems and sent to NHS Digital for analysis purposes. Timescales for dissemination can be found under 'Our Service Levels' at the following link: https://digital.nhs.uk/services/data-access-request-service-dars/data-access-request-service-dars-process", + "associatedMedia": null, + "inPipeline": null + }, + "coverage": { + "spatial": "United Kingdom,England", + "followup": "0 - 6 MONTHS", + "pathway": null, + "gender": null, + "typicalAgeRangeMin": 18, + "typicalAgeRangeMax": 150, + "datasetCompleteness": null, + "materialType": [ + "None/not available" + ] + }, + "provenance": { + "origin": { + "purpose": [ + "Other", + "Administrative" + ], + "source": [ + "EPR" + ], + "datasetType": "Health and disease", + "datasetSubType": "Not applicable", + "collectionSource": null, + "imageContrast": null + }, + "temporal": { + "distributionReleaseDate": null, + "startDate": "2012-04-01", + "endDate": null, + "timeLag": "2-6 months", + "publishingFrequency": "Monthly" + } + }, + "accessibility": { + "usage": { + "dataUseLimitation": [ + "No restriction" + ], + "dataUseRequirements": null, + "resourceCreator": null + }, + "access": { + "accessRights": "https://digital.nhs.uk/services/data-access-request-service-dars", + "accessService": "Once your DARS application has been approved, data will be made available either by secure file transfer or through the Data Access Environment (DAE). BL\n\nSecure file transfer: https://digital.nhs.uk/services/transfer-data-securely\n\nDAE: https://digital.nhs.uk/services/data-access-environment-dae", + "accessRequestCost": "https://digital.nhs.uk/services/data-access-request-service-dars/data-access-request-service-dars-charges", + "deliveryLeadTime": null, + "jurisdiction": "GB-ENG", + "dataProcessor": null, + "dataController": "NHS DIGITAL", + "accessServiceCategory": null, + "accessMode": "New project" + }, + "formatAndStandards": { + "vocabularyEncodingScheme": [ + "ODS", + "SNOMED CT", + "NHS NATIONAL CODES", + "ICD10" + ], + "conformsTo": [ + "NHS DATA DICTIONARY" + ], + "language": "en", + "format": "CSV" + } + }, + "enrichmentAndLinkage": { + "tools": null, + "derivedFrom": null, + "isPartOf": null, + "linkableDatasets": null, + "similarToDatasets": null, + "publicationAboutDataset": null, + "investigations": null, + "publicationUsingDataset": null + }, + "observations": [ + { + "observedNode": "Event", + "measuredValue": 114125, + "measuredProperty": "COUNT", + "observationDate": "2021-02-25", + "disambiguatingDescription": "In December 2020 there were 114,125 referrals made into IAPT services in England." + }, + { + "observedNode": "Event", + "measuredValue": 81578, + "measuredProperty": "COUNT", + "observationDate": "2021-02-25", + "disambiguatingDescription": "In December 2020, 81,578 referrals into IAPT services in England started a course of treatment." + }, + { + "observedNode": "Event", + "measuredValue": 48331, + "measuredProperty": "COUNT", + "observationDate": "2021-02-25", + "disambiguatingDescription": "In December 2020, 48,331 referrals into IAPT services in England completed a course of treatment." + } + ], + "structuralMetadata": { + "tables": [ + { + "name": "IAPT.iapt.Rep_Referral", + "description": "IAPT.iapt.Rep_Referral", + "columns": [ + { + "name": "Count of number of Non-guided Self Help (Computer) sessions (derived)", + "description": "Count of number of Non-guided Self Help (Computer) sessions (derived)", + "dataType": "Number", + "sensitive": false, + "values": null + } + ] + }, + { + "name": "IAPT.iapt.Rep_Referral", + "description": "IAPT.iapt.Rep_Referral", + "columns": [ + { + "name": "Pseudonymised Service Request Identifier", + "description": "A request for the provision of care services to a PATIENT.", + "dataType": "String", + "sensitive": false, + "values": null + } + ] + } + ], + "syntheticDataWebLink": null + } +} \ No newline at end of file diff --git a/.github/actions/gateway-publish/tests/fixtures/example-hdruk410-structural.json b/.github/actions/gateway-publish/tests/fixtures/example-hdruk410-structural.json new file mode 100644 index 0000000..863e3d5 --- /dev/null +++ b/.github/actions/gateway-publish/tests/fixtures/example-hdruk410-structural.json @@ -0,0 +1,125 @@ +{ + "identifier": "226fb3f1-4471-400a-8c39-2b66d46a39b6", + "modified": "2025-12-19T12:18:11+00:00", + "issued": "2025-12-19T12:18:11+00:00", + "observations": [], + "coverage": { + "followUp": null, + "materialType": [ + "None/not available" + ], + "spatial": "UK" + }, + "provenance": { + "origin": { + "datasetType": [ + { + "name": "Health and disease", + "subTypes": [] + } + ] + }, + "temporal": { + "timeLag": "Variable", + "startDate": "2025-12-01T00:00:00.000Z", + "publishingFrequency": "Monthly" + } + }, + "accessibility": { + "formatAndStandards": { + "format": [ + "text", + "tab-separted-values", + "csv" + ], + "language": [ + "en" + ], + "conformsTo": [ + "LOCAL", + "BNF", + "DDI", + "DCAT" + ], + "vocabularyEncodingScheme": [ + "LOCAL" + ] + }, + "access": { + "dataProcessor": "__TestTeam", + "dataController": "__TestTeam", + "jurisdiction": [ + "UK" + ], + "deliveryLeadTime": null, + "accessRequestCost": "https://example.org/applying-access-resource", + "accessService": null, + "accessRights": "https://example.org/applying-access-resource" + }, + "usage": { + "dataUseRequirements": [], + "dataUseLimitation": [ + "General research use" + ], + "duoCodes": [ + "DUO:0000042", + "DUO:0000021" + ], + "dataUsePermissions": { + "patientRecontact": "Yes" + } + } + }, + "documentation": { + "description": "Example" + }, + "summary": { + "contactPoint": "test.custodian@example.com", + "populationSize": -1, + "dataCustodian": { + "memberOf": null, + "contactPoint": "test.custodian@example.com", + "description": "__TestTeam", + "logo": null, + "name": "__TestTeam", + "identifier": "133" + }, + "abstract": "Example", + "title": "Example" + }, + "revisions": [ + { + "version": "1.0.0", + "url": "http://www.example.com/" + } + ], + "version": "1.0.0", + "structuralMetadata": { + "tables": [ + { + "name": "sact_regimen", + "description": "One row per systemic anti-cancer therapy regimen.", + "columns": [ + { + "name": "regimen_id", + "dataType": "string", + "description": "Identifier for the regimen.", + "sensitive": false + }, + { + "name": "start_date", + "dataType": "date", + "description": "Date the regimen started.", + "sensitive": false + }, + { + "name": "nhs_number", + "dataType": "string", + "description": "Patient NHS number.", + "sensitive": true + } + ] + } + ] + } +} diff --git a/.github/actions/gateway-publish/tests/fixtures/example-hdruk410.json b/.github/actions/gateway-publish/tests/fixtures/example-hdruk410.json new file mode 100644 index 0000000..d257c67 --- /dev/null +++ b/.github/actions/gateway-publish/tests/fixtures/example-hdruk410.json @@ -0,0 +1,100 @@ +{ + "identifier": "226fb3f1-4471-400a-8c39-2b66d46a39b6", + "modified": "2025-12-19T12:18:11+00:00", + "issued": "2025-12-19T12:18:11+00:00", + "observations": [], + "coverage": { + "followUp": null, + "materialType": [ + "None/not available" + ], + "spatial": "UK" + }, + "provenance": { + "origin": { + "datasetType": [ + { + "name": "Health and disease", + "subTypes": [] + } + ] + }, + "temporal": { + "timeLag": "Variable", + "startDate": "2025-12-01T00:00:00.000Z", + "publishingFrequency": "Monthly" + } + }, + "accessibility": { + "formatAndStandards": { + "format": [ + "text", + "tab-separted-values", + "csv" + ], + "language": [ + "en" + ], + "conformsTo": [ + "LOCAL", + "BNF", + "DDI", + "DCAT" + ], + "vocabularyEncodingScheme": [ + "LOCAL" + ] + }, + "access": { + "dataProcessor": "__TestTeam", + "dataController": "__TestTeam", + "jurisdiction": [ + "UK" + ], + "deliveryLeadTime": null, + "accessRequestCost": "https://example.org/applying-access-resource", + "accessService": null, + "accessRights": "https://example.org/applying-access-resource" + }, + "usage": { + "dataUseRequirements": [], + "dataUseLimitation": [ + "General research use" + ], + "duoCodes": [ + "DUO:0000042", + "DUO:0000021" + ], + "dataUsePermissions": { + "patientRecontact": "Yes" + } + } + }, + "documentation": { + "description": "Example" + }, + "summary": { + "contactPoint": "test.custodian@example.com", + "populationSize": -1, + "dataCustodian": { + "memberOf": null, + "contactPoint": "test.custodian@example.com", + "description": "__TestTeam", + "logo": null, + "name": "__TestTeam", + "identifier": "133" + }, + "abstract": "Example", + "title": "Example" + }, + "revisions": [ + { + "version": "1.0.0", + "url": "http://www.example.com/" + } + ], + "version": "1.0.0", + "structuralMetadata": { + "tables": [] + } +} diff --git a/.github/actions/gateway-publish/tests/test_build.py b/.github/actions/gateway-publish/tests/test_build.py new file mode 100644 index 0000000..8b98af0 --- /dev/null +++ b/.github/actions/gateway-publish/tests/test_build.py @@ -0,0 +1,163 @@ +import json +import os +import shutil +from datetime import UTC, datetime +from pathlib import Path + +import pytest +import yaml + +from gateway_publish.build import BuildError, DatasetDir, build_payload, find_todos, structural_metadata +from gateway_publish.validate import validation_errors + +# A copy of the demographics LinkML schema from nuh-data, with made-up catalogue values. +FIXTURE = Path(__file__).parent / "fixtures" / "demographics" +DEMOGRAPHICS_SCHEMA = FIXTURE / "demographics.yaml" +GOLDEN = Path(__file__).parent / "fixtures" / "demographics.golden.json" +NOW = datetime(2026, 1, 2, 3, 4, 5, tzinfo=UTC) + + +@pytest.fixture +def demographics(tmp_path) -> Path: + """A writable copy of the demographics fixture.""" + root = tmp_path / "demographics" + shutil.copytree(FIXTURE, root) + return root + + +def edit_yaml(path: Path, change) -> None: + data = yaml.safe_load(path.read_text()) + change(data) + path.write_text(yaml.safe_dump(data)) + + +def test_golden(demographics): + """Regenerate with UPDATE_GOLDEN=1 after an intended change, and review the diff.""" + payload = build_payload(DatasetDir.find(demographics), "1.2.3", now=NOW) + if os.environ.get("UPDATE_GOLDEN"): + GOLDEN.write_text(json.dumps(payload, indent=2, ensure_ascii=False) + "\n") + assert payload == json.loads(GOLDEN.read_text()) + + +def test_built_payload_is_valid(demographics): + payload = build_payload(DatasetDir.find(demographics), "1.2.3", now=NOW) + assert validation_errors(payload, "4.1.0") == [] + + +def test_build_fills_gateway_fields(demographics): + edit_yaml(demographics / "gateway" / "gateway.yaml", lambda g: g.update(pid="abc-123")) + payload = build_payload(DatasetDir.find(demographics), "1.2.3", now=NOW) + assert payload["version"] == "1.2.3" + assert payload["identifier"] == "abc-123" + assert payload["issued"] == payload["modified"] == "2026-01-02T03:04:05.000Z" + assert payload["summary"]["dataCustodian"] == { + "identifier": "74", + "name": "Nottingham University Hospitals - NHS Trust", + "contactPoint": "data.access@example.org", + } + + +def test_structural_metadata_from_linkml(): + tables = structural_metadata(DEMOGRAPHICS_SCHEMA)["tables"] + assert [t["name"] for t in tables] == ["CoreDemographics"] + columns = {c["name"]: c for c in tables[0]["columns"]} + assert len(columns) == 21 + assert columns["pseudo_nhs_number"]["sensitive"] is True + assert columns["sex"]["sensitive"] is False + assert columns["etl_id"]["dataType"] == "integer" + assert columns["dob_first_of_month"]["dataType"] == "date" + # An empty LinkML description becomes null; HDRUK rejects "". + assert columns["ndo_run_date"]["description"] is None + + +def test_enum_range_is_string_with_values(tmp_path): + schema = tmp_path / "s.yaml" + schema.write_text(yaml.safe_dump({ + "id": "https://example.org/s", "name": "s", "imports": ["linkml:types"], + "prefixes": {"linkml": "https://w3id.org/linkml/"}, "default_range": "string", + "classes": {"T": {"tree_root": True, "slots": ["colour"]}}, + "slots": {"colour": {"range": "Colour"}}, + "enums": {"Colour": {"permissible_values": {"R": {"description": "Red"}, "B": {}}}}, + }, sort_keys=False)) + column = structural_metadata(schema)["tables"][0]["columns"][0] + assert column["dataType"] == "string" + assert column["values"] == [{"name": "R", "description": "Red"}, {"name": "B", "description": None}] + + +def test_todos_block_build(demographics): + edit_yaml(demographics / "gateway" / "metadata.yaml", + lambda m: m["summary"].update(contactPoint="TODO who?", keywords=["a", "TODO"])) + with pytest.raises(BuildError, match="/summary/contactPoint, /summary/keywords/1"): + build_payload(DatasetDir.find(demographics), "1.2.3") + + +def test_metadata_must_not_set_generated_fields(demographics): + def change(m): + m["version"] = "9.9.9" + m["summary"]["dataCustodian"] = {"name": "x"} + edit_yaml(demographics / "gateway" / "metadata.yaml", change) + with pytest.raises(BuildError, match="version, summary/dataCustodian"): + build_payload(DatasetDir.find(demographics), "1.2.3") + + +def test_dataset_dir_needs_one_schema(demographics): + (demographics / "other.yaml").write_text("id: x\n") + with pytest.raises(BuildError, match="More than one \\*.yaml .* pass the LinkML schema with --schema"): + DatasetDir.find(demographics) + assert DatasetDir.find(demographics, schema=demographics / "demographics.yaml").schema.name == "demographics.yaml" + + +def test_schema_found_in_schemas_folder(demographics): + """The dataset-repo layout: schemas/.yaml next to gateway/.""" + (demographics / "schemas").mkdir() + (demographics / "demographics.yaml").rename(demographics / "schemas" / "demographics.yaml") + assert DatasetDir.find(demographics).schema == demographics / "schemas" / "demographics.yaml" + + +def test_no_schema(demographics): + (demographics / "demographics.yaml").unlink() + with pytest.raises(BuildError, match="No LinkML schema"): + DatasetDir.find(demographics) + + +def test_bad_status(demographics): + edit_yaml(demographics / "gateway" / "gateway.yaml", lambda g: g.update(status="LIVE")) + with pytest.raises(BuildError, match="status must be one of ACTIVE, DRAFT"): + build_payload(DatasetDir.find(demographics), "1.2.3") + + +def test_record_created_keeps_comments(demographics): + dataset = DatasetDir.find(demographics) + dataset.record_created(2080, "abc-123") + text = dataset.gateway.read_text() + assert "# Status each release publishes with" in text + assert "dataset_id: 2080\n" in text and "pid: abc-123\n" in text + assert yaml.safe_load(text)["status"] == "DRAFT" + + +def test_gateway_yaml_needs_team(demographics): + edit_yaml(demographics / "gateway" / "gateway.yaml", lambda g: g.pop("team_id")) + with pytest.raises(BuildError, match="'team_id' is required"): + build_payload(DatasetDir.find(demographics), "1.2.3") + + +def test_unquoted_dates_stay_strings(demographics): + path = demographics / "gateway" / "metadata.yaml" + path.write_text(path.read_text().replace('startDate: "2009-01-01"', "startDate: 2009-01-01")) + payload = build_payload(DatasetDir.find(demographics), "1.2.3") + assert payload["provenance"]["temporal"]["startDate"] == "2009-01-01" + + +@pytest.mark.parametrize("version, expected", [("1.2.3", "1.2.3"), ("v1.2.3", "1.2.3")]) +def test_version(demographics, version, expected): + assert build_payload(DatasetDir.find(demographics), version)["version"] == expected + + +@pytest.mark.parametrize("version", ["1.2", "1.2.3-rc.1", "latest", ""]) +def test_bad_version(demographics, version): + with pytest.raises(BuildError, match="must be major.minor.patch"): + build_payload(DatasetDir.find(demographics), version) + + +def test_find_todos(): + assert find_todos({"a": "TODO x", "b": ["ok", " TODO"], "c": {"d": 1}}) == ["/a", "/b/1"] diff --git a/.github/actions/gateway-publish/tests/test_cli.py b/.github/actions/gateway-publish/tests/test_cli.py new file mode 100644 index 0000000..08108a6 --- /dev/null +++ b/.github/actions/gateway-publish/tests/test_cli.py @@ -0,0 +1,282 @@ +import json + +import httpx +import pytest +import yaml + +from gateway_publish import cli +from gateway_publish.client import GatewayClient +from gateway_publish.config import GatewayConfig +from tests.conftest import APP_ID, CLIENT_ID, FIXTURES, TEAM_ID +from tests.test_build import demographics, edit_yaml # noqa: F401 (fixture) + + +class FakeGateway: + """Minimal in-memory stand-in for the team dataset endpoints.""" + + def __init__(self, bump_version_on_update: bool = True): + self.datasets: dict[int, list[dict]] = {} + self.statuses: dict[int, str] = {} + self.bump_version_on_update = bump_version_on_update + self.requests: list[httpx.Request] = [] + + @staticmethod + def _unwrap(metadata: dict) -> dict: + # The Gateway accepts a bare document or the {"metadata", "schemaModel", "schemaVersion"} envelope. + return metadata["metadata"] if "schemaModel" in metadata else metadata + + def __call__(self, request: httpx.Request) -> httpx.Response: + self.requests.append(request) + parts = request.url.path.rstrip("/").split("/") + dataset_id = int(parts[-1]) if parts[-1].isdigit() else None + if request.method == "POST": + new_id = len(self.datasets) + 1 + body = json.loads(request.content) + self.statuses[new_id] = body["status"] + self.datasets[new_id] = [self._unwrap(body["metadata"])] + return httpx.Response(201, json={"message": "created", "data": new_id, "version": 1000 + new_id}) + if dataset_id not in self.datasets: + return httpx.Response(404, json={"message": "Dataset not found"}) + versions = self.datasets[dataset_id] + if request.method == "PUT": + metadata = self._unwrap(json.loads(request.content)["metadata"]) + if self.bump_version_on_update: + versions.append(metadata) + else: + versions[-1] = metadata + return httpx.Response(200, json={"message": "success"}) + if request.method == "GET": + latest = {"version": len(versions), "metadata": json.dumps({"metadata": versions[-1]})} + data = {"id": dataset_id, "pid": f"pid-{dataset_id}", "versions": [latest]} + return httpx.Response(200, json={"message": "success", "data": data}) + if request.method == "DELETE": + del self.datasets[dataset_id] + return httpx.Response(200, json={"message": "success"}) + return httpx.Response(405) + + +@pytest.fixture +def fake_gateway(gateway_env, monkeypatch): + gateway = FakeGateway() + monkeypatch.setattr( + cli, + "_client", + lambda args, default_team_id=None: GatewayClient( + GatewayConfig.from_env(team_id=args.team_id), transport=httpx.MockTransport(gateway) + ), + ) + return gateway + + +def run(*argv: str) -> None: + cli.main(list(argv)) + + +def test_create_update_get_delete(fake_gateway, capsys): + fixture = FIXTURES / "example-hdruk410.json" + run("create", "--file", str(fixture)) + assert "Created DRAFT dataset 1" in capsys.readouterr().out + assert fake_gateway.statuses[1] == "DRAFT" + + run("update", "--id", "1", "--file", str(fixture)) + run("get", "--id", "1") + assert '"version": 2' in capsys.readouterr().out + + with pytest.raises(SystemExit): + run("delete", "--id", "1") + assert "--confirm 1" in capsys.readouterr().err + assert 1 in fake_gateway.datasets + + run("delete", "--id", "1", "--confirm", "1") + assert fake_gateway.datasets == {} + + +def test_create_active(fake_gateway): + run("create", "--file", str(FIXTURES / "example-hdruk410.json"), "--status", "ACTIVE") + assert fake_gateway.statuses[1] == "ACTIVE" + + +def test_gateway_error_is_reported_without_traceback(fake_gateway, capsys): + with pytest.raises(SystemExit) as exc: + run("get", "--id", "99") + assert exc.value.code == 1 + err = capsys.readouterr().err + assert "HTTP 404" in err and "Likely cause" in err + + +def test_missing_credentials(monkeypatch, capsys): + for name in ("GATEWAY_APP_ID", "GATEWAY_CLIENT_ID", "GATEWAY_TEAM_ID"): + monkeypatch.delenv(name, raising=False) + with pytest.raises(SystemExit): + run("get", "--id", "1") + assert "Missing environment variable" in capsys.readouterr().err + + +def test_output_never_contains_credentials(fake_gateway, capsys): + run("create", "--file", str(FIXTURES / "example-hdruk410.json")) + run("get", "--id", "1") + captured = capsys.readouterr() + for text in (captured.out, captured.err): + assert APP_ID not in text and CLIENT_ID not in text + + +def test_validate(capsys): + run("validate", "--file", str(FIXTURES / "example-hdruk410.json"), "--schema-version", "4.1.0") + assert "is valid" in capsys.readouterr().out + + +def test_validate_reports_errors(tmp_path, capsys): + broken = json.loads((FIXTURES / "example-hdruk410.json").read_text()) + del broken["summary"]["title"] + path = tmp_path / "broken.json" + path.write_text(json.dumps(broken)) + with pytest.raises(SystemExit): + run("validate", "--file", str(path), "--schema-version", "4.1.0") + assert "'title' is a required property" in capsys.readouterr().err + + +def test_validate_pinpoints_nested_enum_error(tmp_path, capsys): + broken = json.loads((FIXTURES / "example-hdruk410.json").read_text()) + broken["provenance"]["temporal"]["timeLag"] = "Whenever" + path = tmp_path / "broken.json" + path.write_text(json.dumps(broken)) + with pytest.raises(SystemExit): + run("validate", "--file", str(path), "--schema-version", "4.1.0") + err = capsys.readouterr().err + assert "/provenance/temporal/timeLag: 'Whenever' is not one of" in err + assert "is not of type 'null'" not in err + + +# Dataset directories (Phase 1) + +@pytest.fixture +def no_traser(monkeypatch): + calls = [] + monkeypatch.setattr(cli, "traser_errors", lambda *a, **k: calls.append(a) or []) + return calls + + +@pytest.fixture +def team_42(demographics): + """The demographics fixture, pointed at the test team.""" + edit_yaml(demographics / "gateway" / "gateway.yaml", lambda g: g.update(team_id=TEAM_ID)) + return demographics + + +def gateway_yaml(dataset) -> dict: + return yaml.safe_load((dataset / "gateway" / "gateway.yaml").read_text()) + + +def test_build_command(demographics, tmp_path, capsys): + out = tmp_path / "payload.json" + run("build", str(demographics), "--version", "1.0.0", "-o", str(out)) + payload = json.loads(out.read_text()) + assert payload["version"] == "1.0.0" + assert payload["structuralMetadata"]["tables"][0]["name"] == "CoreDemographics" + + +def test_build_reports_todos(demographics, capsys): + edit_yaml(demographics / "gateway" / "metadata.yaml", lambda m: m["summary"].update(contactPoint="TODO")) + with pytest.raises(SystemExit): + run("build", str(demographics), "--version", "1.0.0") + assert "still has TODOs" in capsys.readouterr().err + + +def test_validate_dataset(demographics, no_traser, capsys): + run("validate", "--dataset", str(demographics), "--traser") + assert "is valid HDRUK 4.1.0" in capsys.readouterr().out + assert len(no_traser) == 1 + + +def test_create_dataset_then_push(fake_gateway, team_42, no_traser, capsys): + run("create", "--dataset", str(team_42), "--version", "1.0.0") + assert gateway_yaml(team_42) == { + "team_id": TEAM_ID, "team_name": "Nottingham University Hospitals - NHS Trust", + "status": "DRAFT", "dataset_id": 1, "pid": "pid-1", + } + post = fake_gateway.requests[0] + assert dict(post.url.params) == {"input_schema": "HDRUK", "input_version": "4.1.0"} + body = json.loads(post.content) + assert body["status"] == "DRAFT" + assert body["metadata"]["schemaModel"] == "HDRUK" and body["metadata"]["schemaVersion"] == "4.1.0" + assert body["metadata"]["metadata"]["version"] == "1.0.0" + + run("push", str(team_42), "--version", "1.1.0", "--status", "ACTIVE") + out = capsys.readouterr().out + assert "version 1 -> 2, status ACTIVE" in out and "OK: new version" in out + put = next(r for r in fake_gateway.requests if r.method == "PUT") + assert put.url.path == f"/api/v3/teams/{TEAM_ID}/datasets/1" + body = json.loads(put.content) + assert body["status"] == "ACTIVE" + assert body["metadata"]["schemaModel"] == "HDRUK" + # The pid recorded at create is sent as the identifier. + assert body["metadata"]["metadata"]["identifier"] == "pid-1" + assert fake_gateway.datasets[1][-1]["version"] == "1.1.0" + assert len(no_traser) == 2 + + +def test_create_dataset_refuses_when_id_exists(fake_gateway, team_42, no_traser, capsys): + edit_yaml(team_42 / "gateway" / "gateway.yaml", lambda g: g.update(dataset_id=7)) + with pytest.raises(SystemExit): + run("create", "--dataset", str(team_42), "--version", "1.0.0") + assert "already has dataset_id 7" in capsys.readouterr().err + assert fake_gateway.requests == [] + + +def test_push_without_id_explains(fake_gateway, team_42, no_traser, capsys): + with pytest.raises(SystemExit): + run("push", str(team_42), "--version", "1.0.0") + assert "Create the dataset once" in capsys.readouterr().err + assert fake_gateway.requests == [] + + +def test_push_refuses_other_team(fake_gateway, demographics, no_traser, capsys): + edit_yaml(demographics / "gateway" / "gateway.yaml", lambda g: g.update(dataset_id=1)) + with pytest.raises(SystemExit): + run("push", str(demographics), "--version", "1.0.0") + assert "gateway.yaml is for team 74 but the credentials are for team 42" in capsys.readouterr().err + assert fake_gateway.requests == [] + + +def test_push_fails_without_new_version(fake_gateway, team_42, no_traser, capsys): + run("create", "--dataset", str(team_42), "--version", "1.0.0") + fake_gateway.bump_version_on_update = False + with pytest.raises(SystemExit): + run("push", str(team_42), "--version", "1.1.0") + assert "Read-back check failed: no new version" in capsys.readouterr().err + + +def test_push_dry_run_sends_nothing(monkeypatch, team_42, no_traser, capsys): + # No credentials and no transport: a dry run must not need either. + for name in ("GATEWAY_APP_ID", "GATEWAY_CLIENT_ID", "GATEWAY_TEAM_ID", "GATEWAY_BASE_URL"): + monkeypatch.delenv(name, raising=False) + monkeypatch.setattr(cli, "_client", lambda args: pytest.fail("dry run created a client")) + edit_yaml(team_42 / "gateway" / "gateway.yaml", lambda g: g.update(dataset_id=5)) + run("push", str(team_42), "--version", "2.0.0", "--dry-run") + out = capsys.readouterr().out + assert f"PUT https://api.healthdatagateway.org/api/v3/teams/{TEAM_ID}/datasets/5" in out + body = json.loads(out[out.index("{"):]) + assert body["metadata"]["metadata"]["version"] == "2.0.0" + assert body["create_origin"] == "API" and body["status"] == "DRAFT" + + +def test_push_uses_status_from_gateway_yaml(fake_gateway, team_42, no_traser, capsys): + run("create", "--dataset", str(team_42), "--version", "1.0.0") + edit_yaml(team_42 / "gateway" / "gateway.yaml", lambda g: g.update(status="ACTIVE")) + run("push", str(team_42), "--version", "1.1.0") + assert fake_gateway.statuses[1] == "DRAFT" # create's status + put = next(r for r in fake_gateway.requests if r.method == "PUT") + assert json.loads(put.content)["status"] == "ACTIVE" + # --status overrides gateway.yaml. + run("push", str(team_42), "--version", "1.2.0", "--status", "DRAFT") + put = [r for r in fake_gateway.requests if r.method == "PUT"][-1] + assert json.loads(put.content)["status"] == "DRAFT" + + +def test_team_defaults_to_gateway_yaml(gateway_env, monkeypatch, team_42): + monkeypatch.delenv("GATEWAY_TEAM_ID") + client = cli._client(cli.build_parser().parse_args(["get", "--id", "1"]), default_team_id=TEAM_ID) + assert client.config.team_id == TEAM_ID + # An explicit team wins, and _dataset_client then refuses the mismatch. + client = cli._client(cli.build_parser().parse_args(["--team-id", "7", "get", "--id", "1"]), default_team_id=TEAM_ID) + assert client.config.team_id == 7 diff --git a/.github/actions/gateway-publish/tests/test_client.py b/.github/actions/gateway-publish/tests/test_client.py new file mode 100644 index 0000000..b6e23b1 --- /dev/null +++ b/.github/actions/gateway-publish/tests/test_client.py @@ -0,0 +1,180 @@ +import json + +import httpx +import pytest + +from gateway_publish.client import GatewayClient, GatewayError, latest_version +from tests.conftest import APP_ID, CLIENT_ID + + +class Recorder: + """httpx transport that records requests and replies with a canned response.""" + + def __init__(self, status_code: int = 200, body=None, text: str | None = None): + self.requests: list[httpx.Request] = [] + self.status_code = status_code + self.body = body if body is not None else {"message": "success"} + self.text = text + + def __call__(self, request: httpx.Request) -> httpx.Response: + self.requests.append(request) + if self.text is not None: + return httpx.Response(self.status_code, text=self.text) + return httpx.Response(self.status_code, json=self.body) + + @property + def last(self) -> httpx.Request: + return self.requests[-1] + + +def make_client(config, recorder: Recorder) -> GatewayClient: + return GatewayClient(config, transport=httpx.MockTransport(recorder)) + + +def test_create_request_shape(config, example_metadata): + recorder = Recorder(201, {"message": "created", "data": 123, "version": 456}) + result = make_client(config, recorder).create(example_metadata, status="DRAFT") + + request = recorder.last + assert request.method == "POST" + assert str(request.url) == "https://api.healthdatagateway.org/api/v2/teams/42/datasets" + assert request.headers["x-application-id"] == APP_ID + assert request.headers["x-client-id"] == CLIENT_ID + assert json.loads(request.content) == { + "metadata": example_metadata, + "create_origin": "API", + "status": "DRAFT", + } + assert (result.dataset_id, result.version_id) == (123, 456) + + +def test_update_request_shape(config, example_metadata): + recorder = Recorder() + make_client(config, recorder).update(123, example_metadata, status="ACTIVE") + + request = recorder.last + assert request.method == "PUT" + assert request.url.path == "/api/v3/teams/42/datasets/123" + assert json.loads(request.content)["status"] == "ACTIVE" + + +def test_get_with_schema(config): + recorder = Recorder() + make_client(config, recorder).get(123, "HDRUK", "4.1.0") + assert recorder.last.url.path == "/api/v2/teams/42/datasets/123" + assert dict(recorder.last.url.params) == {"schema_model": "HDRUK", "schema_version": "4.1.0"} + + +def test_rejects_unknown_status(config, example_metadata): + recorder = Recorder() + with pytest.raises(ValueError): + make_client(config, recorder).create(example_metadata, status="ARCHIVED") + assert recorder.requests == [] + + +@pytest.mark.parametrize("model,version", [("HDRUK", None), (None, "4.1.0")]) +def test_get_requires_both_schema_params(config, model, version): + recorder = Recorder() + with pytest.raises(ValueError): + make_client(config, recorder).get(123, model, version) + assert recorder.requests == [] + + +def test_delete_and_list(config): + recorder = Recorder() + client = make_client(config, recorder) + client.delete(9) + assert (recorder.last.method, recorder.last.url.path) == ("DELETE", "/api/v2/teams/42/datasets/9") + client.list(title="SACT") + assert recorder.last.url.path == "/api/v2/teams/42/datasets/status/active" + assert recorder.last.url.params["title"] == "SACT" + + +@pytest.mark.parametrize( + "status,message,hint_fragment", + [ + (400, "Application permissions do not allow this request", "Permissions tab"), + (400, "Application has not been enabled!", "App Info tab"), + (400, "metadata is in an unknown format and cannot be processed", "gateway-publish validate"), + (401, "No known integration matches the credentials provided", "GATEWAY_APP_ID"), + (401, "The credentials provided are invalid", "GATEWAY_CLIENT_ID"), + (401, "This Application is not allowed to interact with datasets from another team!", "GATEWAY_TEAM_ID"), + (401, "Unauthorized", "credentials"), + (404, "Dataset not found", "no dataset with that ID"), + (410, "This endpoint has been retired.", "retired"), + (500, "Dataset with id=1 cannot be found", "server error"), + (503, "Service Unavailable", "retrying later"), + ], +) +def test_error_mapping(config, status, message, hint_fragment): + recorder = Recorder(status, {"code": status, "message": message, "details": {}}) + with pytest.raises(GatewayError) as exc: + make_client(config, recorder).get(1) + assert exc.value.status_code == status + assert exc.value.message == message + assert hint_fragment in exc.value.hint + + +def test_error_with_non_json_body(config): + recorder = Recorder(502, text="Bad Gateway") + with pytest.raises(GatewayError) as exc: + make_client(config, recorder).get(1) + assert "Bad Gateway" in exc.value.message + + +def test_error_text_has_no_credentials(config): + recorder = Recorder(401, {"message": "Unauthorized"}) + with pytest.raises(GatewayError) as exc: + make_client(config, recorder).get(1) + assert APP_ID not in str(exc.value) + assert CLIENT_ID not in str(exc.value) + + +@pytest.mark.parametrize("encode", [json.dumps, lambda x: x]) +def test_latest_version(encode): + stored = {"metadata": {"summary": {"title": "New"}}, "gwdmVersion": "2.0"} + response = {"data": {"versions": [{"version": 3, "metadata": encode(stored)}]}} + latest = latest_version(response) + assert (latest.version, latest.title) == (3, "New") + + +def test_get_retries_server_errors(config, monkeypatch): + monkeypatch.setattr("gateway_publish.client.RETRY_WAIT", 2.0) + responses = iter([httpx.Response(502), httpx.Response(503), httpx.Response(200, json={"data": {}})]) + waits = [] + client = GatewayClient(config, transport=httpx.MockTransport(lambda r: next(responses)), sleep=waits.append) + assert client.get(1) == {"data": {}} + assert waits == [2.0, 4.0] + + +def test_get_gives_up_after_three_attempts(config): + calls = [] + def handler(request): + calls.append(request) + return httpx.Response(500, json={"message": "boom"}) + client = GatewayClient(config, transport=httpx.MockTransport(handler), sleep=lambda s: None) + with pytest.raises(GatewayError, match="HTTP 500"): + client.get(1) + assert len(calls) == 3 + + +def test_get_retries_connection_errors(config): + attempts = [] + def handler(request): + attempts.append(request) + if len(attempts) == 1: + raise httpx.ConnectError("refused") + return httpx.Response(200, json={"data": {}}) + client = GatewayClient(config, transport=httpx.MockTransport(handler), sleep=lambda s: None) + assert client.get(1) == {"data": {}} + + +def test_update_is_not_retried(config): + calls = [] + def handler(request): + calls.append(request) + return httpx.Response(502) + client = GatewayClient(config, transport=httpx.MockTransport(handler), sleep=lambda s: None) + with pytest.raises(GatewayError): + client.update(1, {"summary": {}}, status="DRAFT") + assert len(calls) == 1 diff --git a/.github/actions/gateway-publish/tests/test_config.py b/.github/actions/gateway-publish/tests/test_config.py new file mode 100644 index 0000000..4980708 --- /dev/null +++ b/.github/actions/gateway-publish/tests/test_config.py @@ -0,0 +1,43 @@ +import pytest + +from gateway_publish.config import DEFAULT_BASE_URL, ConfigError, GatewayConfig +from tests.conftest import APP_ID, CLIENT_ID + + +def test_reads_env(config): + assert config.base_url == "https://api.healthdatagateway.org/api" == DEFAULT_BASE_URL + assert config.app_id.get_secret_value() == APP_ID + assert config.team_id == 42 + + +def test_secrets_not_in_repr(config): + for text in (repr(config), str(config), config.model_dump_json()): + assert APP_ID not in text + assert CLIENT_ID not in text + + +def test_missing_env_names_every_variable(monkeypatch): + for name in ("GATEWAY_APP_ID", "GATEWAY_CLIENT_ID", "GATEWAY_TEAM_ID"): + monkeypatch.delenv(name, raising=False) + with pytest.raises(ConfigError) as exc: + GatewayConfig.from_env() + assert "GATEWAY_APP_ID, GATEWAY_CLIENT_ID, GATEWAY_TEAM_ID" in str(exc.value) + + +def test_team_id_flag_overrides_env(gateway_env): + assert GatewayConfig.from_env(team_id=7).team_id == 7 + + +def test_dev_host_allowed(gateway_env): + assert GatewayConfig.from_env(base_url="https://api.dev.hdruk.cloud/api").base_url.startswith("https://api.dev") + + +def test_refuses_unknown_host(gateway_env): + with pytest.raises(ConfigError, match="unknown host example.org"): + GatewayConfig.from_env(base_url="https://example.org/api") + + +def test_unknown_host_allowed_with_override(gateway_env, monkeypatch): + monkeypatch.setenv("GATEWAY_ALLOW_UNKNOWN_HOST", "1") + config = GatewayConfig.from_env(base_url="https://example.org/api/") + assert config.base_url == "https://example.org/api" diff --git a/.github/actions/gateway-publish/tests/test_live.py b/.github/actions/gateway-publish/tests/test_live.py new file mode 100644 index 0000000..8f4339c --- /dev/null +++ b/.github/actions/gateway-publish/tests/test_live.py @@ -0,0 +1,41 @@ +"""Opt-in end-to-end test against the Gateway (live by default): create -> rename -> get -> delete. + +The dataset is created as DRAFT and deleted at the end. +Skipped unless GATEWAY_LIVE_TESTS=1 (and GATEWAY_APP_ID, GATEWAY_CLIENT_ID, GATEWAY_TEAM_ID are set). +""" + +import json +import os +import uuid + +import pytest + +from gateway_publish.client import GatewayClient, latest_version +from gateway_publish.config import GatewayConfig +from tests.conftest import FIXTURES + +pytestmark = [ + pytest.mark.live, + pytest.mark.skipif(os.environ.get("GATEWAY_LIVE_TESTS") != "1", reason="GATEWAY_LIVE_TESTS=1 not set"), +] + + +def test_create_rename_get(): + metadata = json.loads((FIXTURES / "example-hdruk410.json").read_text()) + run_id = uuid.uuid4().hex[:8] + metadata["summary"]["title"] = f"gateway-publish test {run_id}" + + with GatewayClient(GatewayConfig.from_env()) as client: + created = client.create(metadata, status="DRAFT") + try: + before = latest_version(client.get(created.dataset_id)) + assert before.title == metadata["summary"]["title"] + + metadata["summary"]["title"] = f"gateway-publish test {run_id} renamed" + client.update(created.dataset_id, metadata, status="DRAFT") + + after = latest_version(client.get(created.dataset_id)) + assert after.title == metadata["summary"]["title"] + assert after.version > before.version + finally: + client.delete(created.dataset_id) diff --git a/.github/actions/gateway-publish/tests/test_traser.py b/.github/actions/gateway-publish/tests/test_traser.py new file mode 100644 index 0000000..78e63c5 --- /dev/null +++ b/.github/actions/gateway-publish/tests/test_traser.py @@ -0,0 +1,61 @@ +import json + +import httpx +import pytest + +from gateway_publish.traser import TraserError, traser_errors + + +def run(status_code, body, metadata=None): + requests = [] + + def handler(request): + requests.append(request) + return httpx.Response(status_code, json=body) + + errors = traser_errors(metadata or {"summary": {}}, "4.1.0", transport=httpx.MockTransport(handler)) + return errors, requests + + +def test_request_matches_gateway_call(): + errors, requests = run(200, {"required": {}}, {"summary": {"title": "T"}}) + assert errors == [] + request = requests[0] + assert request.url.path == "/translate" + assert dict(request.url.params) == { + "input_schema": "HDRUK", + "input_version": "4.1.0", + "output_schema": "GWDM", + "output_version": "2.2", + "validate_input": "1", + "validate_output": "1", + } + body = json.loads(request.content) + assert body["metadata"] == {"summary": {"title": "T"}} + assert set(body["extra"]) == {"id", "pid", "datasetType", "publisherId", "publisherName"} + + +def test_input_validation_errors(): + errors, _ = run(400, { + "message": "Input metadata validation failed", + "details": {"validationErrors": [ + {"instancePath": "/summary", "message": "must have required property 'title'"}, + ], "data": {}}, + }) + assert errors == [ + "Input metadata validation failed:", + " /summary: must have required property 'title'", + ] + + +def test_output_validation_errors(): + errors, _ = run(400, { + "message": "Output metadata validation failed", + "details": [{"instancePath": "/required", "message": "bad"}], + }) + assert errors == ["Output metadata validation failed:", " /required: bad"] + + +def test_server_error_raises(): + with pytest.raises(TraserError, match="HTTP 500"): + run(500, {"message": "Failed to execute translation"}) diff --git a/.github/actions/gateway-publish/uv.lock b/.github/actions/gateway-publish/uv.lock new file mode 100644 index 0000000..f35f74a --- /dev/null +++ b/.github/actions/gateway-publish/uv.lock @@ -0,0 +1,850 @@ +version = 1 +revision = 2 +requires-python = ">=3.13" + +[[package]] +name = "annotated-types" +version = "0.8.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/5f/56/a8120250d128bed162cd73c76d45f6ef9991f3e068f62a8ee060afa3104a/annotated_types-0.8.0.tar.gz", hash = "sha256:13b2beaad985e05e2d6407ee4c4f35590b11f8d693a258a561055cac8f64cab7", size = 15893, upload-time = "2026-07-23T20:16:13.995Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/99/91/8acff4f5e50511b911bbccb72b8628a49c68ce14148cd9f6431094859a90/annotated_types-0.8.0-py3-none-any.whl", hash = "sha256:f072f4d804ea359e4eaf198b1af7a8b0943881a87f31bb764f8bf219bb9419e0", size = 13427, upload-time = "2026-07-23T20:16:12.938Z" }, +] + +[[package]] +name = "anyio" +version = "4.16.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "idna" }, + { name = "typing-extensions", marker = "python_full_version < '3.15'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/a1/98/7e457a3b014976887a050561955c0b76e1e7e2d6e27b78ecef2ef80518f2/anyio-4.16.0.tar.gz", hash = "sha256:59bb03251907983d1603d27c3087ddb1e93299ea2163adcdba37899a4fb12ffb", size = 310971, upload-time = "2026-11-01T11:20:07.282Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a9/16/7757fb84c819accc7d7e9af5291b261e4abb8627ee040f99e7d35ef2457a/anyio-4.16.0-py3-none-any.whl", hash = "sha256:c66ae634e0b8228396b801741beb3294326d4b6102f7bba4041c0dfb58c29026", size = 134521, upload-time = "2026-11-01T11:20:05.59Z" }, +] + +[[package]] +name = "attrs" +version = "26.1.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/9a/8e/82a0fe20a541c03148528be8cac2408564a6c9a0cc7e9171802bc1d26985/attrs-26.1.0.tar.gz", hash = "sha256:d03ceb89cb322a8fd706d4fb91940737b6642aa36998fe130a9bc96c985eff32", size = 952055, upload-time = "2026-03-19T14:22:25.026Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/64/b4/17d4b0b2a2dc85a6df63d1157e028ed19f90d4cd97c36717afef2bc2f395/attrs-26.1.0-py3-none-any.whl", hash = "sha256:c647aa4a12dfbad9333ca4e71fe62ddc36f4e63b2d260a37a8b83d2f043ac309", size = 67548, upload-time = "2026-03-19T14:22:23.645Z" }, +] + +[[package]] +name = "certifi" +version = "2026.10.23" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/fd/11/b524cbd9bbdaca58608e4cf4053fd463417549e1959fa8d3aa18319f9555/certifi-2026.10.23.tar.gz", hash = "sha256:a9895e6e2758b371e0545e321a3a8fd1fcfd9829ada8824a936dfb16aaaf36cd", size = 136225, upload-time = "2026-10-23T11:36:16.478Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/32/d1/a3652fe2c19134d0d15922177821d863cbd7e842d53a21bbe7e8e3a1b5ac/certifi-2026.10.23-py3-none-any.whl", hash = "sha256:e9b54de76e530bb6cf0ccd036787103acb58fd42ba930ea8bf948ddbaa2f61d1", size = 135082, upload-time = "2026-10-23T11:36:14.763Z" }, +] + +[[package]] +name = "charset-normalizer" +version = "3.5.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/33/1c/f41d4e74c28ab327ff3acd36053f7ea506c55872d7a90b0fa71aa3ab0c89/charset_normalizer-3.5.2.tar.gz", hash = "sha256:39de2a259fc954455c57274dc94c79d5842774e1247a016aff30bc0efed0f4ef", size = 172659, upload-time = "2026-09-30T04:39:23.398Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c5/34/68292d68512768591aaff07c59bb53ee31341c87759433a859c4641a50c2/charset_normalizer-3.5.2-cp313-cp313-android_24_arm64_v8a.whl", hash = "sha256:ed905975ab14056a2e5eb1c376cb2e1ebc5396baf84163939c518556fccde9f5", size = 225946, upload-time = "2026-09-30T04:35:55.313Z" }, + { url = "https://files.pythonhosted.org/packages/e3/80/bee0b01b90ccd5322ae1d0abb33fab1bd95b7c2eadaf02aeccf22e04ee83/charset_normalizer-3.5.2-cp313-cp313-android_24_x86_64.whl", hash = "sha256:a66c3bc5ab1f0ff2164fc9965ddd611ff0802173f4b9d24554c563f6ab7e1d6e", size = 238619, upload-time = "2026-09-30T04:35:56.863Z" }, + { url = "https://files.pythonhosted.org/packages/78/6e/60ce52a85a7fd631ae8482ae6d74521014ca2f255892679484dc04d7ef56/charset_normalizer-3.5.2-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:d2374b62878abb00cd8309b32af6c0b715cd02dec0ca74ef12e5069bdc64144a", size = 206701, upload-time = "2026-09-30T04:35:58.639Z" }, + { url = "https://files.pythonhosted.org/packages/36/8c/71aafad23f971afc84c2b295bc0c560739ce1dac558aad9fec22e39f3639/charset_normalizer-3.5.2-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:d376bbd28b3a8999db1a103b3b388aee6f1ddeb3e51bc2172993efdcd86e064d", size = 210506, upload-time = "2026-09-30T04:36:00.147Z" }, + { url = "https://files.pythonhosted.org/packages/91/da/3c5a7798c046df7d2d68ad653cf5b6c5a8bfee225055a843c6f2f42aac1a/charset_normalizer-3.5.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:6045373d5a89a5ec71afde535db987ca28e76dfa276c2d4c818265b375d4b055", size = 366626, upload-time = "2026-09-30T04:36:01.77Z" }, + { url = "https://files.pythonhosted.org/packages/e1/16/710ac3de2ee354e2bd1a9c94efe45a2d27b5c6ad39b2d6a905be2c094b6c/charset_normalizer-3.5.2-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:849df64e889b2e17230d58410a03dba311a65b163508fd33679b2b737d4b7858", size = 244624, upload-time = "2026-09-30T04:36:03.389Z" }, + { url = "https://files.pythonhosted.org/packages/d6/39/45c7439f5b63d24f7d5b2a1d760f34af7628782d7144b4cc8ded45c2d4bc/charset_normalizer-3.5.2-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:15c44f7edfd477b06f517a5cc317fc1707edb9de2c865f43d4b6513907473234", size = 235731, upload-time = "2026-09-30T04:36:04.987Z" }, + { url = "https://files.pythonhosted.org/packages/4d/34/38f3154785ce92e9f56eb226f4d35bdfae6b008480dd055f58837a89c810/charset_normalizer-3.5.2-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a89012d6d5476ee112d20d998570ed58df2260a852afb1758809cd6900411d21", size = 270352, upload-time = "2026-09-30T04:36:06.412Z" }, + { url = "https://files.pythonhosted.org/packages/04/f3/859f74e7babc977705026b30593b3be04049632a522fb7000f83c033d747/charset_normalizer-3.5.2-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:0c951d5e6dd9c2ff60609476752bee49da4206adde960ebc247766937f72e718", size = 267393, upload-time = "2026-09-30T04:36:07.865Z" }, + { url = "https://files.pythonhosted.org/packages/4b/85/41d27f234b82e47c167a5f6c0f62501dc0c640585ff4aba79e08a390336a/charset_normalizer-3.5.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7218e8f32b0956cfcd048fd42d9d5779809745ca1d86113ca56f66e7ae1549c4", size = 254660, upload-time = "2026-09-30T04:36:09.248Z" }, + { url = "https://files.pythonhosted.org/packages/58/ca/5d1a997587febe5b26d8daffe363b5c1a091cece19828eec6502fd09c5ef/charset_normalizer-3.5.2-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:a19a731138fc27d5682277d3b9df22855cea1239bce7fcec5f78f42ef2d1f3c3", size = 249996, upload-time = "2026-09-30T04:36:10.73Z" }, + { url = "https://files.pythonhosted.org/packages/b3/1f/d1e78246f7ed60c8c8d606b4ac27f66ce49cc3e95f24893ccbeba9f77302/charset_normalizer-3.5.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:62603db9a7caa0802eaa28c1c46fecd7b3a263a774069c24c3c28c302448721c", size = 247028, upload-time = "2026-09-30T04:36:12.294Z" }, + { url = "https://files.pythonhosted.org/packages/8e/37/eba316edd4f0c4d3a5d945924c4eeeae59abac4056aa815d8a4268f863a2/charset_normalizer-3.5.2-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:b6856554c4f44d79fc2307d5768854310a8f0096e501c75637542c82292b0429", size = 240562, upload-time = "2026-09-30T04:36:13.887Z" }, + { url = "https://files.pythonhosted.org/packages/c8/8e/aaa037d40ca9ef045977f1a661048b1aa33f223adfce3452fe9be9f79d14/charset_normalizer-3.5.2-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:1bc0baf5ef96b6ede57d47f4b8fe4d9d84019c3bfcbeb20a41edc6a6ee341f1f", size = 271699, upload-time = "2026-09-30T04:36:15.41Z" }, + { url = "https://files.pythonhosted.org/packages/26/19/1c1c9f75974adf523b87f34b8a2adc5a435cd65916812bcbd0dfa45f9a29/charset_normalizer-3.5.2-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:56bc200a365efb37383b7852e4cc5898d3b2da5987289b543956cf8cad71018a", size = 252030, upload-time = "2026-09-30T04:36:16.839Z" }, + { url = "https://files.pythonhosted.org/packages/bc/90/0660ef18e18df0a4d2a1a0edff7dfbba42d4e50ef2425557a5bb7051f77b/charset_normalizer-3.5.2-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:2c9ad19a6cfcd5ea5c0d41161d22f9df1dcc277e9bef2751391334546a314c00", size = 268565, upload-time = "2026-09-30T04:36:18.468Z" }, + { url = "https://files.pythonhosted.org/packages/79/ba/57adc269824e8658f1a0f97a9e514c247445a9632b3419b97e0ba37f16dc/charset_normalizer-3.5.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:e243bd13217235fc7290c621941c3f5cc8b66e4872495be821d7436ba2fb838d", size = 257627, upload-time = "2026-09-30T04:36:19.938Z" }, + { url = "https://files.pythonhosted.org/packages/9a/85/33abd4315c052d3d4f54c92b1ee49bfbc0dc7115a981e462a793b6d2ab87/charset_normalizer-3.5.2-cp313-cp313-pyemscripten_2025_0_wasm32.whl", hash = "sha256:a090bb2c68df85450502e3e20d665e3a5af9c65a84d6508ed477badd49166fd3", size = 143407, upload-time = "2026-09-30T04:36:21.376Z" }, + { url = "https://files.pythonhosted.org/packages/4f/de/6435e18d1aaa5d910b896d551411c96af1f42a0c56c29afc2016c61ccc2e/charset_normalizer-3.5.2-cp313-cp313-win32.whl", hash = "sha256:2b7b3bbfb4fe8ef40600792d762fbaa9057559f9d3fad209525b7a22b99e91fd", size = 183207, upload-time = "2026-09-30T04:36:22.776Z" }, + { url = "https://files.pythonhosted.org/packages/9c/76/b8ec57f4e9ee3253541abf95e4a462c0175fe8032dcd070f1f2421240942/charset_normalizer-3.5.2-cp313-cp313-win_amd64.whl", hash = "sha256:78456a747de8dc58360ffa581f30a002baf5aa28cb262536545e91f113ed7639", size = 206489, upload-time = "2026-09-30T04:36:24.306Z" }, + { url = "https://files.pythonhosted.org/packages/3e/60/c647c6ae47480221e875ea5d743ff94946f7416e3c69415ab772928e8d32/charset_normalizer-3.5.2-cp313-cp313-win_arm64.whl", hash = "sha256:11912e4bb14baae7c5d8791aa55ba0a3a03ec6729073307b0f57270abaa713d3", size = 195501, upload-time = "2026-09-30T04:36:25.846Z" }, + { url = "https://files.pythonhosted.org/packages/58/ca/7aa91362a2f77ac8e9e28a9b902a74f7d0e11a851ef0d27a74308da8cd90/charset_normalizer-3.5.2-cp314-cp314-android_24_arm64_v8a.whl", hash = "sha256:1afb975bd5d68d5ce9f6b6d44fdf2f7e34b895a35e95708a7a91b20a3b51d187", size = 226010, upload-time = "2026-09-30T04:36:27.669Z" }, + { url = "https://files.pythonhosted.org/packages/a8/cf/ac8878d0322cf88a1aad4c7b147db32ca0bd806eb0060957b2e31486dbe6/charset_normalizer-3.5.2-cp314-cp314-android_24_x86_64.whl", hash = "sha256:bbbfc8e28816f19d7c0f1816664980c0a9875d01b27cdf8eedddb639d9e108ad", size = 239266, upload-time = "2026-09-30T04:36:29.434Z" }, + { url = "https://files.pythonhosted.org/packages/c9/6d/9a08d7e0b29b7208e2c6c01dc56c8e0520e7c7beadbbfb024b58fd69c8a5/charset_normalizer-3.5.2-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:7967d08cf06dee78443b874f98c98036f624f3a4e73e11f9f64f5be4d25393cf", size = 206783, upload-time = "2026-09-30T04:36:30.872Z" }, + { url = "https://files.pythonhosted.org/packages/82/44/b0aa350280e6ff5a5492d17cf10460dd39d5ee848f872f7ba2df10607f60/charset_normalizer-3.5.2-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:4c2b5031f63e331e3839b40aed2dd6f191e9c07edbde303e7876846ea1946995", size = 210449, upload-time = "2026-09-30T04:36:32.625Z" }, + { url = "https://files.pythonhosted.org/packages/7c/8a/40db9aa9f5907bb0e6f8b6d64064bf8852fb33d4b813ff9414911df7647c/charset_normalizer-3.5.2-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:fcff63213e8e6e47770541a4607175404f47cbb3ebea7b6058cc82d524a0e424", size = 367815, upload-time = "2026-09-30T04:36:34.197Z" }, + { url = "https://files.pythonhosted.org/packages/7f/72/9c5e7707b57c8ddfa9ddf7b0b1d009d7fbab9e9e887d5b721060f37e307d/charset_normalizer-3.5.2-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8d86d6fc60743dc916eb79e2eb1ec4818e21e427731543af40a3021851174a13", size = 247095, upload-time = "2026-09-30T04:36:35.803Z" }, + { url = "https://files.pythonhosted.org/packages/83/09/71e453691e927de4ddf792770cfaab3f49d494e222f66ea5e404bbd5e39c/charset_normalizer-3.5.2-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:7a881931aa470808df94a8c380eed2bbbc76cd9dc622310f99665658c821eb6d", size = 233942, upload-time = "2026-09-30T04:36:37.407Z" }, + { url = "https://files.pythonhosted.org/packages/9f/86/85c84e4da8b27dd409577d9437926ff581c5f9d3c66038dc68c1a526de51/charset_normalizer-3.5.2-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:8024d00c3faf3fc0c16e07a69f4405e8eac7cc0ab15f65fe6cf43827c4cf72b4", size = 273762, upload-time = "2026-09-30T04:36:38.904Z" }, + { url = "https://files.pythonhosted.org/packages/92/08/564955a4b5f2ccb410ab480bbe8c6a18063ff27f2d35458731c4a5335df9/charset_normalizer-3.5.2-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:4d48f2d08b9de5864e2c8744d4461b862fb149a18274abc8b698c45975573438", size = 269514, upload-time = "2026-09-30T04:36:40.469Z" }, + { url = "https://files.pythonhosted.org/packages/18/24/bad3ac4271589df29cf5ce2f5ae490518a5739358052bd0d61209e6fea54/charset_normalizer-3.5.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:34276fd796040bf0993ab33a369aa572e6979c7aab225a88893667ad8eac8f7a", size = 255056, upload-time = "2026-09-30T04:36:42.02Z" }, + { url = "https://files.pythonhosted.org/packages/d6/3e/350d89ad49916b86554d6f5f2d03ec1152148f87e5ff735106c6a03b1a36/charset_normalizer-3.5.2-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0521c5665880b33d603717defa76c094048900010897909952397feb3039da56", size = 251311, upload-time = "2026-09-30T04:36:43.577Z" }, + { url = "https://files.pythonhosted.org/packages/56/5b/4970a2d154df502e133402906dd04e3ae7cada7b3011283c88d0479a2585/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:eff0ac9dbe711a4aee69bf04a83896aa9b85f19641264053a9f6d48573abb7dd", size = 250190, upload-time = "2026-09-30T04:36:45.185Z" }, + { url = "https://files.pythonhosted.org/packages/88/8c/f1a91bddc8fb47c2889e29ea7ea49a194eb0d9868675d786806519c00d76/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:1503bccbeb36d5527790c3930327704c39af22de3112f1b1666a9f3ce15ee204", size = 237098, upload-time = "2026-09-30T04:36:46.689Z" }, + { url = "https://files.pythonhosted.org/packages/24/0e/bb5dace3cc7e79068425386a6589c19b5a2ab5fefc2a46abea6919683332/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:52aa6992700996af31f375de0c6bacd402b0097fe40b53c426b9f51a90ebabc7", size = 274228, upload-time = "2026-09-30T04:36:48.31Z" }, + { url = "https://files.pythonhosted.org/packages/9d/79/b849ad523017ea9f5a45581bbebed91439e0cf42fd2860a6f64e358eb5a6/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:e09a3942ecbdee5cce73ea9d42da82b81b72ac1bf031ce069b93b5adf4eac8cd", size = 252401, upload-time = "2026-09-30T04:36:50.091Z" }, + { url = "https://files.pythonhosted.org/packages/89/8c/75469d690cf47200bce8f6cad7655724fc23148e147abfc5ce78b5f65863/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:c7c9ab723cde841fefb34efbad91e87f00a674b1fe1cd0784fde742bf2c154dc", size = 271846, upload-time = "2026-09-30T04:36:51.719Z" }, + { url = "https://files.pythonhosted.org/packages/26/cd/6d52d3c7437cdcf2e310ce9f28f282e733d4ef60ed19105d1819c356255f/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:ddc7dacc8ece3a182e7f15cb862d1fd616b46d076cb1ae9dd232b2c38b655874", size = 258151, upload-time = "2026-09-30T04:36:53.234Z" }, + { url = "https://files.pythonhosted.org/packages/f7/4c/070b38bdb5f49a70199fce923ec0726a49536a63ab262abbfcaaf351110b/charset_normalizer-3.5.2-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:ee43c17b173d46a3212baa6ead3ae258eeabdae48c263a01ccf0218c366dd655", size = 143570, upload-time = "2026-09-30T04:36:54.816Z" }, + { url = "https://files.pythonhosted.org/packages/81/84/9ebfc8ed6c8c4fcd8e726ff6bf220cc8deb3966e31dce9be8dd8aa017e64/charset_normalizer-3.5.2-cp314-cp314-win32.whl", hash = "sha256:4f87960d57feabfb618e4e0af6e7371645fa26a277860739d6e5d6e0012c92f0", size = 186412, upload-time = "2026-09-30T04:36:56.643Z" }, + { url = "https://files.pythonhosted.org/packages/d1/78/5ed86f743d4bc350db307e7636419a0a5ee1d91806d30c7f667bd5c80dae/charset_normalizer-3.5.2-cp314-cp314-win_amd64.whl", hash = "sha256:e4e81e09c1578b8df602e3db08b0b3ea0a6947ad612f52bf8dc5ea8d47691f0c", size = 210965, upload-time = "2026-09-30T04:36:58.205Z" }, + { url = "https://files.pythonhosted.org/packages/53/94/a3a7698e9b1a395e1eb99ccd9a324be9347973bff4e72db2a06496d7cd27/charset_normalizer-3.5.2-cp314-cp314-win_arm64.whl", hash = "sha256:80d02b6f04e92601a081dd97b23d3128033098bff5d35d392ddcc0476ea11253", size = 200406, upload-time = "2026-09-30T04:36:59.764Z" }, + { url = "https://files.pythonhosted.org/packages/c1/48/c5dd00d5ef7791f02666de250a5bb6071e29b7e133cf4b835800b6d3bc27/charset_normalizer-3.5.2-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:dca9ab98072a5a54ebacebdc45f53e645336b320c667410b061be1ca588ae709", size = 396871, upload-time = "2026-09-30T04:37:01.543Z" }, + { url = "https://files.pythonhosted.org/packages/12/c8/8379554b42e8368161d898476686947a0fdbd3e8865170d7909dcabfdee8/charset_normalizer-3.5.2-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f0aa869112ef88429ae17820d99c3dd9504c9e9c671d3c246f3d7442cb051084", size = 249711, upload-time = "2026-09-30T04:37:03.111Z" }, + { url = "https://files.pythonhosted.org/packages/4a/eb/2ddb1035d17320caa9f41682935123a9a250277b261c3efc86b2d2a21343/charset_normalizer-3.5.2-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c0afc6800ba57ccc350374c5bd6150419915d95ce93cdbab2d783d75eaf30ecb", size = 231146, upload-time = "2026-09-30T04:37:04.721Z" }, + { url = "https://files.pythonhosted.org/packages/4a/24/2ecb4bde104322cd7859d6594fcfa74649f8d90b3221c9feecbef149875b/charset_normalizer-3.5.2-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:7dcd882da75ef9adf94903b1e3b9419e8aa8fb4c7396822b834b9ef7fb96954f", size = 271552, upload-time = "2026-09-30T04:37:06.295Z" }, + { url = "https://files.pythonhosted.org/packages/3f/98/9d5f6ebc3aee9fef5d30b4aff11fb2ab7a1222b4064f8ef2c7c87cde217a/charset_normalizer-3.5.2-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:2e06a3a98f916dd41d27f3105e02e7a40181c98c94b9158733d03a6f80506c09", size = 269810, upload-time = "2026-09-30T04:37:07.905Z" }, + { url = "https://files.pythonhosted.org/packages/09/e1/a3b06a10461b1b7628853c934c644e03bc28e42767116afb52f19a56519b/charset_normalizer-3.5.2-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6bd128f206a7752ae1f2ab6c61bf8a24ba28913a10df8b14c2637b973ff97a80", size = 259845, upload-time = "2026-09-30T04:37:09.554Z" }, + { url = "https://files.pythonhosted.org/packages/fd/d3/6f561f74a296cf27d61775a1dc665ad13f3bff6a798810ca05907f37a7c4/charset_normalizer-3.5.2-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:c8f3d67aeaf55f017982b73683f0e7342ba2f6635a78f69ce89ebb26aa411e5c", size = 252825, upload-time = "2026-09-30T04:37:11.274Z" }, + { url = "https://files.pythonhosted.org/packages/26/9f/69e13ca3b18f43e0eafcd34c04a45b732ae22a43b54a5fc9e119103356eb/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:fe9753dfee015c570d73df76f899f18444d41388bffcde097deba51c4fadbb9f", size = 252659, upload-time = "2026-09-30T04:37:12.941Z" }, + { url = "https://files.pythonhosted.org/packages/73/a9/ace29806a0dae18939919c76ba526472d83214afa101105fabff2cf30625/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:92888bb3187c5ba50500b00b3b310c9f2c651709d28036077680cb5255450a03", size = 238819, upload-time = "2026-09-30T04:37:14.659Z" }, + { url = "https://files.pythonhosted.org/packages/f8/c1/6116d52a2e3311ec80f21f5fb5e17b27405f10b9608af8f6e69516841a1b/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:d008d90a7f2471519aef0c90dfbe73b3e6e4d5e66ac48e19154c17e89e98b604", size = 272973, upload-time = "2026-09-30T04:37:16.346Z" }, + { url = "https://files.pythonhosted.org/packages/19/aa/9955c7e93bba10a9c7e8f7a5031b7ced66f3a1883a55c00712b8d5850ff3/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:31f3930700408d211f13378ccbe1c40845d8da54bd0681fac3a9b5aae81c7aa8", size = 253692, upload-time = "2026-09-30T04:37:18.212Z" }, + { url = "https://files.pythonhosted.org/packages/bb/33/2a6ae7fdc1b10cb581cef91addd8cdfc5f40d50abb5702309369d5834579/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:2a925889534b3748302dae5dead07cc13480de1dac3aea80a941b729b471ef93", size = 268757, upload-time = "2026-09-30T04:37:19.877Z" }, + { url = "https://files.pythonhosted.org/packages/a2/22/80992720a0282cd39bba1db35868e6b9c22f41281160143a836544bc1d8a/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:f5ec61164adcec446f8969a3358ec3f9b26bbda3b9213e5586d219afa8df2915", size = 262220, upload-time = "2026-09-30T04:37:21.583Z" }, + { url = "https://files.pythonhosted.org/packages/92/9f/181fd07e1bffea1d95cd80c84ac537354f50699c22cfc4d3c02b6fc16208/charset_normalizer-3.5.2-cp314-cp314t-win32.whl", hash = "sha256:598a11a2c7ebaa5334bf698bf29568c9c390abac6a154d8170fedecd1cea38c5", size = 197797, upload-time = "2026-09-30T04:37:23.235Z" }, + { url = "https://files.pythonhosted.org/packages/49/1c/25d8415ec1c4f2f41f1680435e4c87cfb378ff2f677d950946f2a45d0632/charset_normalizer-3.5.2-cp314-cp314t-win_amd64.whl", hash = "sha256:7fdde2c9fd9e3eca40631e024664cf2584272cc8f96308cbe5fdfc930f51d8bc", size = 222765, upload-time = "2026-09-30T04:37:24.891Z" }, + { url = "https://files.pythonhosted.org/packages/3e/b4/46b48f013dadfc0d0d33b375438e31bdf5a989dc68389c6bf627054d4df9/charset_normalizer-3.5.2-cp314-cp314t-win_arm64.whl", hash = "sha256:d1befeed746d247c81127bb14de9dc3d30edb6e5976d34f83f86ed262b1d9105", size = 210985, upload-time = "2026-09-30T04:37:26.634Z" }, + { url = "https://files.pythonhosted.org/packages/ca/e9/34e597dee616d0b8ee4b34d29399e85c2204ade174157a48505d42baa4ff/charset_normalizer-3.5.2-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:87475fabc8d9996fd9c27debb395e642e8c838d78a00b6e932227a0e06b81e26", size = 367676, upload-time = "2026-09-30T04:37:28.329Z" }, + { url = "https://files.pythonhosted.org/packages/60/9f/a5d1c91c0263745e2cd344c5a4415d787c575501ab1d449f1148ac6b495d/charset_normalizer-3.5.2-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9409a8bf35cf78353942504b24a57de3d75b708997a1e4bd8db71ac8633ce364", size = 248414, upload-time = "2026-09-30T04:37:30.167Z" }, + { url = "https://files.pythonhosted.org/packages/26/79/e697f77464748a3ee3cf490c83d592459400d4898380d66c38366b03080c/charset_normalizer-3.5.2-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:498dc3188ca05a68231ac3fdbfc7f57eb67e1343c30e0fea17f8218c1599b253", size = 244775, upload-time = "2026-09-30T04:37:31.964Z" }, + { url = "https://files.pythonhosted.org/packages/ca/87/3d42a42e18ea066e2513936fd678a00696e77878b5ae04528976abdbcb83/charset_normalizer-3.5.2-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:e242bb1c5e76e97dfa9e7f209a71e93a01d7f19ffdd5cfbb2e2d55b4f08f8ab0", size = 273877, upload-time = "2026-09-30T04:37:33.661Z" }, + { url = "https://files.pythonhosted.org/packages/c3/76/8a28136f3938ba9836f84280ce0c4d61ed1cf15a036b2034900c62634162/charset_normalizer-3.5.2-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:def79fa35ef0cef8d2accec024f4fdc7ead3012ff02f5215c783f39f03ef8cfc", size = 269455, upload-time = "2026-09-30T04:37:35.573Z" }, + { url = "https://files.pythonhosted.org/packages/a0/a1/4fbf5d0f0f1b2a080474c1cf9a2f12c4c6531bb0e8ba591055e846d2b4e9/charset_normalizer-3.5.2-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:3df041de8887954562c9b261cba85ca0e9ded74048daf125f45edcfaa4832229", size = 257336, upload-time = "2026-09-30T04:37:37.397Z" }, + { url = "https://files.pythonhosted.org/packages/ba/a2/8b50aa320adb880ad579518e6f718f24944804b42a88b83d267d5d444125/charset_normalizer-3.5.2-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:04851f73ae72b8413dddadb16a49dfee95263553741fd42d546f7d66907e6be5", size = 257584, upload-time = "2026-09-30T04:37:39.522Z" }, + { url = "https://files.pythonhosted.org/packages/a5/57/50e3fed84e175f40349bd0da7a4fce94c87f0378f52d74f511d89e0bdc20/charset_normalizer-3.5.2-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:183b88127acdb4fabe59d951ab424faf1af7b63cdbb5f776186c1ea2ffcaed98", size = 251854, upload-time = "2026-09-30T04:37:41.23Z" }, + { url = "https://files.pythonhosted.org/packages/d6/54/f7fbb3493c9f49091213b9c2d6dd65800696f1ce1a3f196a4205f50417b1/charset_normalizer-3.5.2-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:16fa0eccf81304b79c5cd87f9271c3b85dd9dd99245e4422ae9c0dd45e0f99d3", size = 248767, upload-time = "2026-09-30T04:37:42.883Z" }, + { url = "https://files.pythonhosted.org/packages/d9/37/b3a6385acc5a1e45b39ae9c90bfb9cf838a09b9dd37ef2740ab4c6b4a2eb/charset_normalizer-3.5.2-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:7441d755b7ab94f8d4eb3e43ec05482d760842fd263d003a99102d742cd835e2", size = 274479, upload-time = "2026-09-30T04:37:44.658Z" }, + { url = "https://files.pythonhosted.org/packages/89/44/809913e2cfd279e635a9294fdbbfb1b1dc62a8189d473d561f649fce98d8/charset_normalizer-3.5.2-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:ca403d7e4798f525fdfc78e258820419cbbd0f0ecbab9de7840e3c017cf6b8cf", size = 258310, upload-time = "2026-09-30T04:37:46.529Z" }, + { url = "https://files.pythonhosted.org/packages/af/a2/f28400ab13359d91bd39179df8e149376b9bf36588e739a3a4f9de2b84b2/charset_normalizer-3.5.2-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:df29a0a7107f7011e77f4eebdddec4c7331e24d787a0b21a46d63bdf7445da95", size = 271100, upload-time = "2026-09-30T04:37:48.399Z" }, + { url = "https://files.pythonhosted.org/packages/e9/89/9bab37955edf0adb3b66f8a3a6617d9f2f487e0d56f295a6a286cb640aa6/charset_normalizer-3.5.2-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:f3c96f633825733f735c5a9cf21d21a257d8e1edf0b1cee0a064b9c424ca0f7d", size = 259936, upload-time = "2026-09-30T04:37:50.023Z" }, + { url = "https://files.pythonhosted.org/packages/23/b5/4459e08d45a679f903d50fea08bc52cfa728cca4d7bd02c757b5e5abda2e/charset_normalizer-3.5.2-cp315-cp315-win32.whl", hash = "sha256:281cb91036248400f4cc957495cccd44c275c2e0c5854f7e45ac5cf7dc193847", size = 186301, upload-time = "2026-09-30T04:37:51.722Z" }, + { url = "https://files.pythonhosted.org/packages/98/e8/55d5fd3935b4bce6da4fe0df61898e8c82653e317e677bd58aceb9c60f13/charset_normalizer-3.5.2-cp315-cp315-win_amd64.whl", hash = "sha256:89b53f3cda69831909888e0494f4fa0bcd3537e3e138dabeb620bd6ad946bae8", size = 210858, upload-time = "2026-09-30T04:37:53.427Z" }, + { url = "https://files.pythonhosted.org/packages/a9/5b/974423c2fd8e524c7a7f64318c1e02240ef954912fa2b4d70344107b9c68/charset_normalizer-3.5.2-cp315-cp315-win_arm64.whl", hash = "sha256:6be488a102b8cf28d0391d8c4ba7748938ae28b78ad901f8585520fca33ead1a", size = 200309, upload-time = "2026-09-30T04:37:55.015Z" }, + { url = "https://files.pythonhosted.org/packages/ee/f9/00ee0195db1013d8f7c416fd770fbeb560bb46eb2e36b054d05cb56f6cfa/charset_normalizer-3.5.2-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:915563965d418f986e7e145accc592eae9e1a1be3566ff98a05d7a9ec42a76e1", size = 395343, upload-time = "2026-09-30T04:37:56.743Z" }, + { url = "https://files.pythonhosted.org/packages/04/3a/c00b50e94c964cf934c7899cd47c97952fc11dad71cc5884b3c61795b09b/charset_normalizer-3.5.2-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:65cd72beeeca9d3aaea1201e5923859f308f952f9c71de93f06063c79f0f7a3b", size = 250114, upload-time = "2026-09-30T04:37:58.607Z" }, + { url = "https://files.pythonhosted.org/packages/50/27/d102dc880bbcffd0479ab64dfc1fb96777a854355a55e2bda72a71efadcb/charset_normalizer-3.5.2-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:b7fd005a73d9e657273b7a10dc71a9e03c8fb9ee6999798d6918ce095b81ac7f", size = 239997, upload-time = "2026-09-30T04:38:00.511Z" }, + { url = "https://files.pythonhosted.org/packages/a5/4a/bf7ef45794dd293fab5f98a9309817977fbb845b9998f171b8cc5d8437a3/charset_normalizer-3.5.2-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:e54da4baf05720032d527874d40b65fa4d7e5c6c6a43d0c3adbeffcaf275a2b3", size = 272313, upload-time = "2026-09-30T04:38:02.509Z" }, + { url = "https://files.pythonhosted.org/packages/e8/ee/008a2837737991474c5754bb3191010007663860979701990982a502cbaf/charset_normalizer-3.5.2-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:124fbf1a8ff966d87ae05bb8bd45a71f966055ed8bba320d0c7cf450bc5f4d0e", size = 269986, upload-time = "2026-09-30T04:38:04.435Z" }, + { url = "https://files.pythonhosted.org/packages/93/ad/bd74a283940dc910c5b14f8e4f80a248082bc9c0fcbe1f54530cb6d9cc5e/charset_normalizer-3.5.2-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:28b4f0d66fb834ff90f28209ac7bce77868c45d8c93e26f906709d9b7c2e1af9", size = 260202, upload-time = "2026-09-30T04:38:06.549Z" }, + { url = "https://files.pythonhosted.org/packages/8a/7b/ed341c66f69f688723501fac752be3d63c7159ca0d0d4174fc611e5710bb/charset_normalizer-3.5.2-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:58ca3755ee7ff7f59b57789ec9833c9de9ea275405cdd240eda1f193112e398a", size = 259083, upload-time = "2026-09-30T04:38:08.311Z" }, + { url = "https://files.pythonhosted.org/packages/cc/9d/e41588b777965e5031a43128a1e96173ebb35ac75fc53ec3b517e7c21cd4/charset_normalizer-3.5.2-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:443eae2bf318abeaf6f15d785138f71fd6de770e99a92158b8b814265e079115", size = 253081, upload-time = "2026-09-30T04:38:10.402Z" }, + { url = "https://files.pythonhosted.org/packages/81/35/b761eb6d8c1eb218b9b42b9b4d5ac902afdc399fb6dac6f9a9aac7bda589/charset_normalizer-3.5.2-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:58f361dcbab699cf8f42db3f47c8e7fd1036f138c23a5d08de9fde5f425a730c", size = 248712, upload-time = "2026-09-30T04:38:12.317Z" }, + { url = "https://files.pythonhosted.org/packages/4d/2c/147169a041b747759f37405c0a97157e8e92de967968373101ff14915cba/charset_normalizer-3.5.2-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:1b4cbc7c3491ccb4aa17fcd8165649d01cf39f76de1696da8631b5f71b85401d", size = 274176, upload-time = "2026-09-30T04:38:14.138Z" }, + { url = "https://files.pythonhosted.org/packages/f0/2d/0ff8db0d373ba8538db686db11cd7e8912031490b9e4f383b41912e8d594/charset_normalizer-3.5.2-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:ba0b1d2620edf869789c3879223f52bf2afc5d31b3cb47cc57b3a12c05e2aa9d", size = 259413, upload-time = "2026-09-30T04:38:15.841Z" }, + { url = "https://files.pythonhosted.org/packages/8a/8e/b4a085fb47c9d3a7e43576a4784fdd8fe23f907514a972de8086edaf7a48/charset_normalizer-3.5.2-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:5e2b6b57e9733d39f0c9fd3185efa6b8e29652c4cd8fe94180272cf6ed9a78c4", size = 269434, upload-time = "2026-09-30T04:38:17.626Z" }, + { url = "https://files.pythonhosted.org/packages/83/1c/d8d8d7322a7c3eecdf3237a4a419cf41d2eaad8e006ce7dfdd9d4c8fa2eb/charset_normalizer-3.5.2-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:51cf45226a9b588d0d2b4880c62d686934b63ab0bd79ca23ab0e9762eb27441b", size = 262716, upload-time = "2026-09-30T04:38:19.214Z" }, + { url = "https://files.pythonhosted.org/packages/a0/16/0e4c6ba9b44e97a2da150e52d331e8f9c968b21b358fbffa6c856cebcd89/charset_normalizer-3.5.2-cp315-cp315t-win32.whl", hash = "sha256:5fb29fb8cd1a46c27a1bf9613ad5ec2599310d46b4025d9556404a6b6a292800", size = 197159, upload-time = "2026-09-30T04:38:21.037Z" }, + { url = "https://files.pythonhosted.org/packages/be/33/e90bc2b1374f7f36ef106f56620de5a783907e19ca857efe2277e31cac3e/charset_normalizer-3.5.2-cp315-cp315t-win_amd64.whl", hash = "sha256:a192e2c40070d92c3ccf777e3a5c4ff515573cd2bb7ed0c537fdadbbec5bbf21", size = 221322, upload-time = "2026-09-30T04:38:22.886Z" }, + { url = "https://files.pythonhosted.org/packages/66/89/dfa6dcb08c200b7830ab56439e8c1890f2971d51aafbb3937894a2e7fcfc/charset_normalizer-3.5.2-cp315-cp315t-win_arm64.whl", hash = "sha256:749e97e1b32313717a565abbe321bc2190bc8b35f1a67e4cdbc7c56c8d8ffe58", size = 209192, upload-time = "2026-09-30T04:38:24.648Z" }, + { url = "https://files.pythonhosted.org/packages/8c/ab/176fbfd5b64939c55d652366aa5b9ef1d767af207a3aa6ebeb0d226c484d/charset_normalizer-3.5.2-cp37-abi3-macosx_10_9_universal2.whl", hash = "sha256:4275811936e2f06feff5e598fb42a1b7ae852da8e39605211892b56b81a34efd", size = 331815, upload-time = "2026-09-30T04:38:26.216Z" }, + { url = "https://files.pythonhosted.org/packages/7e/84/371eac6b30bdbcbf2d632a1a01809103459216fcaae61b8b8d922c1bfb8a/charset_normalizer-3.5.2-cp37-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:1c50fe28bbc2ced33386f298650d91218076c05420e6cbd790b913adc41659e7", size = 253276, upload-time = "2026-09-30T04:38:28.032Z" }, + { url = "https://files.pythonhosted.org/packages/43/6f/c4fbae58febff71709c51bc7e18fdfa55341dc382704740f9f0cbf03817b/charset_normalizer-3.5.2-cp37-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d19fbd981a488e22cd04883659ca6b08f50b5974f9fd7c95655ef6a043e5893f", size = 241239, upload-time = "2026-09-30T04:38:29.732Z" }, + { url = "https://files.pythonhosted.org/packages/61/71/458c3f42164a07d0c5210798e9e704b39e540a6793b05aba67f3a35243a9/charset_normalizer-3.5.2-cp37-abi3-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:0fed1d06615f022ee3b13caf5e8b180cfea32bb2c5aded8a9d44277afc040f93", size = 231121, upload-time = "2026-09-30T04:38:31.462Z" }, + { url = "https://files.pythonhosted.org/packages/09/54/ab9e89367076f6331bb6c65c4bf14a5361fa5191cb6561bf534f18504e1b/charset_normalizer-3.5.2-cp37-abi3-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:838dcc90063569a0448120554591a1d6c4a4ffe11babf048908793154ab86ade", size = 260350, upload-time = "2026-09-30T04:38:33.239Z" }, + { url = "https://files.pythonhosted.org/packages/7c/c1/061431ecc688d9d76602502cb57cc01e691e682c18f1beb45f9673b5bbd2/charset_normalizer-3.5.2-cp37-abi3-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:2ce45c6627b22c47e390bc91a41c3d13032192e699fa0bea96e9671b373d69b0", size = 255430, upload-time = "2026-09-30T04:38:34.865Z" }, + { url = "https://files.pythonhosted.org/packages/8d/1f/20c8949f0676f7ab811abdeb7f4d7f1cbc6e61ff20bef08b44edeb092bc8/charset_normalizer-3.5.2-cp37-abi3-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0774bf9bf620249fee3e0b8b9fd3065de213be30f3aa94ce2494b3b638949e26", size = 250612, upload-time = "2026-09-30T04:38:36.649Z" }, + { url = "https://files.pythonhosted.org/packages/2b/9e/46f2fa4c431fc98c4ae76a8cb5bdca54e0341e3cfc3fcfd8e82740250818/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:1db38f4c5496827c1a501846d64d14c3b80c7e6714e406cd7dc36a9899fa1011", size = 242083, upload-time = "2026-09-30T04:38:38.26Z" }, + { url = "https://files.pythonhosted.org/packages/bd/39/559be29a0c0f086e0bba6922babd38916cc5e0b58ced4de13ee01ea05508/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:304d8e4d493af723536393eee0c689eb7813f4a474c8b479dee63f1fdd98f621", size = 232738, upload-time = "2026-09-30T04:38:39.81Z" }, + { url = "https://files.pythonhosted.org/packages/ff/6c/387b0e4f756a282831c1d9fc6aeb6c51ca4507ca202767c8de15ce9b12e2/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_ppc64le.whl", hash = "sha256:9b7f416ff0978e2f2249330527f0ad6fa02f4932e6199692d3b52da2048c19e4", size = 260703, upload-time = "2026-09-30T04:38:41.346Z" }, + { url = "https://files.pythonhosted.org/packages/96/92/1fdf015f09ef449f50d3ac4b67c90887c9c318b727daa95cc4f866e6521d/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_riscv64.whl", hash = "sha256:01077390b03f7988f11d700a2194e69b119741a86b1a638b1db88891e3eced8e", size = 247622, upload-time = "2026-09-30T04:38:42.937Z" }, + { url = "https://files.pythonhosted.org/packages/dc/3c/8e7b8a5671ad5d433669fb2a76f1a0164df2d9b1718b0206bc2a16d840cc/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_s390x.whl", hash = "sha256:7e841fb9010836c992c9f12fcbd43a831de93a5f726fc1ccd8ca1d0268c5014c", size = 257500, upload-time = "2026-09-30T04:38:44.604Z" }, + { url = "https://files.pythonhosted.org/packages/b4/f0/45b579df5cabc1d5d53ea1cc35e8437d3ca768c0acccc7041517cb6fbb32/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:9cae88599c7219005d879f98e5ed53341e9a122af585e1091200358a3003d2a0", size = 255100, upload-time = "2026-09-30T04:38:46.289Z" }, + { url = "https://files.pythonhosted.org/packages/31/68/fdec18a343f5fb3f310588dd478b09ac4799e0b187dbade3a8cd776f03ef/charset_normalizer-3.5.2-cp37-abi3-win32.whl", hash = "sha256:01b0c0d2262a9e28e8484a278c7e1b5d650e3ac8cf2683d2967e25899f208bdf", size = 174499, upload-time = "2026-09-30T04:38:47.999Z" }, + { url = "https://files.pythonhosted.org/packages/9d/8a/b618149cc5207943a0242068d7a27897f56a62947b5a039085f2a22029f8/charset_normalizer-3.5.2-cp37-abi3-win_amd64.whl", hash = "sha256:9f56f72050826f63dcee7a7f55b0a77168cb3bfc553fd405e7f8f9ece75a4036", size = 200092, upload-time = "2026-09-30T04:38:49.707Z" }, + { url = "https://files.pythonhosted.org/packages/03/cf/4c66866fa9e2b1c78e3c911516d1de497a677b7ac60f1eceda74ce777ca3/charset_normalizer-3.5.2-cp37-abi3-win_arm64.whl", hash = "sha256:40ab6bffa02ae10a0581e6c198be7d2d8ca5c2a0c64e4ed3465d766df457573e", size = 294363, upload-time = "2026-09-30T04:38:51.312Z" }, + { url = "https://files.pythonhosted.org/packages/fc/ad/d07d7862a62ffa6d79d68074d14823243dd235a77c45262acbf6adeb28bf/charset_normalizer-3.5.2-py3-none-any.whl", hash = "sha256:b6b751274acb69d77b3323d6b7dbaa3c7fdfc1eb829b7eb61d262f32e1af9685", size = 68872, upload-time = "2026-09-30T04:39:21.828Z" }, +] + +[[package]] +name = "click" +version = "8.5.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/45/37/edbf1b0707709013c0cf2e8317e03d97ed29bf4cac709fe328904ae92a38/click-8.5.1.tar.gz", hash = "sha256:9bbfada76703fd1d784b83eea012e3e8c6a001a876543ef104fa56aaaeb072b4", size = 399151, upload-time = "2026-11-06T17:37:01.021Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/31/7d/164b7ffc8624fe9efb4221bf9af485d5c1e41b9ae118045d2b6dc5457d8b/click-8.5.1-py3-none-any.whl", hash = "sha256:8bb5376d2006950386f8c6427613334a2acadc5f559cb80e638d00b4df957e37", size = 126163, upload-time = "2026-11-06T17:36:59.287Z" }, +] + +[[package]] +name = "colorama" +version = "0.4.6" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697, upload-time = "2022-10-25T02:36:22.414Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" }, +] + +[[package]] +name = "curies" +version = "0.15.8" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pydantic" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/f7/30/4cb05945835b99799baedaabfb09442d8412fa98d537c1dc94fa38dd8bf6/curies-0.15.8.tar.gz", hash = "sha256:9676165fa0f057625b8a773ada68c9e88928701110ccaace1eadc4c104c8f3da", size = 82165, upload-time = "2026-11-10T19:43:11.275Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/34/00/5ecde1db0e2bfed9e4613459f07f553145387f20f03fdcb142f9f9c43ccf/curies-0.15.8-py3-none-any.whl", hash = "sha256:f46c58ffedebeecb4a9122eb0df4719907cd0d624be29888a9845f8867887aa2", size = 86104, upload-time = "2026-11-10T19:43:09.901Z" }, +] + +[[package]] +name = "deprecated" +version = "3.0.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "wrapt" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/61/46/f6958cdfa8a801fc845e981a8a958dba2e74a386b026a8fd5cae58423f1f/deprecated-3.0.1.tar.gz", hash = "sha256:2f5a9fecc9961e26462846cf1e57f73a612b1d0b79c27dceeed8de647beadcee", size = 1074378, upload-time = "2026-10-30T11:15:39.954Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/82/f0/07de837adfa09d592747b82fd74316e88285d2d7057551f30e4b5ef81bd8/deprecated-3.0.1-py3-none-any.whl", hash = "sha256:eda314c115e8bc0fe52b90a6869e19240ac3cedb7449adfdba5981cf9ef693e1", size = 22191, upload-time = "2026-10-30T11:15:38.08Z" }, +] + +[[package]] +name = "gateway-publish" +version = "0.1.0" +source = { editable = "." } +dependencies = [ + { name = "httpx" }, + { name = "jsonschema" }, + { name = "linkml-runtime" }, + { name = "pydantic" }, + { name = "pyyaml" }, +] + +[package.dev-dependencies] +dev = [ + { name = "pytest" }, +] + +[package.metadata] +requires-dist = [ + { name = "httpx", specifier = ">=0.28" }, + { name = "jsonschema", specifier = ">=4.23" }, + { name = "linkml-runtime", specifier = ">=1.12.1" }, + { name = "pydantic", specifier = ">=2" }, + { name = "pyyaml", specifier = ">=6.0.3" }, +] + +[package.metadata.requires-dev] +dev = [{ name = "pytest", specifier = ">=8" }] + +[[package]] +name = "h11" +version = "0.16.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/01/ee/02a2c011bdab74c6fb3c75474d40b3052059d95df7e73351460c8588d963/h11-0.16.0.tar.gz", hash = "sha256:4e35b956cf45792e4caa5885e69fba00bdbc6ffafbfa020300e549b208ee5ff1", size = 101250, upload-time = "2025-04-24T03:35:25.427Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/04/4b/29cac41a4d98d144bf5f6d33995617b185d14b22401f75ca86f384e87ff1/h11-0.16.0-py3-none-any.whl", hash = "sha256:63cf8bbe7522de3bf65932fda1d9c2772064ffb3dae62d55932da54b31cb6c86", size = 37515, upload-time = "2025-04-24T03:35:24.344Z" }, +] + +[[package]] +name = "hbreader" +version = "0.9.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/54/66/3a649ce125e03d1d43727a8b833cd211f0b9fe54a7e5be326f50d6f1d951/hbreader-0.9.1.tar.gz", hash = "sha256:d2c132f8ba6276d794c66224c3297cec25c8079d0a4cf019c061611e0a3b94fa", size = 19016, upload-time = "2021-02-25T19:22:32.799Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/7b/24/61844afbf38acf419e01ca2639f7bd079584523d34471acbc4152ee991c5/hbreader-0.9.1-py3-none-any.whl", hash = "sha256:9a6e76c9d1afc1b977374a5dc430a1ebb0ea0488205546d4678d6e31cc5f6801", size = 7595, upload-time = "2021-02-25T19:22:31.944Z" }, +] + +[[package]] +name = "httpcore" +version = "1.0.9" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "certifi" }, + { name = "h11" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/06/94/82699a10bca87a5556c9c59b5963f2d039dbd239f25bc2a63907a05a14cb/httpcore-1.0.9.tar.gz", hash = "sha256:6e34463af53fd2ab5d807f399a9b45ea31c3dfa2276f15a2c3f00afff6e176e8", size = 85484, upload-time = "2025-04-24T22:06:22.219Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/7e/f5/f66802a942d491edb555dd61e3a9961140fd64c90bce1eafd741609d334d/httpcore-1.0.9-py3-none-any.whl", hash = "sha256:2d400746a40668fc9dec9810239072b40b4484b640a8c38fd654a024c7a1bf55", size = 78784, upload-time = "2025-04-24T22:06:20.566Z" }, +] + +[[package]] +name = "httpx" +version = "0.28.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "anyio" }, + { name = "certifi" }, + { name = "httpcore" }, + { name = "idna" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/b1/df/48c586a5fe32a0f01324ee087459e112ebb7224f646c0b5023f5e79e9956/httpx-0.28.1.tar.gz", hash = "sha256:75e98c5f16b0f35b567856f597f06ff2270a374470a5c2392242528e3e3e42fc", size = 141406, upload-time = "2024-12-06T15:37:23.222Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2a/39/e50c7c3a983047577ee07d2a9e53faf5a69493943ec3f6a384bdc792deb2/httpx-0.28.1-py3-none-any.whl", hash = "sha256:d909fcccc110f8c7faf814ca82a9a4d816bc5a6dbfea25d6591d6985b8ba59ad", size = 73517, upload-time = "2024-12-06T15:37:21.509Z" }, +] + +[[package]] +name = "idna" +version = "3.20" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f5/08/8eea9d4b8302028f3abb2c0813953f7aec26d33b7a8960ed760e65ff29fa/idna-3.20.tar.gz", hash = "sha256:a7db850025b95ded1eae8a46181a1a6c56c92c96f0e2b005d9ff8dc0210cab44", size = 216463, upload-time = "2026-09-17T14:11:04.752Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/58/a2/bb081bab032533a855d44de1d56f8e8426114ff1ba5d1f07a438a0a654f8/idna-3.20-py3-none-any.whl", hash = "sha256:ab7ae7122974553370f0bdb919e1a960b2cd1bc1ef0276416d896db81c14582c", size = 69583, upload-time = "2026-09-17T14:11:03.168Z" }, +] + +[[package]] +name = "iniconfig" +version = "2.3.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/01/e1/2069291243c926a2ff1cd706c7f3eeb9b62144bf60f77c9fb9ff2fb26bd3/iniconfig-2.3.1.tar.gz", hash = "sha256:67f4b9c50da0dedf52af349e7749a80a9057a5031199791b906c3bb3ae878960", size = 21209, upload-time = "2026-10-06T22:48:38.076Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/56/43/4ca9e49d27a1fcf6bece6f6aec0ea46bb9112489b93d4b688fb415457bdb/iniconfig-2.3.1-py3-none-any.whl", hash = "sha256:9121e2c1fdb355232495be3194c8dfe87ccc2d5dee45947b78e68f499790d7a7", size = 7552, upload-time = "2026-10-06T22:48:36.959Z" }, +] + +[[package]] +name = "json-flattener" +version = "0.1.9" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "click" }, + { name = "pyyaml" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/6d/77/b00e46d904818826275661a690532d3a3a43a4ded0264b2d7fcdb5c0feea/json_flattener-0.1.9.tar.gz", hash = "sha256:84cf8523045ffb124301a602602201665fcb003a171ece87e6f46ed02f7f0c15", size = 11479, upload-time = "2022-02-26T01:36:04.545Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/00/cc/7fbd75d3362e939eb98bcf9bd22f3f7df8c237a85148899ed3d38e5614e5/json_flattener-0.1.9-py3-none-any.whl", hash = "sha256:6b027746f08bf37a75270f30c6690c7149d5f704d8af1740c346a3a1236bc941", size = 10799, upload-time = "2022-02-26T01:36:03.06Z" }, +] + +[[package]] +name = "jsonasobj2" +version = "1.0.4" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "hbreader" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/67/3a/feb245b755f7a47a0df4f30be645e8485d15ff13d0c95e018e4505a8811f/jsonasobj2-1.0.4.tar.gz", hash = "sha256:f50b1668ef478004aa487b2d2d094c304e5cb6b79337809f4a1f2975cc7fbb4e", size = 95522, upload-time = "2021-06-02T17:43:28.39Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e5/90/0d93963711f811efe528e3cead2f2bfb78c196df74d8a24fe8d655288e50/jsonasobj2-1.0.4-py3-none-any.whl", hash = "sha256:12e86f86324d54fcf60632db94ea74488d5314e3da554c994fe1e2c6f29acb79", size = 6324, upload-time = "2021-06-02T17:43:27.126Z" }, +] + +[[package]] +name = "jsonschema" +version = "4.26.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "attrs" }, + { name = "jsonschema-specifications" }, + { name = "referencing" }, + { name = "rpds-py" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/b3/fc/e067678238fa451312d4c62bf6e6cf5ec56375422aee02f9cb5f909b3047/jsonschema-4.26.0.tar.gz", hash = "sha256:0c26707e2efad8aa1bfc5b7ce170f3fccc2e4918ff85989ba9ffa9facb2be326", size = 366583, upload-time = "2026-01-07T13:41:07.246Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/69/90/f63fb5873511e014207a475e2bb4e8b2e570d655b00ac19a9a0ca0a385ee/jsonschema-4.26.0-py3-none-any.whl", hash = "sha256:d489f15263b8d200f8387e64b4c3a75f06629559fb73deb8fdfb525f2dab50ce", size = 90630, upload-time = "2026-01-07T13:41:05.306Z" }, +] + +[[package]] +name = "jsonschema-specifications" +version = "2025.9.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "referencing" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/19/74/a633ee74eb36c44aa6d1095e7cc5569bebf04342ee146178e2d36600708b/jsonschema_specifications-2025.9.1.tar.gz", hash = "sha256:b540987f239e745613c7a9176f3edb72b832a4ac465cf02712288397832b5e8d", size = 32855, upload-time = "2025-09-08T01:34:59.186Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/41/45/1a4ed80516f02155c51f51e8cedb3c1902296743db0bbc66608a0db2814f/jsonschema_specifications-2025.9.1-py3-none-any.whl", hash = "sha256:98802fee3a11ee76ecaca44429fda8a41bff98b00a0f2838151b113f210cc6fe", size = 18437, upload-time = "2025-09-08T01:34:57.871Z" }, +] + +[[package]] +name = "linkml-runtime" +version = "1.12.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "click" }, + { name = "curies" }, + { name = "deprecated" }, + { name = "hbreader" }, + { name = "json-flattener" }, + { name = "jsonasobj2" }, + { name = "jsonschema" }, + { name = "prefixcommons" }, + { name = "prefixmaps" }, + { name = "pydantic" }, + { name = "pyoxigraph" }, + { name = "pyyaml" }, + { name = "rdflib" }, + { name = "requests" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/66/0a/e24f036d3b896bcc76d6d219da4c61b01575707536cb53c7fc4b953e894d/linkml_runtime-1.12.1.tar.gz", hash = "sha256:6e46e94712ac6ab97baab9a0a1689c72e0035d8e3546c57abbf809760226ff9b", size = 607301, upload-time = "2026-10-13T14:02:47.782Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d1/f8/9436cf65da07cef4d24580d70d2a15f6dd35061eec373bb18bbdbd70f0be/linkml_runtime-1.12.1-py3-none-any.whl", hash = "sha256:6d3af40d94a795cc1026d7710880a3bac09b108e8f04da2b31c949b40f472e37", size = 707466, upload-time = "2026-10-13T14:02:44.603Z" }, +] + +[[package]] +name = "packaging" +version = "26.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/7d/fa/3944b40b07da9ce895c0e6303a5ab7d53da063554f534556b134a54d6093/packaging-26.3.tar.gz", hash = "sha256:94edc256424af38762eb31306eed28beb9f0efc50a8837492c9d6fd6004aed79", size = 313412, upload-time = "2026-08-04T18:15:28.737Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/63/34/ba1c580383c9eada3711951fef0795c80b829a078d72188184bcab9dd527/packaging-26.3-py3-none-any.whl", hash = "sha256:d7193f7c8e4e93f444fde0262bf90af30e16fa0ad0ad44cb553c87339b23cd1c", size = 129956, upload-time = "2026-08-04T18:15:27.159Z" }, +] + +[[package]] +name = "pluggy" +version = "1.7.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/bf/db/7fc19e6f2dc92a966727031389fc2e08b558f0f25eb7403c1119ad4713cd/pluggy-1.7.0.tar.gz", hash = "sha256:d1eaa46ebb595891b860ab086b4d09c8588af65ebd4361b8e8f4bb8920b90ba8", size = 123304, upload-time = "2026-10-15T09:50:58.343Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/40/9e/2b38731e0fc536806f16490e1a12d7f0dc2a1235aa8cc07bcc75416a7daa/pluggy-1.7.0-py3-none-any.whl", hash = "sha256:7dd7b0d8832ba3cb632c306926ded123429211b83641b35dc5c41ad2d34f9bec", size = 27082, upload-time = "2026-10-15T09:50:56.808Z" }, +] + +[[package]] +name = "prefixcommons" +version = "0.1.12" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "click" }, + { name = "pytest-logging" }, + { name = "pyyaml" }, + { name = "requests" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/7d/b5/c5b63a4bf5dedb36567181fdb98dbcc7aaa025faebabaaffa2f5eb4b8feb/prefixcommons-0.1.12.tar.gz", hash = "sha256:22c4e2d37b63487b3ab48f0495b70f14564cb346a15220f23919eb0c1851f69f", size = 24063, upload-time = "2022-07-19T00:06:12.478Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/31/e8/715b09df3dab02b07809d812042dc47a46236b5603d9d3a2572dbd1d8a97/prefixcommons-0.1.12-py3-none-any.whl", hash = "sha256:16dbc0a1f775e003c724f19a694fcfa3174608f5c8b0e893d494cf8098ac7f8b", size = 29482, upload-time = "2022-07-19T00:06:08.709Z" }, +] + +[[package]] +name = "prefixmaps" +version = "0.2.6" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "curies" }, + { name = "pyyaml" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/4d/cf/f588bcdfd2c841839b9d59ce219a46695da56aa2805faff937bbafb9ee2b/prefixmaps-0.2.6.tar.gz", hash = "sha256:7421e1244eea610217fa1ba96c9aebd64e8162a930dc0626207cd8bf62ecf4b9", size = 709899, upload-time = "2024-10-17T16:30:57.738Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/89/b2/2b2153173f2819e3d7d1949918612981bc6bd895b75ffa392d63d115f327/prefixmaps-0.2.6-py3-none-any.whl", hash = "sha256:f6cef28a7320fc6337cf411be212948ce570333a0ce958940ef684c7fb192a62", size = 754732, upload-time = "2024-10-17T16:30:55.731Z" }, +] + +[[package]] +name = "pydantic" +version = "2.14.3" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "annotated-types" }, + { name = "pydantic-core" }, + { name = "typing-extensions" }, + { name = "typing-inspection" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/b4/fc/1203d011145c98ddce3cd2f505bb54375ef8d43223053df6bfcf3c746f46/pydantic-2.14.3.tar.gz", hash = "sha256:1054f237f4d4733e5a30e1e2333bd33a2004ab9ab1510bd053a9a31bb48e232d", size = 925636, upload-time = "2026-11-05T09:17:04.686Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/72/b8/b864503789ef5c58597d2a7b4adbee62c26440ab1e682581fc6838df8947/pydantic-2.14.3-py3-none-any.whl", hash = "sha256:3f7b347782ab7e4cf4c798496ae3a82787d9f21ec12676a9c564355eeef8daa8", size = 494071, upload-time = "2026-11-05T09:17:02.426Z" }, +] + +[[package]] +name = "pydantic-core" +version = "2.50.4" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/9c/0f/34f9ce4ba701dd0b815033ef94d99b56f66200e578ee6052aa3ac26f064e/pydantic_core-2.50.4.tar.gz", hash = "sha256:aead3b74b68396bf0feab5d57e050b730ded7df55853c1e048a87e00aaf033c6", size = 522249, upload-time = "2026-11-05T09:15:26.774Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/1b/21/39f8d97e7ea8e3083606ee9bb1d7f3ec70ded780bb6a872aad76c7eb08b2/pydantic_core-2.50.4-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:0f87ae9db5ba8d8de40dcb93982cf8dd544e6552a80d3345af51941cc2146b80", size = 2232841, upload-time = "2026-11-05T09:12:32.617Z" }, + { url = "https://files.pythonhosted.org/packages/90/a9/fc89a632331882c4cb91b949003418e6f5085ddcf2c9b875d499682bca91/pydantic_core-2.50.4-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:1239daaf063e62213ca1f34d96663900bd7510c42a786e843fd328af70e46445", size = 2108326, upload-time = "2026-11-05T09:12:34.419Z" }, + { url = "https://files.pythonhosted.org/packages/5d/6d/4f6d00e9e4ba2a7bfb206ae49cb32a3ea90c4d658e62f8775277d75e8291/pydantic_core-2.50.4-cp313-cp313-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:1afefe44ec042fbabfb4483ea258c04cf75ff4ff328d754f09b321fdaa232aca", size = 2256276, upload-time = "2026-11-05T09:12:36.212Z" }, + { url = "https://files.pythonhosted.org/packages/b3/b8/936cb0d85a4082e902c7397db0f05c4372eac08372c8bd2d0b43088fcf17/pydantic_core-2.50.4-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:a9ee990bf2cfbd81574c5d4f9f6c9d480a14b5b43d2c4f2ca13f4c6f48089394", size = 2125469, upload-time = "2026-11-05T09:12:37.913Z" }, + { url = "https://files.pythonhosted.org/packages/66/a1/f3b551ce233dcac73286b8b2ae45c23232a9f41c68663e2dcce4bb2dbcfa/pydantic_core-2.50.4-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:ab2822bcdcefb54d1e8ca29f5e3ec3afe160fb794bb3a3a73b09d11ed2671104", size = 2196397, upload-time = "2026-11-05T09:12:39.725Z" }, + { url = "https://files.pythonhosted.org/packages/3d/93/a8a6e7e20826567a73e6f52416667698aa3de704804d7a49d25272246af4/pydantic_core-2.50.4-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:0001d6920e3a5d92758cda460d6dc9f918a78ad6d5d092f1c8b5395e6b775356", size = 2380442, upload-time = "2026-11-05T09:12:41.196Z" }, + { url = "https://files.pythonhosted.org/packages/aa/ba/921d90c9d8ddfa653a35a92f2bbdcd650a9493f5c43f39cdfe4c56659cfa/pydantic_core-2.50.4-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:ad92d255a165cde5f9882ff69699eaf5495e0a1f32e97566bbbb80f11e46781f", size = 2457747, upload-time = "2026-11-05T09:12:42.723Z" }, + { url = "https://files.pythonhosted.org/packages/2b/c0/1c8f2c8f1b03d3fe2fdd7962df8f5a744fe48c90b4c49615e4eb77d04141/pydantic_core-2.50.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:fb2bb5b557080da398b866408117d98fe9731a12334afd0cdff221b458cdc5dc", size = 2260946, upload-time = "2026-11-05T09:12:44.185Z" }, + { url = "https://files.pythonhosted.org/packages/07/ab/5b78a78f0c0f11c8b54fac214ed49cbb4795c34881aa5e5a15715917936f/pydantic_core-2.50.4-cp313-cp313-manylinux_2_31_riscv64.whl", hash = "sha256:92f8f63df729061bb14558ed740e7a222f6e2aa6c2e6a5bcfb4e706676562049", size = 2261921, upload-time = "2026-11-05T09:12:45.706Z" }, + { url = "https://files.pythonhosted.org/packages/b3/e8/dd5d154cf3401f836d8754fdc1b82ecadd37944e4355d855e5b54c7d8ae5/pydantic_core-2.50.4-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:2a60ec2a57ac3ef3767e526e9bf706ec75aa3d79c4ea134d9d4fcf7c62a297a7", size = 2298475, upload-time = "2026-11-05T09:12:47.183Z" }, + { url = "https://files.pythonhosted.org/packages/b7/49/af059d9c4483cba168b17e5f84f1090a3e4547a02fc7698ebc231d48298a/pydantic_core-2.50.4-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:a2f8716344bbbd10443391be0b1f2003b34949e3c4e6883005c2bc498ab6b64b", size = 2473226, upload-time = "2026-11-05T09:12:48.785Z" }, + { url = "https://files.pythonhosted.org/packages/71/ba/4e8cc3064e8bc2ea272cf80dfc57fa4e455f6835c1def21609a9b4f94135/pydantic_core-2.50.4-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:b300a30304c4c6aeab03ed06809819d9eceacdd58441d3c7dffe41edfd006091", size = 2498764, upload-time = "2026-11-05T09:12:50.316Z" }, + { url = "https://files.pythonhosted.org/packages/bf/96/0878499cfa88eb0b07762b488d3cc1b64cb156a4905db99a0d12096b2e17/pydantic_core-2.50.4-cp313-cp313-win32.whl", hash = "sha256:ef8a9ddb2e2a4eae4abb72dc0710eca6c2726779b0664bd10c3ce9fcfaed8c4e", size = 2119158, upload-time = "2026-11-05T09:12:51.834Z" }, + { url = "https://files.pythonhosted.org/packages/e7/e0/95b651213e79ffe0cbee855590bf5cfdf8e3a0d90a7fc73a080e63f7cc38/pydantic_core-2.50.4-cp313-cp313-win_amd64.whl", hash = "sha256:4c29b8f2d6417069bb1f257e6b9113f5d64dc2f554cc200ea90b4fe2c5cdb733", size = 2262887, upload-time = "2026-11-05T09:12:53.282Z" }, + { url = "https://files.pythonhosted.org/packages/08/d3/c3801dc75844a0b13d000bd575bf1b3b3a8aca9f63d19e1809f69c9c5121/pydantic_core-2.50.4-cp313-cp313-win_arm64.whl", hash = "sha256:a0c5210d038418a115e7cf8706bfa611bd14add2f5787274dba45aadca3155e0", size = 2167878, upload-time = "2026-11-05T09:12:54.677Z" }, + { url = "https://files.pythonhosted.org/packages/ee/ed/c9a4982ac3bbc78f27498d9efb85b3dabd739a1724db53c35cc4c018e1de/pydantic_core-2.50.4-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:5c074454dc6d4f6f4ba6561a56bf33a14db7651d882a5a5321ba3ae8868e082d", size = 2236841, upload-time = "2026-11-05T09:12:56.111Z" }, + { url = "https://files.pythonhosted.org/packages/56/32/92c174c17bfc5fc52d0c064e6a7969a727731e25829ede752fba8bacce0f/pydantic_core-2.50.4-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:a4bb174bd65f795c39ad6642d9d5bdc43351b306b7d0a654ab0d0abb38be245f", size = 2108348, upload-time = "2026-11-05T09:12:57.638Z" }, + { url = "https://files.pythonhosted.org/packages/cb/cb/9f637d424a04d3edce7dd527da941950cce05a74b025eef3d54427b86c8e/pydantic_core-2.50.4-cp314-cp314-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:0ec20aca2b067369913716847f7dfe5f4dddf16a46965b7a70bbad5defaaba86", size = 2261331, upload-time = "2026-11-05T09:12:59.154Z" }, + { url = "https://files.pythonhosted.org/packages/91/ff/1117a3cccabb67305bd98d992a84eaf275939a9a043b4f14126ed7252e4f/pydantic_core-2.50.4-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:70dbc9f83c41f37a4faa62dae5203853847223a891da446f48ef2efcfd5df806", size = 2128667, upload-time = "2026-11-05T09:13:00.614Z" }, + { url = "https://files.pythonhosted.org/packages/93/45/6de1b4a6e8c415cd547f90d1408a711e7975116423e3eb3046061c62d7c7/pydantic_core-2.50.4-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:3de6c2a4df2af0ac9ab4dc1488746fe8b1a90e27955d870d9edda3187d20092b", size = 2198183, upload-time = "2026-11-05T09:13:02.259Z" }, + { url = "https://files.pythonhosted.org/packages/d0/bd/c6e64c315d35cc0783a0ea033a3dca062bc368905d0217eab6f6f63007de/pydantic_core-2.50.4-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:3a48a5254d15a0ad050318bfc7a9566d4ec740118187e8f303e47a6840287eb7", size = 2386279, upload-time = "2026-11-05T09:13:03.988Z" }, + { url = "https://files.pythonhosted.org/packages/33/ab/0d56280c89d3841381e9c699c3fa80e3dd3288edf5e7fe4d149136835dca/pydantic_core-2.50.4-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:0af56dbf8822ba9f4efcbbfdc15478f8b6fb08f1609860cb50aa2cc8476b3c34", size = 2464343, upload-time = "2026-11-05T09:13:05.98Z" }, + { url = "https://files.pythonhosted.org/packages/56/9c/621ad8f88590a92a086b1168dce09369d9c5e079e2e635e6646d248af55b/pydantic_core-2.50.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:f1d62fb172db35c6478c9323da34ff37d1f3d37d7d44337a9d94ba8c583e5730", size = 2265388, upload-time = "2026-11-05T09:13:07.808Z" }, + { url = "https://files.pythonhosted.org/packages/f3/7b/cef68a667bf29b86e293a80a601d488a84c8f45508915ad6201fcfe1a798/pydantic_core-2.50.4-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:5c1013647be741647895c102831dcf79c34209662dbb683df9efb864417ed7d5", size = 2267012, upload-time = "2026-11-05T09:13:09.273Z" }, + { url = "https://files.pythonhosted.org/packages/4b/9f/3ae4d163d8feda2b52de88b5cd96b1c40f79d11503003b061136d2ece6ab/pydantic_core-2.50.4-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:aeb2e123cbf978a905e9f55155c1b8316fbbfa7cf64d04521fe174bab302d100", size = 2300478, upload-time = "2026-11-05T09:13:10.758Z" }, + { url = "https://files.pythonhosted.org/packages/e8/72/41881d31f6452430ed6792679c5391795910f0a27a6aebd424683e504ed6/pydantic_core-2.50.4-cp314-cp314-musllinux_1_1_armv7l.whl", hash = "sha256:523466eba8ee10f7480f3c2057563145978011c583130d2cc01fb1e7af808e25", size = 2474874, upload-time = "2026-11-05T09:13:12.188Z" }, + { url = "https://files.pythonhosted.org/packages/05/ef/099874dd6d5ca1e49987dea87eecc05610183249450b1fff883d87f1e8eb/pydantic_core-2.50.4-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:c9e70012926e97069cdd09221861aff412aa94e4cac2e019055cdb79485b150c", size = 2502771, upload-time = "2026-11-05T09:13:13.981Z" }, + { url = "https://files.pythonhosted.org/packages/c6/07/a7d8615b8677bf69e24666bbce431299850c95a7b084649342582a1c3210/pydantic_core-2.50.4-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:e6da138a1ecc1341c8b788a5ee822670b03788e1f5decf7af9d461de6e508b8e", size = 1496509, upload-time = "2026-11-05T09:13:15.704Z" }, + { url = "https://files.pythonhosted.org/packages/ab/71/fdf2c25c3a4f89968263c1d896c933809ca8d2fb13443626648a17b2e296/pydantic_core-2.50.4-cp314-cp314-win32.whl", hash = "sha256:13b6dd62b5279f5b9d72f3bf918a35443ee8bd549241d9dc52d79a2c3b6d7016", size = 2122015, upload-time = "2026-11-05T09:13:17.09Z" }, + { url = "https://files.pythonhosted.org/packages/3a/9f/3554f0148b01ddaa5e678bf5fbce4679873534e5c0985cdf6c59c41dc9a9/pydantic_core-2.50.4-cp314-cp314-win_amd64.whl", hash = "sha256:b0cdb655fbd1562c2dfc9986f9103a106f7058cd0915afc6e656d4b1d73f3387", size = 2265109, upload-time = "2026-11-05T09:13:18.702Z" }, + { url = "https://files.pythonhosted.org/packages/ed/3c/196ef237d9ec5cca5ea9b773911dee1a387b9b1d4bfea05625b3e191a338/pydantic_core-2.50.4-cp314-cp314-win_arm64.whl", hash = "sha256:df1c174796cd63eb6b139f7daf783affe1f3ed659605850e843b24764c21bfc5", size = 2165745, upload-time = "2026-11-05T09:13:20.245Z" }, + { url = "https://files.pythonhosted.org/packages/36/12/0ee82a41a3995f0b531cf14e0b823dc2365ba4a22330670fccaa72753f12/pydantic_core-2.50.4-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:edbca8789fd10f0de534b660a6b4c71f1fd18039679c918dad392ab044bb37e4", size = 2223917, upload-time = "2026-11-05T09:13:21.623Z" }, + { url = "https://files.pythonhosted.org/packages/90/2c/592f8404abbcc65a70e6a802d1dc8f11412af44913e5146cf5c345370074/pydantic_core-2.50.4-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:33b21f69540a12c2053cd1d95766d8bd9667a3897f7c712a642de8aa37eb0865", size = 2087372, upload-time = "2026-11-05T09:13:23.16Z" }, + { url = "https://files.pythonhosted.org/packages/ea/1d/c7111757c84b5b8c19b1e39ceb5e131e6e48e14169ec6004e0f8f28f43f3/pydantic_core-2.50.4-cp314-cp314t-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:ffb616d8d55965839670301dc3bae3abacff560a7e137a89056058a8a9da4d96", size = 2275190, upload-time = "2026-11-05T09:13:24.634Z" }, + { url = "https://files.pythonhosted.org/packages/3d/ae/6c49cc9b8e66e61adee782d1763894bf64a357cddae82f725059b85bdc98/pydantic_core-2.50.4-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:6c5687b59b6ba0f663c4f2f15470f68507d6b45ccd3a19ee6d224f95cbee70d8", size = 2110343, upload-time = "2026-11-05T09:13:26.168Z" }, + { url = "https://files.pythonhosted.org/packages/ed/39/0ee5261d1daa9ad526371181c13696add0565251b2823f6e00a9a9af397d/pydantic_core-2.50.4-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:c733087ecf7dde06b1d071679bfd5f3ba03266ba77814c1c7253bc48c9adedd9", size = 2207887, upload-time = "2026-11-05T09:13:27.681Z" }, + { url = "https://files.pythonhosted.org/packages/ac/b5/a0652c0e99590107e111088b6d059044380a787da9ffdd0b458ab4cd9453/pydantic_core-2.50.4-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:94733cb447c37b0ce6f71b39ca1288d5f966a084023a5617b4cc35a852586859", size = 2404171, upload-time = "2026-11-05T09:13:29.864Z" }, + { url = "https://files.pythonhosted.org/packages/a3/85/d49f0b8e09a0ffc40dcefb604f9e6020e0d61b51a5f64a504f382fa84c39/pydantic_core-2.50.4-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:b26f39a5be3cd91a2035818be3d0ffdf5282c3e1f5f53d3b80b7024021acee52", size = 2466049, upload-time = "2026-11-05T09:13:31.658Z" }, + { url = "https://files.pythonhosted.org/packages/e6/76/f2b04d7c53edfd8136053c812ea49914fbf4091196cb7baf9ea326fa2ff8/pydantic_core-2.50.4-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:c856e439a9d54d514e81a7131229ba151cdf81df7c408e0f6c89340e5003dfe2", size = 2262062, upload-time = "2026-11-05T09:13:33.806Z" }, + { url = "https://files.pythonhosted.org/packages/24/60/016f14cea883adc33df90b8df220df934de49ded9640f45c8e92bb298494/pydantic_core-2.50.4-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:cbf0777d54672990b10cb8ca9b0523499e182d7e2ea39f86b138519a902aa601", size = 2263713, upload-time = "2026-11-05T09:13:35.337Z" }, + { url = "https://files.pythonhosted.org/packages/f1/3f/b05828e978512973e7e215bab69e65e70d223d6309a17bf48084a50692f4/pydantic_core-2.50.4-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:edc17549ab592e33cfcaf285f047bb75fcd98f608aa9309af1187fd736ce9641", size = 2305044, upload-time = "2026-11-05T09:13:37.043Z" }, + { url = "https://files.pythonhosted.org/packages/91/c1/fca6c5f623ac45ba284713c614b30173aa0794899a0a457f866fa6f5e886/pydantic_core-2.50.4-cp314-cp314t-musllinux_1_1_armv7l.whl", hash = "sha256:23a9ba564b2db709ff16eca990992ba95a19069972b34bff87c81d4b473cd755", size = 2483506, upload-time = "2026-11-05T09:13:40.524Z" }, + { url = "https://files.pythonhosted.org/packages/94/c2/ec41f68d1208e53e1a73ead940c050c4316bbb555ba42676a5e949fd529e/pydantic_core-2.50.4-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:41f4f8ae714e4fea1d635880f8a1af715ecf080eed4d13c5b04a0f3210f9c61a", size = 2512832, upload-time = "2026-11-05T09:13:43.361Z" }, + { url = "https://files.pythonhosted.org/packages/43/22/58583b86309f70cce854e0e77c412839a56ac6c682d6060f5794afeff315/pydantic_core-2.50.4-cp314-cp314t-win32.whl", hash = "sha256:601fce6cea9ddeaa85329e12e7f351def38d233075f42a3012b9c48071b02941", size = 2101977, upload-time = "2026-11-05T09:13:45.735Z" }, + { url = "https://files.pythonhosted.org/packages/6b/28/193bc0994f7fe15f2874c1dfe2f3bc7872aed8283ffda2cf05fb9a5a06b4/pydantic_core-2.50.4-cp314-cp314t-win_amd64.whl", hash = "sha256:22e874666bdbd96d6bf629d32cd8ab376fedf1fd62585b52a42b9fa9fa6c20b6", size = 2240461, upload-time = "2026-11-05T09:13:48.38Z" }, + { url = "https://files.pythonhosted.org/packages/00/ed/5615cfdd5620a4926440eb1a2b73db0dc895824ba565ccaa8d9eb3a8e974/pydantic_core-2.50.4-cp314-cp314t-win_arm64.whl", hash = "sha256:71395a43da5584bb70556f380387e15f845c0dcf76373c1afbfa0025737576ac", size = 2168505, upload-time = "2026-11-05T09:13:50.762Z" }, + { url = "https://files.pythonhosted.org/packages/6d/9f/e6673535165d965a11c1d5339f53995f90234019827eaecb41a57e6e463d/pydantic_core-2.50.4-cp315-cp315-macosx_10_12_x86_64.whl", hash = "sha256:7ac2769a7ddd661e07e26c12220adc31b17014c48234b2a5a88993b8d4109e09", size = 2241950, upload-time = "2026-11-05T09:13:53.055Z" }, + { url = "https://files.pythonhosted.org/packages/6f/02/65951efadbf7826e6a270843f97e3da2ef726de2b6d9cd7c5dfa4c48807e/pydantic_core-2.50.4-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:930ad463d3fb7a340d323bcc496ec32dae469ec9974c29ff569f19806b6b03b4", size = 2112412, upload-time = "2026-11-05T09:13:55.309Z" }, + { url = "https://files.pythonhosted.org/packages/c9/d3/4fb6e2e4a9e4951f1e05b198366ed5330e0874e83d52077e8b985350fe0e/pydantic_core-2.50.4-cp315-cp315-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:b867f9fd183d76977f810c626d539265183c25b2284762893a31e8d6cacc81c0", size = 2263220, upload-time = "2026-11-05T09:13:57.555Z" }, + { url = "https://files.pythonhosted.org/packages/63/83/42e70436c523357b49393b73f161f2741acf36003c8efd2f941d2be56bae/pydantic_core-2.50.4-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:49eb1241a969a5994db6880c18c012b6cbe2340343d8f529721571806583e500", size = 2134716, upload-time = "2026-11-05T09:13:59.413Z" }, + { url = "https://files.pythonhosted.org/packages/36/66/ed9b87f4751fd07e472c62cfe151f575abdf4c452fab943d35ba8efdc6c4/pydantic_core-2.50.4-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:477af785d1846e4e96bf56983b92ea7553aaeccdeb8acdaa55c7cee9eda0ae32", size = 2201901, upload-time = "2026-11-05T09:14:01.472Z" }, + { url = "https://files.pythonhosted.org/packages/2b/21/ff2e6ac7202b6d326e9f007c6082f6e6f3aaa063790ea2a355bdc985addc/pydantic_core-2.50.4-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:29358a8ca74e7d81158d14e2b10c904bd18773293ae3788716c0626fe0342347", size = 2389670, upload-time = "2026-11-05T09:14:03.431Z" }, + { url = "https://files.pythonhosted.org/packages/b9/34/e9348bc13d549641791a51843ed140fbb311d9066628e27477343412d5ad/pydantic_core-2.50.4-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:300753f71c73302e218124baf995f00058e085cd01869bd9610bcbd0bd4500c1", size = 2468951, upload-time = "2026-11-05T09:14:05.028Z" }, + { url = "https://files.pythonhosted.org/packages/ac/5e/145a02bf2b9f66981108caf6cc9e78917e31e4caca14d1e3ccd3ff2c7293/pydantic_core-2.50.4-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:26cb012c4b8ca9f847bd0ac15978bd3d0f55b050bfbe6c47355edfc7e945029b", size = 2272957, upload-time = "2026-11-05T09:14:06.587Z" }, + { url = "https://files.pythonhosted.org/packages/fd/38/b71c5b245e923f6cf144e948ed2a9d6b7fb97d8905784db8d860f5176b8b/pydantic_core-2.50.4-cp315-cp315-manylinux_2_31_riscv64.whl", hash = "sha256:9be1cfe715ecaa060ffd5d599ef410b94ef2697a0eed4cee562f788a2aa2175b", size = 2275028, upload-time = "2026-11-05T09:14:08.219Z" }, + { url = "https://files.pythonhosted.org/packages/ba/71/2504dacdc5cd3ea3ec5e68c9b6e097c979500bcff220b97046cc8ea3c1ad/pydantic_core-2.50.4-cp315-cp315-musllinux_1_1_aarch64.whl", hash = "sha256:c81e35862aced259177a537ce1a6264c3a97bae1ced184ca9dc10ea754563688", size = 2305447, upload-time = "2026-11-05T09:14:09.795Z" }, + { url = "https://files.pythonhosted.org/packages/2c/90/904233a6c148bcac9f30bb96a2761e5fb52682d0d6de31a40c74a3714ceb/pydantic_core-2.50.4-cp315-cp315-musllinux_1_1_armv7l.whl", hash = "sha256:b2f2d13239487cecaae98c9f4d5904ad0737643cdf8873c88ec6a78b12214f20", size = 2477852, upload-time = "2026-11-05T09:14:11.443Z" }, + { url = "https://files.pythonhosted.org/packages/72/33/1cbdcbf343ca23b507e967b21dddc4c8bf17a74c8b5cad59228c85ba4efc/pydantic_core-2.50.4-cp315-cp315-musllinux_1_1_x86_64.whl", hash = "sha256:e6b4b08d09054310a4dc389fa61ee22a7a5a292cb23ab8a985136ca8828bf924", size = 2506352, upload-time = "2026-11-05T09:14:13.165Z" }, + { url = "https://files.pythonhosted.org/packages/91/24/3ad9ea0876e6624c90967e5f1446e751b275cfdfaaf798a0d8e0b30025bc/pydantic_core-2.50.4-cp315-cp315-win32.whl", hash = "sha256:6619d49a89a15cd04334f76fec530c155923bfc60da74ff5d815a52629e1aa6c", size = 2127780, upload-time = "2026-11-05T09:14:17.52Z" }, + { url = "https://files.pythonhosted.org/packages/c0/3c/0582532b90a12492471977bdbca1317eca5144f6342ea581d2cee73ccd35/pydantic_core-2.50.4-cp315-cp315-win_amd64.whl", hash = "sha256:e5bd109d095aaae989a0463d5ef0fcc43e9ddd5de125e656d3c119a79e466380", size = 2270596, upload-time = "2026-11-05T09:14:20.955Z" }, + { url = "https://files.pythonhosted.org/packages/6c/50/967cfe4f7043a993c0c80cd3563c598b5281d2276aa775d0f6ff7f714271/pydantic_core-2.50.4-cp315-cp315-win_arm64.whl", hash = "sha256:6118e5a5550e36582e19bac1a403711a748f9f18251b054c326d3db02aaa7a18", size = 2170880, upload-time = "2026-11-05T09:14:24.822Z" }, + { url = "https://files.pythonhosted.org/packages/9e/71/3ec5bd8a82f792482f16d79fdbe8ce85aa71bf7147e556c5fc5f8546818d/pydantic_core-2.50.4-cp315-cp315t-macosx_10_12_x86_64.whl", hash = "sha256:d8201c9f9035520cdcc7dcad383b039ec8123969b87e01cf27c3dd883c02313b", size = 2233053, upload-time = "2026-11-05T09:14:27.942Z" }, + { url = "https://files.pythonhosted.org/packages/6e/2e/614dc37aedf8e9f811c1f2eedaf8eb09a7c196e2d137fe82bcc9d5662ca2/pydantic_core-2.50.4-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:1de7be9a66fc8536770481ab64a05aae5067c725f2b29a09543af00e6a417b97", size = 2090776, upload-time = "2026-11-05T09:14:30.281Z" }, + { url = "https://files.pythonhosted.org/packages/f9/14/aefc14e3e05013070ee959fc0b8703f6860a2776ed6e75b9c748f61aced0/pydantic_core-2.50.4-cp315-cp315t-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:789a6453e5ffd18a7ab6b8c3a0dd8403053829197ec258ecb90c604c21ffcc99", size = 2272481, upload-time = "2026-11-05T09:14:32.578Z" }, + { url = "https://files.pythonhosted.org/packages/13/c9/d56999aa7236dc9303091db2b1ef7303f0b022baf25ebf33cd200c0cb933/pydantic_core-2.50.4-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:6348ad12fa741bcc9c2f173e99fbf27cbc038826d8c31a4a7d836eca27878ba2", size = 2113069, upload-time = "2026-11-05T09:14:34.69Z" }, + { url = "https://files.pythonhosted.org/packages/b7/d5/a62da9e72f272f198f6118c5457332bbd4b9fdc4b77858448120569756de/pydantic_core-2.50.4-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:d49127f137f871cde3c5650af33bbbdcee02679dae76e020902fa106f522b8ae", size = 2202754, upload-time = "2026-11-05T09:14:36.49Z" }, + { url = "https://files.pythonhosted.org/packages/37/4a/e7f21577f96e42ac3082cd014df398c1c913d482afac1c8ef17b9e039198/pydantic_core-2.50.4-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:2f5cc5bcb94063fbbdfd285a2b302da34af07491337c10bb35de1d5220fa1583", size = 2411472, upload-time = "2026-11-05T09:14:38.63Z" }, + { url = "https://files.pythonhosted.org/packages/38/ad/c57c5e13bbfd3404ec1af519764aadbc52ee01e39f9f9ae9d28317f982f2/pydantic_core-2.50.4-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:b99bed995ed7c41515c11fe2beb86f8a6cc298e5537cae2f736de2f982f74ef0", size = 2475330, upload-time = "2026-11-05T09:14:40.519Z" }, + { url = "https://files.pythonhosted.org/packages/6e/63/65cf0e1f1fd8cfaafee3c005712b8020e063b0f3e3571493ea68db5ec44f/pydantic_core-2.50.4-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:faa4e96385c820ce9d7f7a623486e23d4134ae3c9ba2071e44e0ab5a5a5002c4", size = 2265718, upload-time = "2026-11-05T09:14:42.379Z" }, + { url = "https://files.pythonhosted.org/packages/72/5d/fd9fdec9b25e2ef1f788970a84f749f0e28f166573c87654fd5387d8e5ce/pydantic_core-2.50.4-cp315-cp315t-manylinux_2_31_riscv64.whl", hash = "sha256:d6a166978f22f10cb91413f70519861605219346decf65bc79008f9257c94afe", size = 2273454, upload-time = "2026-11-05T09:14:44.286Z" }, + { url = "https://files.pythonhosted.org/packages/34/8c/19705c6d5eb72ff8c25006df8a375da7466176a5968781789e5415384f65/pydantic_core-2.50.4-cp315-cp315t-musllinux_1_1_aarch64.whl", hash = "sha256:a70d5effebd81ebd8e15a8aabdc7980832367b2b00c36543bac378977004cc80", size = 2314862, upload-time = "2026-11-05T09:14:45.97Z" }, + { url = "https://files.pythonhosted.org/packages/b8/fb/acefa27031aba2646b0d3026c4a1602e526489d39395ab17bc47f03234e3/pydantic_core-2.50.4-cp315-cp315t-musllinux_1_1_armv7l.whl", hash = "sha256:f8fd23653a252cefabea11cd041efd7b80bdf403e43a36dea53f9cb0aaa21f0f", size = 2479073, upload-time = "2026-11-05T09:14:47.526Z" }, + { url = "https://files.pythonhosted.org/packages/ef/e1/db08fa1e5edf1779fa0612f8d09f9030bdc513f593687c883cb781b86caa/pydantic_core-2.50.4-cp315-cp315t-musllinux_1_1_x86_64.whl", hash = "sha256:7646353a5a7c553c04167aca628e2550b538f492765b03ccf34321a560acc43c", size = 2521328, upload-time = "2026-11-05T09:14:49.042Z" }, + { url = "https://files.pythonhosted.org/packages/0d/51/bf1ec5b96c076d8d514b08f3bcffb3397df7a0fcc729eb960838a8bbe27f/pydantic_core-2.50.4-cp315-cp315t-win32.whl", hash = "sha256:65376dbe1ab4dbc768ca2b72b7c13993562c035f5925fd3bc7ff9c8c585c515d", size = 2107629, upload-time = "2026-11-05T09:14:50.891Z" }, + { url = "https://files.pythonhosted.org/packages/18/32/43d5db1824ec2314f737ff8d9962ff59954a74616d8656a8cc78790e45f1/pydantic_core-2.50.4-cp315-cp315t-win_amd64.whl", hash = "sha256:f08ee8248aad2d054e5bc4c73554d4505464698f6d754f16198dbc5764e9821d", size = 2244906, upload-time = "2026-11-05T09:14:53.056Z" }, + { url = "https://files.pythonhosted.org/packages/3a/c0/38c505004969c4641c3a077a8e72e354f02d5c06d8f51d7a103699704772/pydantic_core-2.50.4-cp315-cp315t-win_arm64.whl", hash = "sha256:da779ae50b46f3f7d1e1b5f362fdc0ad376a49fd55f6f3122dc2b6149936cdf7", size = 2179018, upload-time = "2026-11-05T09:14:54.448Z" }, + { url = "https://files.pythonhosted.org/packages/9e/3a/d405a50e02ea81cd95e93fc97f43d351eeaa1707c28aa6fb58a9f1c1efa9/pydantic_core-2.50.4-graalpy313-graalpy253_313_native-macosx_11_0_arm64.whl", hash = "sha256:71e03d2ea1a221d020cfc5b6cc8bbbedef23a06704c70fcf4d0afb42965b22d1", size = 2049324, upload-time = "2026-11-05T09:15:02.379Z" }, + { url = "https://files.pythonhosted.org/packages/8f/3b/03e7992115e17cae4131ecd71aadb8fd5e4a04cc2aead72c3c27e9b453d1/pydantic_core-2.50.4-graalpy313-graalpy253_313_native-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:09450778e3ab58d3f565899fcfbf6c82926e31af29e28e799d1d50941316e0cb", size = 2119802, upload-time = "2026-11-05T09:15:03.901Z" }, + { url = "https://files.pythonhosted.org/packages/e3/d5/b76fc647e473377ca6e693c21549ee3a4a7677e4962c28ae4659337c5114/pydantic_core-2.50.4-graalpy313-graalpy253_313_native-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:4eb15be588407148ef5937dc8d9256a71f6b115e6cddadb7aa20b6ee384680dc", size = 2280639, upload-time = "2026-11-05T09:15:05.374Z" }, +] + +[[package]] +name = "pygments" +version = "2.21.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/49/2e/ced460408999b33da6b31b0021b0f37d329e202d4169aeb164493778f25b/pygments-2.21.0.tar.gz", hash = "sha256:610ca751c9bc2492b38eb9a38a7fbc93edbbb2d7182edaf34e66ae493dee5c8c", size = 5005329, upload-time = "2026-08-17T08:02:48.824Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/71/46/17f022dd3e953bf20a04a028a21ec746d942f8d2af30fa0f124fa0e6a684/pygments-2.21.0-py3-none-any.whl", hash = "sha256:2363c69b61c4a97c838da3b130dcd6468f4848992b21a82f2a63ec34377137d9", size = 1250147, upload-time = "2026-08-17T08:02:44.912Z" }, +] + +[[package]] +name = "pyoxigraph" +version = "0.5.13" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f3/c0/1e3703a8d0d084c1ecb4508e3f48d66a84b6809bc20f51d63be6492c8ea1/pyoxigraph-0.5.13.tar.gz", hash = "sha256:1805b92b51293f658557ae53b4eb42ac4dc826959ccff1c5c0f5067ac570b073", size = 5310796, upload-time = "2026-10-22T19:30:25.401Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/4e/aa/7c08248418af31730019cd9eab3b1fd0a3aa50a3b2a802d5c9af08f2a387/pyoxigraph-0.5.13-cp313-cp313-manylinux_2_28_aarch64.whl", hash = "sha256:7ad11cc64424fffb65e407ad6a88ce1483c8597cf196788aa2e4b89287eef860", size = 7704303, upload-time = "2026-10-22T19:29:21.62Z" }, + { url = "https://files.pythonhosted.org/packages/79/67/85a196a525a3ec8b5075ae5c750df9cb29e6a44fa5aa61508c203c156aef/pyoxigraph-0.5.13-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:402f8bf9eae3b37a18e808bde1b39760a1e15f208bb0e1a59c796567e4aa2aa0", size = 8237211, upload-time = "2026-10-22T19:29:23.967Z" }, + { url = "https://files.pythonhosted.org/packages/c5/82/0a0c603742897b2458710ad74e7601fb0240ecf3225f7bdcdd176c26e2b3/pyoxigraph-0.5.13-cp314-cp314-manylinux_2_28_aarch64.whl", hash = "sha256:be4d0f0ba2e054fa1926cc962611a66f2a52ef2d65f6b7161e1a4af2880e2a96", size = 7703302, upload-time = "2026-10-22T19:29:26.23Z" }, + { url = "https://files.pythonhosted.org/packages/db/eb/a147756d720e68dd05a54f3843b430e0111d5860a0e1a751ea109a1668b9/pyoxigraph-0.5.13-cp314-cp314-manylinux_2_28_x86_64.whl", hash = "sha256:2dd79c4a50c6e33cd95bd66968a10ead584a89df4943b4a667e7d945f6ddef94", size = 8236915, upload-time = "2026-10-22T19:29:28.528Z" }, + { url = "https://files.pythonhosted.org/packages/65/9a/9d542d5338d10def39d09453b26136899a0320349875b02992a93750d323/pyoxigraph-0.5.13-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:aa6e3a1371cfd6038ccbb29147cf5e68b81466b5b1ea9f036ddc586caf9ea03f", size = 7699069, upload-time = "2026-10-22T19:29:30.915Z" }, + { url = "https://files.pythonhosted.org/packages/0e/39/a5477902f7402aea001bfdce20b64c7c49d80428f5f1f171cecc3ffa8442/pyoxigraph-0.5.13-cp314-cp314t-manylinux_2_28_x86_64.whl", hash = "sha256:687fe80380b77400978e869bb2ce956fcaf44e67a234b3b74c0ac6eea5435997", size = 8231320, upload-time = "2026-10-22T19:29:33.015Z" }, + { url = "https://files.pythonhosted.org/packages/4f/b7/9985a8e9e7c820928d14fea0bdc738f97256a1641f7f3d2583ede494ed7b/pyoxigraph-0.5.13-cp315-abi3.abi3t-macosx_10_14_x86_64.whl", hash = "sha256:87da45fbd9f0b9748946935061667f66204080ddbaba68c0df2fbcb85d28b769", size = 6376498, upload-time = "2026-10-22T19:29:35.142Z" }, + { url = "https://files.pythonhosted.org/packages/ac/7b/b2fe02d660d12605f70d423357479ee73a718e35a61a0e6e1f07c4138cc4/pyoxigraph-0.5.13-cp315-abi3.abi3t-macosx_11_0_arm64.whl", hash = "sha256:f91728b51f92ffc4f22348efe8dfeec50501b711e3cd29cf7d6132f2c8f8b2a4", size = 5867494, upload-time = "2026-10-22T19:29:37.403Z" }, + { url = "https://files.pythonhosted.org/packages/94/8a/cadcc4d050e4614e5ffe30ae996566d9b279c6ae352f838d0ed316bf450d/pyoxigraph-0.5.13-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl", hash = "sha256:0714462f6202590d4fd4dfad71aa8c6487df2c6467e7eddece9202db86865f91", size = 7736579, upload-time = "2026-10-22T19:29:39.355Z" }, + { url = "https://files.pythonhosted.org/packages/e9/95/380b937539de69d33fabf54ce5a07c5bc63989aada8ef908ed054f9f2b92/pyoxigraph-0.5.13-cp315-abi3.abi3t-manylinux_2_28_x86_64.whl", hash = "sha256:bcf442352a8a78399f0009f827347a6edc1ba4d230c0a9f88304cdee6ffc3617", size = 8268414, upload-time = "2026-10-22T19:29:41.692Z" }, + { url = "https://files.pythonhosted.org/packages/f5/89/dcf654d3c2a487bf385b56cc2f1ed7fb78301e39d0be8c0269c2ee69b4d2/pyoxigraph-0.5.13-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl", hash = "sha256:5331a391cbbf322debdc8208818c3cb1b68953e528e675299c8fe7d56edc23d4", size = 8927997, upload-time = "2026-10-22T19:29:44.09Z" }, + { url = "https://files.pythonhosted.org/packages/3a/67/98dc3f0ef4e52505242601c7e67d5c631506a66ae29a6fe04835e9c6ec85/pyoxigraph-0.5.13-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl", hash = "sha256:a92e41fee2fc7b5da603b620e12de64b03f82f214f56d3a977196cbffbcd4aa0", size = 9492270, upload-time = "2026-10-22T19:29:46.919Z" }, + { url = "https://files.pythonhosted.org/packages/6c/a8/1699d3ede7c77b41f66b4e36a80f09aa52b3db869d4f16449c014df4c455/pyoxigraph-0.5.13-cp315-abi3.abi3t-win_amd64.whl", hash = "sha256:4118c295d41b0cbca5b2ae0966ff34dc1779551c4e07f2e412f566772e826793", size = 5497046, upload-time = "2026-10-22T19:29:49.572Z" }, + { url = "https://files.pythonhosted.org/packages/55/ec/27f5800a6072aeb490837f3bc28380c76e311742982498f2f3fb58ac6f30/pyoxigraph-0.5.13-cp315-abi3.abi3t-win_arm64.whl", hash = "sha256:0a5ea71909f186770e1773ef853f2f797eb004a7a2ba1e6ae9fcae97c5967c01", size = 5149490, upload-time = "2026-10-22T19:29:51.676Z" }, + { url = "https://files.pythonhosted.org/packages/9f/c3/d93b1379855b64dd104950886974789ddc2758f00aa06ae2565e264b308a/pyoxigraph-0.5.13-cp315-cp315-manylinux_2_28_aarch64.whl", hash = "sha256:78dd4c8ba94417daa51ce6bd007d6b49a8f8cc56c2b2a7db4a9cb234b0f48d1e", size = 7704390, upload-time = "2026-10-22T19:29:54.026Z" }, + { url = "https://files.pythonhosted.org/packages/e9/a5/032c5d36b7bf27e2ea223abeba8121e5e0126f5b0b4cc51ac317ccb3aa2f/pyoxigraph-0.5.13-cp315-cp315-manylinux_2_28_x86_64.whl", hash = "sha256:7143fcc779c3dc64bf326d3a3ba8ac802ae2fa14f6b9a557a9605fa5bcc16453", size = 8236874, upload-time = "2026-10-22T19:29:56.252Z" }, + { url = "https://files.pythonhosted.org/packages/d9/48/344910eb6af38946e3b647c8a113bb97d3739b0fbfaf5731ea70cf8a97d0/pyoxigraph-0.5.13-cp315-cp315t-manylinux_2_28_aarch64.whl", hash = "sha256:a9d9e946bb4ff4a724c71653eb3c768aa216e03a403f0251b8ed182c88a64bcf", size = 7698492, upload-time = "2026-10-22T19:29:59.245Z" }, + { url = "https://files.pythonhosted.org/packages/88/37/63cb951cec86d7ea217c0d89ef303af95ab2342eeef491837d99ea3003be/pyoxigraph-0.5.13-cp315-cp315t-manylinux_2_28_x86_64.whl", hash = "sha256:7b66252ff1f3c514d9830974ff85456cfe805450f108f713471170541fa3900f", size = 8231615, upload-time = "2026-10-22T19:30:01.372Z" }, + { url = "https://files.pythonhosted.org/packages/34/7a/6db4183d218768be8962740ab1bec852935c690bd07e0ca1f88ae4599462/pyoxigraph-0.5.13-cp39-abi3-macosx_10_14_x86_64.whl", hash = "sha256:88c0dffa457e30e57e60931bd808c65cfc710f805b1288760518534f23ffbfdd", size = 6344012, upload-time = "2026-10-22T19:30:03.655Z" }, + { url = "https://files.pythonhosted.org/packages/6e/cf/b8b0fb626ddb4e2d08d3375e2e2c1e1286769f4b64dbdd90680cc4bc7d36/pyoxigraph-0.5.13-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:ebf818fc940b44d30f92a4e84afffbac0284eb57567a8a06fe076a482c605132", size = 5843018, upload-time = "2026-10-22T19:30:05.712Z" }, + { url = "https://files.pythonhosted.org/packages/67/da/417fd464225f0a3bc20cf67a8cbd04ad69a06d84b1d99c2e84eaa4b087b1/pyoxigraph-0.5.13-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:560f9842054b69e7688d847dc45bef202548d226e035ab56a15f0187a1f312fb", size = 7706909, upload-time = "2026-10-22T19:30:07.842Z" }, + { url = "https://files.pythonhosted.org/packages/f8/b3/be2ecc6d27e8ac4443f9e90b1d7ba797d4ffc01502b8b65dcc6345ce6ebe/pyoxigraph-0.5.13-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:d12a7de106d1ffac4e3cfca79f498b9dc97704f0e3bf50b5e4d47770d63427b2", size = 8238304, upload-time = "2026-10-22T19:30:10.022Z" }, + { url = "https://files.pythonhosted.org/packages/31/30/652accfd1c983cdafe7ab8945317f884835de2ef3301eba108aa09229fe1/pyoxigraph-0.5.13-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:a948cf25ba85580d6ba695d1c911a5c1018dd4f5925cb0a8f2db680c4de53dd6", size = 8892548, upload-time = "2026-10-22T19:30:12.28Z" }, + { url = "https://files.pythonhosted.org/packages/c9/6a/b7ac582c1d2a63b360d744402e40e4325421010b8d0a4eda6992c2602497/pyoxigraph-0.5.13-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:249e5eff4f94b646ec4dcd5c152fdd8db54d2979610790ec00f0c210d2e2b934", size = 9461002, upload-time = "2026-10-22T19:30:14.705Z" }, + { url = "https://files.pythonhosted.org/packages/87/f1/521becfb1cfd4f01603abe4ad8c37fd1d52134bc82bc3a72c4d1c4da3204/pyoxigraph-0.5.13-cp39-abi3-win_amd64.whl", hash = "sha256:5497c901b2a74a76a8ec3aad44ad79d002047b965425570f349b6d08bfdab8ea", size = 5471556, upload-time = "2026-10-22T19:30:17.107Z" }, + { url = "https://files.pythonhosted.org/packages/07/a3/a42eb852e65efbc55a8b87ee5f0537d5712b959d052c4067e24d4c954a4c/pyoxigraph-0.5.13-cp39-abi3-win_arm64.whl", hash = "sha256:0e195f1db8aeba5964b31e40a877da0c42e10fd3ad765c4348f8cf3a1f52fc17", size = 5129516, upload-time = "2026-10-22T19:30:19.089Z" }, +] + +[[package]] +name = "pyparsing" +version = "3.3.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/e4/11/b213bebff182584360cb8d17c72c1677fec5c5c228de439e63bcf8ab1c8f/pyparsing-3.3.3.tar.gz", hash = "sha256:928ae7e20211f3b6f3915a72f06a0cfd29ab9d24279dd6346b6b1a7146397d36", size = 1050487, upload-time = "2026-09-20T20:59:05.609Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/38/bb/d215ee7c73b61497b28a5503f9f53523f294fcc936762b7caf90e0c1c2b5/pyparsing-3.3.3-py3-none-any.whl", hash = "sha256:ece8c00a69cf01b45d0b1dedabb469c90d8caf996d4fda40f147627a122849a4", size = 126420, upload-time = "2026-09-20T20:59:04.025Z" }, +] + +[[package]] +name = "pytest" +version = "9.2.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "colorama", marker = "sys_platform == 'win32'" }, + { name = "iniconfig" }, + { name = "packaging" }, + { name = "pluggy" }, + { name = "pygments" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/79/42/bb4641652e58dedeac2ec51abc1f8cae4fee4ec63899a0999016229a0f2a/pytest-9.2.0.tar.gz", hash = "sha256:97c4f3b1f3c7414aa36465e09b8220f1d03627993bd51b1282e193753c80557b", size = 1797555, upload-time = "2026-10-27T21:30:20.728Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/51/39/1f5d8c8877a0fa327db959c19341d4be61660de1ab6b7391f9eb805bcd67/pytest-9.2.0-py3-none-any.whl", hash = "sha256:07acdcf88ec174f907dc01af70bf52d49b014bbab03faeeade31c96b18c2e588", size = 411776, upload-time = "2026-10-27T21:30:19.131Z" }, +] + +[[package]] +name = "pytest-logging" +version = "2015.11.4" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pytest" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/dc/1e/fb11174c9eaebcec27d36e9e994b90ffa168bc3226925900b9dbbf16c9da/pytest-logging-2015.11.4.tar.gz", hash = "sha256:cec5c85ecf18aab7b2ead5498a31b9f758680ef5a902b9054ab3f2bdbb77c896", size = 3916, upload-time = "2015-11-04T12:15:54.122Z" } + +[[package]] +name = "pyyaml" +version = "6.0.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/05/8e/961c0007c59b8dd7729d542c61a4d537767a59645b82a0b521206e1e25c2/pyyaml-6.0.3.tar.gz", hash = "sha256:d76623373421df22fb4cf8817020cbb7ef15c725b9d5e45f17e189bfc384190f", size = 130960, upload-time = "2025-09-25T21:33:16.546Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d1/11/0fd08f8192109f7169db964b5707a2f1e8b745d4e239b784a5a1dd80d1db/pyyaml-6.0.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:8da9669d359f02c0b91ccc01cac4a67f16afec0dac22c2ad09f46bee0697eba8", size = 181669, upload-time = "2025-09-25T21:32:23.673Z" }, + { url = "https://files.pythonhosted.org/packages/b1/16/95309993f1d3748cd644e02e38b75d50cbc0d9561d21f390a76242ce073f/pyyaml-6.0.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:2283a07e2c21a2aa78d9c4442724ec1eb15f5e42a723b99cb3d822d48f5f7ad1", size = 173252, upload-time = "2025-09-25T21:32:25.149Z" }, + { url = "https://files.pythonhosted.org/packages/50/31/b20f376d3f810b9b2371e72ef5adb33879b25edb7a6d072cb7ca0c486398/pyyaml-6.0.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ee2922902c45ae8ccada2c5b501ab86c36525b883eff4255313a253a3160861c", size = 767081, upload-time = "2025-09-25T21:32:26.575Z" }, + { url = "https://files.pythonhosted.org/packages/49/1e/a55ca81e949270d5d4432fbbd19dfea5321eda7c41a849d443dc92fd1ff7/pyyaml-6.0.3-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a33284e20b78bd4a18c8c2282d549d10bc8408a2a7ff57653c0cf0b9be0afce5", size = 841159, upload-time = "2025-09-25T21:32:27.727Z" }, + { url = "https://files.pythonhosted.org/packages/74/27/e5b8f34d02d9995b80abcef563ea1f8b56d20134d8f4e5e81733b1feceb2/pyyaml-6.0.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0f29edc409a6392443abf94b9cf89ce99889a1dd5376d94316ae5145dfedd5d6", size = 801626, upload-time = "2025-09-25T21:32:28.878Z" }, + { url = "https://files.pythonhosted.org/packages/f9/11/ba845c23988798f40e52ba45f34849aa8a1f2d4af4b798588010792ebad6/pyyaml-6.0.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f7057c9a337546edc7973c0d3ba84ddcdf0daa14533c2065749c9075001090e6", size = 753613, upload-time = "2025-09-25T21:32:30.178Z" }, + { url = "https://files.pythonhosted.org/packages/3d/e0/7966e1a7bfc0a45bf0a7fb6b98ea03fc9b8d84fa7f2229e9659680b69ee3/pyyaml-6.0.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:eda16858a3cab07b80edaf74336ece1f986ba330fdb8ee0d6c0d68fe82bc96be", size = 794115, upload-time = "2025-09-25T21:32:31.353Z" }, + { url = "https://files.pythonhosted.org/packages/de/94/980b50a6531b3019e45ddeada0626d45fa85cbe22300844a7983285bed3b/pyyaml-6.0.3-cp313-cp313-win32.whl", hash = "sha256:d0eae10f8159e8fdad514efdc92d74fd8d682c933a6dd088030f3834bc8e6b26", size = 137427, upload-time = "2025-09-25T21:32:32.58Z" }, + { url = "https://files.pythonhosted.org/packages/97/c9/39d5b874e8b28845e4ec2202b5da735d0199dbe5b8fb85f91398814a9a46/pyyaml-6.0.3-cp313-cp313-win_amd64.whl", hash = "sha256:79005a0d97d5ddabfeeea4cf676af11e647e41d81c9a7722a193022accdb6b7c", size = 154090, upload-time = "2025-09-25T21:32:33.659Z" }, + { url = "https://files.pythonhosted.org/packages/73/e8/2bdf3ca2090f68bb3d75b44da7bbc71843b19c9f2b9cb9b0f4ab7a5a4329/pyyaml-6.0.3-cp313-cp313-win_arm64.whl", hash = "sha256:5498cd1645aa724a7c71c8f378eb29ebe23da2fc0d7a08071d89469bf1d2defb", size = 140246, upload-time = "2025-09-25T21:32:34.663Z" }, + { url = "https://files.pythonhosted.org/packages/9d/8c/f4bd7f6465179953d3ac9bc44ac1a8a3e6122cf8ada906b4f96c60172d43/pyyaml-6.0.3-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:8d1fab6bb153a416f9aeb4b8763bc0f22a5586065f86f7664fc23339fc1c1fac", size = 181814, upload-time = "2025-09-25T21:32:35.712Z" }, + { url = "https://files.pythonhosted.org/packages/bd/9c/4d95bb87eb2063d20db7b60faa3840c1b18025517ae857371c4dd55a6b3a/pyyaml-6.0.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:34d5fcd24b8445fadc33f9cf348c1047101756fd760b4dacb5c3e99755703310", size = 173809, upload-time = "2025-09-25T21:32:36.789Z" }, + { url = "https://files.pythonhosted.org/packages/92/b5/47e807c2623074914e29dabd16cbbdd4bf5e9b2db9f8090fa64411fc5382/pyyaml-6.0.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:501a031947e3a9025ed4405a168e6ef5ae3126c59f90ce0cd6f2bfc477be31b7", size = 766454, upload-time = "2025-09-25T21:32:37.966Z" }, + { url = "https://files.pythonhosted.org/packages/02/9e/e5e9b168be58564121efb3de6859c452fccde0ab093d8438905899a3a483/pyyaml-6.0.3-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b3bc83488de33889877a0f2543ade9f70c67d66d9ebb4ac959502e12de895788", size = 836355, upload-time = "2025-09-25T21:32:39.178Z" }, + { url = "https://files.pythonhosted.org/packages/88/f9/16491d7ed2a919954993e48aa941b200f38040928474c9e85ea9e64222c3/pyyaml-6.0.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c458b6d084f9b935061bc36216e8a69a7e293a2f1e68bf956dcd9e6cbcd143f5", size = 794175, upload-time = "2025-09-25T21:32:40.865Z" }, + { url = "https://files.pythonhosted.org/packages/dd/3f/5989debef34dc6397317802b527dbbafb2b4760878a53d4166579111411e/pyyaml-6.0.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7c6610def4f163542a622a73fb39f534f8c101d690126992300bf3207eab9764", size = 755228, upload-time = "2025-09-25T21:32:42.084Z" }, + { url = "https://files.pythonhosted.org/packages/d7/ce/af88a49043cd2e265be63d083fc75b27b6ed062f5f9fd6cdc223ad62f03e/pyyaml-6.0.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:5190d403f121660ce8d1d2c1bb2ef1bd05b5f68533fc5c2ea899bd15f4399b35", size = 789194, upload-time = "2025-09-25T21:32:43.362Z" }, + { url = "https://files.pythonhosted.org/packages/23/20/bb6982b26a40bb43951265ba29d4c246ef0ff59c9fdcdf0ed04e0687de4d/pyyaml-6.0.3-cp314-cp314-win_amd64.whl", hash = "sha256:4a2e8cebe2ff6ab7d1050ecd59c25d4c8bd7e6f400f5f82b96557ac0abafd0ac", size = 156429, upload-time = "2025-09-25T21:32:57.844Z" }, + { url = "https://files.pythonhosted.org/packages/f4/f4/a4541072bb9422c8a883ab55255f918fa378ecf083f5b85e87fc2b4eda1b/pyyaml-6.0.3-cp314-cp314-win_arm64.whl", hash = "sha256:93dda82c9c22deb0a405ea4dc5f2d0cda384168e466364dec6255b293923b2f3", size = 143912, upload-time = "2025-09-25T21:32:59.247Z" }, + { url = "https://files.pythonhosted.org/packages/7c/f9/07dd09ae774e4616edf6cda684ee78f97777bdd15847253637a6f052a62f/pyyaml-6.0.3-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:02893d100e99e03eda1c8fd5c441d8c60103fd175728e23e431db1b589cf5ab3", size = 189108, upload-time = "2025-09-25T21:32:44.377Z" }, + { url = "https://files.pythonhosted.org/packages/4e/78/8d08c9fb7ce09ad8c38ad533c1191cf27f7ae1effe5bb9400a46d9437fcf/pyyaml-6.0.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:c1ff362665ae507275af2853520967820d9124984e0f7466736aea23d8611fba", size = 183641, upload-time = "2025-09-25T21:32:45.407Z" }, + { url = "https://files.pythonhosted.org/packages/7b/5b/3babb19104a46945cf816d047db2788bcaf8c94527a805610b0289a01c6b/pyyaml-6.0.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6adc77889b628398debc7b65c073bcb99c4a0237b248cacaf3fe8a557563ef6c", size = 831901, upload-time = "2025-09-25T21:32:48.83Z" }, + { url = "https://files.pythonhosted.org/packages/8b/cc/dff0684d8dc44da4d22a13f35f073d558c268780ce3c6ba1b87055bb0b87/pyyaml-6.0.3-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a80cb027f6b349846a3bf6d73b5e95e782175e52f22108cfa17876aaeff93702", size = 861132, upload-time = "2025-09-25T21:32:50.149Z" }, + { url = "https://files.pythonhosted.org/packages/b1/5e/f77dc6b9036943e285ba76b49e118d9ea929885becb0a29ba8a7c75e29fe/pyyaml-6.0.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:00c4bdeba853cc34e7dd471f16b4114f4162dc03e6b7afcc2128711f0eca823c", size = 839261, upload-time = "2025-09-25T21:32:51.808Z" }, + { url = "https://files.pythonhosted.org/packages/ce/88/a9db1376aa2a228197c58b37302f284b5617f56a5d959fd1763fb1675ce6/pyyaml-6.0.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:66e1674c3ef6f541c35191caae2d429b967b99e02040f5ba928632d9a7f0f065", size = 805272, upload-time = "2025-09-25T21:32:52.941Z" }, + { url = "https://files.pythonhosted.org/packages/da/92/1446574745d74df0c92e6aa4a7b0b3130706a4142b2d1a5869f2eaa423c6/pyyaml-6.0.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:16249ee61e95f858e83976573de0f5b2893b3677ba71c9dd36b9cf8be9ac6d65", size = 829923, upload-time = "2025-09-25T21:32:54.537Z" }, + { url = "https://files.pythonhosted.org/packages/f0/7a/1c7270340330e575b92f397352af856a8c06f230aa3e76f86b39d01b416a/pyyaml-6.0.3-cp314-cp314t-win_amd64.whl", hash = "sha256:4ad1906908f2f5ae4e5a8ddfce73c320c2a1429ec52eafd27138b7f1cbe341c9", size = 174062, upload-time = "2025-09-25T21:32:55.767Z" }, + { url = "https://files.pythonhosted.org/packages/f1/12/de94a39c2ef588c7e6455cfbe7343d3b2dc9d6b6b2f40c4c6565744c873d/pyyaml-6.0.3-cp314-cp314t-win_arm64.whl", hash = "sha256:ebc55a14a21cb14062aa4162f906cd962b28e2e9ea38f9b4391244cd8de4ae0b", size = 149341, upload-time = "2025-09-25T21:32:56.828Z" }, +] + +[[package]] +name = "rdflib" +version = "7.6.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pyparsing" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/98/f5/18bb77b7af9526add0c727a3b2048959847dc5fb030913e2918bf384fec3/rdflib-7.6.0.tar.gz", hash = "sha256:6c831288d5e4a5a7ece85d0ccde9877d512a3d0f02d7c06455d00d6d0ea379df", size = 4943826, upload-time = "2026-02-13T07:15:55.938Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/10/c2/6604a71269e0c1bd75656d5a001432d16f2cc5b8c057140ec797155c295e/rdflib-7.6.0-py3-none-any.whl", hash = "sha256:30c0a3ebf4c0e09215f066be7246794b6492e054e782d7ac2a34c9f70a15e0dd", size = 615416, upload-time = "2026-02-13T07:15:46.487Z" }, +] + +[[package]] +name = "referencing" +version = "0.37.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "attrs" }, + { name = "rpds-py" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/22/f5/df4e9027acead3ecc63e50fe1e36aca1523e1719559c499951bb4b53188f/referencing-0.37.0.tar.gz", hash = "sha256:44aefc3142c5b842538163acb373e24cce6632bd54bdb01b21ad5863489f50d8", size = 78036, upload-time = "2025-10-13T15:30:48.871Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2c/58/ca301544e1fa93ed4f80d724bf5b194f6e4b945841c5bfd555878eea9fcb/referencing-0.37.0-py3-none-any.whl", hash = "sha256:381329a9f99628c9069361716891d34ad94af76e461dcb0335825aecc7692231", size = 26766, upload-time = "2025-10-13T15:30:47.625Z" }, +] + +[[package]] +name = "requests" +version = "2.34.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "certifi" }, + { name = "charset-normalizer" }, + { name = "idna" }, + { name = "urllib3" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/ac/c3/e2a2b89f2d3e2179abd6d00ebd70bff6273f37fb3e0cc209f48b39d00cbf/requests-2.34.2.tar.gz", hash = "sha256:f288924cae4e29463698d6d60bc6a4da69c89185ad1e0bcc4104f584e960b9ed", size = 142856, upload-time = "2026-05-14T19:25:27.735Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a0/f4/c67b0b3f1b9245e8d266f0f112c500d50e5b4e83cb6f3b71b6528104182a/requests-2.34.2-py3-none-any.whl", hash = "sha256:2a0d60c172f83ac6ab31e4554906c0f3b3588d37b5cb939b1c061f4907e278e0", size = 73075, upload-time = "2026-05-14T19:25:26.443Z" }, +] + +[[package]] +name = "rpds-py" +version = "2026.9.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/42/68/3bd46b8a5e01d3c2ebdf9c5e9497912e3fe0cde02bac21a7130ca866e403/rpds_py-2026.9.1.tar.gz", hash = "sha256:4793ef7f78268b124b73fa933440f01d258bbae01de9fa53e9080c9ab0425a12", size = 63948, upload-time = "2026-10-04T16:32:36.469Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/83/ea/ee88fd9e756ff93fb6b1182a47ec09504a242620e33ce1d20679efefe841/rpds_py-2026.9.1-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:a36b70596407634ca82d4b989a3729074a008537a0522e4c8046a67c729103e9", size = 346229, upload-time = "2026-10-04T16:29:38.82Z" }, + { url = "https://files.pythonhosted.org/packages/57/71/a097d6552f837500fc36e6b23d09cfb9890c3cc47531f9ca64e149799615/rpds_py-2026.9.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:eba5d173f7d5708b22a93815017a4611873ed54db9f268077c0dd1ed99cfc858", size = 340514, upload-time = "2026-10-04T16:29:40.405Z" }, + { url = "https://files.pythonhosted.org/packages/bd/b7/497e85768bf4e0d8ddbaa096a4cac31d1509251dee2728a8490aa367e0b5/rpds_py-2026.9.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:457866b85daf5034296666168b84a69e0b2e89dc4f1af102b46f6448a60b9063", size = 372611, upload-time = "2026-10-04T16:29:41.778Z" }, + { url = "https://files.pythonhosted.org/packages/52/4b/74ab4108916250b6e198e0d3af05bc6835eb046315f22f7a0ceb49667c5a/rpds_py-2026.9.1-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:a3a52a3ba86436ab3aef510fbe21512abc2ddd1993005dfe50514bd2284ef025", size = 377712, upload-time = "2026-10-04T16:29:43.242Z" }, + { url = "https://files.pythonhosted.org/packages/0c/8e/067e77d9d7b3cc793c9d909b7e97e7aadbbb1fb094093b6876902cc96d38/rpds_py-2026.9.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d7841166b7fa64c9c56404617ae4341448847482d45933b13135d26c130519e5", size = 488106, upload-time = "2026-10-04T16:29:44.692Z" }, + { url = "https://files.pythonhosted.org/packages/3c/b4/c5aae6c2dde269bf955f6b7d35065c655a57e47750d9668052ad67e74dda/rpds_py-2026.9.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:926bdd3e3b5998ddf70cc64bc8cf57209571f9044542913afb673799fec77dd0", size = 390795, upload-time = "2026-10-04T16:29:46.129Z" }, + { url = "https://files.pythonhosted.org/packages/a0/36/76fab39973ee11e7f9f357c55138197bb01c86f6502cb76487e3b4f42db0/rpds_py-2026.9.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7868b85224291c6cb6759f9b5adb9745f486d226f62b16a614dd5a2a5ab2b35b", size = 370794, upload-time = "2026-10-04T16:29:47.603Z" }, + { url = "https://files.pythonhosted.org/packages/3d/fe/cd2a80e6d7b871937a60e935c5d507aa390d143f4ff3636f640b9733d5df/rpds_py-2026.9.1-cp313-cp313-manylinux_2_31_riscv64.whl", hash = "sha256:3cd182d7291d29b92c521a0069d9c01ba6193628a9a105531d11b40a6d731a33", size = 375673, upload-time = "2026-10-04T16:29:49.223Z" }, + { url = "https://files.pythonhosted.org/packages/6c/18/7464a9953724e55a3b3206062fa0ffdeaa519584c6aabf65d3956d94f131/rpds_py-2026.9.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:e6ea1cda8d8c688278430e4268a42f5e5da3bdd74578dfadc0820c3f1766ce83", size = 398758, upload-time = "2026-10-04T16:29:50.601Z" }, + { url = "https://files.pythonhosted.org/packages/c0/86/1534b436700fd49ff411063b7c4d7e938adfabf90895b6cf1622d5a7d1f6/rpds_py-2026.9.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:5943980471829f6de242a20b109de3111ba6b77e3af0ffc587028ac854b05e6c", size = 550370, upload-time = "2026-10-04T16:29:52.002Z" }, + { url = "https://files.pythonhosted.org/packages/57/1c/e1fa82a8a01e3c5820f3ba98a8b2673f642128eb368fa88871b01dd2c909/rpds_py-2026.9.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:76d3af9732d2dab69f28179b40ba2d87e2f1d5824b4a694780aa787d685e8f36", size = 613106, upload-time = "2026-10-04T16:29:53.655Z" }, + { url = "https://files.pythonhosted.org/packages/29/55/b20b8c4c3dde8755bfcd5b08492a02d0cd2e26929aedf6199ca2a377d42a/rpds_py-2026.9.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:78326f4cb4427a56ba4996c0762b63be45f06b85f086526420d2b3a66e40f84d", size = 578235, upload-time = "2026-10-04T16:29:55.157Z" }, + { url = "https://files.pythonhosted.org/packages/55/42/df3f7bbc3f7ab37a8a9db8d6c2ff2c985422899f1f7926afbf7ec3c0b8b4/rpds_py-2026.9.1-cp313-cp313-win32.whl", hash = "sha256:172e47169583f46ce118cbec68e6795d0da0f4606b488b6434f8276bca0a058c", size = 205293, upload-time = "2026-10-04T16:29:56.669Z" }, + { url = "https://files.pythonhosted.org/packages/31/9c/ba5a9569d719bfdd6ce863df4133ac6a1658cf1b07cc3534c31db729fbbc/rpds_py-2026.9.1-cp313-cp313-win_amd64.whl", hash = "sha256:3e93b2cd69a9830be33e03945cd7cda940a0a8bfcfbff41d6144f0cb0d3d8bd9", size = 222409, upload-time = "2026-10-04T16:29:58.049Z" }, + { url = "https://files.pythonhosted.org/packages/35/72/f28ca566f6c23c35bbf7445f65eb0364577b25a026305995e24f78b83d94/rpds_py-2026.9.1-cp313-cp313-win_arm64.whl", hash = "sha256:d151e148117294133bf8af7eeace085e7e87432db15ab6adf640330298a47f6f", size = 217681, upload-time = "2026-10-04T16:29:59.449Z" }, + { url = "https://files.pythonhosted.org/packages/8a/f2/67b94be1532767803415c1c5a1fd88ea487643d74a673cec1ba140af77bb/rpds_py-2026.9.1-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:c9d1aca01f49170fdcf5c92761b1fafe97f554b721ca4570c5949fff778f0d4b", size = 347178, upload-time = "2026-10-04T16:30:00.865Z" }, + { url = "https://files.pythonhosted.org/packages/04/37/b751de2b59b0197a1d92a5dd491de88e8a5e928c2e6562581974f1e85263/rpds_py-2026.9.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:3f0e9ac28fc067d4d34b88ae43c48e9489455c97fee9633d851f7eeed5a05d35", size = 341878, upload-time = "2026-10-04T16:30:02.564Z" }, + { url = "https://files.pythonhosted.org/packages/72/e2/5873bc4643c250db9e05d48dc0c93763d4aa68bc3b81164cb1af3b45b284/rpds_py-2026.9.1-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:07deecbfce94c78473018bc7d10b337cc651d12df87a1eb2cb3e4024bc9c33d0", size = 373963, upload-time = "2026-10-04T16:30:04.026Z" }, + { url = "https://files.pythonhosted.org/packages/51/03/5acf7632158247f3f6386ff0af3a1ee48167d575037e8d0920594b76d92b/rpds_py-2026.9.1-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:821b2755db9194409254012f429c56643416fb96ef9be090be82ec8826b7f477", size = 377975, upload-time = "2026-10-04T16:30:05.555Z" }, + { url = "https://files.pythonhosted.org/packages/e6/00/63fda451b8bffa5808fc8bb311ee7c073b340974b09f273c7b2a145d3d62/rpds_py-2026.9.1-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3c91c210ae7645626c608400e3519b4a642f837cce09ca830db3beb2e9f274d4", size = 490347, upload-time = "2026-10-04T16:30:07.156Z" }, + { url = "https://files.pythonhosted.org/packages/a1/ae/c093ffd070ba0fb02f76c565d06fecc65ad6e4afdbae78f7031076d3cdac/rpds_py-2026.9.1-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:54ac2158a6f96cfbabff0b2eedaf94b90c5ec7ca8317fcadc61e1c2b2e0ff6ef", size = 392962, upload-time = "2026-10-04T16:30:08.77Z" }, + { url = "https://files.pythonhosted.org/packages/22/9d/d08a1128ab199b2f0cf25bfeb0639bd05119fff4b7c47bec24ef9a8ec23f/rpds_py-2026.9.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:eac2f5dbafd585dfe31f86a23ebf0d3ba480a9d49ebc87947267b5608d4ea0cd", size = 371623, upload-time = "2026-10-04T16:30:10.501Z" }, + { url = "https://files.pythonhosted.org/packages/53/c7/4758ddcbb75609414bbccfcb11d612436f9b3ee821bd2f33f0f1604ee648/rpds_py-2026.9.1-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:8aa5dda18d39b6143eb24809d158f9252c88f402749b6f1b62a506cc7d96cc35", size = 376997, upload-time = "2026-10-04T16:30:12.124Z" }, + { url = "https://files.pythonhosted.org/packages/87/e4/947bd7f608ff60faf46dc9d389c3dffd0e3d767d78a0be19978448ef0ce7/rpds_py-2026.9.1-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:5c90e7fa02e8f5de0d10c17595c568ada48c5302e749462c0ea1a4c362111a86", size = 400169, upload-time = "2026-10-04T16:30:13.804Z" }, + { url = "https://files.pythonhosted.org/packages/4b/35/fe93e020a0543b5670472c18d7e6af3197c08da571240ce1965c84f85c0f/rpds_py-2026.9.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:e6d198bad4e49dd6732fbd636e2fc5c082f45c8cad0b4acb756b00c82c76072e", size = 551615, upload-time = "2026-10-04T16:30:15.332Z" }, + { url = "https://files.pythonhosted.org/packages/0d/4f/5d2a0136bb03b2a56a39dc6ff92d58a6e3e53a2e17079238b86228882f16/rpds_py-2026.9.1-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:96beca19ec79de272e8668585380ff9092c47077c1d7a1e098e00bbd921f4785", size = 614655, upload-time = "2026-10-04T16:30:16.92Z" }, + { url = "https://files.pythonhosted.org/packages/09/1c/3f1025aaf70d9bf7272cc41f8b64ee76b48bf01726248138430e16f23b38/rpds_py-2026.9.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:a5cf77eb04f20b720be95265a3e00eb2a14814074255cc27069c551b2db53118", size = 579602, upload-time = "2026-10-04T16:30:18.555Z" }, + { url = "https://files.pythonhosted.org/packages/53/0d/5c72e6204f76610608706da32b6b7e11ef7e10317558a7bb15a122e008dc/rpds_py-2026.9.1-cp314-cp314-win32.whl", hash = "sha256:a03d57b86d2a51d0a66c92177e2be154ad015f357791d306e714569999cdb4cc", size = 206315, upload-time = "2026-10-04T16:30:20.05Z" }, + { url = "https://files.pythonhosted.org/packages/a4/0b/489d48abbcc7d70cf3fbf662d9d22abf1f4650761c0a9ae05260800800d3/rpds_py-2026.9.1-cp314-cp314-win_amd64.whl", hash = "sha256:837c6b305e26fe0f75b15c92cf3b2ba29e0ae19dc40b1c557b026cb426347d0c", size = 222852, upload-time = "2026-10-04T16:30:21.604Z" }, + { url = "https://files.pythonhosted.org/packages/91/16/bbb05a7e6a10cf79ba639be7f799d770ee15f64175cc61d081b218dd402a/rpds_py-2026.9.1-cp314-cp314-win_arm64.whl", hash = "sha256:fce4b85234a0cbad67bf8e6e1201ee815d172c9aebad75f25645bc4d834f8e31", size = 218709, upload-time = "2026-10-04T16:30:23.036Z" }, + { url = "https://files.pythonhosted.org/packages/22/ac/ac507a0a4ec478ca470440a09583db4be5259ba7670aeba0620822f1e57a/rpds_py-2026.9.1-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:3a72c11530d71abfb66c8d7696a2f86c43e63fca8b948f1a784ac490f4ec688e", size = 349596, upload-time = "2026-10-04T16:30:24.558Z" }, + { url = "https://files.pythonhosted.org/packages/e9/f2/817a46b658d5070f477f722c298ee9a24525b0e4017347964146ef5fdd0e/rpds_py-2026.9.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:068c37bba854ec2fe42f7365c640af11dd9895890ccbf2df5070d0c059bd7f96", size = 343114, upload-time = "2026-10-04T16:30:26.048Z" }, + { url = "https://files.pythonhosted.org/packages/6c/42/6ade976b13ac1b4cb3bf2eb603f1be2fe74df19a29988d4c2b386be59d6f/rpds_py-2026.9.1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d7fca4eb6df565e2a928f1c7dad92d27db8f9df0f449e76423ed5d7e713ed445", size = 374197, upload-time = "2026-10-04T16:30:27.699Z" }, + { url = "https://files.pythonhosted.org/packages/d9/70/77cdf1d3f1a07faabe936016ae623aec7981f73108a8fe7a203ed2e21998/rpds_py-2026.9.1-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:c933c6678c6f116ff8af47a4c6db0868b8ace74af0343016c0ef00f00272ea69", size = 378025, upload-time = "2026-10-04T16:30:29.451Z" }, + { url = "https://files.pythonhosted.org/packages/3f/6b/18a44a3beaa9b7931acb04af7bd9539836477c630a794452d4826d6185d4/rpds_py-2026.9.1-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:028ad274ea951dac64491b5d1e65712a4aeabfdbdb9fccf797b57bd899b0c495", size = 491969, upload-time = "2026-10-04T16:30:30.995Z" }, + { url = "https://files.pythonhosted.org/packages/73/27/fb39cfd6bddaf741b024f813890374578ff8ac1f1adc473659c048b03b05/rpds_py-2026.9.1-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:740d0a99cf9de0b17a3943388e9294a59becf75e7c43421f387bd3c7a9901f7c", size = 393905, upload-time = "2026-10-04T16:30:32.628Z" }, + { url = "https://files.pythonhosted.org/packages/ed/71/0fa7bb77b57af0d710273964180d11b503f62b8a5c358eb2d8c3f62feff6/rpds_py-2026.9.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0da298fb372dc192610a4b9ecbc68a0cd8b675bbbd1fc519d01b41cfd658333e", size = 374569, upload-time = "2026-10-04T16:30:34.257Z" }, + { url = "https://files.pythonhosted.org/packages/54/22/f41cfac269af3b449513ef1bc3d7f32fde52abbbd2d01c7e76b47743acd9/rpds_py-2026.9.1-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:eb61be926bb81567c1f48bdc8aa22b9855048dc2efd53871f9f7e6e9a5632346", size = 377482, upload-time = "2026-10-04T16:30:35.997Z" }, + { url = "https://files.pythonhosted.org/packages/b4/fc/312b49006e7f8f9ca5f96647577b8aa6f3df30519c46bd448f5c425af0b2/rpds_py-2026.9.1-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:42e75466f83cd43f6026c81eab74246efb2bdadafb307b85700632d06c68f299", size = 400040, upload-time = "2026-10-04T16:30:37.76Z" }, + { url = "https://files.pythonhosted.org/packages/cf/a6/18cca7a878dc7fa95165a83343fd4d7b65643fd22e54e47340a451121d5c/rpds_py-2026.9.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:617f59cde379b4f648a09797b7f683d04b90a46344cddab85639da5aff0f5531", size = 551849, upload-time = "2026-10-04T16:30:39.443Z" }, + { url = "https://files.pythonhosted.org/packages/e4/6d/1f5685e20f39604691bdc3c05aaa6b8bd2f954e9e996477adf2376768e33/rpds_py-2026.9.1-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:3edae8c5ddfdb6985d49ae9d150516e5076888879022f91a26c2de9276ce0bdb", size = 614842, upload-time = "2026-10-04T16:30:41.231Z" }, + { url = "https://files.pythonhosted.org/packages/c6/25/98652109fd9f7e10268dd4571aa52b81987001b806f37ef1a18260de714a/rpds_py-2026.9.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:0f045bb053c9057720d72c56dffe30dffdc05997b2897a827b9325f0ab6623fa", size = 582606, upload-time = "2026-10-04T16:30:43.345Z" }, + { url = "https://files.pythonhosted.org/packages/19/03/11ca09099bab5f53373a80a334c424ec917c13d050760a59499d2af5171e/rpds_py-2026.9.1-cp314-cp314t-win32.whl", hash = "sha256:bf35d0568abda97233239ce32896d3ad53fccc537832c104e30c94aa5fb93569", size = 203341, upload-time = "2026-10-04T16:30:44.954Z" }, + { url = "https://files.pythonhosted.org/packages/6f/8a/88909e3ffd9f47f5b58211473875d8c3c09079f0058c46fb72c55a702a26/rpds_py-2026.9.1-cp314-cp314t-win_amd64.whl", hash = "sha256:1e8d4d79d828299bf44a55db22a9388ab967b49d17132c88eab0f4360b48da8e", size = 222843, upload-time = "2026-10-04T16:30:46.486Z" }, + { url = "https://files.pythonhosted.org/packages/f6/b7/a662f367d4896dd0a10cef2fc91f10b7f08af1c10858e287e019563f338d/rpds_py-2026.9.1-cp315-cp315-macosx_10_12_x86_64.whl", hash = "sha256:1d77b649e6f7cdf12ca5c2a98dad0ad37f9ea9b6f960408a92f0cb12bb3d04d9", size = 347463, upload-time = "2026-10-04T16:30:48.203Z" }, + { url = "https://files.pythonhosted.org/packages/ae/3f/ad45d03df4f84ebae5439577ee81f3999d182711e82235c8037b6528890e/rpds_py-2026.9.1-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:00ba2d8c7dd4ee537978ddf4b3fbd712bef2d8751603f7f3146b3f4287768e25", size = 342051, upload-time = "2026-10-04T16:30:49.872Z" }, + { url = "https://files.pythonhosted.org/packages/7e/31/3dcd68c13d4bcc59c1f7eb33ac8e80698f06f3eb0d8a1e06419836071c20/rpds_py-2026.9.1-cp315-cp315-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ec450527cbf485e13c8d3602a54f428ab0432fdade0ede75efd74b735421c871", size = 374143, upload-time = "2026-10-04T16:30:51.508Z" }, + { url = "https://files.pythonhosted.org/packages/cf/0d/68c1f058a250fbd1380ebda9fc227cbf50117adf8ffe8161ef383ea79f68/rpds_py-2026.9.1-cp315-cp315-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:306ee1850d8105b5baf977e78d45fcadd12c1a54678d614c9baf217708446e91", size = 378604, upload-time = "2026-10-04T16:30:53.206Z" }, + { url = "https://files.pythonhosted.org/packages/d7/d6/2d4c59b85397cb4800594fadf692688ccf5ce556adc930e7a5bf21061a5e/rpds_py-2026.9.1-cp315-cp315-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ef6b65b03247c54692ad4fd9ee97cb772781927db72e3cb05e70b3db6d1ff14f", size = 490790, upload-time = "2026-10-04T16:30:54.925Z" }, + { url = "https://files.pythonhosted.org/packages/da/04/7e05dc3aebaf52f4e026766bd668fdd09a9d0e23f64a14686b36b3501892/rpds_py-2026.9.1-cp315-cp315-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a575404ebc9cf2e91edd32eaf570ec1430eb900d4f56724ba7dd4bc1fc9c176d", size = 393146, upload-time = "2026-10-04T16:30:56.625Z" }, + { url = "https://files.pythonhosted.org/packages/57/ca/e2e9a0a46a74ed51a0498ba1fe10f4ea6b2d9a155f372a2f91e51f18cf10/rpds_py-2026.9.1-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2c16ab111bc27c646ba8aa005d0527754edc538ebb636f0b1bf8e244b48d1945", size = 372022, upload-time = "2026-10-04T16:30:58.295Z" }, + { url = "https://files.pythonhosted.org/packages/ba/cb/8f8774df5134e23424372838bcc5c7ed4127d723e1ff52f7bebd4dcb2563/rpds_py-2026.9.1-cp315-cp315-manylinux_2_31_riscv64.whl", hash = "sha256:7664419f27db41d4f1c43a78dccda7dd6e8ef2428df3ee01d0c2a07a6b071297", size = 377092, upload-time = "2026-10-04T16:30:59.984Z" }, + { url = "https://files.pythonhosted.org/packages/90/02/8d7095d73bf9114219be40230baa5df00611e0a82ed9517779ff9c19f82b/rpds_py-2026.9.1-cp315-cp315-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:4b26b03d9d2658ee2fa234f8f4f19f38a09773fe5261028025032e26d4d35af0", size = 400830, upload-time = "2026-10-04T16:31:01.721Z" }, + { url = "https://files.pythonhosted.org/packages/ec/02/8206856f8f363cd042a8315dc86b3912f5dcb6d3c66bbb24b69c2bfb0775/rpds_py-2026.9.1-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:be3e47e2d91aa3942ff9bf4077a505226005abfc39b6f7554a91c1b9393986b9", size = 551478, upload-time = "2026-10-04T16:31:03.472Z" }, + { url = "https://files.pythonhosted.org/packages/41/6b/36211f1bb1f0b0313f496d92f5905b74ea107f27cb16fa3355a82f04575e/rpds_py-2026.9.1-cp315-cp315-musllinux_1_2_i686.whl", hash = "sha256:6307a0da524939decb8ca4a3933b8ab62525794411d6984fca6726e732804af6", size = 615173, upload-time = "2026-10-04T16:31:05.281Z" }, + { url = "https://files.pythonhosted.org/packages/35/77/cda0c4a6f055446b692f0ed5692f73707cafd3dff82672ede31b1a9b59de/rpds_py-2026.9.1-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:159a7aab5c5e8b112c8830f54717ce56da1252ebdbb526f5be2df2309280b9e7", size = 579653, upload-time = "2026-10-04T16:31:07.065Z" }, + { url = "https://files.pythonhosted.org/packages/74/ec/d8385f446240aed643b9e92a5055cff3015cc04a13c61f73b2883c478ed5/rpds_py-2026.9.1-cp315-cp315-win32.whl", hash = "sha256:dbc2673f9223d420c91145599b3ba45a8a50c207d1976908e5fb5ddb0c9b9429", size = 206498, upload-time = "2026-10-04T16:31:08.989Z" }, + { url = "https://files.pythonhosted.org/packages/6d/a5/71b5cd00e0521e3b6b81828baea368c62b6b700ebdd9554cd7d41ddf12fa/rpds_py-2026.9.1-cp315-cp315-win_amd64.whl", hash = "sha256:75c38c50ab9aca840225d9a9a3810bf11d04bd5c1f186cabbb8aee56db3e9b15", size = 223121, upload-time = "2026-10-04T16:31:10.84Z" }, + { url = "https://files.pythonhosted.org/packages/33/58/dba857c3bc8221b31b62eb170a3080f4f191de79f047200389b7ed1b06a7/rpds_py-2026.9.1-cp315-cp315-win_arm64.whl", hash = "sha256:a431156bb41865fc14cd5d79bb9d7bbed83110b0159e34e62ae30951f96c0009", size = 218741, upload-time = "2026-10-04T16:31:12.592Z" }, + { url = "https://files.pythonhosted.org/packages/5b/d0/320ab28ccc1415eeb509d68682b0014fb74690cd49f1c2d29a232475af50/rpds_py-2026.9.1-cp315-cp315t-macosx_10_12_x86_64.whl", hash = "sha256:ef0d8c843e2827d6c120ab4687e9423fb1d893db1df27b7c1506615bcb9734a0", size = 349719, upload-time = "2026-10-04T16:31:14.48Z" }, + { url = "https://files.pythonhosted.org/packages/56/88/f5b12f1358f443c08b7ce3cc8391d82d335f4872580e2e097847fd36087a/rpds_py-2026.9.1-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:45bc6bccf78b20fd834237d18db64965d7ee68ba7f60440a26c7ab71e7b8d51a", size = 343267, upload-time = "2026-10-04T16:31:16.827Z" }, + { url = "https://files.pythonhosted.org/packages/f7/0c/c765b0059d532acb3b9c45d781ccc22f15a96dbe443d00903f643ba9df10/rpds_py-2026.9.1-cp315-cp315t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1d55198263bb51f557550c6ed2e6d1cb6a6fed6eb5c9120b741c5926bef8a45d", size = 374555, upload-time = "2026-10-04T16:31:18.931Z" }, + { url = "https://files.pythonhosted.org/packages/6b/8a/cafddfda77564a10cd21184640c3bffda6a2b8d20972fb5dedd5e0166328/rpds_py-2026.9.1-cp315-cp315t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:a8763f20692da7df39b0afdd1ba3042b004c50a45994f76c2d9a25641f7673db", size = 378346, upload-time = "2026-10-04T16:31:20.75Z" }, + { url = "https://files.pythonhosted.org/packages/b9/01/5e626016eff72c183bf6c96539240cace15d402468647a453ec08415b2fc/rpds_py-2026.9.1-cp315-cp315t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e43d4a1f673e8a1cbd8533e809e02b4bf9d4f2280269bb640436556312121250", size = 492373, upload-time = "2026-10-04T16:31:22.614Z" }, + { url = "https://files.pythonhosted.org/packages/3b/9c/15a2469e9389242f46896b3f0a01d68caea8a5a35c011fcb05ef333aae73/rpds_py-2026.9.1-cp315-cp315t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ea394a937f17a54c51239348bdbe2e3518124c8d4a8951ba04a311d3095bd18f", size = 394371, upload-time = "2026-10-04T16:31:24.768Z" }, + { url = "https://files.pythonhosted.org/packages/63/f5/c100ff77e1e6366e947c75969c258fdfc4b7bc5bbfe7351e62ffbf2a1228/rpds_py-2026.9.1-cp315-cp315t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:cdeaa99ce822dca76cfb1b993e9120c5ea212f2eb66d48950ad63c349668a018", size = 375132, upload-time = "2026-10-04T16:31:26.588Z" }, + { url = "https://files.pythonhosted.org/packages/dd/f4/fe0269c9de253e99c81cabc12b8971a5feaa083debdaff1221e06264d9e3/rpds_py-2026.9.1-cp315-cp315t-manylinux_2_31_riscv64.whl", hash = "sha256:b4f062343e7ad3fa94f2c66e5ae667dee47ee74dd41a9057c4fbe163236a123d", size = 377642, upload-time = "2026-10-04T16:31:28.677Z" }, + { url = "https://files.pythonhosted.org/packages/05/65/b34a7b257baccff8f4a24a722933166d4941d5ebdc9c3f4bc4ffcd5ce4f4/rpds_py-2026.9.1-cp315-cp315t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:22ffd29a63d71fb1b81552c21f2c2b734949b7ac751a9be70675a939a900839b", size = 400855, upload-time = "2026-10-04T16:31:30.802Z" }, + { url = "https://files.pythonhosted.org/packages/98/32/844e54176b6071b90b38a564e6940bc6eb8f97b2890dc709c19db9dec0f4/rpds_py-2026.9.1-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:08dae4a4095150a7c4545a1fb40b98e1ab1744fbc2770d92c977b9dadaa49ab6", size = 552573, upload-time = "2026-10-04T16:31:32.709Z" }, + { url = "https://files.pythonhosted.org/packages/17/73/6041d20729dffbfdf155c02d65be58bc225a1c1fb548fd87c23ef306138f/rpds_py-2026.9.1-cp315-cp315t-musllinux_1_2_i686.whl", hash = "sha256:9a0460d43603d1fd9ef59c30278531e15d78581721ddb538fa560aa7817ea4ad", size = 615840, upload-time = "2026-10-04T16:31:34.565Z" }, + { url = "https://files.pythonhosted.org/packages/af/9e/418094adaee6b056ce199051b255448ed872829051e341b2294c80da0977/rpds_py-2026.9.1-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:1c2d1f6da5128eabf34e963d7163a818846075a52568250d006c4c953b40f903", size = 582764, upload-time = "2026-10-04T16:31:36.665Z" }, + { url = "https://files.pythonhosted.org/packages/3d/9b/1698ebf6b840ddfe8b472198abbed6ace35c6e398faeecd6c47dae742a4e/rpds_py-2026.9.1-cp315-cp315t-win32.whl", hash = "sha256:5c6ee90dee3e85e055ddfd502d611643d9b0fd94c818220bda84ec3dacd9b27b", size = 203795, upload-time = "2026-10-04T16:31:38.53Z" }, + { url = "https://files.pythonhosted.org/packages/8a/e2/91f70d804c61f8eac39a417e82aa1024f655ab9e8bdd7393b196242bc41b/rpds_py-2026.9.1-cp315-cp315t-win_amd64.whl", hash = "sha256:fe5ad0664ec772b02c45859041aa17655709cced7a31005817fbbbd988c25567", size = 223037, upload-time = "2026-10-04T16:31:40.468Z" }, +] + +[[package]] +name = "typing-extensions" +version = "4.16.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f6/cc/6253133b5bb138fc3306cebfbda2c520f545d36b5be2c7255cc528bb45d6/typing_extensions-4.16.0.tar.gz", hash = "sha256:dc983d19a509c94dba722ee6abd33940f7c05a89e243c47e907eb4db6f1a43e5", size = 113555, upload-time = "2026-07-02T08:40:05.92Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/49/d3/b8441a820a491ddfc024b0b0cf0393375b75ea13866d9c66727e54c2fc80/typing_extensions-4.16.0-py3-none-any.whl", hash = "sha256:481caa481374e813c1b176ada14e97f1f67a4539ce9cfeb3f350d78d6370c2e8", size = 45571, upload-time = "2026-07-02T08:40:04.659Z" }, +] + +[[package]] +name = "typing-inspection" +version = "0.4.5" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/ff/50/0195198eb1d75bab716bb0a813abea4cc394bfa17a92a189f021a34859af/typing_inspection-0.4.5.tar.gz", hash = "sha256:7f16c411e7930dc79596d42ab44672a3fe5f60eb34b781a1647e7872363120c7", size = 81194, upload-time = "2026-11-04T14:13:23.774Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/de/0c/ea2544850a7c135e15033a5c7a8e7211136184b7ae63e2239d557c2b3019/typing_inspection-0.4.5-py3-none-any.whl", hash = "sha256:bc210535442b39e1bf2805e0c7a17dfd6a4ace760c84c7f7d16245d23a6b1c39", size = 14874, upload-time = "2026-11-04T14:13:22.616Z" }, +] + +[[package]] +name = "urllib3" +version = "2.8.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/e3/05/b17359e1cefb4f909b5e40b1b90a496d987258916dbbf88e842c729f510e/urllib3-2.8.0.tar.gz", hash = "sha256:63bf2ead4c879426ebf22ef2a781eeb4aa3b4ae798a0435506f8687fd5bb9b63", size = 458972, upload-time = "2026-09-15T19:29:36.253Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/92/9d/c4e665119135114480843e7ab388fa94d8480650450e6f8e26b70d323a4c/urllib3-2.8.0-py3-none-any.whl", hash = "sha256:0cf3cae568d36aa9576b28dfb35f11328f1cb974ca7647d9475ebb86c75ac6e3", size = 135717, upload-time = "2026-09-15T19:29:34.577Z" }, +] + +[[package]] +name = "wrapt" +version = "2.5.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/9c/b0/f752d19e1e83ab8bd64aeccfde32ff086aee3ef08520f7340b69a8d0a4d2/wrapt-2.5.2.tar.gz", hash = "sha256:551cb49e88b3722faad780303833bc4fa70685fb1773270fb98b40d39d9fddbf", size = 186066, upload-time = "2026-10-29T23:06:39.868Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/1b/7a/38f08a89ca8faa9b788a857f109b5e4cd1f25671a5157e2218072f64aa76/wrapt-2.5.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:88f982c2bb306732271aa15cded4002ce28b5d9023de9d11e927da4dcf65e441", size = 106242, upload-time = "2026-10-29T23:05:00.746Z" }, + { url = "https://files.pythonhosted.org/packages/e9/8b/2fb9b2522b7e1e7534a72fec0040bbf3d273129ec0a98316e7d37b09aa35/wrapt-2.5.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:269321b17467a10997cc6e14793bf1816e6ce488f9711c74b72552466d206739", size = 106366, upload-time = "2026-10-29T23:05:02.191Z" }, + { url = "https://files.pythonhosted.org/packages/c2/1e/770d73e0cc82a41602cb2cb184769c28bdbaa9b998944d577a1097c18da3/wrapt-2.5.2-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:8b039b3a296762db1908d6108365225393c4fb33c1dbc5f00aa36f8302eaeaa0", size = 248696, upload-time = "2026-10-29T23:05:03.593Z" }, + { url = "https://files.pythonhosted.org/packages/ac/2b/b4362e803d870451b5e701df5e30ded2d6fb1d9e0c01eec4dc7fa8332b57/wrapt-2.5.2-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e1af6136ac5bcfab17190a70b25d8437eb8d8f9ca2b821a0655d39275a8cb7e7", size = 248663, upload-time = "2026-10-29T23:05:05.084Z" }, + { url = "https://files.pythonhosted.org/packages/87/15/244dbd2d86285857898be5f7632e8375161953e645f250ac9778c058ab9b/wrapt-2.5.2-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:9d4e1cdf2efdc7181c8177f6090886e22278e70f7257df12863d2f52a9dcbbd7", size = 227568, upload-time = "2026-10-29T23:05:06.836Z" }, + { url = "https://files.pythonhosted.org/packages/62/0e/15ae5812d510fbfb65acb3a63aecbd8ffb4b944b2fd0131d968e31df89d6/wrapt-2.5.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:e33578755e07edf3a70df3241f4cf376dad507e2cc73e737311bb00b5067f4d7", size = 245147, upload-time = "2026-10-29T23:05:08.322Z" }, + { url = "https://files.pythonhosted.org/packages/f6/c2/e611b881c05f7f2a5c88f9d89236afb091b8adba3ac89ff9040b6a837be4/wrapt-2.5.2-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:2bf23cde96e0f771a6a2c68973c1ded45c9707f8bd519ede30ecf075f3c720f6", size = 225491, upload-time = "2026-10-29T23:05:10.102Z" }, + { url = "https://files.pythonhosted.org/packages/f3/f4/bdb253208ec907097809e34c25d199cd66686a7974257e08b57d96e3176c/wrapt-2.5.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:eff91af619ad5d587f8855f6c02164e12d33d205c702eb73d487deb499520265", size = 237319, upload-time = "2026-10-29T23:05:11.625Z" }, + { url = "https://files.pythonhosted.org/packages/67/86/74205217834201f27bc73a76b4db67f488fd07787e12a045fb2b39f09c29/wrapt-2.5.2-cp313-cp313-win32.whl", hash = "sha256:11655df8e17658a67628cdc97fe95d6b263e023213cf18067f21e5ec0b0285f3", size = 100634, upload-time = "2026-10-29T23:05:13.073Z" }, + { url = "https://files.pythonhosted.org/packages/e0/56/7c732aed39116853d74485b4431a0ea37b05bd2bf250bdddc55ceb64f8c0/wrapt-2.5.2-cp313-cp313-win_amd64.whl", hash = "sha256:5726faa7342ba473041bc1a276486d232b42e3927d35427729b266b1b5ecaa42", size = 106044, upload-time = "2026-10-29T23:05:14.372Z" }, + { url = "https://files.pythonhosted.org/packages/0c/a7/c4f7ae891bbfef566aa63effe846f6804dac4c0461601993f4c59deaf955/wrapt-2.5.2-cp313-cp313-win_arm64.whl", hash = "sha256:e1fb4af8aac3573770ed3e64efc39d953342b12bcb6e6479512a945eb5557523", size = 103077, upload-time = "2026-10-29T23:05:15.718Z" }, + { url = "https://files.pythonhosted.org/packages/ac/dc/a259acf2b59eefe400b2a1c6b45bc19b0d0b583722426c9dabb276cc0d19/wrapt-2.5.2-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:229859aebfc909626ea6b5a3ae9523aba43c63fd828f876f2a813f4a5767726f", size = 106620, upload-time = "2026-10-29T23:05:17.256Z" }, + { url = "https://files.pythonhosted.org/packages/f8/c5/b34ca079b7906eb043c53c06896b4e42f3ca9efa97ac10e4e254c88e2ca6/wrapt-2.5.2-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:c1ea16d7dfe7d235d29435307b1539495b4925e88b135d532892973a04569245", size = 106555, upload-time = "2026-10-29T23:05:18.656Z" }, + { url = "https://files.pythonhosted.org/packages/e2/46/f66042c9ed3626cdcdf641105f091964f6d38cd406cec96479c4a3f70640/wrapt-2.5.2-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:59b7e6d1dea7c3f38bab21954f587499c27c16ea537058eee4add6e4da1780ea", size = 251681, upload-time = "2026-10-29T23:05:20.035Z" }, + { url = "https://files.pythonhosted.org/packages/70/95/1ebe33ff8053a94b3e1a0bafe31ea94b5e9296f9c5098cbcafc4ee2bcdc9/wrapt-2.5.2-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:cfd508866c421687a99bed9ce5b7b4f26fd9b93d3753685d81947ab37d54c496", size = 250919, upload-time = "2026-10-29T23:05:21.501Z" }, + { url = "https://files.pythonhosted.org/packages/1c/bf/ee90a8674c8f2179ad7aeaf8c5b875fa33a12fec7bf1ccf6cbfcc31fbbf0/wrapt-2.5.2-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:459bb66cd4bc43e35cba1f1ab2bdfb9b507e0d8dc0ec40c93a060c9cb0c5415e", size = 231773, upload-time = "2026-10-29T23:05:22.996Z" }, + { url = "https://files.pythonhosted.org/packages/e8/ee/610ef6bf4f35e4719a5edea6bd0c4d948921d028950bc9669d1fa9234af9/wrapt-2.5.2-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:a8626135ecbb0b892ca79c388581ab0ef57e087f09dc0e51a2f34185d3682055", size = 248171, upload-time = "2026-10-29T23:05:24.481Z" }, + { url = "https://files.pythonhosted.org/packages/c6/10/6f12cf42bd9a34829c902c8a617c8151a4e16e7d7cb015289eede5813f39/wrapt-2.5.2-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:7ffa0be31f651da63ee51e5b74701339feac1860b561a985c7b4869d4600e800", size = 228970, upload-time = "2026-10-29T23:05:25.904Z" }, + { url = "https://files.pythonhosted.org/packages/b1/f1/79417514032b9015b772bf5bf006ca542937b5f6c483b9ab092f9ceff8e9/wrapt-2.5.2-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:5ab31d929ca8b2b7bf9320ad2a927edfb1841609951a869a9b98723b285ffbc6", size = 239267, upload-time = "2026-10-29T23:05:27.502Z" }, + { url = "https://files.pythonhosted.org/packages/a1/ce/092f2723758586973c94afa8c38a206ce3720ec5cd3edb64ee9c8b27a1c4/wrapt-2.5.2-cp314-cp314-win32.whl", hash = "sha256:afd99530994449aaac9a58e1e268eb080bb1ffd758be43ab2f8a249ce8970c9c", size = 101091, upload-time = "2026-10-29T23:05:28.955Z" }, + { url = "https://files.pythonhosted.org/packages/23/86/201fb9180290373b7fdff18e8d600151694fdb0b10892cdee77c13eb7e6b/wrapt-2.5.2-cp314-cp314-win_amd64.whl", hash = "sha256:fabc60720d1e4a36bbe8aaf1c32024f04c6674991313f5acaca5eeadb564c600", size = 106417, upload-time = "2026-10-29T23:05:30.395Z" }, + { url = "https://files.pythonhosted.org/packages/73/a8/cc313dc9230f4b5029e24867a1fc1dbcb929b792b02ac5fb2e0d79df7401/wrapt-2.5.2-cp314-cp314-win_arm64.whl", hash = "sha256:1c17ca5ce83c7145eddaa20073398ec2192dad65c8d8ff4d9b78fd2917c46a75", size = 104145, upload-time = "2026-10-29T23:05:31.788Z" }, + { url = "https://files.pythonhosted.org/packages/62/04/15e0c465088fbfdab321a672c88739f68429a18aeb81ad7995a0a5cf2065/wrapt-2.5.2-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:a60863d874cc6ac917bbf44324e3f195564064dee15c84e83b19e1fbbccd3169", size = 109731, upload-time = "2026-10-29T23:05:33.131Z" }, + { url = "https://files.pythonhosted.org/packages/b1/b6/91d6f77257afabafe19bca698b41d60dde7cf49b59b0126eb25ed6a3a90e/wrapt-2.5.2-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:d41c45517912610de55546188695e2bd0fbcd70b585087cd759f85a96f47be7e", size = 110032, upload-time = "2026-10-29T23:05:34.589Z" }, + { url = "https://files.pythonhosted.org/packages/9c/84/40901e8ba08f6f18f213fea51daa41a8107ccaae4e0b6e13b842f02f5feb/wrapt-2.5.2-cp314-cp314t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:48fd5026977adb3e2fda292a6a796967b511935d23f97dc2ae1f127a3a8639d5", size = 284278, upload-time = "2026-10-29T23:05:36.033Z" }, + { url = "https://files.pythonhosted.org/packages/89/af/6bfdffc2688a78019762f0b14171ca47c73fae1421c3324c0850135b212c/wrapt-2.5.2-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0d7639c3287d4efcdc2c8837f1854d1ecf27aae761714ba3d95e61fe8eb48db3", size = 294060, upload-time = "2026-10-29T23:05:37.515Z" }, + { url = "https://files.pythonhosted.org/packages/56/d1/9a4e3aed00d6d877d2646072d9b6b4c9a558a8ad79a18d3abafc1079cd07/wrapt-2.5.2-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:eeaa40251c40e18c5c97ef11d5dbbad28a7b7b99fdd7a7469662799100d74dc7", size = 263272, upload-time = "2026-10-29T23:05:39.008Z" }, + { url = "https://files.pythonhosted.org/packages/5f/6f/0086e02aae9144a0fa029fb0351a8b2f91fbd28eb191c8f2ced3831cb1ba/wrapt-2.5.2-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:b9ce67ec8803e6c56e78c9ebf726f61116516212c28dfa3683d0962e15cf9a62", size = 289219, upload-time = "2026-10-29T23:05:40.459Z" }, + { url = "https://files.pythonhosted.org/packages/d2/ac/e342f997166b7d433abc12720b6e30793fcf3a36c5457d22261558b61411/wrapt-2.5.2-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:4d5faf5c3e435207b3a51294ed5a00e5e17e3842442ccbbd864ee9bc0efc63fb", size = 260554, upload-time = "2026-10-29T23:05:41.815Z" }, + { url = "https://files.pythonhosted.org/packages/65/64/48ddff54611f6e08ba70adf1b3dbf36c7b08b7aa5dbf7c65a03672b0eed1/wrapt-2.5.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:2861d50a4f330fa140ddc2a9ddee33f7e4f9bdb649a23dc9be8ed6310ffa47fc", size = 278921, upload-time = "2026-10-29T23:05:43.489Z" }, + { url = "https://files.pythonhosted.org/packages/c0/bf/0ca422495491f22656b401832184a87b1e67d1dfb7f31ac8d60525c572ce/wrapt-2.5.2-cp314-cp314t-win32.whl", hash = "sha256:46cee4400437c9f33e755522be9e7ce6ebd097273f464eb6f57bee09787f0c59", size = 103586, upload-time = "2026-10-29T23:05:45.046Z" }, + { url = "https://files.pythonhosted.org/packages/69/17/922d99009a228907cd0a5f5d590bbc176dd70527d3eb06f8b4d74889edf8/wrapt-2.5.2-cp314-cp314t-win_amd64.whl", hash = "sha256:1ad706a42b139ad7f03f32aed57da5e10fe8ed707e29849cfa94f1d49cba1405", size = 110111, upload-time = "2026-10-29T23:05:46.458Z" }, + { url = "https://files.pythonhosted.org/packages/68/45/d168c09643e3207c5618b33a5636137f298b9ded38b3a33fad67dc343403/wrapt-2.5.2-cp314-cp314t-win_arm64.whl", hash = "sha256:450cc93f5a2d58d4a74d384d52db4b41d5728065c0057c9bb4666c6115f2a2c9", size = 106384, upload-time = "2026-10-29T23:05:48.051Z" }, + { url = "https://files.pythonhosted.org/packages/67/8c/3b2b95cd60b78f9450d748854e421fcf48bc350d76ca9e0fe048b87ad796/wrapt-2.5.2-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:2c17ec4310cc06f864799a4c37c1c716d5dcf05ceead2e63ca992a9466903b73", size = 106621, upload-time = "2026-10-29T23:05:49.433Z" }, + { url = "https://files.pythonhosted.org/packages/16/12/c430cd1289711cdf2b6b1c469d5efa527f4815fabab32bff3249545344da/wrapt-2.5.2-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:430070776fb30d925a7a1e13d68086e4731b63eedf4c43ee62fc4c8108920cce", size = 106590, upload-time = "2026-10-29T23:05:50.967Z" }, + { url = "https://files.pythonhosted.org/packages/69/4b/d7230c57ca30023a5630bf5cc0e092ad1cfce4d999a309b8377a36b3c249/wrapt-2.5.2-cp315-cp315-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:99978d196df45c115273c6119e4d0dacbc67bc267a196506625bf7084b741f0b", size = 252192, upload-time = "2026-10-29T23:05:52.344Z" }, + { url = "https://files.pythonhosted.org/packages/fa/74/6dc841c96b9906e0c466aaeed7f51162129cc8745a91bb28168aa3b45194/wrapt-2.5.2-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:217798fb0cfb31479a264f841b0242bc1bed1ffc70d233e8444a876cec57928c", size = 251207, upload-time = "2026-10-29T23:05:54.011Z" }, + { url = "https://files.pythonhosted.org/packages/52/bb/25e710cc9d3bd25d81d46791dd25029d6f9b9d44b990e3d81755b549ff71/wrapt-2.5.2-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:62b339565cfdfcc0ba71c527b4ad13ac9de25504d474fa4ae5db95d1c7e4c6a2", size = 233048, upload-time = "2026-10-29T23:05:55.796Z" }, + { url = "https://files.pythonhosted.org/packages/4e/80/672640d799862a36abae740e778146dbe155ec8ffd6211b3a99240f599ca/wrapt-2.5.2-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:84619ca6b6f67a7dd53754ad402cafceb4ddc9d8981f144f62718b783f05786e", size = 248479, upload-time = "2026-10-29T23:05:57.346Z" }, + { url = "https://files.pythonhosted.org/packages/f6/34/91eb6724eb7cf64b77637d720ef71cad1ec6e4ce2d15eb548670c47078fa/wrapt-2.5.2-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:08d1d7bcb7dd277b7b976fd914455c3c1088f5c101ac7469ae5a5b8c03be0a0a", size = 230013, upload-time = "2026-10-29T23:05:58.745Z" }, + { url = "https://files.pythonhosted.org/packages/bf/f8/f1fc0c3394819c9a6a3c0d0055b06614a3bef7ad133cf18f9c09a2b2141f/wrapt-2.5.2-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:4e86f3543c67d72b4d4c08c3e351523c2d69cd05932df65937d79bc472e9d62f", size = 239808, upload-time = "2026-10-29T23:06:00.266Z" }, + { url = "https://files.pythonhosted.org/packages/56/d1/70f9e71674d7b6c21c8e8cafc3016f773dc3acb31a131f23ab4af8c1effb/wrapt-2.5.2-cp315-cp315-win32.whl", hash = "sha256:035cd71e2aadfc0ad366ab4785b49e62093370885ea4b527b61b308b7a92ff14", size = 101099, upload-time = "2026-10-29T23:06:01.777Z" }, + { url = "https://files.pythonhosted.org/packages/7c/e6/fdea9e35605a6e7fc71556068ea184fb3e9cc09d1e3be8ca8f26d16339c9/wrapt-2.5.2-cp315-cp315-win_amd64.whl", hash = "sha256:b9f41029f9bc6ba80755b9c07f5e77e9e7aafb71c625b9f67614e4ebfb24302a", size = 106423, upload-time = "2026-10-29T23:06:03.076Z" }, + { url = "https://files.pythonhosted.org/packages/d5/50/8c41d8ba868cde9afd5b68e18f19b94300d091c409ef081b80c2aecda653/wrapt-2.5.2-cp315-cp315-win_arm64.whl", hash = "sha256:ae84013e89ec1874415549a46cfea373e28ddecbb72e1f5456cddfa2b76a28e6", size = 104152, upload-time = "2026-10-29T23:06:04.356Z" }, + { url = "https://files.pythonhosted.org/packages/8a/e7/b43d341b036e2862550eb7fffe2b4130015c39c861f30eb34014a2f032d2/wrapt-2.5.2-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:b680bef5200899524667f813fa34dcfde9313fef9f9fa432985d4bc7b4195ba3", size = 109711, upload-time = "2026-10-29T23:06:05.768Z" }, + { url = "https://files.pythonhosted.org/packages/be/52/8012aaf046264e27969f79bc94cd2afb4729338f5434b90edd3d4bb60b8f/wrapt-2.5.2-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:da51f5ac290f2e024ee842799c6592f68cd880c20f6b3a54305d1b6aeab459a4", size = 110047, upload-time = "2026-10-29T23:06:07.309Z" }, + { url = "https://files.pythonhosted.org/packages/54/a7/628c315d19c6027e8b0e700c0dd7d5c3fd662329c7aa1294315064b87cdd/wrapt-2.5.2-cp315-cp315t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:b3ebc07822649eda442382c1d20983bc6ec5aa2bf79a600da11b29ecb62a0fb2", size = 285041, upload-time = "2026-10-29T23:06:08.777Z" }, + { url = "https://files.pythonhosted.org/packages/7a/fd/4b418c9655bacb5ce8b0aed894f8355e12940bde74237ec45d9396e1f87f/wrapt-2.5.2-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:bbb6e959c1e2c32bbad291f83af6320c8c46bb64e256801e85f55d88a09522d5", size = 295329, upload-time = "2026-10-29T23:06:10.489Z" }, + { url = "https://files.pythonhosted.org/packages/92/24/dbe9776fded6dd5f2bfa1446ec04a33afe5afac1d5fb89cd7f5e96fbc61d/wrapt-2.5.2-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:a0541e62f7b9c0d42130e3469d6ac3b1767f019314ae795646a2850a75c64412", size = 265088, upload-time = "2026-10-29T23:06:11.963Z" }, + { url = "https://files.pythonhosted.org/packages/9d/ee/4103576d31bed902224fed8b1d06b94313491504d1d644e42bceba4de880/wrapt-2.5.2-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:18819c05409a161999be68da8e451636470c35f77e25c8201825a33a7d88c89c", size = 290413, upload-time = "2026-10-29T23:06:13.536Z" }, + { url = "https://files.pythonhosted.org/packages/bc/7c/944e95c25232a5805ea9f25cf2ce90386262db025ba04fbb61f451d9523f/wrapt-2.5.2-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:2594e0be4ee09b2f19828265a39df90e591def44215fe8c5b8d6b83aa4cc18b5", size = 262383, upload-time = "2026-10-29T23:06:14.887Z" }, + { url = "https://files.pythonhosted.org/packages/5d/b3/a4b66497e3bb63d2e94ea1605f4beaf5b6b5dafbb6ce41abd727a6fcb7b5/wrapt-2.5.2-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:32c0387872e67b9dfdd2b599bf31fe127e597ed8526c5f192cdaca57a491e9dc", size = 280180, upload-time = "2026-10-29T23:06:16.314Z" }, + { url = "https://files.pythonhosted.org/packages/91/bd/28d046dccfcade6ad62ad19f2f805e5b2e3f3463431307c3b8bd54e24e7f/wrapt-2.5.2-cp315-cp315t-win32.whl", hash = "sha256:9cb33f293e3aa04b36f7d165dc05b42db85e0a88e20a8fd81f60426d1f17d535", size = 103551, upload-time = "2026-10-29T23:06:17.732Z" }, + { url = "https://files.pythonhosted.org/packages/0d/d9/aef3035a3e3d918eb51e7db454af9e06919f0c5208fa0a9315548fef7734/wrapt-2.5.2-cp315-cp315t-win_amd64.whl", hash = "sha256:7f89423965b23aa62a90bf21c20353056a829ca9a60c01fde9aec9876c99392e", size = 110099, upload-time = "2026-10-29T23:06:19.293Z" }, + { url = "https://files.pythonhosted.org/packages/5f/ea/56eddba6249fae5361b53eb62e2e25ad86cabec4632d943d356aba8dea1b/wrapt-2.5.2-cp315-cp315t-win_arm64.whl", hash = "sha256:fa642d3781c061579cb138773add4a55b16f99de9ebc41603e89a756cf9e62c6", size = 106397, upload-time = "2026-10-29T23:06:20.826Z" }, + { url = "https://files.pythonhosted.org/packages/77/8b/1ea57b936b70f98e8e7620a352578096d778dbee95b262f73c066d210ffb/wrapt-2.5.2-py3-none-any.whl", hash = "sha256:61eb54e9540ea522c2c4752a57549a83d3c67e6704ed708403d28e067aaf90f0", size = 82025, upload-time = "2026-10-29T23:06:38.56Z" }, +] diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 06faa8d..e6ca344 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -39,3 +39,13 @@ updates: default-days: 7 commit-message: prefix: "fix(dependencies): " + + # This entry updates the Python dependencies of the gateway-publish action (uv.lock). + - package-ecosystem: "uv" + directory: "/.github/actions/gateway-publish" + schedule: + interval: "monthly" + cooldown: + default-days: 7 + commit-message: + prefix: "fix(dependencies): " diff --git a/.github/workflows/action-tests.yml b/.github/workflows/action-tests.yml index 8009c62..137fe2f 100644 --- a/.github/workflows/action-tests.yml +++ b/.github/workflows/action-tests.yml @@ -1,6 +1,6 @@ -# This workflow runs the unit tests for the Claude review action. It is -# a self-check, not a reusable workflow. The tests use fake gh and claude commands, so -# they need no secrets. +# This workflow runs the unit tests for the actions in .github/actions. It is a +# self-check, not a reusable workflow. The tests need no secrets: the Claude review tests +# use fake gh and claude commands, and the gateway-publish tests mock the Gateway and TRASER. name: Action Tests on: @@ -32,3 +32,21 @@ jobs: - name: Run the Claude review action tests run: bats .github/actions/claude-review/tests + + gateway-publish: + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + - name: Set up uv + uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2 + with: + python-version: "3.13" + enable-cache: false + + - name: Run the gateway-publish action tests + working-directory: .github/actions/gateway-publish + run: uv run --frozen pytest diff --git a/.github/workflows/gateway-publish.yml b/.github/workflows/gateway-publish.yml new file mode 100644 index 0000000..1b044f7 --- /dev/null +++ b/.github/workflows/gateway-publish.yml @@ -0,0 +1,135 @@ +# Publishes a dataset repo's metadata to the HDR UK Health Data Research Gateway as a new +# version of an existing dataset. Call it after semantic-release creates a release (see +# samples/release.gateway.yaml). Each call adds a Gateway version, even if nothing changed. +# +# The dataset must already exist on the Gateway, with its ID in gateway/gateway.yaml. +# Creating it is a one-off manual step (docs/workflows/gateway-publish.md), so this +# workflow never creates datasets and never writes to the repository. +# +# The validate job needs no secrets, so a broken release fails before anyone is asked to +# approve. The publish job runs in a GitHub environment (default `gateway`): give it +# required reviewers, and keep the credentials there as environment secrets. +name: HDR UK Gateway Publish + +on: + workflow_call: + inputs: + version: + description: Metadata version, major.minor.patch (a leading v is removed). Usually the release tag. + type: string + required: true + ref: + description: Git ref to publish from. Default the version input, which is the release tag. + type: string + default: "" + dataset-dir: + description: Directory holding gateway/ (default the repository root). + type: string + default: "." + schema: + description: LinkML schema. Default the only *.yaml in dataset-dir, else in dataset-dir/schemas. + type: string + default: "" + status: + description: DRAFT or ACTIVE. Default the status in gateway.yaml, else DRAFT. + type: string + default: "" + dry-run: + description: Print the request instead of sending it. + type: boolean + default: false + environment: + description: GitHub environment for the publish job. Create it, with required reviewers, before the first release. + type: string + default: gateway + base-url: + description: Gateway API base URL. + type: string + default: https://api.healthdatagateway.org/api + team-id: + description: Gateway team ID. Default team_id in gateway.yaml; if set, it must match. + type: string + default: "" + traser: + description: Also check the metadata with TRASER, as the Gateway does. + type: boolean + default: true + traser-url: + description: TRASER base URL. Default HDR UK's dev instance. + type: string + default: "" + secrets: + # Not required, so that dry runs work without them, and so that environment secrets + # can be used: a caller with `secrets: inherit` gets the publish job's environment + # secrets of the same name. + GATEWAY_APP_ID: + description: The Gateway Private App's App ID. + required: false + GATEWAY_CLIENT_ID: + description: The Gateway Private App's Client ID. + required: false + +permissions: {} + +jobs: + validate: + runs-on: ubuntu-latest + timeout-minutes: 10 + permissions: + contents: read + steps: + - name: Check out the release + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + ref: ${{ inputs.ref || inputs.version }} + persist-credentials: false + + # $/ is the repository of this workflow, at the commit that runs, so the action is + # the same version as the workflow that the caller pinned. + - name: Validate Gateway metadata + uses: $/.github/actions/gateway-publish + with: + command: validate + dataset-dir: ${{ inputs.dataset-dir }} + schema: ${{ inputs.schema }} + version: ${{ inputs.version }} + traser: ${{ inputs.traser }} + traser-url: ${{ inputs.traser-url }} + + publish: + needs: validate + runs-on: ubuntu-latest + timeout-minutes: 15 + environment: ${{ inputs.environment }} + permissions: + contents: read + # One publish at a time per repository. A queued run waits rather than being + # cancelled, so every release is published, in order. + concurrency: + group: gateway-publish-${{ github.repository }} + cancel-in-progress: false + steps: + - name: Check out the release + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + ref: ${{ inputs.ref || inputs.version }} + persist-credentials: false + + # Validates again (the same checks), sends the new version, then reads the dataset + # back and fails unless the version went up and the title matches. A failed update + # is not retried, because a retry could add a second version. + - name: Publish to the Gateway + uses: $/.github/actions/gateway-publish + with: + command: push + dataset-dir: ${{ inputs.dataset-dir }} + schema: ${{ inputs.schema }} + version: ${{ inputs.version }} + status: ${{ inputs.status }} + dry-run: ${{ inputs.dry-run }} + base-url: ${{ inputs.base-url }} + team-id: ${{ inputs.team-id }} + traser: ${{ inputs.traser }} + traser-url: ${{ inputs.traser-url }} + app-id: ${{ secrets.GATEWAY_APP_ID }} + client-id: ${{ secrets.GATEWAY_CLIENT_ID }} diff --git a/.github/workflows/gateway-validate.yml b/.github/workflows/gateway-validate.yml new file mode 100644 index 0000000..f1fc1aa --- /dev/null +++ b/.github/workflows/gateway-validate.yml @@ -0,0 +1,54 @@ +# Checks a dataset repo's HDR UK Gateway metadata without publishing anything. Call it on +# pull requests (see samples/check.gateway.yaml). It needs no secrets, so it is safe for +# PRs from forks and Dependabot. +# +# It builds the metadata from the LinkML schema and gateway/metadata.yaml, validates it +# against the HDRUK 4.1.0 schema, and (by default) sends it to HDR UK's TRASER service, +# which the Gateway uses and which catches errors the schema alone misses. TRASER receives +# the metadata, which is published anyway. +name: HDR UK Gateway Validate + +on: + workflow_call: + inputs: + dataset-dir: + description: Directory holding gateway/ (default the repository root). + type: string + default: "." + schema: + description: LinkML schema. Default the only *.yaml in dataset-dir, else in dataset-dir/schemas. + type: string + default: "" + traser: + description: Also check the metadata with TRASER, as the Gateway does. + type: boolean + default: true + traser-url: + description: TRASER base URL. Default HDR UK's dev instance. + type: string + default: "" + +permissions: {} + +jobs: + validate: + runs-on: ubuntu-latest + timeout-minutes: 10 + permissions: + contents: read + steps: + - name: Check out the repo + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + # $/ is the repository of this workflow, at the commit that runs, so the action is + # the same version as the workflow that the caller pinned. + - name: Validate Gateway metadata + uses: $/.github/actions/gateway-publish + with: + command: validate + dataset-dir: ${{ inputs.dataset-dir }} + schema: ${{ inputs.schema }} + traser: ${{ inputs.traser }} + traser-url: ${{ inputs.traser-url }} diff --git a/docs/workflows/gateway-publish.md b/docs/workflows/gateway-publish.md new file mode 100644 index 0000000..e370f5a --- /dev/null +++ b/docs/workflows/gateway-publish.md @@ -0,0 +1,83 @@ +# HDR UK Gateway Publish and Validate + +Two reusable workflows that publish a dataset's metadata to the [HDR UK Health Data Research Gateway](https://healthdatagateway.org) from a LinkML repo: + +- `gateway-validate.yml` builds and validates the metadata. Run it on pull requests. It needs no secrets. +- `gateway-publish.yml` validates, then sends the metadata to the Gateway as a new version of an existing dataset. Run it after `semantic-release` creates a release. + +Both run the [gateway-publish action](../../.github/actions/gateway-publish/README.md). It combines: + +- the **LinkML schema**, which gives the tables, columns and permitted values; and +- **`gateway/metadata.yaml`**, the catalogue fields (title, abstract, coverage, access and so on), written by hand in the [HDRUK 4.1.0 schema](https://github.com/HDRUK/schemata-2/tree/master/hdr_schemata/models/HDRUK/4.1.0)'s shape. + +## Set up a dataset repo + +1. **Add `gateway/metadata.yaml`.** Use field names and nesting from the HDRUK 4.1.0 schema. Don't set `identifier`, `version`, `issued`, `modified`, `revisions`, `structuralMetadata` or `summary.dataCustodian`: the tool fills them, and the Gateway overwrites most of them. Leave out `provenance.temporal.endDate` for an ongoing dataset: the Gateway rejects `CONTINUOUS`. Any value starting `TODO` stops the build. +2. **Add `gateway/gateway.yaml`:** + + ```yaml + team_id: 74 # the Gateway team that owns the Private App + team_name: Nottingham University Hospitals - NHS Trust + status: DRAFT # or ACTIVE; every release publishes with this status + dataset_id: null # written by the one-off create (step 5) + pid: null + ``` + +3. **Add the PR check** ([sample](../../samples/check.gateway.yaml)), and check that it passes. +4. **Create the `gateway` environment** (Settings → Environments). Add required reviewers, and limit deployments to protected branches or tags. Add the Private App's credentials as environment secrets `GATEWAY_APP_ID` and `GATEWAY_CLIENT_ID` (from the app's Authentication tab on the Gateway). Create the environment before the first release: GitHub creates a missing environment automatically, without any protection. +5. **Create the dataset on the Gateway, once,** from a local checkout. This writes `dataset_id` and `pid` into `gateway/gateway.yaml`. Commit that change. + + ```sh + export GATEWAY_APP_ID=... GATEWAY_CLIENT_ID=... # don't put these in shell history or files in the repo + uv run --project /.github/actions/gateway-publish \ + gateway-publish create --dataset . --version 0.0.0 + ``` + +6. **Add the publish job** to the release workflow ([sample](../../samples/release.gateway.yaml)). + +The workflows never create datasets and never write to the repository. If `gateway.yaml` has no `dataset_id`, publishing fails with instructions. + +## `gateway-validate.yml` + +| Input | Required | Default | Description | +|---|---|---|---| +| `dataset-dir` | No | `.` | Directory holding `gateway/`. | +| `schema` | No | the only `*.yaml` in `dataset-dir`, else in `dataset-dir/schemas` | LinkML schema. | +| `traser` | No | `true` | Also check with HDR UK's TRASER service, as the Gateway does. It catches errors that schema validation misses. | +| `traser-url` | No | HDR UK's dev TRASER | TRASER base URL. | + +## `gateway-publish.yml` + +| Input | Required | Default | Description | +|---|---|---|---| +| `version` | Yes | — | Metadata version, `major.minor.patch` (a leading `v` is removed). Pass `release-tag` from `semantic-release`. | +| `ref` | No | `version` | Git ref to publish from. | +| `dataset-dir` | No | `.` | Directory holding `gateway/`. | +| `schema` | No | as above | LinkML schema. | +| `status` | No | `status` in `gateway.yaml`, else `DRAFT` | `DRAFT` or `ACTIVE`. | +| `dry-run` | No | `false` | Print the request instead of sending it. Needs no credentials. | +| `environment` | No | `gateway` | GitHub environment for the publish job. | +| `base-url` | No | `https://api.healthdatagateway.org/api` | Gateway API base URL. Credentials are only sent to known Gateway hosts. | +| `team-id` | No | `team_id` in `gateway.yaml` | Gateway team. If set, it must match `gateway.yaml`. | +| `traser` | No | `true` | As above. | +| `traser-url` | No | HDR UK's dev TRASER | As above. | + +| Secret | Required | Description | +|---|---|---| +| `GATEWAY_APP_ID` | For a real publish | The Private App's App ID. | +| `GATEWAY_CLIENT_ID` | For a real publish | The Private App's Client ID. | + +With `secrets: inherit`, the publish job uses the `gateway` environment's secrets of these names. To use repository secrets instead, pass them by name. + +The workflow has two jobs: + +1. **validate**: builds and validates the release, without secrets. A broken release fails here, before anyone is asked to approve. +2. **publish**: waits for the environment's reviewers, then validates again, sends a new version (`PUT /v3/teams/{team}/datasets/{id}`), reads the dataset back, and fails unless the version went up and the title matches. One publish runs at a time per repository. Reads are retried on server errors; the update is not, because a retry could add a second version. The output is in the job summary. + +## Things to know + +- **The repository is the source of truth.** Each release replaces the whole record and sets its status from `gateway.yaml`, so edits made in the Gateway's web UI are lost, and a dataset archived there becomes active again at the next release. +- **Every release adds a Gateway version**, even if the metadata didn't change. The Gateway labels them `1.0.0`, `2.0.0`, ...; our release version is kept in the metadata's `version` field. +- **Drafts skip the Gateway's validation.** The workflows always check with TRASER, so a draft that publishes should also pass when switched to `ACTIVE`. +- **To make a dataset public**, change `status` in `gateway.yaml` to `ACTIVE` in a PR. The next release publishes it. +- The Gateway API this uses is not in HDR UK's published documentation. If a publish fails unexpectedly, see the action's README. diff --git a/docs/workflows/readme.md b/docs/workflows/readme.md index 8daa0a9..2d96586 100644 --- a/docs/workflows/readme.md +++ b/docs/workflows/readme.md @@ -15,4 +15,5 @@ If you're starting from scratch and want a complete working pipeline, see the [s | [dependency-review.md](dependency-review.md) | Scans dependency changes in pull requests for known vulnerabilities and licence issues. | | [pr-title.md](pr-title.md) | Validates that pull request titles follow conventional commit format — required if you're using semantic-release to drive versioning. | | [publish-pypi.md](publish-pypi.md) | Builds and publishes a Python package to PyPI using OIDC trusted publishing. **Currently broken** — reusable workflows cannot obtain the OIDC token PyPI requires. Inline the publish step instead (see the [PyPI sample](../samples/release.pypi.md)). | +| [gateway-publish.md](gateway-publish.md) | Builds HDR UK Gateway metadata from a LinkML schema plus hand-written catalogue fields, validates it on PRs (`gateway-validate.yml`, no secrets), and publishes it as a new Gateway version after a release (`gateway-publish.yml`, behind an approval environment). | | [dependabot.md](dependabot.md) | How to configure Dependabot in your repo so workflow version references are kept up to date automatically when this library releases a new version. | diff --git a/samples/check.gateway.yaml b/samples/check.gateway.yaml new file mode 100644 index 0000000..bc702d0 --- /dev/null +++ b/samples/check.gateway.yaml @@ -0,0 +1,13 @@ +# Sample PR check for a dataset repo that publishes to the HDR UK Gateway: builds and +# validates the metadata on every PR, without secrets and without publishing. + +name: "Check Gateway metadata" + +on: + pull_request: + +jobs: + gateway: + uses: health-informatics-uon/workflows/.github/workflows/gateway-validate.yml@main + permissions: + contents: read diff --git a/samples/release.gateway.yaml b/samples/release.gateway.yaml new file mode 100644 index 0000000..3439a2d --- /dev/null +++ b/samples/release.gateway.yaml @@ -0,0 +1,40 @@ +# Sample release workflow for a dataset repo that publishes to the HDR UK Gateway. +# semantic-release decides the version; if it created a release, the metadata is +# published as a new Gateway version after a reviewer approves the `gateway` environment. +# See docs/workflows/gateway-publish.md for the one-off setup (environment, secrets, +# gateway/ files, creating the dataset). +# Pin both workflows to the same release of health-informatics-uon/workflows. + +name: Release +permissions: + contents: write + pull-requests: write + issues: write + +on: + push: + branches: + - main + +jobs: + release: + uses: health-informatics-uon/workflows/.github/workflows/semantic-release.yml@main + with: + node-version: "24" + secrets: inherit + + gateway: + needs: release + if: needs.release.outputs.release-created == 'true' + uses: health-informatics-uon/workflows/.github/workflows/gateway-publish.yml@main + permissions: + contents: read + with: + # Release tag from semantic-release (do not change) + version: ${{ needs.release.outputs.release-tag }} + # Gives the publish job the `gateway` environment's GATEWAY_APP_ID and + # GATEWAY_CLIENT_ID secrets. To use repository secrets instead, pass them by name: + # secrets: + # GATEWAY_APP_ID: ${{ secrets.GATEWAY_APP_ID }} + # GATEWAY_CLIENT_ID: ${{ secrets.GATEWAY_CLIENT_ID }} + secrets: inherit From 0af18a89a42ca122a24df2b423aac1cf65700741 Mon Sep 17 00:00:00 2001 From: Andy Rae <1127507+AndyRae@users.noreply.github.com> Date: Mon, 23 Nov 2026 09:25:19 +0000 Subject: [PATCH 02/10] refactor: slim the gateway-publish action to what publishing needs Validate with TRASER only, which checks the same HDRUK 4.1.0 schema the Gateway uses, and drop the bundled HDRUK 3.0.0 and 4.1.0 schemas and the local validator. Drop the CLI commands that publishing doesn't use (list, delete, update/create from a file) and the live test. Replace the test fixtures with one small LinkML schema that covers each mapping case. Co-Authored-By: Claude Opus 5.5 --- .github/actions/gateway-publish/README.md | 17 +- .github/actions/gateway-publish/action.yml | 4 +- .../actions/gateway-publish/pyproject.toml | 4 - .../actions/gateway-publish/scripts/run.sh | 4 +- .../src/gateway_publish/cli.py | 216 +- .../src/gateway_publish/client.py | 21 +- .../schemas/HDRUK/3.0.0/schema.json | 2714 -------------- .../schemas/HDRUK/4.1.0/schema.json | 3333 ----------------- .../src/gateway_publish/validate.py | 58 - .../actions/gateway-publish/tests/conftest.py | 6 +- .../tests/fixtures/dataset.golden.json | 115 + .../gateway/gateway.yaml | 0 .../fixtures/dataset/gateway/metadata.yaml | 33 + .../tests/fixtures/dataset/schema.yaml | 43 + .../tests/fixtures/demographics.golden.json | 225 -- .../fixtures/demographics/demographics.yaml | 267 -- .../demographics/gateway/metadata.yaml | 63 - .../tests/fixtures/example-hdruk300.json | 160 - .../fixtures/example-hdruk410-structural.json | 125 - .../tests/fixtures/example-hdruk410.json | 100 - .../gateway-publish/tests/test_build.py | 165 +- .../actions/gateway-publish/tests/test_cli.py | 226 +- .../gateway-publish/tests/test_client.py | 11 - .../gateway-publish/tests/test_live.py | 41 - .github/actions/gateway-publish/uv.lock | 2 - .github/workflows/gateway-publish.yml | 2 +- .github/workflows/gateway-validate.yml | 9 +- docs/workflows/gateway-publish.md | 6 +- 28 files changed, 454 insertions(+), 7516 deletions(-) delete mode 100644 .github/actions/gateway-publish/src/gateway_publish/schemas/HDRUK/3.0.0/schema.json delete mode 100644 .github/actions/gateway-publish/src/gateway_publish/schemas/HDRUK/4.1.0/schema.json delete mode 100644 .github/actions/gateway-publish/src/gateway_publish/validate.py create mode 100644 .github/actions/gateway-publish/tests/fixtures/dataset.golden.json rename .github/actions/gateway-publish/tests/fixtures/{demographics => dataset}/gateway/gateway.yaml (100%) create mode 100644 .github/actions/gateway-publish/tests/fixtures/dataset/gateway/metadata.yaml create mode 100644 .github/actions/gateway-publish/tests/fixtures/dataset/schema.yaml delete mode 100644 .github/actions/gateway-publish/tests/fixtures/demographics.golden.json delete mode 100644 .github/actions/gateway-publish/tests/fixtures/demographics/demographics.yaml delete mode 100644 .github/actions/gateway-publish/tests/fixtures/demographics/gateway/metadata.yaml delete mode 100644 .github/actions/gateway-publish/tests/fixtures/example-hdruk300.json delete mode 100644 .github/actions/gateway-publish/tests/fixtures/example-hdruk410-structural.json delete mode 100644 .github/actions/gateway-publish/tests/fixtures/example-hdruk410.json delete mode 100644 .github/actions/gateway-publish/tests/test_live.py diff --git a/.github/actions/gateway-publish/README.md b/.github/actions/gateway-publish/README.md index fb9c948..17620e3 100644 --- a/.github/actions/gateway-publish/README.md +++ b/.github/actions/gateway-publish/README.md @@ -9,23 +9,22 @@ The action is a Python package, `gateway-publish`, with a CLI. [`action.yml`](ac | Module | What it does | |---|---| | [`build.py`](src/gateway_publish/build.py) | Finds the dataset files and builds the payload: `structuralMetadata` from the LinkML schema (one table per `tree_root` class, one column per slot, enum values as column values), the rest from `gateway/metadata.yaml`, plus the fields the Gateway overwrites anyway. | -| [`validate.py`](src/gateway_publish/validate.py) | Validates against the bundled HDRUK schemas (`schemas/HDRUK//schema.json`, from [HDRUK/schemata-2](https://github.com/HDRUK/schemata-2)), reporting the most specific error inside nested `anyOf`s. | -| [`traser.py`](src/gateway_publish/traser.py) | Sends the payload to TRASER `/translate` exactly as the Gateway does, so translation errors show up before publishing. | +| [`traser.py`](src/gateway_publish/traser.py) | Validates the payload by sending it to TRASER `/translate` exactly as the Gateway does: HDRUK 4.1.0 input validation, translation to GWDM, output validation. | | [`client.py`](src/gateway_publish/client.py) | The Gateway API client, with hints for the known error messages. | | [`config.py`](src/gateway_publish/config.py) | Credentials and base URL from the environment. It refuses to send credentials to unknown hosts. | -| [`cli.py`](src/gateway_publish/cli.py) | `build`, `validate`, `create`, `push`, plus `get`, `list`, `update` and `delete` for manual use. | +| [`cli.py`](src/gateway_publish/cli.py) | `build`, `validate`, `create` (once per dataset), `push`, and `get` for checking a dataset by hand. | ## Using the CLI locally ```bash cd .github/actions/gateway-publish uv run gateway-publish --help -uv run gateway-publish validate --dataset ~/src/nuh-data-sact --traser +uv run gateway-publish validate ~/src/nuh-data-sact uv run gateway-publish build ~/src/nuh-data-sact --version 1.0.0 -o payload.json uv run gateway-publish push ~/src/nuh-data-sact --version 1.0.0 --dry-run ``` -Commands that call the Gateway need `GATEWAY_APP_ID` and `GATEWAY_CLIENT_ID` in the environment. The team comes from `gateway.yaml`, or `GATEWAY_TEAM_ID` for the commands that don't take a dataset. Keep credentials in a gitignored `.env` file and use `uv run --env-file .env ...`. +Commands that call the Gateway need `GATEWAY_APP_ID` and `GATEWAY_CLIENT_ID` in the environment. The team comes from `gateway.yaml`, or `GATEWAY_TEAM_ID` for `get`. Keep credentials in a gitignored `.env` file and use `uv run --env-file .env ...`. ## The Gateway API @@ -37,14 +36,13 @@ HDR UK's [integration docs](https://hdruk.github.io/gateway-2-integrations-testi | Update (adds a version) | `PUT /v3/teams/{team}/datasets/{id}` | | Get | `GET /v2/teams/{team}/datasets/{id}[?schema_model=HDRUK&schema_version=4.1.0]` | | List | `GET /v2/teams/{team}/datasets/status/{active,draft,archived}?title=` | -| Delete | `DELETE /v2/teams/{team}/datasets/{id}` (needs the app's delete permission) | - **Use v3 to update.** `PUT /v2/...` overwrites the latest version in place. `PUT /v3/...` (not in Swagger) adds a version and stores only a JSON Patch, so after a v3 update the plain GET returns `"metadata": []`. Ask for `schema_model`/`schema_version` to get the full document. - **Body:** `{"metadata": {"metadata": , "schemaModel": "HDRUK", "schemaVersion": "4.1.0"}, "create_origin": "API", "status": "DRAFT"|"ACTIVE"}`. Always send `status`: without it an update sets the status to null. The envelope declares the input schema on update; on create, only the query parameters reach TRASER. - **The Gateway overwrites** `identifier` (with its own `pid`), `issued`, `modified`, `revisions` and `summary.dataCustodian` (the owning team). It stores the metadata as GWDM 2.2 and translates it back on GET. - **Drafts skip validation.** The Gateway only calls TRASER with validation for `ACTIVE` datasets, so the action always runs TRASER itself. - **TRASER is stricter than the HDRUK schema.** For example, `provenance.temporal.endDate: CONTINUOUS` is valid HDRUK 4.1.0 but fails translation to GWDM 2.2. -- **Unknown IDs:** GET returns 404, but update and delete probably return 500. +- **Unknown IDs:** GET returns 404, but an update probably returns 500. ## Tests @@ -55,11 +53,10 @@ cd .github/actions/gateway-publish uv run pytest ``` -- `tests/test_build.py` has a golden-file test: the payload built from `tests/fixtures/demographics/` must match `tests/fixtures/demographics.golden.json`. After an intended change, regenerate it with `UPDATE_GOLDEN=1 uv run pytest tests/test_build.py` and review the diff. -- `tests/test_live.py` creates, updates and deletes a draft on a real Gateway. It is skipped unless `GATEWAY_LIVE_TESTS=1`, and needs credentials with delete permission. +`tests/test_build.py` has a golden-file test: the payload built from `tests/fixtures/dataset/` (a small LinkML schema covering each mapping case) must match `tests/fixtures/dataset.golden.json`. After an intended change, regenerate it with `UPDATE_GOLDEN=1 uv run pytest tests/test_build.py` and review the diff. ## Changing the action -- **New HDRUK schema version:** add `src/gateway_publish/schemas/HDRUK//schema.json` from schemata-2, change `SCHEMA_VERSION` in `build.py`, and check that TRASER accepts the payloads. +- **New HDRUK schema version:** change `SCHEMA_VERSION` in `build.py` and check that TRASER accepts real payloads. - **GWDM version:** `GWDM_VERSION` in `traser.py` must match what the live Gateway stores (`gwdm_version` on a dataset version). - **Dependencies:** change `pyproject.toml`, run `uv lock`, and commit `uv.lock`. Dependabot proposes updates monthly. diff --git a/.github/actions/gateway-publish/action.yml b/.github/actions/gateway-publish/action.yml index 9068f84..4bee864 100644 --- a/.github/actions/gateway-publish/action.yml +++ b/.github/actions/gateway-publish/action.yml @@ -33,8 +33,8 @@ inputs: default: "false" traser: description: >- - Also check the metadata with HDR UK's TRASER service, the way the Gateway does. Local - schema validation misses some errors that the Gateway rejects. + Validate the metadata with HDR UK's TRASER service, the way the Gateway does (against + HDRUK 4.1.0, then translated to GWDM). This is the only validation; false skips it. default: "true" traser-url: description: TRASER base URL. Default is HDR UK's dev instance. diff --git a/.github/actions/gateway-publish/pyproject.toml b/.github/actions/gateway-publish/pyproject.toml index e6067ae..ade46b7 100644 --- a/.github/actions/gateway-publish/pyproject.toml +++ b/.github/actions/gateway-publish/pyproject.toml @@ -6,7 +6,6 @@ readme = "README.md" requires-python = ">=3.13" dependencies = [ "httpx>=0.28", - "jsonschema>=4.23", "linkml-runtime>=1.12.1", "pydantic>=2", "pyyaml>=6.0.3", @@ -29,6 +28,3 @@ dev = [ [tool.pytest.ini_options] testpaths = ["tests"] -markers = [ - "live: talks to a real Gateway; skipped unless GATEWAY_LIVE_TESTS=1", -] diff --git a/.github/actions/gateway-publish/scripts/run.sh b/.github/actions/gateway-publish/scripts/run.sh index c57cc0e..8755058 100755 --- a/.github/actions/gateway-publish/scripts/run.sh +++ b/.github/actions/gateway-publish/scripts/run.sh @@ -17,9 +17,9 @@ set -euo pipefail args=() case "$COMMAND" in validate) - args=(validate --dataset "$DATASET_DIR") + args=(validate "$DATASET_DIR") if [ -n "$VERSION" ]; then args+=(--version "$VERSION"); fi - if [ "$TRASER" = "true" ]; then args+=(--traser); fi + if [ "$TRASER" != "true" ]; then args+=(--skip-traser); fi ;; push) if [ -z "$VERSION" ]; then diff --git a/.github/actions/gateway-publish/src/gateway_publish/cli.py b/.github/actions/gateway-publish/src/gateway_publish/cli.py index f372d7d..e78761f 100644 --- a/.github/actions/gateway-publish/src/gateway_publish/cli.py +++ b/.github/actions/gateway-publish/src/gateway_publish/cli.py @@ -11,7 +11,6 @@ from gateway_publish.client import STATUSES, GatewayClient, GatewayError, latest_version from gateway_publish.config import DEFAULT_BASE_URL, ConfigError, GatewayConfig from gateway_publish.traser import TraserError, traser_errors -from gateway_publish.validate import validation_errors DECLARED_SCHEMA = (SCHEMA_MODEL, SCHEMA_VERSION) # Any valid version will do when only checking a dataset directory. @@ -22,15 +21,6 @@ class CommandError(Exception): pass -def _load_json(path: Path) -> dict[str, Any]: - try: - return json.loads(path.read_text()) - except FileNotFoundError: - raise CommandError(f"File not found: {path}") from None - except json.JSONDecodeError as e: - raise CommandError(f"{path} is not valid JSON: {e}") from None - - def _print_json(data: Any) -> None: print(json.dumps(data, indent=2, ensure_ascii=False)) @@ -43,80 +33,22 @@ def _client(args: argparse.Namespace, default_team_id: int | None = None) -> Gat return GatewayClient(GatewayConfig.from_env(base_url=args.base_url, team_id=team_id)) -def cmd_create(args: argparse.Namespace) -> None: - if args.dataset: - _create_dataset(args) - return - metadata = _load_json(args.file) - status = args.status or "DRAFT" - with _client(args) as client: - result = client.create(metadata, status=status) - print(f"Created {status} dataset {result.dataset_id} (version id {result.version_id})") - - -def cmd_update(args: argparse.Namespace) -> None: - metadata = _load_json(args.file) - with _client(args) as client: - _print_json(client.update(args.id, metadata, status=args.status or "DRAFT")) - - -def cmd_get(args: argparse.Namespace) -> None: - with _client(args) as client: - _print_json(client.get(args.id, args.schema_model, args.schema_version)) - - -def cmd_delete(args: argparse.Namespace) -> None: - if args.confirm != args.id: - raise CommandError(f"Refusing to delete: pass --confirm {args.id} to confirm") - with _client(args) as client: - _print_json(client.delete(args.id)) - - -def cmd_list(args: argparse.Namespace) -> None: - with _client(args) as client: - _print_json(client.list(status=args.status, title=args.title)) +def _dataset(args: argparse.Namespace) -> DatasetDir: + return DatasetDir.find(args.dataset, schema=args.schema) -def _check(metadata: dict[str, Any], label: str, model: str, version: str, traser: bool) -> None: - """Validate locally, then optionally with TRASER; exit 1 with readable errors on failure.""" - errors = validation_errors(metadata, version, model) +def _check(payload: dict[str, Any], label: str, skip_traser: bool) -> None: + """Validate with TRASER the way the Gateway does; exit 1 with readable errors on failure.""" + if skip_traser: + print(f"{label}: built (TRASER check skipped)") + return + errors = traser_errors(payload, SCHEMA_VERSION, SCHEMA_MODEL) if errors: - print(f"{label} is NOT valid {model} {version}:", file=sys.stderr) + print(f"{label} failed the TRASER check ({SCHEMA_MODEL} {SCHEMA_VERSION} to GWDM):", file=sys.stderr) for error in errors: print(f" {error}", file=sys.stderr) raise SystemExit(1) - print(f"{label} is valid {model} {version}") - - if traser: - errors = traser_errors(metadata, version, model) - if errors: - print(f"{label} failed the TRASER translation check:", file=sys.stderr) - for error in errors: - print(f" {error}", file=sys.stderr) - raise SystemExit(1) - print("TRASER: translates to GWDM with input and output validation") - - -def _dataset(args: argparse.Namespace) -> DatasetDir: - return DatasetDir.find(args.dataset, schema=args.schema) - - -def cmd_validate(args: argparse.Namespace) -> None: - if args.dataset: - payload = build_payload(_dataset(args), args.version or VALIDATE_VERSION) - _check(payload, f"{args.dataset} (built)", SCHEMA_MODEL, SCHEMA_VERSION, args.traser) - else: - _check(_load_json(args.file), str(args.file), args.schema_model, args.schema_version, args.traser) - - -def cmd_build(args: argparse.Namespace) -> None: - payload = build_payload(_dataset(args), args.version) - text = json.dumps(payload, indent=2, ensure_ascii=False) + "\n" - if args.output: - args.output.write_text(text) - print(f"Wrote {args.output}") - else: - print(text, end="") + print(f"{label} is valid {SCHEMA_MODEL} {SCHEMA_VERSION} and translates to GWDM (TRASER)") def _status(args: argparse.Namespace, gateway: dict[str, Any]) -> str: @@ -136,9 +68,22 @@ def _dataset_client(args: argparse.Namespace, gateway: dict[str, Any]) -> Gatewa return client -def _create_dataset(args: argparse.Namespace) -> None: - if not args.version: - raise CommandError("--version is required with --dataset") +def cmd_build(args: argparse.Namespace) -> None: + payload = build_payload(_dataset(args), args.version) + text = json.dumps(payload, indent=2, ensure_ascii=False) + "\n" + if args.output: + args.output.write_text(text) + print(f"Wrote {args.output}") + else: + print(text, end="") + + +def cmd_validate(args: argparse.Namespace) -> None: + payload = build_payload(_dataset(args), args.version or VALIDATE_VERSION) + _check(payload, str(args.dataset), args.skip_traser) + + +def cmd_create(args: argparse.Namespace) -> None: dataset = _dataset(args) gateway = dataset.load_gateway() if gateway.get("dataset_id"): @@ -146,7 +91,7 @@ def _create_dataset(args: argparse.Namespace) -> None: f"{dataset.gateway} already has dataset_id {gateway['dataset_id']}; use push to update it" ) payload = build_payload(dataset, args.version) - _check(payload, f"{args.dataset} (built)", SCHEMA_MODEL, SCHEMA_VERSION, traser=not args.skip_traser) + _check(payload, str(args.dataset), args.skip_traser) status = _status(args, gateway) with _dataset_client(args, gateway) as client: @@ -163,15 +108,14 @@ def cmd_push(args: argparse.Namespace) -> None: gateway = dataset.load_gateway() status = _status(args, gateway) payload = build_payload(dataset, args.version) - _check(payload, f"{args.dataset} (built)", SCHEMA_MODEL, SCHEMA_VERSION, traser=not args.skip_traser) + _check(payload, str(args.dataset), args.skip_traser) dataset_id = gateway.get("dataset_id") if not dataset_id: raise CommandError( f"{dataset.gateway} has no dataset_id. Create the dataset once with " - f"`gateway-publish create --dataset {args.dataset} --version {args.version}` " - "(then commit gateway.yaml), " - "or recover the ID with `gateway-publish list --status draft --title ...`." + f"`gateway-publish create {args.dataset} --version {args.version}` " + "and commit gateway.yaml." ) if args.dry_run: @@ -198,86 +142,54 @@ def cmd_push(args: argparse.Namespace) -> None: print("OK: new version with the expected title") -def add_status(parser: argparse.ArgumentParser, default: str = "DRAFT") -> None: - parser.add_argument( - "--status", - choices=STATUSES, - help=f"dataset status to set (default: {default}). The Gateway skips its validation for DRAFT", - ) - - -def add_dataset(parser: argparse.ArgumentParser, positional: bool) -> None: - if positional: - parser.add_argument("dataset", type=Path, help="dataset directory (holds gateway/)") - parser.add_argument("--schema", type=Path, - help="LinkML schema (default: the only *.yaml in the dataset directory, else in its schemas/)") +def cmd_get(args: argparse.Namespace) -> None: + with _client(args) as client: + _print_json(client.get(args.id, SCHEMA_MODEL, SCHEMA_VERSION)) def build_parser() -> argparse.ArgumentParser: parser = argparse.ArgumentParser(prog="gateway-publish", description=__doc__) parser.add_argument("--base-url", help=f"Gateway API base URL (default: $GATEWAY_BASE_URL, else {DEFAULT_BASE_URL})") parser.add_argument("--team-id", type=int, - help="Gateway team ID (default: $GATEWAY_TEAM_ID, else gateway.yaml's team_id for dataset commands)") + help="Gateway team ID (default: $GATEWAY_TEAM_ID, else gateway.yaml's team_id)") sub = parser.add_subparsers(dest="command", required=True) - p = sub.add_parser("create", help="create a dataset from a metadata file or, once, from a dataset directory") - source = p.add_mutually_exclusive_group(required=True) - source.add_argument("--file", type=Path, help="metadata JSON (Phase 0 testing)") - source.add_argument("--dataset", type=Path, help="dataset directory; writes the new ID to gateway/gateway.yaml") - p.add_argument("--version", help="metadata version, with --dataset") - p.add_argument("--skip-traser", action="store_true", help="with --dataset, skip the TRASER check") - add_dataset(p, positional=False) - add_status(p, default="gateway.yaml's status, else DRAFT") - p.set_defaults(func=cmd_create) - - p = sub.add_parser("update", help="push a new version of a dataset") - p.add_argument("--id", type=int, required=True) - p.add_argument("--file", type=Path, required=True) - add_status(p) - p.set_defaults(func=cmd_update) - - p = sub.add_parser("get", help="retrieve a dataset") - p.add_argument("--id", type=int, required=True) - p.add_argument("--schema-model") - p.add_argument("--schema-version") - p.set_defaults(func=cmd_get) + def dataset_command(name: str, help: str, version_required: bool = True) -> argparse.ArgumentParser: + p = sub.add_parser(name, help=help) + p.add_argument("dataset", type=Path, help="dataset directory (holds gateway/)") + p.add_argument("--schema", type=Path, + help="LinkML schema (default: the only *.yaml in the dataset directory, else in its schemas/)") + p.add_argument("--version", required=version_required, + help="metadata version, major.minor.patch (in a dataset repo: the release version)") + return p + + def options(p: argparse.ArgumentParser, status: bool = True) -> None: + p.add_argument("--skip-traser", action="store_true", help="skip the TRASER check") + if status: + p.add_argument("--status", choices=STATUSES, + help="DRAFT or ACTIVE (default: gateway.yaml's status, else DRAFT)") + + p = dataset_command("build", "build the payload and print or save it") + p.add_argument("-o", "--output", type=Path, help="write to this file (default: stdout)") + p.set_defaults(func=cmd_build) - p = sub.add_parser("delete", help="delete a dataset") - p.add_argument("--id", type=int, required=True) - p.add_argument("--confirm", type=int, help="repeat the dataset ID to confirm") - p.set_defaults(func=cmd_delete) - - p = sub.add_parser("list", help="list the team's datasets") - p.add_argument("--status", choices=["active", "draft", "archived"], default="active") - p.add_argument("--title", help="substring match on title") - p.set_defaults(func=cmd_list) - - p = sub.add_parser("validate", help="validate a metadata file or built dataset offline against a bundled schema") - source = p.add_mutually_exclusive_group(required=True) - source.add_argument("--file", type=Path) - source.add_argument("--dataset", type=Path, help=f"dataset directory; built and checked against {SCHEMA_MODEL} {SCHEMA_VERSION}") - p.add_argument("--version", help=f"metadata version to build with --dataset (default: {VALIDATE_VERSION})") - add_dataset(p, positional=False) - p.add_argument("--schema-model", default="HDRUK") - p.add_argument("--schema-version", default="4.1.0") - p.add_argument("--traser", action="store_true", - help="also translate via TRASER to GWDM as the Gateway does (sends the file to TRASER)") + p = dataset_command("validate", "build the payload and check it with TRASER", version_required=False) + options(p, status=False) p.set_defaults(func=cmd_validate) - p = sub.add_parser("build", help="build the payload for a dataset directory") - add_dataset(p, positional=True) - p.add_argument("--version", required=True, help="metadata version (in a dataset repo: the release version)") - p.add_argument("-o", "--output", type=Path, help="write to this file (default: stdout)") - p.set_defaults(func=cmd_build) + p = dataset_command("create", "create the dataset on the Gateway, once; writes its ID to gateway.yaml") + options(p) + p.set_defaults(func=cmd_create) - p = sub.add_parser("push", help="build, validate and push a new version of an existing dataset") - add_dataset(p, positional=True) - p.add_argument("--version", required=True, help="metadata version (in a dataset repo: the release version)") + p = dataset_command("push", "validate and send a new version of the dataset, then read it back") p.add_argument("--dry-run", action="store_true", help="print the request instead of sending it") - p.add_argument("--skip-traser", action="store_true", help="skip the TRASER check") - add_status(p, default="gateway.yaml's status, else DRAFT") + options(p) p.set_defaults(func=cmd_push) + p = sub.add_parser("get", help="print a dataset's latest version as HDRUK 4.1.0") + p.add_argument("--id", type=int, required=True) + p.set_defaults(func=cmd_get) + return parser @@ -285,7 +197,7 @@ def main(argv: list[str] | None = None) -> None: args = build_parser().parse_args(argv) try: args.func(args) - except (BuildError, ConfigError, CommandError, GatewayError, TraserError, ValueError) as e: + except (BuildError, ConfigError, CommandError, GatewayError, TraserError) as e: print(f"error: {e}", file=sys.stderr) raise SystemExit(1) from None diff --git a/.github/actions/gateway-publish/src/gateway_publish/client.py b/.github/actions/gateway-publish/src/gateway_publish/client.py index fcc03bf..0f327a1 100644 --- a/.github/actions/gateway-publish/src/gateway_publish/client.py +++ b/.github/actions/gateway-publish/src/gateway_publish/client.py @@ -2,7 +2,7 @@ Authenticates with a Private App's x-application-id / x-client-id headers. Updates go to v3, because the v2 PUT overwrites the latest version in place instead of adding one. The -older /api/v1/integrations/datasets endpoints have been retired. See docs/gateway-notes.md. +older /api/v1/integrations/datasets endpoints have been retired. See the README. """ import json @@ -41,7 +41,7 @@ def __str__(self) -> str: # substring matches any message for that status. ERROR_HINTS: list[tuple[int, str | None, str]] = [ (400, "permissions do not allow", "the Private App lacks the permission for this action " - "(datasets.create / datasets.update / datasets.delete). Fix on the app's Permissions tab."), + "(datasets.create / datasets.update). Fix on the app's Permissions tab."), (400, "not been enabled", "the Private App is disabled. Set it to Enabled on the App Info tab."), (400, "unknown format", "the metadata matched no supported schema. Run `gateway-publish validate` " "and see the TRASER details in the response."), @@ -52,8 +52,7 @@ def __str__(self) -> str: (401, "another team", "the app belongs to a different team from GATEWAY_TEAM_ID or from the dataset."), (401, None, "credentials missing, wrong, or not valid for this team."), (404, None, "no dataset with that ID in this team (wrong ID or team, or it was deleted)."), - (410, None, "this endpoint has been retired by the Gateway."), - (500, None, "server error. For update/delete this can also mean the dataset ID does not exist."), + (500, None, "server error. For an update this can also mean the dataset ID does not exist."), ] @@ -176,20 +175,6 @@ def get( _raise_for_status(response) return response.json() - def delete(self, dataset_id: int) -> dict[str, Any]: - response = self._http.delete(f"{self._datasets_path()}/{dataset_id}") - _raise_for_status(response) - return response.json() - - def list(self, status: str = "active", title: str | None = None) -> dict[str, Any]: - """List the team's datasets. `title` is a substring match on the Gateway side.""" - params: dict[str, Any] = {"with_metadata": "false"} - if title: - params["title"] = title - response = self._read(f"{self._datasets_path()}/status/{status}", params=params) - _raise_for_status(response) - return response.json() - def latest_version(get_response: dict[str, Any]) -> LatestVersion: """Pull the latest version number, title and stored metadata out of a GET response. diff --git a/.github/actions/gateway-publish/src/gateway_publish/schemas/HDRUK/3.0.0/schema.json b/.github/actions/gateway-publish/src/gateway_publish/schemas/HDRUK/3.0.0/schema.json deleted file mode 100644 index d1525e8..0000000 --- a/.github/actions/gateway-publish/src/gateway_publish/schemas/HDRUK/3.0.0/schema.json +++ /dev/null @@ -1,2714 +0,0 @@ -{ - "$defs": { - "AbstractText": { - "anyOf": [ - { - "maxLength": 500, - "minLength": 5, - "type": "string" - }, - { - "type": "null" - } - ], - "title": "AbstractText" - }, - "Access": { - "additionalProperties": false, - "properties": { - "accessRights": { - "allOf": [ - { - "$ref": "#/$defs/LongDescription" - } - ], - "description": "Please provide details for the data access rights.", - "examples": [ - "In Progress" - ], - "guidance": "The URL of a webpage where the data access request process and/or guidance is provided. If there is more than one access process i.e. industry vs academic please provide both separated by a comma.- If such a resource or the underlying process doesn\u2019t exist, please provide \u201cIn Progress\u201d, until both the process and the documentation are ready.", - "title": "Access rights" - }, - "accessServiceCategory": { - "anyOf": [ - { - "$ref": "#/$defs/AccessService" - }, - { - "type": "null" - } - ], - "default": null, - "description": "The method a Researcher will use to access the dataset, if approved.", - "examples": [ - "TRE/SDE" - ], - "guidance": "Select the category which best matches how a Researcher will access the dataset, if approved for access. If the access method changes based on the data required for the project (e.g. the dataset can be shared via secure email if the extract is fully anonymised, but must be accessed via a TRE/SDE if the extract is only pseudonymised) then select 'varies based on project'.", - "title": "Access method category" - }, - "accessService": { - "anyOf": [ - { - "$ref": "#/$defs/LongDescription" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please provide a brief description of the data access services that are available including: environment that is currently available to researchers; additional consultancy and services; any indication of costs associated. If no environment is currently available, please indicate the current plans and timelines when and how data will be made available to researchers Note: This value will be used as default access environment for all datasets submitted by the organisation. However, there will be the opportunity to overwrite this value for each dataset.", - "examples": [ - "https://re-docs.genomicsengland.co.uk/tutorials/", - "https://publichealthscotland.scot/services/data-research-and-innovation-services/electronic-data-research-and-innovation-service-edris/national-safe-haven-nsh/" - ], - "guidance": "Please provide a brief description of the data access services that are available including:- environment that is currently available to researchers- additional consultancy and services- any indication of costs associated If no environment is currently available, please indicate the current plans and timelines when and how data will be made available to researchers. Note: This value will be used as default access environment for all datasets submitted by the organisation. However, there will be the opportunity to overwrite this value for each dataset.", - "title": "Access service description" - }, - "accessRequestCost": { - "anyOf": [ - { - "$ref": "#/$defs/LongDescription" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please provide link(s) to a webpage or description detailing the service or cost model for processing data access requests.", - "guidance": "This information should cover the costs and/or services available to different audiences (i.e. academic, commercial, non-UK, etc.). This can be in the form of text or a URL.", - "title": "Access request cost" - }, - "deliveryLeadTime": { - "anyOf": [ - { - "$ref": "#/$defs/DeliveryLeadTimeV2" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please provide an indication of the typical processing times based on the types of requests typically received.", - "guidance": "Less than 1 week: Access request process typically processed in less than a week.- 1-2 weeks: Access request process typically processed in one to two weeks.- 2-4 weeks: Access request process typically processed in two to four weeks.- 1-2 months: Access request process typically processed in one to two months.- 2-6 months: Access request process typically processed in two to six months.- More than 6 months: Access request process typically processed in more than six months.- Variable: Access request lead time is variable.- Not applicable: Access request process duration is not applicable.- Other: If the typical timeframe does not fit into the broad ranges i.e. lightweight application vs linked data application, please choose \u201cOther\u201d and indicate the typical timeframe within the description for the dataset.", - "title": "Time to dataset access" - }, - "jurisdiction": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/Isocountrycode" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please use country code from ISO 3166-1 country codes and the associated ISO 3166-2 for regions, cities, states etc. for the country/state under whose laws the data subjects' data is collected, processed and stored.", - "guidance": "A full list of country codes can be found here (alpha-2 column): https://www.iso.org/obp/ui/#search/code/", - "title": "Jurisdiction" - }, - "dataController": { - "anyOf": [ - { - "$ref": "#/$defs/LongDescription" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Data Controller means a person/entity who (either alone or jointly or in common with other persons/entities) determines the purposes for which and the way any Data Subject data, specifically personal data or are to be processed.", - "examples": [ - "NHS England" - ], - "guidance": "Data Controller means a person/entity who (either alone or jointly or in common with other persons/entities) determines the purposes for which and the way any Data Subject data, specifically personal data or are to be processed.- Notes: For most organisations this will be the same as the Data Custodian of the dataset. If this is not the case, please indicate that there is a different controller.- If there is a different controller please complete the Data Processor attribute to indicate if the Data Custodian is a Processor rather than the Data Controller.- In some cases, there may be multiple Data Controllers i.e. GP data. If this is the case, please indicate the fact in a free-text field and describe the data sharing arrangement or a link to it, so that this can be understood by research users.- Example: NHS England", - "title": "Data Controller" - }, - "dataProcessor": { - "anyOf": [ - { - "$ref": "#/$defs/LongDescription" - }, - { - "type": "null" - } - ], - "default": null, - "description": "A Data Processor, in relation to any Data Subject data, specifically personal data, means any person/entity (other than an employee of the data controller) who processes the data on behalf of the data controller.", - "examples": [ - "Not Applicable", - "SAIL" - ], - "guidance": "A Data Processor, in relation to any Data Subject data, specifically personal data, means any person/entity (other than an employee of the data controller) who processes the data on behalf of the data controller.- Notes: Required to complete if the Data Custodian is the Data Processor rather than the Data Controller.- If the Publisher is also the Data Controller please provide \u201cNot Applicable\u201d.- Examples: Not Applicable, SAIL", - "title": "Data Processor" - } - }, - "required": [ - "accessRights" - ], - "title": "Access", - "type": "object" - }, - "AccessService": { - "enum": [ - "TRE/SDE", - "Direct access", - "Open access", - "Varies based on project" - ], - "title": "AccessService", - "type": "string" - }, - "Accessibility": { - "additionalProperties": false, - "properties": { - "usage": { - "anyOf": [ - { - "$ref": "#/$defs/Usage" - }, - { - "type": "null" - } - ], - "default": null, - "description": "This section includes information about how the data can be used and how it is currently being used.", - "title": "Usage" - }, - "access": { - "allOf": [ - { - "$ref": "#/$defs/Access" - } - ], - "description": "Accessibility information allows researchers to understand access, usage, limitations, formats, standards and linkage or interoperability with toolsets.", - "title": "Accessibility" - }, - "formatAndStandards": { - "anyOf": [ - { - "$ref": "#/$defs/FormatAndStandards" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Section includes technical attributes for language vocabularies, sizes etc. and gives researchers facts about and processing the underlying data in the dataset.", - "title": "Format and Standards" - } - }, - "required": [ - "access" - ], - "title": "Accessibility", - "type": "object" - }, - "Age": { - "properties": { - "bin": { - "allOf": [ - { - "$ref": "#/$defs/AgeEnum" - } - ], - "examples": [ - "30-34 years" - ], - "title": "Age grouping" - }, - "count": { - "examples": [ - 1000 - ], - "title": "Age count", - "type": "integer" - } - }, - "required": [ - "bin", - "count" - ], - "title": "Age", - "type": "object" - }, - "AgeEnum": { - "enum": [ - "0-6 days", - "7-27 days", - "1-11 months", - "1-4 years", - "5-9 years", - "10-14 years", - "15-19 years", - "20-24 years", - "25-29 years", - "30-34 years", - "35-39 years", - "40-44 years", - "45-49 years", - "50-54 years", - "55-59 years", - "60-64 years", - "65-69 years", - "70-74 years", - "75-79 years", - "80-84 years", - "85-89 years", - "90-94 years", - "95-99 years", - "100+ years" - ], - "title": "AgeEnum", - "type": "string" - }, - "Assay": { - "enum": [ - "NMR spectroscopy", - "Mass-spectrometry", - "Whole genome sequencing", - "Exome sequencing", - "Genotyping by array", - "Transcriptome profiling by high-throughput sequencing", - "Transcriptome profiling by array", - "Amplicon sequencing", - "Methylation binding domain sequencing", - "Methylation profiling by high-throughput sequencing", - "Genomic variant calling", - "Chromatin accessibility profiling by high-throughput sequencing", - "Histone modification profiling by high-throughput sequencing", - "Chromatin immunoprecipitation sequencing", - "Whole genome shotgun sequencing", - "Whole transcriptome sequencing", - "Targeted mutation analysis" - ], - "title": "Assay", - "type": "string" - }, - "CommaSeparatedValues": { - "anyOf": [ - { - "pattern": "([^,]+)", - "type": "string" - }, - { - "type": "null" - } - ], - "title": "CommaSeparatedValues" - }, - "ControlledVocabularyEnum": { - "enum": [ - "LOCAL", - "OPCS4", - "READ", - "SNOMED CT", - "SNOMED RT", - "DM PLUS D", - "DM+D", - "NHS NATIONAL CODES", - "NHS SCOTLAND NATIONAL CODES", - "NHS WALES NATIONAL CODES", - "ODS", - "LOINC", - "ICD10", - "ICD10CM", - "ICD10PCS", - "ICD9CM", - "ICD9", - "ICDO3", - "AMT", - "APC", - "ATC", - "CIEL", - "HPO", - "CPT4", - "DPD", - "DRG", - "HEMONC", - "JMDC", - "KCD7", - "MULTUM", - "NAACCR", - "NDC", - "NDFRT", - "OXMIS", - "RXNORM", - "RXNORM EXTENSION", - "SPL", - "OTHER" - ], - "title": "ControlledVocabularyEnum", - "type": "string" - }, - "Coverage": { - "additionalProperties": false, - "properties": { - "spatial": { - "anyOf": [ - { - "$ref": "#/$defs/CommaSeparatedValues" - }, - { - "items": { - "$ref": "#/$defs/Url" - }, - "type": "array" - } - ], - "description": "The geographical area covered by the dataset. It is recommended that links are to entries in one of the recommended standards:- For locations in the UK: ONS standards- For locations in other countries: ISO 3166-1 & ISO 3166-2", - "examples": [ - "United Kingdom", - "https://www.geonames.org/2635167/united-kingdom-of-great-britain-and-northern-ireland.html" - ], - "guidance": "The geographical area covered by the dataset.- Please provide a valid location.- For locations in the UK, this location should conform to ONS standards.- For locations in other countries we use ISO 3166-1 & ISO 3166-2.", - "title": "Geographic coverage" - }, - "typicalAgeRangeMin": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please indicate the minimum age in years of participants in the dataset as a whole number (integer).", - "examples": [ - 18 - ], - "guidance": "Please indicate the minimum of the age range in whole years of participants in the dataset.- What if my dataset has participants of all \u201cAll Ages\u201d or \u201cAny Ages\u201d?: In that case, please enter 0.", - "title": "Minimum age range" - }, - "typicalAgeRangeMax": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please indicate the maximum age in years of participants in the dataset as a whole number (integer).", - "examples": [ - 90 - ], - "guidance": "Please indicate the maximum of the age range in whole years of participants in the dataset.- What if my dataset has participants of all \u201cAll Ages\u201d or \u201cAny Ages\u201d?: In that case, please enter 150.", - "title": "Maximum age range" - }, - "datasetCompleteness": { - "anyOf": [ - { - "$ref": "#/$defs/Url" - }, - { - "type": "null" - } - ], - "default": null, - "description": "The URL where a Researcher can learn more about the completeness of the dataset.", - "examples": [ - "https://bhfdatasciencecentre.org/dashboard/" - ], - "guidance": "If your organisation has a publicly available site which contains information on the completeness of a dataset, add that URL here.Example: https://bhfdatasciencecentre.org/dashboard/", - "title": "Dataset coverage/completeness/quality" - }, - "materialType": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/MaterialTypeCategoriesV2" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "The type of biospecimen saved from a biological entity.", - "guidance": "Indicate the specimen type, can be several values from the list below:- Availability of physical samples associated with the dataset.- If samples are available, please indicate the types of samples that are available.- More than one type may be provided.- If samples are not yet available, please provide \u201cAvailability to be confirmed\u201d.- If samples are not available, then please provide \u201cNot available\u201d.- Not available: Samples associated with the dataset are not available.- Bone marrow: Bone marrow samples associated with the data are available.- Cancer cell lines: Cancer cell line samples associated with the data are available.- CDNA/MRNA: CDNA/MRNA samples associated with the data are available.- Core biopsy: Core biopsy samples associated with the data are available.- DNA: DNA samples associated with the data are available.- Entire body organ: Entire body organ associated with the data are available.- Faeces: Faeces samples associated with the data are available.- Immortalized cell lines: Immortalized cell line samples associated with the data are available.- Isolated pathogen: Isolated pathogen associated with the data are available.- MicroRNA: MicroRNA samples associated with the data are available.- Peripheral blood cells: Peripheral blood cell samples associated with the data are available.- Plasma: Plasma samples associated with the data are available.- PM Tissue: PM Tissue samples associated with the data are available.- Primary cells: Primary cell samples associated with the data are available.- RNA: RNA samples associated with the data are available.- Saliva: Saliva samples associated with the data are available.- Serum: Serum samples associated with the data are available.- Swabs: Swab samples associated with the data are available.- Tissue: Tissue samples associated with the data are available.- Urine: Urine samples associated with the data are available.- Whole blood: Whole blood samples associated with the data are available.- Availability to be confirmed: Availability of samples is currently being confirmed.- Other: Other types of sample available.", - "title": "Biological sample availability" - }, - "followUp": { - "anyOf": [ - { - "$ref": "#/$defs/FollowupV2" - }, - { - "type": "null" - } - ], - "default": "Unknown", - "description": "If known, what is the typical time span that a patient appears in the dataset (follow up period). In a prospective cohort study, after baseline information is collected, participants are followed \u201clongitudinally\u201d i.e. new information is collected about them for a period of time afterward. This is known as the \u201cfollow up period\u201d. What is the typical time span of follow up, e.g. 1 year, 5 years? If there are multiple cohorts in the dataset with varying follow up periods, please provide the longest follow up period.", - "guidance": "If known, please indicate the typical time span that a patient appears in the dataset (follow up period).-0 - 6 MONTHS: Data typically available for a patient over a 0-6 month period.-6 - 12 MONTHS: Data typically available for a patient over a 6-12 month period.-1 - 10 YEARS: Data typically available for a patient over a 1-10 year period.-> 10 YEARS: Data typically available for a patient for over a 10 year period.-CONTINUOUS: Data for patients is being regularly added to and updated.-UNKNOWN: Timespan is Unknown.-OTHER: Data available for a patient over another time period.", - "title": "Follow-up" - }, - "pathway": { - "anyOf": [ - { - "$ref": "#/$defs/Description" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please indicate if the dataset is representative of the patient pathway and any limitations the dataset may have with respect to pathway coverage. This could include if the dataset is from a single speciality or area, a single tier of care, linked across two tiers (e.g. primary and secondary care), or an integrated care record covering the whole patient pathway.", - "guidance": "Please indicate if the dataset is representative of the patient pathway and any limitations the dataset may have with respect to pathway coverage.- This could include if the dataset is from a single speciality or area, a single tier of care, linked across two tiers (e.g. primary and secondary care), or an integrated care record covering the whole patient pathway.", - "title": "Patient pathway description" - } - }, - "required": [ - "spatial" - ], - "title": "Coverage", - "type": "object" - }, - "DataColumn": { - "properties": { - "name": { - "allOf": [ - { - "$ref": "#/$defs/Name" - } - ], - "description": "The name of a column in a table.", - "title": "Column name" - }, - "dataType": { - "description": "The data type of values in the column.", - "title": "Data type", - "type": "string" - }, - "description": { - "anyOf": [ - { - "maxLength": 20000, - "minLength": 1, - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "A description of a column in a table.", - "title": "Column description" - }, - "sensitive": { - "description": "A True or False value, indicating if the field is sensitive or not.", - "title": "Sensitive", - "type": "boolean" - }, - "values": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/DataValue" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Values in a dataset.", - "title": "Values" - } - }, - "required": [ - "name", - "dataType", - "sensitive" - ], - "title": "DataColumn", - "type": "object" - }, - "DataTable": { - "additionalProperties": false, - "properties": { - "name": { - "anyOf": [ - { - "maxLength": 500, - "minLength": 1, - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "The name of a table in a dataset.", - "title": "Table name" - }, - "description": { - "anyOf": [ - { - "maxLength": 20000, - "minLength": 1, - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "A description of a table in a dataset.", - "title": "Table description" - }, - "columns": { - "description": "A list of columns contained within a table in a dataset.", - "items": { - "$ref": "#/$defs/DataColumn" - }, - "title": "Data columns", - "type": "array" - } - }, - "required": [ - "columns" - ], - "title": "DataTable", - "type": "object" - }, - "DataUseLimitationV2": { - "enum": [ - "General research use", - "Commercial research use", - "Genetic studies only", - "No general methods research", - "No restriction", - "Geographical restrictions", - "Institution-specific restrictions", - "Not for profit use", - "Project-specific restrictions", - "Research-specific restrictions", - "User-specific restrictions", - "Research use only", - "No linkage" - ], - "title": "DataUseLimitationV2", - "type": "string" - }, - "DataUseRequirementsV2": { - "enum": [ - "Collaboration required", - "Project-specific restrictions", - "Ethics approval required", - "Institution-specific restrictions", - "Geographical restrictions", - "Publication moratorium", - "Publication required", - "Return to database or resource", - "Time limit on use", - "Disclosure control", - "Not for profit use", - "User-specific restriction" - ], - "title": "DataUseRequirementsV2", - "type": "string" - }, - "DataValue": { - "properties": { - "name": { - "allOf": [ - { - "$ref": "#/$defs/Name" - } - ], - "description": "Unique value in a column.", - "title": "Value name" - }, - "description": { - "anyOf": [ - { - "maxLength": 20000, - "minLength": 1, - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "A description of a unique value in a column.", - "title": "Value description" - }, - "frequency": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "default": null, - "description": "The frequency of occurrance of a value in a column.", - "title": "Value frequency" - } - }, - "required": [ - "name" - ], - "title": "DataValue", - "type": "object" - }, - "DatasetDescriptor": { - "properties": { - "pid": { - "anyOf": [ - { - "$ref": "#/$defs/OneHundredFiftyCharacters" - }, - { - "type": "null" - } - ], - "default": null, - "title": "Persistent identifier of a dataset" - }, - "title": { - "anyOf": [ - { - "$ref": "#/$defs/OneHundredFiftyCharacters" - }, - { - "type": "null" - } - ], - "default": null, - "title": "Title of a dataset" - }, - "url": { - "anyOf": [ - { - "$ref": "#/$defs/Url" - }, - { - "type": "null" - } - ], - "default": null, - "title": "Url of a dataset" - } - }, - "title": "DatasetDescriptor", - "type": "object" - }, - "DatasetSubType": { - "enum": [ - "Mental health", - "Cardiovascular", - "Cancer", - "Rare diseases", - "Metabolic and endocrine", - "Neurological", - "Reproductive", - "Maternity and neonatology", - "Respiratory", - "Immunity", - "Musculoskeletal", - "Vision", - "Renal and urogenital", - "Oral and gastrointestinal", - "Cognitive function", - "Hearing", - "Others", - "Vaccines", - "Preventive", - "Therapeutic", - "Laboratory", - "Other diagnostics", - "CT", - "MRI", - "PET", - "X-ray", - "Ultrasound", - "Pathology", - "Head", - "Chest", - "Arm", - "Abdomen", - "Leg", - "Proteomics", - "Transcriptomics", - "Epigenomics", - "Metabolomics", - "Metagenomics", - "Genomics", - "Lipidomics", - "Education", - "Crime and justice", - "Ethnicity", - "Housing", - "Labour", - "Ageing", - "Economics", - "Marital status", - "Social support", - "Deprivation", - "Religion", - "Occupation", - "Finances", - "Family circumstance", - "Smoking", - "Physical activity", - "Dietary habits", - "Alcohol", - "Disease registry (research)", - "National disease registries and audits", - "Births and deaths", - "Not applicable" - ], - "title": "DatasetSubType", - "type": "string" - }, - "DatasetTypeV2": { - "enum": [ - "Health and disease", - "Treatments/Interventions", - "Measurements/Tests", - "Imaging types", - "Imaging area of the body", - "Omics", - "Socioeconomic", - "Lifestyle", - "Registry", - "Environment and energy", - "Information and communication", - "Politics" - ], - "title": "DatasetTypeV2", - "type": "string" - }, - "DeliveryLeadTimeV2": { - "enum": [ - "Less than 1 week", - "1-2 weeks", - "2-4 weeks", - "1-2 months", - "2-6 months", - "More than 6 months", - "Variable", - "Not applicable", - "Other" - ], - "title": "DeliveryLeadTimeV2", - "type": "string" - }, - "DemographicFrequency": { - "additionalProperties": false, - "properties": { - "age": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/Age" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Array of bins, based off the UK Office for National Statistics (ONS) groupings, and their corresponding counts as represented within the dataset.", - "title": "Age" - }, - "ethnicity": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/Ethnicity" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Array of bins, based off the UK Office for National Statistics (ONS) census groupings, and their corresponding counts as represented within the dataset.", - "guidance": "Enter the count of population represented in the dataset within the ethnicity bins provided. Clearly indicate where ethnicity is not stated or not known. Ensure you apply low number suppression and rounding where appropriate.", - "title": "Ethnicity" - }, - "disease": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/Disease" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Array of health conditions or diseases (based around ICD-10, SNOMED CT and MeSH disease vocabularies) and their corresponding counts as represented within the dataset.", - "guidance": "Create bins based on standard vocabulary (ICD-10, SNOMED CT or MeSH) and disease code. Then enter the count of population represented in the dataset within the disease bins created. Ensure you apply low number suppression and rounding where appropriate.", - "title": "Disease" - } - }, - "title": "DemographicFrequency", - "type": "object" - }, - "Description": { - "anyOf": [ - { - "maxLength": 10000, - "minLength": 2, - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Description" - }, - "Disease": { - "properties": { - "diseaseCode": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "integer" - } - ], - "examples": [ - "J45" - ], - "title": "Disease code" - }, - "diseaseCodeVocabulary": { - "allOf": [ - { - "$ref": "#/$defs/DiseaseCodeEnum" - } - ], - "examples": [ - "ICD10" - ], - "title": "Disease code vocabulary" - }, - "count": { - "examples": [ - 1000 - ], - "title": "Disease count", - "type": "integer" - } - }, - "required": [ - "diseaseCode", - "diseaseCodeVocabulary", - "count" - ], - "title": "Disease", - "type": "object" - }, - "DiseaseCodeEnum": { - "enum": [ - "ICD10", - "SNOMED CT", - "MeSH" - ], - "title": "DiseaseCodeEnum", - "type": "string" - }, - "Documentation": { - "additionalProperties": false, - "properties": { - "description": { - "allOf": [ - { - "$ref": "#/$defs/Description" - } - ], - "description": "A free-text description of the dataset.A URL can also be provided as the description of the dataset.Gateway Feature: Keywords and text may be extracted out of the description and indexed for search.", - "examples": [ - "CPRD Aurum contains primary care data contributed by General Practitioner (GP) practices using EMIS Web\u00ae including patient registration information and all care events that GPs have chosen to record as part of their usual medical practice." - ], - "guidance": "An HTML account of the data that provides context and scope of the data, limited to 10000 characters, and/or a resolvable URL that describes the dataset.- Additional information can be recorded and included using the Associated media field." - }, - "associatedMedia": { - "anyOf": [ - { - "$ref": "#/$defs/CommaSeparatedValues" - }, - { - "items": { - "anyOf": [ - { - "$ref": "#/$defs/Url" - }, - { - "type": "null" - } - ] - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please provide any media associated with the Gateway Organisation using a valid URL for the content. This is an opportunity to provide additional context that could be useful for researchers wanting to understand more about the dataset and its relevance to their research question. The following formats will be accepted .jpg, .png or .svg, .pdf, .xslx or .docx. Note: media asset can be hosted by the organisation or uploaded using the onboarding portal.", - "examples": [ - "PDF document that describes study protocol - https://link.to/document.pdf" - ], - "guidance": "Please provide any media associated with the Gateway Organisation using a valid URL for the content.- This is an opportunity to provide additional context that could be useful for researchers wanting to understand more about the dataset and its relevance to their research question.- Note: media assets should be hosted by the organisation.Example: This could be a link to a PDF Document that describes methodology or further detail about the datasets, or a graph or chart that provides further context about the dataset.- If you are providing multiple links for associated media, we recommend that you separate these with a comma.", - "title": "Associated media" - }, - "inPipeline": { - "anyOf": [ - { - "$ref": "#/$defs/Pipeline" - }, - { - "type": "null" - } - ], - "default": "Not available", - "description": "Indicate whether this dataset is currently available for Researchers to request access.", - "guidance": "If a dataset is being prepared for sharing but not yet ready and available for researchers to apply for access, select 'Not available'. If Researchers can currently apply for access to the dataset, select 'Available'.", - "title": "Dataset pipeline status" - } - }, - "required": [ - "description" - ], - "title": "Documentation", - "type": "object" - }, - "Doi": { - "anyOf": [ - { - "pattern": "^10.\\d{4,9}/[-._;()/:a-zA-Z0-9]+$", - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Doi" - }, - "EmailAddress": { - "anyOf": [ - { - "format": "email", - "type": "string" - }, - { - "type": "null" - } - ], - "title": "EmailAddress" - }, - "EndDateEnum": { - "enum": [ - "CONTINUOUS", - null - ], - "title": "EndDateEnum" - }, - "EnrichmentAndLinkage": { - "additionalProperties": false, - "properties": { - "derivedFrom": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/DatasetDescriptor" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "If applicable, please provide DOIs or links to datasets from which data in this dataset has been derived or calculated from.", - "title": "Derived from" - }, - "isPartOf": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/DatasetDescriptor" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "This relationship indicates that the dataset is a component or subset of a broader collection of related datasets. For example, clinical trial data for a specific drug may be part of a larger database of pharmaceutical research data. Complete only if the dataset is part of a group or family of datasets i.e. Hospital Episode Statistics has several constituents. If your dataset is not part of a group, please enter \u201cNOT APPLICABLE\u201d Example: Hospital Episodes Statistics datasets (A&E, APC, OP, AC MSDS).", - "examples": [ - "Hospital Episodes Statistics datasets (A&E, APC, OP, AC MSDS)" - ], - "title": "Is part of" - }, - "linkableDatasets": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/DatasetDescriptor" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "If applicable, please provide the DOI of other datasets that have previously been linked to this dataset and their availability. If no DOI is available, please provide the title of the datasets that can be linked.", - "title": "Linked datasets" - }, - "similarToDatasets": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/DatasetDescriptor" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Datasets that are similar to each other in some way, collect similar patients, regional equivalent etc.", - "title": "Similar to datasets" - }, - "investigations": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/Url" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please provide link to any active projects that are using the dataset.", - "guidance": "Please provide the website address(es) which document information related to active projects utilising the dataset.- Please split your existing list of citations into separate fields.- To add multiple entries, type in each website and press enter to add it to the list.- Example: https://dataloch.org/insights/projects-delivered/data-driven-innovation-multi-morbidity-report-partner-gps", - "title": "Investigations" - }, - "tools": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/Url" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please provide the URL of any analysis tools or models that have been created for this dataset and are available for further use. Multiple tools may be provided. Note: We encourage users to adopt a model along the lines of https://www.ga4gh.org/news/tool-registry-service-api-enabling-an-interoperable-library-of-genomics-analysis-tools/", - "guidance": "Please provide the URL of any analysis tools or models that have been created for this dataset and are available for further use.- Multiple tools may be provided.- Note: We encourage users to adopt a model along the lines of https://www.ga4gh.org/news/tool-registry-service-api-enabling-an-interoperable-library-of-genomics-analysis-tools/", - "title": "Tools" - }, - "publicationAboutDataset": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/Doi" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "DOIs for publications which describe the dataset.", - "examples": [ - "10.1093/ije/dyab028" - ], - "guidance": "Please provide the DOIs for publications which describe the dataset.- Please split your existing list of citations into separate fields.- To add multiple entries, type in each citation and press enter to add it to the list.- Example: <10.1093/ije/dyab028>", - "title": "Publication about the dataset" - }, - "publicationUsingDataset": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/Doi" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "DOIs for publications which use the dataset for analysis.", - "examples": [ - "10.1001/jamapediatrics.2016.3633" - ], - "guidance": "Please provide the DOIs for publications which have used the dataset in their analysis.- Please split your existing list of citations into separate fields.- To add multiple entries, type in each citation and press enter to add it to the list.- Example: <10.1001/jamapediatrics.2016.3633>", - "title": "Publication using the dataset" - } - }, - "title": "EnrichmentAndLinkage", - "type": "object" - }, - "Ethnicity": { - "properties": { - "bin": { - "allOf": [ - { - "$ref": "#/$defs/EthnicityEnum" - } - ], - "examples": [ - "Black or Black British - Any other Black background" - ], - "title": "Ethnicity grouping" - }, - "count": { - "examples": [ - 1000 - ], - "title": "Ethnicity count", - "type": "integer" - } - }, - "required": [ - "bin", - "count" - ], - "title": "Ethnicity", - "type": "object" - }, - "EthnicityEnum": { - "enum": [ - "White - British", - "White - Irish", - "White - Any other White background", - "Mixed - White and Black Caribbean", - "Mixed - White and Black African", - "Mixed - White and Asian", - "Mixed - Any other mixed background", - "Asian or Asian British - Indian", - "Asian or Asian British - Pakistani", - "Asian or Asian British - Bangladeshi", - "Asian or Asian British - Any other Asian background", - "Black or Black British - Caribbean", - "Black or Black British - African", - "Black or Black British - Any other Black background", - "Other Ethnic Groups - Chinese", - "Other Ethnic Groups - Any other ethnic group", - "Not stated", - "Not known" - ], - "title": "EthnicityEnum", - "type": "string" - }, - "FollowupV2": { - "enum": [ - "0 - 6 Months", - "6 - 12 Months", - "1 - 10 Years", - "> 10 Years", - "Unknown", - "Continuous", - "Other", - null - ], - "title": "FollowupV2" - }, - "Format": { - "minLength": 1, - "title": "Format", - "type": "string" - }, - "FormatAndStandards": { - "additionalProperties": false, - "properties": { - "vocabularyEncodingScheme": { - "description": "List any relevant terminologies / ontologies / controlled vocabularies, such as ICD 10 Codes, NHS Data Dictionary National Codes or SNOMED CT International, that are being used by the dataset. If the controlled vocabularies are local standards, please make that explicit. If you are using a standard that has not been included in the list, please use \u201cother\u201d and contact support desk to ask for an addition. Notes: More than one vocabulary may be provided.", - "examples": [ - "LOCAL", - "ICD10" - ], - "guidance": "List any relevant terminologies / ontologies / controlled vocabularies, such as ICD 10 Codes, NHS Data Dictionary National Codes or SNOMED CT International, that are being used by the dataset.- If the controlled vocabularies are local standards, please make that explicit. If you are using a standard that has not been included in the list, please use \u201cother\u201d and contact support desk to ask for an addition.- Notes: More than one vocabulary may be provided.- Local: Local Coding Standard.- OPCS4- READ- SNOMED CT- SNOMED RT- DM+D- NHS National Codes- ODS- LOINC- ICD10- ICD10CM- ICD10PCS- ICD9CM- ICD9- ICDO3- AMT- APC- ATC- CIEL- HPO- CPT4- DPD- DRG- HEMONC- JMDC- KCD7- MULTUM- NAACCR- NDC- NDFRT- OXMIS- RXNORM- RXNORM EXTENSION- SPL- Other: Please indicate if there is another standard that you are using. This will trigger a support ticket where you can request the addition of the terminology to the HOP.- NHS Scotland National Codes- NHS Wales National Codes", - "items": { - "$ref": "#/$defs/ControlledVocabularyEnum" - }, - "title": "Controlled vocabulary", - "type": "array" - }, - "conformsTo": { - "description": "List standardised data models that the dataset has been stored in or transformed to, such as OMOP or FHIR. If the data is only available in a local format, please make that explicit. If you are using a standard that has not been included in the list, please use \u201cother\u201d and contact support desk to ask for an addition.", - "examples": [ - "LOCAL", - "NHS DATA DICTIONARY" - ], - "guidance": "List standardised data models that the dataset has been stored in or transformed to, such as OMOP or FHIR.- If the data is only available in a local format, please make that explicit. If you are using a standard that has not been included in the list, please use \u201cother\u201d and contact support desk to ask for an addition.- British National Formulary (BNF) codes- HL7 FHIR- HL7 V2- HL7 CDA- HL7 CCOW- LOINC- DICOM- I2B2- IHE- OMOP- openEHR- Sentinel- PCORnet- CDISC- Local: In-house developed data model.- Other: Other standardised data model.- NHS Data Dictionary- NHS Scotland Data Dictionary- NHS Wales Data Dictionary", - "items": { - "$ref": "#/$defs/StandardisedDataModelsEnumV1_1" - }, - "title": "Alignment with standardised data models", - "type": "array" - }, - "language": { - "description": "This should list all the languages in which the dataset metadata and underlying data is made available complaint with ISO 639.", - "examples": [ - "en" - ], - "guidance": "https://www.iso.org/iso-639-language-code- aa: Afar- ab: Abkhazian- af: Afrikaans- ak: Akan- sq: Albanian- am: Amharic- ar: Arabic- an: Aragonese- hy: Armenian- as: Assamese- av: Avaric- ae: Avestan- ay: Aymara- az: Azerbaijani- ba: Bashkir- bm: Bambara- eu: Basque- be: Belarusian- bn: Bengali- bh: Bihari languages- bi: Bislama- bo: Tibetan- bs: Bosnian- br: Breton- bg: Bulgarian- my: Burmese- ca: Catalan; Valencian- cs: Czech- ch: Chamorro- ce: Chechen- zh: Chinese- cu: Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic- cv: Chuvash- kw: Cornish- co: Corsican- cr: Cree- cy: Welsh- cs: Czech- da: Danish- de: German- dv: Divehi; Dhivehi; Maldivian- nl: Dutch; Flemish- dz: Dzongkha- el: Greek, Modern (1453-)- en: English- eo: Esperanto- et: Estonian- eu: Basque- ee: Ewe- fo: Faroese- fa: Persian- fj: Fijian- fi: Finnish- fr: French- fy: Western Frisian- ff: Fulah- ka: Georgian- de: German- gd: Gaelic; Scottish Gaelic- ga: Irish- gl: Galician- gv: Manx- el: Greek, Modern (1453-)- gn: Guarani- gu: Gujarati- ht: Haitian; Haitian Creole- ha: Hausa- ho: Hiri Motu- hr: Croatian- hu: Hungarian- hy: Armenian- ig: Igbo- is: Icelandic- io: Ido- ii: Sichuan Yi; Nuosu- iu: Inuktitut- ie: Interlingue; Occidental- ia: Interlingua (International Auxiliary Language Association)- id: Indonesian- ik: Inupiaq- is: Icelandic- it: Italian- jv: Javanese- ja: Japanese- kl: Kalaallisut; Greenlandic- kn: Kannada- ks: Kashmiri- ka: Georgian- kr: Kanuri- kk: Kazakh- km: Central Khmer- ki: Kikuyu; Gikuyu- rw: Kinyarwanda- ky: Kirghiz; Kyrgyz- kv: Komi- kg: Kongo- ko: Korean- kj: Kuanyama; Kwanyama- ku: Kurdish- lo: Lao- la: Latin- lv: Latvian- li: Limburgan; Limburger; limburgish- ln: Lingala- lt: Lithuanian- lb: Luxembourgish; Letzeburgesch- lu: Luba-Katanga- lg: Ganda- mk: Macedonian- mh: Marshallese- ml: Malayalam- mi: Maori- mr: Marathi- ms: Malay- mk: Macedonian- mg: Malagasy- mt: Maltese- mn: Mongolian- mi: Maori- ms: Malay- my: Burmese- na: Nauru- nv: Navajo; Navaho- nr: Ndebele, South; South Ndebele- nd: Ndebele, North; North Ndebele- ng: Ndonga- ne: Nepali- nl: Dutch; Flemish- nn: Norwegian Nynorsk; Nynorsk, Norwegian- nb: Bokm\u00e5l, Norwegian; Norwegian Bokm\u00e5l- no: Norwegian- ny: Chichewa; Chewa; Nyanja- oc: Occitan (post 1500)- oj: Ojibwa- or: Oriya- om: Oromo- os: Ossetian; Ossetic- pa: Panjabi; Punjabi- fa: Persian- pi: Pali- pl: Polish- pt: Portuguese- ps: Pushto; Pashto- qu: Quechua- rm: Romansh- ro: Romanian; Moldavian; Moldovan- rn: Rundi- ru: Russian- sg: Sango- sa: Sanskrit- si: Sinhala; Sinhalese- sk: Slovak- sl: Slovenian- se: Northern Sami- sm: Samoan- sn: Shona- sd: Sindhi- so: Somali- st: Sotho, Southern- es: Spanish; Castilian- sq: Albanian- sc: Sardinian- sr: Serbian- ss: Swati- su: Sundanese- sw: Swahili- sv: Swedish- ty: Tahitian- ta: Tamil- tt: Tatar- te: Telugu- tg: Tajik- tl: Tagalog- th: Thai- bo: Tibetan- ti: Tigrinya- to: Tonga (Tonga Islands)- tn: Tswana- ts: Tsonga- tk: Turkmen- tr: Turkish- tw: Twi- ug: Uighur; Uyghur- uk: Ukrainian- ur: Urdu- uz: Uzbek- ve: Venda- vi: Vietnamese- vo: Volap\u00fck- cy: Welsh- wa: Walloon- wo: Wolof- xh: Xhosa- yi: Yiddish- yo: Yoruba- za: Zhuang; Chuang- zh: Chinese- zu: Zulu", - "items": { - "$ref": "#/$defs/LanguageEnum" - }, - "title": "Language", - "type": "array" - }, - "format": { - "description": "If multiple formats are available please specify. See application, audio, image, message, model, multipart, text, video, https://www.iana.org/assignments/media-types/media-types.xhtml Note: If your file format is not included in the current list of formats, please indicate other. If you are using the HOP you will be directed to a service desk page where you can request your additional format. If not please go to: https://metadata.atlassian.net/servicedesk/customer/portal/4 to request your format.", - "examples": [ - "text/tab-separated-values", - "application/sql", - "text/csv", - "image/diacom-rle" - ], - "guidance": "If multiple formats are available, please specify. See application, audio, image, message, model, multipart, text, video, https://www.iana.org/assignments/media-types/media-types.xhtml.- Please enter one format type at a time and click Add New Field to add further keywords.- Note: If your file format is not included in the current list of formats, please indicate other.- Example: text/tab-separated-values, application/sql, text/csv, image/diacom-rle", - "items": { - "$ref": "#/$defs/Format" - }, - "title": "Format", - "type": "array" - } - }, - "required": [ - "vocabularyEncodingScheme", - "conformsTo", - "language", - "format" - ], - "title": "FormatAndStandards", - "type": "object" - }, - "Isocountrycode": { - "pattern": "^[A-Z]{2}(-[A-Z]{2,3})?$", - "title": "Isocountrycode", - "type": "string" - }, - "LanguageEnum": { - "enum": [ - "aa", - "ab", - "ae", - "af", - "ak", - "am", - "an", - "ar", - "as", - "av", - "ay", - "az", - "ba", - "be", - "bg", - "bh", - "bi", - "bm", - "bn", - "bo", - "br", - "bs", - "ca", - "ce", - "ch", - "co", - "cr", - "cs", - "cu", - "cv", - "cy", - "da", - "de", - "dv", - "dz", - "ee", - "el", - "en", - "eo", - "es", - "et", - "eu", - "fa", - "ff", - "fi", - "fj", - "fo", - "fr", - "fy", - "ga", - "gd", - "gl", - "gn", - "gu", - "gv", - "ha", - "he", - "hi", - "ho", - "hr", - "ht", - "hu", - "hy", - "hz", - "ia", - "id", - "ie", - "ig", - "ii", - "ik", - "io", - "is", - "it", - "iu", - "ja", - "jv", - "ka", - "kg", - "ki", - "kj", - "kk", - "kl", - "km", - "kn", - "ko", - "kr", - "ks", - "ku", - "kv", - "kw", - "ky", - "la", - "lb", - "lg", - "li", - "ln", - "lo", - "lt", - "lu", - "lv", - "mg", - "mh", - "mi", - "mk", - "ml", - "mn", - "mr", - "ms", - "mt", - "my", - "na", - "nb", - "nd", - "ne", - "ng", - "nl", - "nn", - "no", - "nr", - "nv", - "ny", - "oc", - "oj", - "om", - "or", - "os", - "pa", - "pi", - "pl", - "ps", - "pt", - "qu", - "rm", - "rn", - "ro", - "ru", - "rw", - "sa", - "sc", - "sd", - "se", - "sg", - "si", - "sk", - "sl", - "sm", - "sn", - "so", - "sq", - "sr", - "ss", - "st", - "su", - "sv", - "sw", - "ta", - "te", - "tg", - "th", - "ti", - "tk", - "tl", - "tn", - "to", - "tr", - "ts", - "tt", - "tw", - "ty", - "ug", - "uk", - "ur", - "uz", - "ve", - "vi", - "vo", - "wa", - "wo", - "xh", - "yi", - "yo", - "za", - "zh", - "zu" - ], - "title": "LanguageEnum", - "type": "string" - }, - "LongDescription": { - "anyOf": [ - { - "maxLength": 50000, - "minLength": 2, - "type": "string" - }, - { - "type": "null" - } - ], - "title": "LongDescription" - }, - "MaterialTypeCategoriesV2": { - "enum": [ - "None/not available", - "Bone marrow", - "Cancer cell lines", - "CDNA/MRNA", - "Core biopsy", - "DNA", - "Entire body organ", - "Faeces", - "Immortalized cell lines", - "Isolated pathogen", - "MicroRNA", - "Peripheral blood cells", - "Plasma", - "PM Tissue", - "Primary cells", - "RNA", - "Saliva", - "Serum", - "Swabs", - "Tissue", - "Urine", - "Whole blood", - "Availability to be confirmed", - "Other" - ], - "title": "MaterialTypeCategoriesV2", - "type": "string" - }, - "MeasuredProperty": { - "title": "MeasuredProperty" - }, - "MemberOfV2": { - "enum": [ - "Hub", - "Alliance", - "Other", - "NCS" - ], - "title": "MemberOfV2", - "type": "string" - }, - "Name": { - "title": "Name" - }, - "Observation": { - "additionalProperties": false, - "properties": { - "observedNode": { - "allOf": [ - { - "$ref": "#/$defs/StatisticalPopulationConstrainedV2" - } - ], - "description": "Please select one of the following broad notes for your measured observation. Indicating whether the measured property is a recording of unique persons, events, findings or scans per modality.", - "examples": [ - "Persons" - ], - "guidance": "Persons: Unique persons recorded in the dataset- Events: Unique events such as procedures and prescriptions within the dataset-Findings: Unique findings included in the dataset such as diagnoses'-Number of scans per modality: Unique scans for a specified imaging method modality (e.g. 12 x-rays)", - "title": "Dataset volume measure" - }, - "measuredValue": { - "description": "An integer value size of the measured property, such as \u20181000\u2019 for 1000 people in the study or \u201887\u2019 for 87 MRI scans in the dataset.", - "examples": [ - 1000 - ], - "guidance": "An integer value size of the measured property, such as \u20181000\u2019 for 1000 people in the study or \u201887\u2019 for 87 MRI scans in the dataset.", - "title": "Measured value", - "type": "integer" - }, - "disambiguatingDescription": { - "anyOf": [ - { - "$ref": "#/$defs/AbstractText" - }, - { - "type": "null" - } - ], - "default": null, - "description": "If required, please provide additional details that help distinguish between similar measured properties within your dataset, for example this is useful when SNOMED CT terms do not provide sufficient detail to distinguish between parts of the dataset population. Limited to 500 characters.", - "guidance": "If required please provide additional details that help distinguish between similar measured properties within your dataset, for example this is useful when SNOMED CT terms do not provide sufficient detail to distinguish between parts of the dataset population.", - "title": "Disambiguating description" - }, - "observationDate": { - "anyOf": [ - { - "format": "date", - "type": "string" - }, - { - "format": "date-time", - "type": "string" - } - ], - "description": "Provide the date, or datetime that the observation was made. Multiple observations of the same property can be provided, for example an observation of cumulative COVID positive cases by specimen on the 1/1/2021 with a measuredValue of 2000000, and a second observation entry on 8/2/2021 recording a measuredValue of as 3100000.", - "examples": [ - "2024-10-24" - ], - "guidance": "Provide the date, or datetime that the observation was made. Multiple observations of the same property can be provided, for example an observation of cumulative COVID positive cases by specimen on the 1/1/2021 with a measuredValue of 2000000, and a second observation entry on 8/2/2021 recording a measuredValue of as 3100000.", - "title": "Observation date" - }, - "measuredProperty": { - "allOf": [ - { - "$ref": "#/$defs/MeasuredProperty" - } - ], - "description": "Descriptive term for the observation property measured. For example, people, procedures, x-rays, or diagnosis of type 1 diabetes. This could also be a specific SNOMED CT term.", - "examples": [ - "Count" - ], - "guidance": "Descriptive term for the observation property measured.", - "title": "Measured property" - } - }, - "required": [ - "observedNode", - "measuredValue", - "observationDate", - "measuredProperty" - ], - "title": "Observation", - "type": "object" - }, - "Omics": { - "additionalProperties": false, - "properties": { - "assay": { - "anyOf": [ - { - "$ref": "#/$defs/Assay" - }, - { - "type": "null" - } - ], - "default": null, - "description": "The specific 'omics assay that generated the dataset.", - "guidance": "The specific 'omics assay that generated the dataset. If the assay used to generate your dataset is not listed, please contract the gateway team by submitting an enquiry.", - "title": "Omics assay" - }, - "platform": { - "anyOf": [ - { - "$ref": "#/$defs/Platform" - }, - { - "type": "null" - } - ], - "default": null, - "description": "The specific technology or infrastructure used to perform the assay. If the omics platform used to create your dataset is not listed, please select other, a member of the gateway team will contact you to add an appropriate term(s) both to your record and to the metadata schema on your behalf.", - "guidance": "The specific technology or infrastructure used to perform the assay. If the omics platform used to create your dataset is not listed, please select other, a member of the gateway team will contact you to add an appropriate term(s) both to your record and to the metadata schema on your behalf.", - "title": "Omics Platform" - } - }, - "title": "Omics", - "type": "object" - }, - "OneHundredFiftyCharacters": { - "maxLength": 150, - "minLength": 2, - "title": "OneHundredFiftyCharacters", - "type": "string" - }, - "Organisation": { - "additionalProperties": false, - "properties": { - "identifier": { - "anyOf": [ - { - "maxLength": 50, - "minLength": 2, - "type": "string" - }, - { - "type": "integer" - } - ], - "description": "Please provide a Research Organization Registry (ROR) identifier (see https://ror.org/) for your organisation.", - "examples": [ - "30f16703-28bc-4f45-9ce5-625d2d3db27d" - ], - "guidance": "Example: https://ror.org/053fq8t95If your organisation does not have a ROR identifier please use the \u201csuggest and institute\u201d function here: https://docs.google.com/forms/d/e/1FAIpQLSdJYaMTCwS7muuTa-B_CnAtCSkKzt19lkirAKG4u7umH9Nosg/viewform", - "title": "identifier" - }, - "name": { - "allOf": [ - { - "$ref": "#/$defs/OneHundredFiftyCharacters" - } - ], - "description": "The organisation responsible for running or supporting the data access request process, as well as publishing and maintaining the metadata.", - "examples": [ - "Health Data Research UK" - ], - "guidance": "In most this will be the same as the Team you have on the Gateway. However, in some cases this will be different. For example, Tissue Directory are a Team on the Gateway but coordinate activities across a number of Data Custodians such as Cambridge Blood and Stem Cell Biobank.", - "title": "Name of Data Custodian" - }, - "logo": { - "anyOf": [ - { - "$ref": "#/$defs/Url" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please provide a logo associated with the Gateway Organisation using a valid URL. The following formats will be accepted .jpg, .png or .svg. If a logo is not submitted this will default to the logo for the team submitting the metadata.", - "title": "Organisation Logo" - }, - "description": { - "anyOf": [ - { - "$ref": "#/$defs/Description" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please provide a URL that describes the organisation. If a description is not provided this will default to the description of the team submitting the metadata.", - "title": "Organisation Description" - }, - "contactPoint": { - "anyOf": [ - { - "$ref": "#/$defs/EmailAddress" - }, - { - "items": { - "$ref": "#/$defs/EmailAddress" - }, - "type": "array" - } - ], - "description": "Organisation contact point(s) which will be used for receiving queries from HDR, and enquiries and data access requests from Researchers. If a contact point is not provided this will default to the contact point for the team submitting the metadata.", - "examples": [ - "test@test.co.uk" - ], - "title": "contact point" - }, - "memberOf": { - "anyOf": [ - { - "$ref": "#/$defs/MemberOfV2" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please indicate if the organisation is an Alliance Member or a Hub. If this field is not submitted this will default to the membership for the team submitting the metadata.", - "title": "Organisation Membership" - } - }, - "required": [ - "identifier", - "name", - "contactPoint" - ], - "title": "Organisation", - "type": "object" - }, - "Origin": { - "additionalProperties": false, - "properties": { - "purpose": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/PurposeV2" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please indicate the purpose(s) that the dataset was collected.", - "guidance": "Research cohort: Data collected for a defined group of people.- Study: Data collected for a specific research study.- Disease registry: Data collected as part of a disease registry.- Trial: Data collected for as part of a clinical trial.- Care: Data collected as part of routine clinical care.- Audit: Data collected as part of an audit programme.- Administrative: Data collected for administrative and management information purposes.- Financial: Data collected either for payments or for billing.- Statutory: Data collected in compliance with statutory requirements.- Other: Data collected for other purpose.", - "title": "Purpose of dataset collection" - }, - "datasetType": { - "description": "The topic areas to which the dataset content relates.", - "examples": [ - "Health and disease" - ], - "guidance": "Types include those listed below. Datasets can have more than one type associated.- Health and disease: Includes any data related to mental health, cardiovascular, cancer, rare diseases, metabolic and endocrine, neurological, reproductive, maternity and neonatology, respiratory, immunity, musculoskeletal, vision, renal and urogenital, oral and gastrointestinal, cognitive function or hearing.- Treatments/Interventions: Includes any data related to treatment or interventions related to vaccines or which are preventative or therapeutic in nature.- Measurements/Tests: Includes any data related to laboratory or other diagnostics.- Imaging types: Includes any data related to CT, MRI, PET, x-ray, ultrasound or pathology imaging.- Imaging area of the body: Indicates whether the dataset relates to head, chest, arm abdomen or leg imaging.- Omics: Includes any data related to proteomics, transcriptomics, epigenomics, metabolomics, multiomics, metagenomics or genomics.- Socioeconomic: Includes any data related to education, crime and justice, ethnicity, housing, labour, ageing, economics, marital status, social support, deprivation, religion, occupation, finances or family circumstances.- Lifestyle: Includes any data related to smoking, physical activity, dietary habits or alcohol.- Registry: Includes any data related to disease registries for research, national disease registries, audits, or birth and deaths records.- Environment and energy: Includes any data related to the monitoring or study of environmental or energy factors or events.- Information and communication: Includes any data related to the study or application of information and communication.- Politics: Includes any data related to political views, activities, voting, etc.", - "items": { - "$ref": "#/$defs/DatasetTypeV2" - }, - "title": "Dataset type", - "type": "array" - }, - "datasetSubType": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/DatasetSubType" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "The sub-type of the dataset content. Multiomics is selected on behalf of the submitter if more that one omics datasetSubType ('proteomics', 'transcriptomics', 'epigenomics', 'metabolomics', 'metagenomics', 'genomics', 'lipidomics') is selected", - "guidance": "Sub-types include those listed below under each data type. Datasets can have more than one sub-type associated.- Health and disease: Includes any data related to mental health, cardiovascular, cancer, rare diseases, metabolic and endocrine, neurological, reproductive, maternity and neonatology, respiratory, immunity, musculoskeletal, vision, renal and urogenital, oral and gastrointestinal, cognitive function or hearing.- Treatments/Interventions: Includes any data related to treatment or interventions related to vaccines or which are preventative or therapeutic in nature.- Measurements/Tests- Includes any data related to laboratory or other diagnostics.- Imaging types: Includes any data related to CT, MRI, PET, x-ray, ultrasound or pathology imaging.- Imaging area of the body: Indicates whether the dataset relates to head, chest, arm abdomen or leg imaging.- Omics: Includes any data related to proteomics, transcriptomics, epigenomics, metabolomics, multiomics, metagenomics or genomics. Multiomics is selected on behalf of the submitter if more that one omics datasetSubType is selected.- Socioeconomic: Includes any data related to education, crime and justice, ethnicity, housing, labour, ageing, economics, marital status, social support, deprivation, religion, occupation, finances or family circumstances.- Lifestyle: Includes any data related to smoking, physical activity, dietary habits or alcohol.- Registry: Includes any data related to disease registries for research, national disease registries, audits, or birth and deaths records.- Environment and energy: Includes any data related to the monitoring or study of environmental or energy factors or events.- Information and communication: Includes any data related to the study or application of information and communication.- Politics: Includes any data related to political views, activities, voting, etc.", - "title": "Dataset sub-type" - }, - "source": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/SourceV2" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please indicate the source of the data extraction.", - "guidance": "EPR: Data Extracted from Electronic Patient Record.- Electronic survey: Data has been extracted from electronic surveys.- LIMS: Data has been extracted from a laboratory information management system.- Paper-based: Data has been extracted from paper forms.- Free text NLP: Data has been extracted from unstructured freetext using natural language processing.- Machine generated: Data has been machine generated i.e. imaging.- Other: Data has been extracted by other means.", - "title": "Source of data extraction" - }, - "collectionSource": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/SettingV2" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please indicate the setting(s) where data was collected. Multiple settings may be provided.", - "guidance": "Cohort, study, trial: Cohort, study or trial data collection as part of protocol.- Clinic: Specific clinic such as antenatal clinic.- Primary care - Referrals: General medical practitioner referral to another service.- Primary care - Clinic: General medical practitioner practice.- Primary care - Out of hours: General medical practitioner care or advice outside of standard hours.- Secondary care - Accident and emergency: Accident emergency department.- Secondary care - Outpatients: Outpatient care.- Secondary care - In-patients: In-patient care.- Secondary care - Ambulance: Care provided in association with ambulance service.- Secondary care - ICU: Intensive care units, also referred to as critical care units (CCUs) or intensive therapy units (ITUs).- Prescribing - Community pharmacy: Pharmacy based in the community.- Prescribing - Community pharmacy: Pharmacy based in a hospital setting.- Patient report outcome: Reported by patient.- Wearables: Data collection devices worn on the body.- Local authority: Local authority or entity associated with a local authority.- National government: National government or entity associated with the national government.- Community: Community settings.- Services: Services such as drug misuse or blood transfusion.- Home: Home setting.- Private: Private medical clinic.- Social care - Health care at home: service provided in the home or residence of a person.- Social care - Other social data: service provided in a setting outside of the person's home or residence.- Census: collected as part of census.- Other: Other setting.", - "title": "Collection source setting" - }, - "imageContrast": { - "anyOf": [ - { - "$ref": "#/$defs/Ternary" - }, - { - "type": "null" - } - ], - "default": "Not stated", - "description": "Indicate whether usage of imaging contrast is captured within the dataset.", - "guidance": "If any contrast media or contrast agents were used in creating the images within the dataset and the contrast is known, mark 'Yes'. If this information is not known or not captured, indicate 'Not stated'. If there was no contrast used in the images, mark 'No'.", - "title": "Image contrast" - } - }, - "required": [ - "datasetType" - ], - "title": "Origin", - "type": "object" - }, - "PeriodicityV2": { - "enum": [ - "Static", - "Irregular", - "Continuous", - "Biennial", - "Annual", - "Biannual", - "Quarterly", - "Bimonthly", - "Monthly", - "Biweekly", - "Weekly", - "Twice a week", - "Daily", - "Other", - null - ], - "title": "PeriodicityV2" - }, - "Pipeline": { - "enum": [ - "Available", - "Not available" - ], - "title": "Pipeline", - "type": "string" - }, - "Platform": { - "enum": [ - "Other", - "NMR Nightingale", - "Metabolon", - "Biocrates", - "Illumina", - "Oxford Nanopore", - "454", - "Hi-C", - "HiFi" - ], - "title": "Platform", - "type": "string" - }, - "Provenance": { - "additionalProperties": false, - "properties": { - "origin": { - "anyOf": [ - { - "$ref": "#/$defs/Origin" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Coverage by origin (geographical and situations).", - "title": "Origin Coverage" - }, - "temporal": { - "allOf": [ - { - "$ref": "#/$defs/Temporal" - } - ], - "description": "Dates and other temporal coverage information.", - "title": "Temporal Coverage" - } - }, - "required": [ - "temporal" - ], - "title": "Provenance", - "type": "object" - }, - "PurposeV2": { - "enum": [ - "Research cohort", - "Study", - "Disease registry", - "Trial", - "Care", - "Audit", - "Administrative", - "Financial", - "Statutory", - "Other", - null - ], - "title": "PurposeV2" - }, - "Revision": { - "additionalProperties": false, - "properties": { - "version": { - "allOf": [ - { - "$ref": "#/$defs/Semver" - } - ], - "description": "Version number used for previous version of this dataset", - "examples": [ - "6.0.0" - ], - "title": "revision version" - }, - "url": { - "anyOf": [ - { - "$ref": "#/$defs/UrlV2" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Some url with a reference to the record of a previous version of this dataset", - "examples": [ - "https://api.service.nhs.uk/health-research-data-catalogue/datasetrevisions/841f7da2-b018-41f6-b4ae-2e0aadab6561" - ], - "title": "revision url" - } - }, - "required": [ - "version" - ], - "title": "Revision", - "type": "object" - }, - "Semver": { - "pattern": "^([0-9]+)\\.([0-9]+)\\.([0-9]+)$", - "title": "Semver", - "type": "string" - }, - "SettingV2": { - "enum": [ - "Cohort, study, trial", - "Clinic", - "Primary care - Referrals", - "Primary care - Clinic", - "Primary care - Out of hours", - "Secondary care - Accident and Emergency", - "Secondary care - Outpatients", - "Secondary care - In-patients", - "Secondary care - Ambulance", - "Secondary care - ICU", - "Prescribing - Community pharmacy", - "Prescribing - Hospital", - "Patient report outcome", - "Wearables", - "Local authority", - "National government", - "Community", - "Services", - "Home", - "Private", - "Social care - Health care at home", - "Social care - Other social data", - "Census", - "Other", - null - ], - "title": "SettingV2" - }, - "ShortDescription": { - "anyOf": [ - { - "maxLength": 1000, - "minLength": 2, - "type": "string" - }, - { - "type": "null" - } - ], - "title": "ShortDescription" - }, - "SourceV2": { - "enum": [ - "EPR", - "Electronic survey", - "LIMS", - "Paper-based", - "Free text NLP", - "Machine generated", - "Other" - ], - "title": "SourceV2", - "type": "string" - }, - "StandardisedDataModelsEnumV1_1": { - "enum": [ - "BNF", - "HL7 FHIR", - "HL7 V2", - "HL7 CDA", - "HL7 CCOW", - "LOINC", - "DICOM", - "I2B2", - "IHE", - "OMOP", - "OPENEHR", - "SENTINEL", - "PCORNET", - "CDISC", - "LOCAL", - "OTHER", - "NHS DATA DICTIONARY", - "NHS SCOTLAND DATA DICTIONARY", - "NHS WALES DATA DICTIONARY" - ], - "title": "StandardisedDataModelsEnumV1_1", - "type": "string" - }, - "StatisticalPopulationConstrainedV2": { - "enum": [ - "Persons", - "Events", - "Findings", - "Number of scans per modality" - ], - "title": "StatisticalPopulationConstrainedV2", - "type": "string" - }, - "StructuralMetadata": { - "additionalProperties": false, - "properties": { - "tables": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/DataTable" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Tables in the dataset", - "title": "Tables" - }, - "syntheticDataWebLink": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/Url" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please provide the website address(es) with information on your synthetic dataset creation, or the location where a synthetic version of the dataset can be accessed.- Please split your existing list of citations into separate fields.- To add multiple entries, select from the drop-down list, or add to the drop-down. Click the 'x' symbol to remove any entries.- Example: https://www.pioneerdatahub.co.uk/dataset/synthetic-dataset-patients-at-risk-of-sudden-death-hypertrophic-cardiomyopathy/", - "title": "Synthetic data web links" - } - }, - "title": "StructuralMetadata", - "type": "object" - }, - "Summary": { - "additionalProperties": false, - "properties": { - "title": { - "allOf": [ - { - "$ref": "#/$defs/OneHundredFiftyCharacters" - } - ], - "description": "Title of the dataset limited to 150 characters. It should provide a short description of the dataset and be unique across the gateway. If your title is not unique, please add a prefix with your organisation name or identifier to differentiate it from other datasets within the Gateway. Good titles should summarise the content of the dataset and if relevant, the region the dataset covers.", - "examples": [ - "North West London COVID-19 Patient Level Situation Report", - "Scottish Morbidity Record (SMR)" - ], - "guidance": "The title should provide a short description of the dataset and be unique across the gateway.- If your title is not unique, please add a prefix with your organisation name or identifier to differentiate it from other datasets within the Gateway.- If an accronym is widely used the dataset name, please add it in brackets () at the end of the title.- Good titles should summarise the content of the dataset and if relevant, the region the dataset covers.- Example: North West London COVID-19 Patient Level Situation Report", - "title": "Title" - }, - "abstract": { - "allOf": [ - { - "$ref": "#/$defs/AbstractText" - } - ], - "description": "Provide a clear and brief descriptive signpost for researchers who are searching for data that may be relevant to their research. The abstract should allow the reader to determine the scope of the data collection and accurately summarise its content. The optimal length is one paragraph (limited to 255 characters) and effective abstracts should avoid long sentences and abbreviations where possible.", - "examples": [ - "CPRD Aurum contains primary care data contributed by General Practitioner (GP) practices using EMIS Web\u00ae including patient registration information and all care events that GPs have chosen to record as part of their usual medical practice." - ], - "guidance": "The abstract should provide a clear and brief descriptive signpost for researchers who are searching for data that may be relevant to their research.- The abstract should allow the reader to determine the scope of the data collection and accurately summarise its content.- Effective abstracts should avoid long sentences and abbreviations where possible.- Note: Researchers will view Titles and the first line of Abstracts (list view) when searching for datasets and choosing whether to explore their content further.- Abstracts should be different from the full description for a dataset.- Example: CPRD Aurum contains primary care data contributed by General Practitioner (GP) practices using EMIS Web\u00ae including patient registration information and all care events that GPs have chosen to record as part of their usual medical practice.", - "title": "Dataset abstract" - }, - "dataCustodian": { - "allOf": [ - { - "$ref": "#/$defs/Organisation" - } - ], - "description": "This is the organisation responsible for running or supporting the data access request process, as well as enquiries about a dataset. In most this will be the same as the HDR UK Organisation (Hub or Alliance Member). However, in some cases this will be different i.e. Tissue Directory are an HDR UK Gateway organisation but coordinate activities across a number of data publishers i.e. Cambridge Blood and Stem Cell Biobank.", - "title": "Dataset Custodian" - }, - "populationSize": { - "description": "Input the number of people captured within the dataset.", - "examples": [ - 1000 - ], - "guidance": "This number informs a filter for Researchers to differentiate dataset search results based on the number of people in the dataset, and does not pull from the Observations fields. The filter also allows for Researchers to search datasets which have no population size reported, but will not pull any population size captured in the Observations section.", - "title": "Dataset population size", - "type": "integer" - }, - "keywords": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/OneHundredFiftyCharacters" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please provide a list of relevant and specific keywords that can improve the search engine optimisation (SEO) of your dataset as a comma separated list. Notes: Onboarding portal will suggest keywords based on title, abstract and description. We are compiling a standardised list of keywords and synonyms across datasets to make filtering easier for users.", - "examples": [ - "Outpatient Care", - "Socioeconomic Deprivation", - "Infant Morbidity", - "Learning disability", - "Primary Care Prescription", - "Accident and Emergency Admissions" - ], - "guidance": "Please provide relevant and specific keywords that can improve the search engine optimization of your dataset.- Please enter one keyword at a time and click Add New Field to add further keywords.- Text from the title is automatically included in the search, there is no need to include this in the keywords.- Include words that researcher may include in their searches.", - "title": "Keywords" - }, - "doiName": { - "anyOf": [ - { - "$ref": "#/$defs/Doi" - }, - { - "type": "null" - } - ], - "default": null, - "description": "DOI associated to this dataset. Find out more about DOIs here: https://www.doi.org/the-identifier/what-is-a-doi/", - "examples": [ - "10.1093/ije/dyx196" - ], - "guidance": "Please note: This is not the DOI of the publication(s) associated with the dataset.- All HDR UK registered datasets should either have a (DOI) or be working towards obtaining one.- If a DOI is available, please provide the DOI.- What happens if I do not have a DOI?: Contact your academic organisation to find out if there is an existing relationship with a DOI provider. If that is not available, sites such as figshare offer free services to mint a DOI for your dataset. Subsequent versions of the Metadata Exchange will provide a DOI minting service.", - "title": "Digital Object Identifier (DOI) for dataset" - }, - "contactPoint": { - "allOf": [ - { - "$ref": "#/$defs/EmailAddress" - } - ], - "description": "Please provide a valid email address that can be used to coordinate data access requests.", - "examples": [ - "gateway@hdruk.ac.uk" - ], - "guidance": "Organisations are expected to provide a dedicated email address associated with the data access request process. If no contact point is provided in this field, this field will be defaulted to the teams support email provided in the teams setting.Note: An employee's email address can only be provided on a temporary basis and if one is provided, you must obtain explicit consent for this purpose.", - "title": "Contact point" - }, - "alternateIdentifiers": { - "anyOf": [ - { - "$ref": "#/$defs/CommaSeparatedValues" - }, - { - "items": { - "anyOf": [ - { - "$ref": "#/$defs/ShortDescription" - }, - { - "type": "null" - } - ] - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Alternate dataset identifiers or local identifiers.", - "guidance": "Alternate dataset identifiers or local identifiers.", - "title": "Alternate dataset identifiers" - } - }, - "required": [ - "title", - "abstract", - "dataCustodian", - "populationSize", - "contactPoint" - ], - "title": "Summary", - "type": "object" - }, - "Temporal": { - "additionalProperties": false, - "properties": { - "publishingFrequency": { - "allOf": [ - { - "$ref": "#/$defs/PeriodicityV2" - } - ], - "description": "Please indicate the frequency of distribution release. If a dataset is distributed regularly please choose a distribution release periodicity from the constrained list and indicate the next release date. When the release date becomes historical, a new release date will be calculated based on the publishing periodicity. If a dataset has been published and will remain static please indicate that it is static and indicated when it was released. If a dataset is released on an irregular basis or \u201con-demand\u201d please indicate that it is Irregular and leave release date as null. If a dataset can be published in real-time or near-real-time please indicate that it is continuous and leave release date as null. Notes: see https://www.dublincore.org/specifications/dublin-core/collection-description/frequency/", - "examples": [ - "Continuous" - ], - "guidance": "Please indicate the frequency of publishing.- If a dataset is published regularly please choose a publishing periodicity from the constrained list and indicate the next release date.- When the release date becomes historical, a new release date will be calculated based on the publishing periodicity.- If a dataset has been published and will remain static please indicate that it is static and indicate when it was released.- If a dataset is released on an irregular basis or \u201con-demand\u201d please indicate that it is Irregular and leave release date as null.- If a dataset can be published in real-time or near-real-time please indicate that it is continuous and leave release date as null.- Notes: see https://www.dublincore.org/specifications/dublin-core/collection-description/frequency/. Options:- Static: Dataset published once.- Irregular: Dataset published at uneven intervals.- Continuous: Dataset published without interruption.- Biennial: Dataset published every two years.- Annual: Dataset published occurs once a year.- Biannual: Dataset published twice a year.- Quarterly: Dataset published every three months.- Bimonthly: Dataset published every two months.- Monthly: Dataset published once a month.- Biweekly: Dataset published every two weeks.- Weekly: Dataset published once a week.- Twice weekly: Dataset published twice a week.- Daily: Dataset published once a day.- Other: Dataset published using other interval.", - "title": "Publishing frequency" - }, - "distributionReleaseDate": { - "anyOf": [ - { - "format": "date", - "type": "string" - }, - { - "format": "date-time", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Date of the latest release of the dataset. If this is a regular release i.e. quarterly, or this is a static dataset please complete this alongside Periodicity. If this is Irregular or Continuously released please leave this blank. Notes: Periodicity and release date will be used to determine when the next release is expected. E.g. if the release date is documented as 01/01/2020 and it is now 20/04/2020 and there is a quarterly release schedule, the latest release will be calculated as 01/04/2020.", - "examples": [ - "2024-10-24T00:00:00.000Z" - ], - "guidance": "Please indicate the frequency the dataset is published.- If a dataset is published regularly please choose a publishing periodicity from the constrained list and indicate the next release date.- When the release date becomes historical, a new release date will be calculated based on the publishing periodicity.- If a dataset has been published and will remain static please indicate that it is static and indicate when it was released.- If a dataset is released on an irregular basis or \u201con-demand\u201d please indicate that it is Irregular and leave release date as null.- If a dataset can be published in real-time or near-real-time please indicate that it is continuous and leave release date as null.- Notes: see https://www.dublincore.org/specifications/dublin-core/collection-description/frequency/", - "title": "Distribution release date" - }, - "startDate": { - "anyOf": [ - { - "format": "date", - "type": "string" - }, - { - "format": "date-time", - "type": "string" - } - ], - "description": "The start of the time period that the dataset provides coverage for. If there are multiple cohorts in the dataset with varying start dates, please provide the earliest date and use the description or the media attribute to provide more information.", - "examples": [ - "2024-10-24T00:00:00.000Z" - ], - "guidance": "The start of the time period that the dataset provides coverage for.- If there are multiple cohorts in the dataset with varying start dates, please provide the earliest date and use the description or the media attribute to provide more information.", - "title": "Start date" - }, - "endDate": { - "anyOf": [ - { - "format": "date", - "type": "string" - }, - { - "format": "date-time", - "type": "string" - }, - { - "$ref": "#/$defs/EndDateEnum" - }, - { - "type": "null" - } - ], - "default": null, - "description": "The end of the time period that the dataset provides coverage for. If the dataset is \u201cContinuous\u201d and has no known end date, please state continuous. If there are multiple cohorts in the dataset with varying end dates, please provide the latest date and use the description or the media attribute to provide more information.", - "examples": [ - "2024-10-24T00:00:00.000Z" - ], - "guidance": "The end of the time period that the dataset provides coverage for.- If the dataset is \u201cContinuous\u201d and has no known end date, please leave blank.- If there are multiple cohorts in the dataset with varying end dates, please provide the latest date.", - "title": "End date" - }, - "timeLag": { - "allOf": [ - { - "$ref": "#/$defs/TimeLagV2" - } - ], - "description": "Please indicate the typical time-lag between an event and the data for that event appearing in the dataset.", - "examples": [ - "Not applicable" - ], - "guidance": "Please indicate the typical time-lag between an event and the data for that event appearing in the dataset.- Less than 1 week: Typical time lag of less than a week.- 1-2 weeks: Typical time-lag of one to two weeks.- 2-4 weeks: Typical time-lag of two to four weeks.- 1-2 months: Typical time-lag of one to two months.- 2-6 months: Typical time-lag of two to six months.- 6 months plus: Typical time-lag of more than six months.- Variable: Variable time-lag.- Not applicable: Not Applicable i.e. static dataset.- Other: Other time-lag.", - "title": "Time lag" - } - }, - "required": [ - "publishingFrequency", - "startDate", - "timeLag" - ], - "title": "Temporal", - "type": "object" - }, - "Ternary": { - "enum": [ - "Yes", - "No", - "Not stated" - ], - "title": "Ternary", - "type": "string" - }, - "TimeLagV2": { - "enum": [ - "Less than 1 week", - "1-2 weeks", - "2-4 weeks", - "1-2 months", - "2-6 months", - "More than 6 months", - "Variable", - "Not applicable", - "Other" - ], - "title": "TimeLagV2", - "type": "string" - }, - "Url": { - "anyOf": [ - { - "format": "uri", - "minLength": 1, - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Url" - }, - "UrlV2": { - "anyOf": [ - { - "pattern": "^\\s*((https?:\\/\\/)*([a-zA-Z0-9-]+\\.?)+[a-zA-Z]{2,}(:\\d+)?(\\/[^\\s]*)?(\\n)?)+$", - "type": "string" - }, - { - "type": "null" - } - ], - "title": "UrlV2" - }, - "Usage": { - "additionalProperties": false, - "properties": { - "dataUseLimitation": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/DataUseLimitationV2" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please provide an indication of consent permissions for datasets and/or materials, and relates to the purposes for which datasets and/or material might be removed, stored or used. NOTE: we have extended the Data Use Ontology to include a value for NO LINKAGE.", - "guidance": "Please provide an indication of consent permissions for datasets and/or materials, and relates to the purposes for which datasets and/or material might be removed, stored or used.- General research use: This data use limitation indicates that use is allowed for general research use for any research purpose.- Genetic studies only: This data use limitation indicates that use is limited to genetic studies only (i.e., no phenotype-only research).- No general methods research: This data use limitation indicates that use includes methods development research(e.g., development of software or algorithms) only within the bounds of other use limitations.- No restriction: This data use limitation indicates there is no restriction on use.- Research-specific restrictions: This data use limitation indicates that use is limited to studies of a certain research type.- Research use only: This data use limitation indicates that use is limited to research purposes (e.g., does not include its use in clinical care).- No linkage: This data use limitation indicates there is a restriction on linking to any other datasets", - "title": "Data use limitation" - }, - "dataUseRequirements": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/DataUseRequirementsV2" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please indicate fit here are any additional conditions set for use if any, multiple requirements may be provided. Please ensure that these restrictions are documented in access rights information.", - "guidance": "Please indicate if there are any additional conditions set for use if any, multiple requirements may be provided.- Please ensure that these restrictions are documented in access rights information.- Collaboration required: This requirement indicates that the requestor must either agree to join a research consortium or collaborate with the primary study investigator(s).- Ethics approval required: This requirement indicates that the requestor must provide documentation of local institutional review board (IRB)/ ethics review board (ERB) approval.- Geographical restrictions: This requirement indicates that use is limited to within a specific geographic region.- Institution-specific restrictions: This requirement indicates that use is limited to use within an approved institution.- Not for profit use: This requirement indicates that use of the data is limited to not-for-profit organizations and not-for-profit use, non-commercial use.- Project-specific restrictions: This requirement indicates that use is limited to use within an approved project.- Publication moratorium: This requirement indicates that requestor agrees not to publish results of studies until a specific date.- Publication required: This requirement indicates that requestor agrees to make results of studies using the data available to the larger scientific community.- Return to database or resource: This requirement indicates that the requestor must return derived/enriched data to the database/resource.- Time limit on use: This requirement indicates that use is approved for a specific number of months.- User-specific restriction: This requirement indicates that use is limited to use by approved users.", - "title": "Data use requirements" - }, - "resourceCreator": { - "anyOf": [ - { - "$ref": "#/$defs/ShortDescription" - }, - { - "items": { - "anyOf": [ - { - "$ref": "#/$defs/ShortDescription" - }, - { - "type": "null" - } - ] - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please provide the text that you would like included as part of any citation that credits this dataset. This is typically just the name of the publisher. No employee details should be provided.", - "examples": [ - "National Services Scotland" - ], - "guidance": "Please provide the text that you would like included as part of any citation that credits this dataset.- This is typically just the name of the publisher. No employee details should be provided.- To add multiple entries, please click on '+' symbol to enter each separate website.- Example: National Services Scotland", - "title": "Citation requirements" - } - }, - "title": "Usage", - "type": "object" - }, - "Uuidv4": { - "maxLength": 36, - "minLength": 36, - "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", - "title": "Uuidv4", - "type": "string" - } - }, - "additionalProperties": false, - "properties": { - "identifier": { - "anyOf": [ - { - "$ref": "#/$defs/Uuidv4" - }, - { - "$ref": "#/$defs/Url" - }, - { - "type": "null" - } - ], - "description": "System dataset identifier.", - "examples": [ - "226fb3f1-4471-400a-8c39-2b66d46a39b6", - "https://web.www.healthdatagateway.org/dataset/226fb3f1-4471-400a-8c39-2b66d46a39b6" - ], - "guidance": "N/A", - "title": "Dataset identifier" - }, - "version": { - "allOf": [ - { - "$ref": "#/$defs/Semver" - } - ], - "description": "Dataset metadata version.", - "examples": [ - "1.1.0" - ], - "guidance": "Dataset metadata version should follow standard SEMVER naming conventions (https://semver.org). For example: 1.1.0 major.minor.patch.Major: Significant/breaking changes.Minor: New features and bug fixes.Patch: Minor fixes without new features.", - "title": "Dataset Version" - }, - "revisions": { - "description": "A list of persistent identifiers and version numbers for previous versions of metadata for this dataset", - "items": { - "$ref": "#/$defs/Revision" - }, - "title": "Metadata Version Revisions", - "type": "array" - }, - "issued": { - "description": "Datetime stamp of when this metadata version was initially issued", - "examples": [ - "2024-10-24T00:00:00.000Z" - ], - "format": "date-time", - "title": "Metadata Issued Datetime", - "type": "string" - }, - "modified": { - "description": "Datetime stamp of when this metadata was last modified", - "examples": [ - "2024-10-24T00:00:00.000Z" - ], - "format": "date-time", - "title": "Last Modified Datetime", - "type": "string" - }, - "summary": { - "allOf": [ - { - "$ref": "#/$defs/Summary" - } - ], - "description": "Summary of metadata describing key pieces of information." - }, - "documentation": { - "anyOf": [ - { - "$ref": "#/$defs/Documentation" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Documentation can include a rich text description of the dataset or links to media such as documents, images, presentations, videos or links to data dictionaries, profiles or dashboards. Organisations are required to confirm that they have permission to distribute any additional media.", - "title": "Documentation" - }, - "coverage": { - "anyOf": [ - { - "$ref": "#/$defs/Coverage" - }, - { - "type": "null" - } - ], - "default": null, - "description": "This information includes attributes for geographical and temporal coverage, cohort details etc. to enable a deeper understanding of the dataset content so that researchers can make decisions about the relevance of the underlying data.", - "title": "Coverage" - }, - "provenance": { - "anyOf": [ - { - "$ref": "#/$defs/Provenance" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Provenance information allows researchers to understand data within the context of its origins and can be an indicator of quality, authenticity and timeliness.", - "title": "Provenance" - }, - "accessibility": { - "allOf": [ - { - "$ref": "#/$defs/Accessibility" - } - ], - "description": "Accessibility information allows researchers to understand access, usage, limitations, formats, standards and linkage or interoperability with toolsets." - }, - "enrichmentAndLinkage": { - "anyOf": [ - { - "$ref": "#/$defs/EnrichmentAndLinkage" - }, - { - "type": "null" - } - ], - "default": null, - "description": "This section includes information about related datasets that may have previously been linked, as well as indicating if there is the opportunity to link to other datasets in the future. If a dataset has been enriched and/or derivations, scores and existing tools are available this section allows providers to indicate this to researchers.", - "title": "Enrichment and Linkage" - }, - "observations": { - "description": "This section provides an overview of observations of your dataset linked to specific points in time. Multiple observations about the dataset are encouraged to be provided, including multiple observations of the same property at different timepoints. At least one observation is required.", - "items": { - "$ref": "#/$defs/Observation" - }, - "title": "Observations", - "type": "array" - }, - "structuralMetadata": { - "anyOf": [ - { - "$ref": "#/$defs/StructuralMetadata" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Descriptions of all tables and data elements that can be included in the dataset.", - "title": "Structural metadata" - }, - "demographicFrequency": { - "anyOf": [ - { - "$ref": "#/$defs/DemographicFrequency" - }, - { - "type": "null" - } - ], - "default": null, - "description": "The statistical characteristics of a population or group within the dataset.", - "title": "Demographic frequency" - }, - "omics": { - "anyOf": [ - { - "$ref": "#/$defs/Omics" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Omics", - "title": "Omics" - } - }, - "required": [ - "identifier", - "version", - "revisions", - "issued", - "modified", - "summary", - "accessibility", - "observations" - ], - "title": "Hdruk300", - "type": "object" -} \ No newline at end of file diff --git a/.github/actions/gateway-publish/src/gateway_publish/schemas/HDRUK/4.1.0/schema.json b/.github/actions/gateway-publish/src/gateway_publish/schemas/HDRUK/4.1.0/schema.json deleted file mode 100644 index e74cf67..0000000 --- a/.github/actions/gateway-publish/src/gateway_publish/schemas/HDRUK/4.1.0/schema.json +++ /dev/null @@ -1,3333 +0,0 @@ -{ - "$defs": { - "AbstractText": { - "anyOf": [ - { - "maxLength": 500, - "minLength": 5, - "type": "string" - }, - { - "type": "null" - } - ], - "title": "AbstractText" - }, - "Access": { - "additionalProperties": false, - "properties": { - "accessRights": { - "allOf": [ - { - "$ref": "#/$defs/LongDescription" - } - ], - "description": "Please provide details for the data access rights.", - "examples": [ - "In Progress" - ], - "guidance": "- The URL of a webpage where the data access request process and/or guidance is provided. If there is more than one access process i.e. industry vs academic please provide both separated by a comma.\\n- If such a resource or the underlying process doesn\u2019t exist, please provide \u201cIn Progress\u201d, until both the process and the documentation are ready.", - "title": "Access rights" - }, - "accessServiceCategory": { - "anyOf": [ - { - "$ref": "#/$defs/AccessService" - }, - { - "type": "null" - } - ], - "default": null, - "description": "The method a Researcher will use to access the dataset, if approved.", - "examples": [ - "TRE/SDE" - ], - "guidance": "Select the category which best matches how a Researcher will access the dataset, if approved for access. If the access method changes based on the data required for the project (e.g. the dataset can be shared via secure email if the extract is fully anonymised, but must be accessed via a TRE/SDE if the extract is only pseudonymised) then select 'varies based on project'.", - "title": "Access method category" - }, - "accessService": { - "anyOf": [ - { - "$ref": "#/$defs/LongDescription" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please provide a brief description of the data access services that are available including: environment that is currently available to researchers; additional consultancy and services; any indication of costs associated. If no environment is currently available, please indicate the current plans and timelines when and how data will be made available to researchers Note: This value will be used as default access environment for all datasets submitted by the organisation. However, there will be the opportunity to overwrite this value for each dataset.", - "examples": [ - "https://re-docs.genomicsengland.co.uk/tutorials/", - "https://publichealthscotland.scot/services/data-research-and-innovation-services/electronic-data-research-and-innovation-service-edris/national-safe-haven-nsh/" - ], - "guidance": "Please provide a brief description of the data access services that are available including:\\n- environment that is currently available to researchers\\n- additional consultancy and services\\n- any indication of costs associated\\n\\n If no environment is currently available, please indicate the current plans and timelines when and how data will be made available to researchers.\\n **Note**: This value will be used as default access environment for all datasets submitted by the organisation. However, there will be the opportunity to overwrite this value for each dataset.", - "title": "Access service description" - }, - "accessRequestCost": { - "anyOf": [ - { - "$ref": "#/$defs/LongDescription" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please provide link(s) to a webpage or description detailing the service or cost model for processing data access requests.", - "guidance": "This information should cover the costs and/or services available to different audiences (i.e. academic, commercial, non-UK, etc.). This can be in the form of text or a URL.", - "title": "Access request cost" - }, - "deliveryLeadTime": { - "anyOf": [ - { - "$ref": "#/$defs/DeliveryLeadTimeV2" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please provide an indication of the typical processing times based on the types of requests typically received.", - "guidance": "- **Less than 1 week**: Access request process typically processed in less than a week.\\n- **1-2 weeks**: Access request process typically processed in one to two weeks.\\n- **2-4 weeks**: Access request process typically processed in two to four weeks.\\n- **1-2 months**: Access request process typically processed in one to two months.\\n- **2-6 months**: Access request process typically processed in two to six months.\\n- **More than 6 months**: Access request process typically processed in more than six months.\\n- **Variable**: Access request lead time is variable.\\n- **Not applicable**: Access request process duration is not applicable.\\n- **Other**: If the typical timeframe does not fit into the broad ranges i.e. lightweight application vs linked data application, please choose \u201cOther\u201d and indicate the typical timeframe within the description for the dataset.", - "title": "Time to dataset access" - }, - "jurisdiction": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/Isocountrycode" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please use country code from ISO 3166-1 country codes and the associated ISO 3166-2 for regions, cities, states etc. for the country/state under whose laws the data subjects' data is collected, processed and stored.", - "guidance": "A full list of country codes can be found here (alpha-2 column): https://www.iso.org/obp/ui/#search/code/", - "title": "Jurisdiction" - }, - "dataController": { - "anyOf": [ - { - "$ref": "#/$defs/LongDescription" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Data Controller means a person/entity who (either alone or jointly or in common with other persons/entities) determines the purposes for which and the way any Data Subject data, specifically personal data or are to be processed.", - "examples": [ - "NHS England" - ], - "guidance": "- Data Controller means a person/entity who (either alone or jointly or in common with other persons/entities) determines the purposes for which and the way any Data Subject data, specifically personal data or are to be processed.\\n- Notes: For most organisations this will be the same as the Data Custodian of the dataset. If this is not the case, please indicate that there is a different controller.\\n- If there is a different controller please complete the Data Processor attribute to indicate if the Data Custodian is a Processor rather than the Data Controller.\\n- In some cases, there may be multiple Data Controllers i.e. GP data. If this is the case, please indicate the fact in a free-text field and describe the data sharing arrangement or a link to it, so that this can be understood by research users.\\n- Example: NHS England", - "title": "Data Controller" - }, - "dataProcessor": { - "anyOf": [ - { - "$ref": "#/$defs/LongDescription" - }, - { - "type": "null" - } - ], - "default": null, - "description": "A Data Processor, in relation to any Data Subject data, specifically personal data, means any person/entity (other than an employee of the data controller) who processes the data on behalf of the data controller.", - "examples": [ - "Not Applicable", - "SAIL" - ], - "guidance": "A Data Processor, in relation to any Data Subject data, specifically personal data, means any person/entity (other than an employee of the data controller) who processes the data on behalf of the data controller.\\n- Notes: Required to complete if the Data Custodian is the Data Processor rather than the Data Controller.\\n- If the Publisher is also the Data Controller please provide \u201cNot Applicable\u201d.\\n- Examples: Not Applicable, SAIL", - "title": "Data Processor" - } - }, - "required": [ - "accessRights" - ], - "title": "Access", - "type": "object" - }, - "AccessService": { - "enum": [ - "TRE/SDE", - "Direct access", - "Open access", - "Varies based on project" - ], - "title": "AccessService", - "type": "string" - }, - "Accessibility": { - "additionalProperties": false, - "properties": { - "usage": { - "anyOf": [ - { - "$ref": "#/$defs/Usage" - }, - { - "type": "null" - } - ], - "default": null, - "description": "This section includes information about how the data can be used and how it is currently being used.", - "title": "Usage" - }, - "access": { - "allOf": [ - { - "$ref": "#/$defs/Access" - } - ], - "description": "Accessibility information allows researchers to understand access, usage, limitations, formats, standards and linkage or interoperability with toolsets.", - "title": "Accessibility" - }, - "formatAndStandards": { - "anyOf": [ - { - "$ref": "#/$defs/FormatAndStandards" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Section includes technical attributes for language vocabularies, sizes etc. and gives researchers facts about and processing the underlying data in the dataset.", - "title": "Format and Standards" - } - }, - "required": [ - "access" - ], - "title": "Accessibility", - "type": "object" - }, - "Age": { - "properties": { - "bin": { - "allOf": [ - { - "$ref": "#/$defs/AgeEnum" - } - ], - "examples": [ - "30-34 years" - ], - "title": "Age grouping" - }, - "count": { - "examples": [ - 1000 - ], - "title": "Age count", - "type": "integer" - } - }, - "required": [ - "bin", - "count" - ], - "title": "Age", - "type": "object" - }, - "AgeEnum": { - "enum": [ - "0-6 days", - "7-27 days", - "1-11 months", - "1-4 years", - "5-9 years", - "10-14 years", - "15-19 years", - "20-24 years", - "25-29 years", - "30-34 years", - "35-39 years", - "40-44 years", - "45-49 years", - "50-54 years", - "55-59 years", - "60-64 years", - "65-69 years", - "70-74 years", - "75-79 years", - "80-84 years", - "85-89 years", - "90-94 years", - "95-99 years", - "100+ years" - ], - "title": "AgeEnum", - "type": "string" - }, - "Assay": { - "enum": [ - "NMR spectroscopy", - "Mass-spectrometry", - "Whole genome sequencing", - "Exome sequencing", - "Genotyping by array", - "Transcriptome profiling by high-throughput sequencing", - "Transcriptome profiling by array", - "Amplicon sequencing", - "Methylation binding domain sequencing", - "Methylation profiling by high-throughput sequencing", - "Genomic variant calling", - "Chromatin accessibility profiling by high-throughput sequencing", - "Histone modification profiling by high-throughput sequencing", - "Chromatin immunoprecipitation sequencing", - "Whole genome shotgun sequencing", - "Whole transcriptome sequencing", - "Targeted mutation analysis" - ], - "title": "Assay", - "type": "string" - }, - "CommaSeparatedValues": { - "anyOf": [ - { - "pattern": "([^,]+)", - "type": "string" - }, - { - "type": "null" - } - ], - "title": "CommaSeparatedValues" - }, - "ControlledVocabularyEnum": { - "enum": [ - "LOCAL", - "OPCS4", - "READ", - "SNOMED CT", - "SNOMED RT", - "DM PLUS D", - "DM+D", - "NHS NATIONAL CODES", - "NHS SCOTLAND NATIONAL CODES", - "NHS WALES NATIONAL CODES", - "ODS", - "LOINC", - "ICD10", - "ICD10CM", - "ICD10PCS", - "ICD9CM", - "ICD9", - "ICDO3", - "AMT", - "APC", - "ATC", - "CIEL", - "HPO", - "CPT4", - "DPD", - "DRG", - "HEMONC", - "JMDC", - "KCD7", - "MULTUM", - "NAACCR", - "NDC", - "NDFRT", - "OXMIS", - "RXNORM", - "RXNORM EXTENSION", - "SPL", - "OTHER" - ], - "title": "ControlledVocabularyEnum", - "type": "string" - }, - "Coverage": { - "additionalProperties": false, - "properties": { - "spatial": { - "anyOf": [ - { - "$ref": "#/$defs/CommaSeparatedValues" - }, - { - "items": { - "$ref": "#/$defs/Url" - }, - "type": "array" - } - ], - "description": "The geographical area covered by the dataset. It is recommended that links are to entries in one of the recommended standards:\\n- For locations in the UK: [ONS standards](https://geoportal.statistics.gov.uk/datasets/208d9884575647c29f0dd5a1184e711a/about)\\n- For locations in other countries: [ISO 3166-1 & ISO 3166-2](https://github.com/HDRUK/reference-codes)", - "examples": [ - "United Kingdom", - "https://www.geonames.org/2635167/united-kingdom-of-great-britain-and-northern-ireland.html" - ], - "guidance": "- The geographical area covered by the dataset.\\n- Please provide a valid location.\\n- For locations in the UK, this location should conform to [ONS standards](https://geoportal.statistics.gov.uk/datasets/208d9884575647c29f0dd5a1184e711a/about).\\n- For locations in other countries we use [ISO 3166-1 & ISO 3166-2](https://github.com/HDRUK/reference-codes).", - "title": "Geographic coverage" - }, - "typicalAgeRangeMin": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please indicate the minimum age in years of participants in the dataset as a whole number (integer).", - "examples": [ - 18 - ], - "guidance": "- Please indicate the minimum of the age range in whole years of participants in the dataset.\\n- **What if my dataset has participants of all \u201cAll Ages\u201d or \u201cAny Ages\u201d?**: In that case, please enter 0.", - "title": "Minimum age range" - }, - "typicalAgeRangeMax": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please indicate the maximum age in years of participants in the dataset as a whole number (integer).", - "examples": [ - 90 - ], - "guidance": "- Please indicate the maximum of the age range in whole years of participants in the dataset.\\n- **What if my dataset has participants of all \u201cAll Ages\u201d or \u201cAny Ages\u201d?**: In that case, please enter 150.", - "title": "Maximum age range" - }, - "datasetCompleteness": { - "anyOf": [ - { - "$ref": "#/$defs/Url" - }, - { - "type": "null" - } - ], - "default": null, - "description": "The URL where a Researcher can learn more about the completeness of the dataset.", - "examples": [ - "https://bhfdatasciencecentre.org/dashboard/" - ], - "guidance": "If your organisation has a publicly available site which contains information on the completeness of a dataset, add that URL here.\\n**Example**: https://bhfdatasciencecentre.org/dashboard/", - "title": "Dataset coverage/completeness/quality" - }, - "materialType": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/MaterialTypeCategoriesV2" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "The type of biospecimen saved from a biological entity.", - "guidance": "Indicate the specimen type, can be several values from the list below:\\n- Availability of physical samples associated with the dataset.\\n- If samples are available, please indicate the types of samples that are available.\\n- More than one type may be provided.\\n- If samples are not yet available, please provide **\u201cAvailability to be confirmed\u201d**.\\n- If samples are not available, then please provide **\u201cNot available\u201d**.\\n- **Not available**: Samples associated with the dataset are not available.\\n- **Bone marrow**: Bone marrow samples associated with the data are available.\\n- **Cancer cell lines**: Cancer cell line samples associated with the data are available.\\n- **CDNA/MRNA**: CDNA/MRNA samples associated with the data are available.\\n- **Core biopsy**: Core biopsy samples associated with the data are available.\\n- **DNA**: DNA samples associated with the data are available.\\n- **Entire body organ**: Entire body organ associated with the data are available.\\n- **Faeces**: Faeces samples associated with the data are available.\\n- **Immortalized cell lines**: Immortalized cell line samples associated with the data are available.\\n- **Isolated pathogen**: Isolated pathogen associated with the data are available.\\n- **MicroRNA**: MicroRNA samples associated with the data are available.\\n- **Peripheral blood cells**: Peripheral blood cell samples associated with the data are available.\\n- **Plasma**: Plasma samples associated with the data are available.\\n- **PM Tissue**: PM Tissue samples associated with the data are available.\\n- **Primary cells**: Primary cell samples associated with the data are available.\\n- **RNA**: RNA samples associated with the data are available.\\n- **Saliva**: Saliva samples associated with the data are available.\\n- **Serum**: Serum samples associated with the data are available.\\n- **Swabs**: Swab samples associated with the data are available.\\n- **Tissue**: Tissue samples associated with the data are available.\\n- **Urine**: Urine samples associated with the data are available.\\n- **Whole blood**: Whole blood samples associated with the data are available.\\n- **Availability to be confirmed**: Availability of samples is currently being confirmed.\\n- **Other**: Other types of sample available.", - "title": "Biological sample availability" - }, - "followUp": { - "anyOf": [ - { - "$ref": "#/$defs/FollowupV2" - }, - { - "type": "null" - } - ], - "default": "Unknown", - "description": "If known, what is the typical time span that a patient appears in the dataset (follow up period). In a prospective cohort study, after baseline information is collected, participants are followed \u201clongitudinally\u201d i.e. new information is collected about them for a period of time afterward. This is known as the \u201cfollow up period\u201d. What is the typical time span of follow up, e.g. 1 year, 5 years? If there are multiple cohorts in the dataset with varying follow up periods, please provide the longest follow up period.", - "guidance": "If known, please indicate the typical time span that a patient appears in the dataset (follow up period).\\n-**0 - 6 MONTHS**: Data typically available for a patient over a 0-6 month period.\\n-**6 - 12 MONTHS**: Data typically available for a patient over a 6-12 month period.\\n-**1 - 10 YEARS**: Data typically available for a patient over a 1-10 year period.\\n-**> 10 YEARS**: Data typically available for a patient for over a 10 year period.\\n-**CONTINUOUS**: Data for patients is being regularly added to and updated.\\n-**UNKNOWN**: Timespan is Unknown.\\n-**OTHER**: Data available for a patient over another time period.", - "title": "Follow-up" - }, - "pathway": { - "anyOf": [ - { - "$ref": "#/$defs/Description" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please indicate if the dataset is representative of the patient pathway and any limitations the dataset may have with respect to pathway coverage. This could include if the dataset is from a single speciality or area, a single tier of care, linked across two tiers (e.g. primary and secondary care), or an integrated care record covering the whole patient pathway.", - "guidance": "- Please indicate if the dataset is representative of the patient pathway and any limitations the dataset may have with respect to pathway coverage.\\n- This could include if the dataset is from a single speciality or area, a single tier of care, linked across two tiers (e.g. primary and secondary care), or an integrated care record covering the whole patient pathway.", - "title": "Patient pathway description" - } - }, - "required": [ - "spatial" - ], - "title": "Coverage", - "type": "object" - }, - "DataColumn": { - "properties": { - "name": { - "allOf": [ - { - "$ref": "#/$defs/Name" - } - ], - "description": "The name of a column in a table.", - "title": "Column name" - }, - "dataType": { - "description": "The data type of values in the column.", - "title": "Data type", - "type": "string" - }, - "description": { - "anyOf": [ - { - "maxLength": 20000, - "minLength": 1, - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "A description of a column in a table.", - "title": "Column description" - }, - "sensitive": { - "description": "A True or False value, indicating if the field is sensitive or not.", - "title": "Sensitive", - "type": "boolean" - }, - "values": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/DataValue" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Values in a dataset.", - "title": "Values" - } - }, - "required": [ - "name", - "dataType", - "sensitive" - ], - "title": "DataColumn", - "type": "object" - }, - "DataTable": { - "additionalProperties": false, - "properties": { - "name": { - "anyOf": [ - { - "maxLength": 500, - "minLength": 1, - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "The name of a table in a dataset.", - "title": "Table name" - }, - "description": { - "anyOf": [ - { - "maxLength": 20000, - "minLength": 1, - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "A description of a table in a dataset.", - "title": "Table description" - }, - "columns": { - "description": "A list of columns contained within a table in a dataset.", - "items": { - "$ref": "#/$defs/DataColumn" - }, - "title": "Data columns", - "type": "array" - } - }, - "required": [ - "columns" - ], - "title": "DataTable", - "type": "object" - }, - "DataUseLimitationV2": { - "enum": [ - "General research use", - "Commercial research use", - "Genetic studies only", - "No general methods research", - "No restriction", - "Geographical restrictions", - "Institution-specific restrictions", - "Not for profit use", - "Project-specific restrictions", - "Research-specific restrictions", - "User-specific restrictions", - "Research use only", - "No linkage" - ], - "title": "DataUseLimitationV2", - "type": "string" - }, - "DataUsePermissions": { - "additionalProperties": false, - "properties": { - "patientRecontact": { - "anyOf": [ - { - "$ref": "#/$defs/YesNo" - }, - { - "type": "null" - } - ], - "default": "No", - "description": "Indicates whether the people from whom the dataset is generated can be recontacted as part of a follow-up or new study.", - "examples": [ - "No" - ], - "guidance": "Please indicate whether the people from whom the dataset is generated can be recontacted as part of a follow-up or new study.\\n- **Yes**: The people within this dataset can be recontacted, subject to any applicable ethical/consent requirements.\\n- **No**: The people within this dataset cannot be recontacted.", - "title": "Patient recontact" - } - }, - "title": "DataUsePermissions", - "type": "object" - }, - "DataUseRequirementsV2": { - "enum": [ - "Collaboration required", - "Project-specific restrictions", - "Ethics approval required", - "Institution-specific restrictions", - "Geographical restrictions", - "Publication moratorium", - "Publication required", - "Return to database or resource", - "Time limit on use", - "Disclosure control", - "Not for profit use", - "User-specific restriction" - ], - "title": "DataUseRequirementsV2", - "type": "string" - }, - "DataValue": { - "properties": { - "name": { - "allOf": [ - { - "$ref": "#/$defs/Name" - } - ], - "description": "Unique value in a column.", - "title": "Value name" - }, - "description": { - "anyOf": [ - { - "maxLength": 20000, - "minLength": 1, - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "A description of a unique value in a column.", - "title": "Value description" - }, - "frequency": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "default": null, - "description": "The frequency of occurrance of a value in a column.", - "title": "Value frequency" - } - }, - "required": [ - "name" - ], - "title": "DataValue", - "type": "object" - }, - "DatasetDescriptor": { - "properties": { - "pid": { - "anyOf": [ - { - "$ref": "#/$defs/OneHundredFiftyCharacters" - }, - { - "type": "null" - } - ], - "default": null, - "title": "Persistent identifier of a dataset" - }, - "title": { - "anyOf": [ - { - "$ref": "#/$defs/OneHundredFiftyCharacters" - }, - { - "type": "null" - } - ], - "default": null, - "title": "Title of a dataset" - }, - "url": { - "anyOf": [ - { - "$ref": "#/$defs/Url" - }, - { - "type": "null" - } - ], - "default": null, - "title": "Url of a dataset" - } - }, - "title": "DatasetDescriptor", - "type": "object" - }, - "DeliveryLeadTimeV2": { - "enum": [ - "Less than 1 week", - "1-2 weeks", - "2-4 weeks", - "1-2 months", - "2-6 months", - "More than 6 months", - "Variable", - "Not applicable", - "Other" - ], - "title": "DeliveryLeadTimeV2", - "type": "string" - }, - "DemographicFrequency": { - "additionalProperties": false, - "properties": { - "age": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/Age" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Array of bins, based off the UK Office for National Statistics (ONS) groupings, and their corresponding counts as represented within the dataset.", - "title": "Age" - }, - "ethnicity": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/Ethnicity" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Array of bins, based off the UK Office for National Statistics (ONS) census groupings, and their corresponding counts as represented within the dataset.", - "guidance": "Enter the count of population represented in the dataset within the ethnicity bins provided. Clearly indicate where ethnicity is not stated or not known. Ensure you apply low number suppression and rounding where appropriate.", - "title": "Ethnicity" - }, - "disease": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/Disease" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Array of health conditions or diseases (based around ICD-10, SNOMED CT and MeSH disease vocabularies) and their corresponding counts as represented within the dataset.", - "guidance": "Create bins based on standard vocabulary (ICD-10, SNOMED CT or MeSH) and disease code. Then enter the count of population represented in the dataset within the disease bins created. Ensure you apply low number suppression and rounding where appropriate.", - "title": "Disease" - } - }, - "title": "DemographicFrequency", - "type": "object" - }, - "Description": { - "anyOf": [ - { - "maxLength": 10000, - "minLength": 2, - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Description" - }, - "Disease": { - "properties": { - "diseaseCode": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "integer" - } - ], - "examples": [ - "J45" - ], - "title": "Disease code" - }, - "diseaseCodeVocabulary": { - "allOf": [ - { - "$ref": "#/$defs/DiseaseCodeEnum" - } - ], - "examples": [ - "ICD10" - ], - "title": "Disease code vocabulary" - }, - "count": { - "examples": [ - 1000 - ], - "title": "Disease count", - "type": "integer" - } - }, - "required": [ - "diseaseCode", - "diseaseCodeVocabulary", - "count" - ], - "title": "Disease", - "type": "object" - }, - "DiseaseCodeEnum": { - "enum": [ - "ICD10", - "SNOMED CT", - "MeSH" - ], - "title": "DiseaseCodeEnum", - "type": "string" - }, - "Documentation": { - "additionalProperties": false, - "properties": { - "description": { - "allOf": [ - { - "$ref": "#/$defs/Description" - } - ], - "description": "A free-text description of the dataset.\\nA URL can also be provided as the description of the dataset.\\nGateway Feature: Keywords and text may be extracted out of the description and indexed for search.", - "examples": [ - "CPRD Aurum contains primary care data contributed by General Practitioner (GP) practices using EMIS Web\u00ae including patient registration information and all care events that GPs have chosen to record as part of their usual medical practice." - ], - "guidance": "- An HTML account of the data that **provides context and scope** of the data, **limited to 10000 characters, and/or a resolvable URL** that describes the dataset.\\n- Additional information can be recorded and included using the Associated media field." - }, - "associatedMedia": { - "anyOf": [ - { - "$ref": "#/$defs/CommaSeparatedValues" - }, - { - "items": { - "anyOf": [ - { - "$ref": "#/$defs/Url" - }, - { - "type": "null" - } - ] - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please provide any media associated with the Gateway Organisation using a valid URL for the content. This is an opportunity to provide additional context that could be useful for researchers wanting to understand more about the dataset and its relevance to their research question. The following formats will be accepted .jpg, .png or .svg, .pdf, .xslx or .docx. Note: media asset can be hosted by the organisation or uploaded using the onboarding portal.", - "examples": [ - "PDF document that describes study protocol - https://link.to/document.pdf" - ], - "guidance": "- Please provide any media associated with the Gateway Organisation **using a valid URL** for the content.\\n- This is an opportunity to **provide additional context** that could be useful for researchers wanting to understand more about the dataset and its relevance to their research question.\\n- Note: media assets should be hosted by the organisation.\n- **Example**: This could be a **link to a PDF Document** that describes methodology or further detail about the datasets, or a graph or chart that provides further context about the dataset.\\n- If you are providing multiple links for associated media, we recommend that you separate these with a comma.", - "title": "Associated media" - }, - "inPipeline": { - "anyOf": [ - { - "$ref": "#/$defs/Pipeline" - }, - { - "type": "null" - } - ], - "default": "Not available", - "description": "Indicate whether this dataset is currently available for Researchers to request access.", - "guidance": "If a dataset is being prepared for sharing but not yet ready and available for researchers to apply for access, select 'Not available'. If Researchers can currently apply for access to the dataset, select 'Available'.", - "title": "Dataset pipeline status" - } - }, - "required": [ - "description" - ], - "title": "Documentation", - "type": "object" - }, - "Doi": { - "anyOf": [ - { - "pattern": "^10.\\d{4,9}/[-._;()/:a-zA-Z0-9]+$", - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Doi" - }, - "DuoCodesEnum": { - "oneOf": [ - { - "const": "DUO:0000001", - "description": "A data item that is used to indicate consent permissions for datasets and/or materials, and relates to the purposes for which datasets and/or material might be removed, stored or used.", - "shortcode": "", - "title": "data use permission" - }, - { - "const": "DUO:0000004", - "description": "This data use permission indicates there is no restriction on use.", - "shortcode": "NRES", - "title": "no restriction" - }, - { - "const": "DUO:0000006", - "description": "This data use permission indicates that use is allowed for health/medical/biomedical purposes; does not include the study of population origins or ancestry.", - "shortcode": "HMB", - "title": "health or medical or biomedical research" - }, - { - "const": "DUO:0000007", - "description": "This data use permission indicates that use is allowed provided it is related to the specified disease.", - "shortcode": "DS", - "title": "disease specific research" - }, - { - "const": "DUO:0000011", - "description": "This data use permission indicates that use of the data is limited to the study of population origins or ancestry.", - "shortcode": "POA", - "title": "population origins or ancestry research only" - }, - { - "const": "DUO:0000012", - "description": "This data use modifier indicates that use is limited to studies of a certain research type.", - "shortcode": "RS", - "title": "research specific restrictions" - }, - { - "const": "DUO:0000015", - "description": "This data use modifier indicates that use does not allow methods development research (e.g., development of software or algorithms).", - "shortcode": "NMDS", - "title": "no general methods research" - }, - { - "const": "DUO:0000016", - "description": "This data use modifier indicates that use is limited to genetic studies only (i.e., studies that include genotype research alone or both genotype and phenotype research, but not phenotype research exclusively)", - "shortcode": "GSO", - "title": "genetic studies only" - }, - { - "const": "DUO:0000017", - "description": "Data use modifiers indicate additional conditions for use.", - "shortcode": "", - "title": "data use modifier" - }, - { - "const": "DUO:0000018", - "description": "This data use modifier indicates that use of the data is limited to not-for-profit organizations and not-for-profit use, non-commercial use.", - "shortcode": "NPUNCU", - "title": "not for profit, non commercial use only" - }, - { - "const": "DUO:0000019", - "description": "This data use modifier indicates that requestor agrees to make results of studies using the data available to the larger scientific community.", - "shortcode": "PUB", - "title": "publication required" - }, - { - "const": "DUO:0000020", - "description": "This data use modifier indicates that the requestor must agree to collaboration with the primary study investigator(s).", - "shortcode": "COL", - "title": "collaboration required" - }, - { - "const": "DUO:0000021", - "description": "This data use modifier indicates that the requestor must provide documentation of local IRB/ERB approval.", - "shortcode": "IRB", - "title": "ethics approval required" - }, - { - "const": "DUO:0000022", - "description": "This data use modifier indicates that use is limited to within a specific geographic region.", - "shortcode": "GS", - "title": "geographical restriction" - }, - { - "const": "DUO:0000024", - "description": "This data use modifier indicates that requestor agrees not to publish results of studies until a specific date.", - "shortcode": "MOR", - "title": "publication moratorium" - }, - { - "const": "DUO:0000025", - "description": "This data use modifier indicates that use is approved for a specific number of months.", - "shortcode": "TS", - "title": "time limit on use" - }, - { - "const": "DUO:0000026", - "description": "This data use modifier indicates that use is limited to use by approved users.", - "shortcode": "US", - "title": "user specific restriction" - }, - { - "const": "DUO:0000027", - "description": "This data use modifier indicates that use is limited to use within an approved project.", - "shortcode": "PS", - "title": "project specific restriction" - }, - { - "const": "DUO:0000028", - "description": "This data use modifier indicates that use is limited to use within an approved institution.", - "shortcode": "IS", - "title": "institution specific restriction" - }, - { - "const": "DUO:0000029", - "description": "This data use modifier indicates that the requestor must return derived/enriched data to the database/resource.", - "shortcode": "RTN", - "title": "return to database or resource" - }, - { - "const": "DUO:0000042", - "description": "This data use permission indicates that use is allowed for general research use for any research purpose.", - "shortcode": "GRU", - "title": "general research use" - }, - { - "const": "DUO:0000043", - "description": "This data use modifier indicates that use is allowed for clinical use and care.", - "shortcode": "CC", - "title": "clinical care use" - }, - { - "const": "DUO:0000044", - "description": "This data use modifier indicates use for purposes of population, origin, or ancestry research is prohibited.", - "shortcode": "NPOA", - "title": "population origins or ancestry research prohibited" - }, - { - "const": "DUO:0000045", - "description": "This data use modifier indicates that use of the data is limited to not-for-profit organizations.", - "shortcode": "NPU", - "title": "not for profit organisation use only" - }, - { - "const": "DUO:0000046", - "description": "This data use modifier indicates that use of the data is limited to not-for-profit use.", - "shortcode": "NCU", - "title": "non-commercial use only" - } - ], - "title": "DuoCodesEnum", - "type": "string" - }, - "EmailAddress": { - "anyOf": [ - { - "format": "email", - "type": "string" - }, - { - "type": "null" - } - ], - "title": "EmailAddress" - }, - "EndDateEnum": { - "enum": [ - "CONTINUOUS", - null - ], - "title": "EndDateEnum" - }, - "EnrichmentAndLinkage": { - "additionalProperties": false, - "properties": { - "derivedFrom": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/DatasetDescriptor" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "If applicable, please provide DOIs or links to datasets from which data in this dataset has been derived or calculated from.", - "title": "Derived from" - }, - "isPartOf": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/DatasetDescriptor" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "This relationship indicates that the dataset is a component or subset of a broader collection of related datasets. For example, clinical trial data for a specific drug may be part of a larger database of pharmaceutical research data. Complete only if the dataset is part of a group or family of datasets i.e. Hospital Episode Statistics has several constituents. If your dataset is not part of a group, please enter \u201cNOT APPLICABLE\u201d **Example**: Hospital Episodes Statistics datasets (A&E, APC, OP, AC MSDS).", - "examples": [ - "Hospital Episodes Statistics datasets (A&E, APC, OP, AC MSDS)" - ], - "title": "Is part of" - }, - "linkableDatasets": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/DatasetDescriptor" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "If applicable, please provide the DOI of other datasets that have previously been linked to this dataset and their availability. If no DOI is available, please provide the title of the datasets that can be linked.", - "title": "Linked datasets" - }, - "similarToDatasets": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/DatasetDescriptor" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Datasets that are similar to each other in some way, collect similar patients, regional equivalent etc.", - "title": "Similar to datasets" - }, - "investigations": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/Url" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please provide link to any active projects that are using the dataset.", - "guidance": "- Please provide the website address(es) which document information related to active projects utilising the dataset.\\n- Please split your existing list of citations into separate fields.\\n- To add multiple entries, type in each website and press enter to add it to the list.\\n- **Example**: ", - "title": "Investigations" - }, - "tools": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/Url" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please provide the URL of any analysis tools or models that have been created for this dataset and are available for further use. Multiple tools may be provided. Note: We encourage users to adopt a model along the lines of https://www.ga4gh.org/news/tool-registry-service-api-enabling-an-interoperable-library-of-genomics-analysis-tools/", - "guidance": "- Please provide the URL of any analysis tools or models that have been created for this dataset and are available for further use.\\n- Multiple tools may be provided.\\n- Note: We encourage users to adopt a model along the lines of https://www.ga4gh.org/news/tool-registry-service-api-enabling-an-interoperable-library-of-genomics-analysis-tools/", - "title": "Tools" - }, - "publicationAboutDataset": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/Doi" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "DOIs for publications which describe the dataset.", - "examples": [ - "10.1093/ije/dyab028" - ], - "guidance": "- Please provide the DOIs for publications which describe the dataset.\\n- Please split your existing list of citations into separate fields.\\n- To add multiple entries, type in each citation and press enter to add it to the list.\\n- **Example**: <10.1093/ije/dyab028>", - "title": "Publication about the dataset" - }, - "publicationUsingDataset": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/Doi" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "DOIs for publications which use the dataset for analysis.", - "examples": [ - "10.1001/jamapediatrics.2016.3633" - ], - "guidance": "- Please provide the DOIs for publications which have used the dataset in their analysis.\\n- Please split your existing list of citations into separate fields.\\n- To add multiple entries, type in each citation and press enter to add it to the list.\\n- **Example**: <10.1001/jamapediatrics.2016.3633>", - "title": "Publication using the dataset" - } - }, - "title": "EnrichmentAndLinkage", - "type": "object" - }, - "EnvironmentAndEnergy": { - "properties": { - "name": { - "Literal": true, - "default": "Environment and energy", - "title": "Name", - "type": "string" - }, - "subTypes": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/NotApplicableSubTypes" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "title": "Subtypes" - } - }, - "required": [ - "subTypes" - ], - "title": "EnvironmentAndEnergy", - "type": "object" - }, - "Ethnicity": { - "properties": { - "bin": { - "allOf": [ - { - "$ref": "#/$defs/EthnicityEnum" - } - ], - "examples": [ - "Black or Black British - Any other Black background" - ], - "title": "Ethnicity grouping" - }, - "count": { - "examples": [ - 1000 - ], - "title": "Ethnicity count", - "type": "integer" - } - }, - "required": [ - "bin", - "count" - ], - "title": "Ethnicity", - "type": "object" - }, - "EthnicityEnum": { - "enum": [ - "White - British", - "White - Irish", - "White - Any other White background", - "Mixed - White and Black Caribbean", - "Mixed - White and Black African", - "Mixed - White and Asian", - "Mixed - Any other mixed background", - "Asian or Asian British - Indian", - "Asian or Asian British - Pakistani", - "Asian or Asian British - Bangladeshi", - "Asian or Asian British - Any other Asian background", - "Black or Black British - Caribbean", - "Black or Black British - African", - "Black or Black British - Any other Black background", - "Other Ethnic Groups - Chinese", - "Other Ethnic Groups - Any other ethnic group", - "Not stated", - "Not known" - ], - "title": "EthnicityEnum", - "type": "string" - }, - "FollowupV2": { - "enum": [ - "0 - 6 Months", - "6 - 12 Months", - "1 - 10 Years", - "> 10 Years", - "Unknown", - "Continuous", - "Other", - null - ], - "title": "FollowupV2" - }, - "Format": { - "minLength": 1, - "title": "Format", - "type": "string" - }, - "FormatAndStandards": { - "additionalProperties": false, - "properties": { - "vocabularyEncodingScheme": { - "description": "List any relevant terminologies / ontologies / controlled vocabularies, such as ICD 10 Codes, NHS Data Dictionary National Codes or SNOMED CT International, that are being used by the dataset. If the controlled vocabularies are local standards, please make that explicit. If you are using a standard that has not been included in the list, please use \u201cother\u201d and contact support desk to ask for an addition. Notes: More than one vocabulary may be provided.", - "examples": [ - "LOCAL", - "ICD10" - ], - "guidance": "- List any relevant terminologies / ontologies / controlled vocabularies, such as ICD 10 Codes, NHS Data Dictionary National Codes or SNOMED CT International, that are being used by the dataset.\\n- If the controlled vocabularies are local standards, please make that explicit. If you are using a standard that has not been included in the list, please use \u201cother\u201d and contact support desk to ask for an addition.\\n- Notes: More than one vocabulary may be provided.\\n- **Local**: Local Coding Standard.\\n- [**OPCS4**](https://digital.nhs.uk/data-and-information/information-standards/governance/latest-activity/standards-and-collections/dapb0084-opcs-classification-of-interventions-and-procedures/)\\n- [**READ**](https://digital.nhs.uk/services/terminology-and-classifications/read-codes)\\n- [**SNOMED CT**](http://www.snomed.org/)\\n- [**SNOMED RT**](https://confluence.ihtsdotools.org/display/DOCGLOSS/SNOMED+RT)\\n- [**DM+D**](https://digital.nhs.uk/data-and-information/information-standards/information-standards-and-data-collections-including-extractions/publications-and-notifications/standards-and-collections/scci0052-dictionary-of-medicines-and-devices-dm-d)\\n- [**NHS National Codes**](https://www.datadictionary.nhs.uk/)\\n- [**ODS**](https://digital.nhs.uk/services/organisation-data-service)\\n- [**LOINC**](https://loinc.org/)\\n- [**ICD10**](https://www.who.int/classifications/icd/icdonlineversions/en/)\\n- [**ICD10CM**](https://www.cdc.gov/nchs/icd/icd10cm.htm)\\n- [**ICD10PCS**](https://ec.europa.eu/eip/ageing/standards/healthcare/e-health/icd-10-pcs_en)\\n- [**ICD9CM**](https://www.cdc.gov/nchs/icd/icd9cm.htm)\\n- [**ICD9**](https://www.cdc.gov/nchs/icd/icd9.htm)\\n- [**ICDO3**](https://www.who.int/standards/classifications/other-classifications/international-classification-of-diseases-for-oncology)\\n- [**AMT**](https://www.digitalhealth.gov.au/healthcare-providers/product-releases)\\n- [**APC**](https://www.acep.org/administration/reimbursement/reimbursement-faqs/apc-ambulatory-payment-classifications-faq/)\\n- [**ATC**](https://www.whocc.no/atc_ddd_index/)\\n- [**CIEL**](https://github.com/OpenConceptLab/ocl_web/wiki/CIEL)\\n- [**HPO**](https://hpo.jax.org/app/)\\n- [**CPT4**](https://www.ama-assn.org/practice-management/cpt)\\n- [**DPD**](https://health-products.canada.ca/dpd-bdpp/index-eng.jsp)\\n- [**DRG**](https://www.who.int/publications/i/item/WHO-UHC-HGF-Guidance-20.10)\\n- [**HEMONC**](https://hemonc.org/wiki/Main_Page)\\n- [**JMDC**](https://www.jmdc.co.jp/en/)\\n- [**KCD7**](https://forums.ohdsi.org/t/adding-kcd7-code-korean-icd-10-to-the-omop-vocabulary/7576)\\n- [**MULTUM**](https://www.cerner.com/solutions/drug-database)\\n- [**NAACCR**](https://www.naaccr.org/)\\n- [**NDC**](https://www.fda.gov/drugs/drug-approvals-and-databases/national-drug-code-directory)\\n- [**NDFRT**](https://bioportal.bioontology.org/ontologies/NDFRT)\\n- [**OXMIS**](https://oxrisk.com/oxmis/)\\n- [**RXNORM**](https://www.nlm.nih.gov/research/umls/rxnorm/index.html)\\n- [**RXNORM EXTENSION**](https://www.nlm.nih.gov/research/umls/rxnorm/index.html)\\n- [**SPL**](https://www.fda.gov/industry/fda-resources-data-standards/structured-product-labeling-resources)\\n- **Other**: Please indicate if there is another standard that you are using. This will trigger a support ticket where you can request the addition of the terminology to the HOP.\\n- [**NHS Scotland National Codes**](https://www.ndc.scot.nhs.uk/Data-Dictionary/)\\n- [**NHS Wales National Codes**](http://www.datadictionary.wales.nhs.uk/)", - "items": { - "$ref": "#/$defs/ControlledVocabularyEnum" - }, - "title": "Controlled vocabulary", - "type": "array" - }, - "conformsTo": { - "description": "List standardised data models that the dataset has been stored in or transformed to, such as OMOP or FHIR. If the data is only available in a local format, please make that explicit. If you are using a standard that has not been included in the list, please use \u201cother\u201d and contact support desk to ask for an addition.", - "examples": [ - "LOCAL", - "NHS DATA DICTIONARY" - ], - "guidance": "- List standardised data models that the dataset has been stored in or transformed to, such as OMOP or FHIR.\\n- If the data is only available in a local format, please make that explicit. If you are using a standard that has not been included in the list, please use \u201cother\u201d and contact support desk to ask for an addition.\\n- [**British National Formulary (BNF) codes**](https://bnf.nice.org.uk/)\\n- [**HL7 FHIR**](https://www.hl7.org/fhir/)\\n- [**HL7 V2**](https://www.hl7.org/implement/standards/product_section.cfm?section=13)\\n- [**HL7 CDA**](https://www.hl7.org/implement/standards/product_section.cfm?section=10)\\n- [**HL7 CCOW**](https://www.hl7.org/implement/standards/product_section.cfm?section=16)\\n- [**LOINC**](https://loinc.org/)\\n- [**DDI**](https://ddialliance.org/)\\n- [**DCAT**](https://www.w3.org/TR/vocab-dcat-3/)\\n- [**DICOM**](https://www.dicomstandard.org/)\\n- [**I2B2**](https://www.i2b2.org/)\\n- [**IHE**](https://www.ihe.net/resources/profiles/)\\n- [**OMOP**](https://www.ohdsi.org/data-standardization/the-common-data-model/)\\n- [**openEHR**](https://www.openehr.org/)\\n- [**Sentinel**](https://www.sentinelinitiative.org/sentinel/data/distributed-database-common-data-model)\\n- [**PCORnet**](https://pcornet.org/data-driven-common-model/)\\n- [**CDISC**](https://www.cdisc.org/standards/data-exchange/odm)\\n- **Local**: In-house developed data model.\\n- **Other**: Other standardised data model.\\n- [**NHS Data Dictionary**](https://www.datadictionary.nhs.uk/)\\n- [**NHS Scotland Data Dictionary**](https://www.ndc.scot.nhs.uk/Data-Dictionary/)\\n- [**NHS Wales Data Dictionary**](https://www.datadictionary.wales.nhs.uk/)", - "items": { - "$ref": "#/$defs/StandardisedDataModelsEnumV2" - }, - "title": "Alignment with standardised data models", - "type": "array" - }, - "language": { - "description": "This should list all the languages in which the dataset metadata and underlying data is made available complaint with ISO 639.", - "examples": [ - "en" - ], - "guidance": "https://www.iso.org/iso-639-language-code\\n- **aa**: Afar\\n- **ab**: Abkhazian\\n- **af**: Afrikaans\\n- **ak**: Akan\\n- **sq**: Albanian\\n- **am**: Amharic\\n- **ar**: Arabic\\n- **an**: Aragonese\\n- **hy**: Armenian\\n- **as**: Assamese\\n- **av**: Avaric\\n- **ae**: Avestan\\n- **ay**: Aymara\\n- **az**: Azerbaijani\\n- **ba**: Bashkir\\n- **bm**: Bambara\\n- **eu**: Basque\\n- **be**: Belarusian\\n- **bn**: Bengali\\n- **bh**: Bihari languages\\n- **bi**: Bislama\\n- **bo**: Tibetan\\n- **bs**: Bosnian\\n- **br**: Breton\\n- **bg**: Bulgarian\\n- **my**: Burmese\\n- **ca**: Catalan; Valencian\\n- **cs**: Czech\\n- **ch**: Chamorro\\n- **ce**: Chechen\\n- **zh**: Chinese\\n- **cu**: Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic\\n- **cv**: Chuvash\\n- **kw**: Cornish\\n- **co**: Corsican\\n- **cr**: Cree\\n- **cy**: Welsh\\n- **cs**: Czech\\n- **da**: Danish\\n- **de**: German\\n- **dv**: Divehi; Dhivehi; Maldivian\\n- **nl**: Dutch; Flemish\\n- **dz**: Dzongkha\\n- **el**: Greek, Modern (1453-)\\n- **en**: English\\n- **eo**: Esperanto\\n- **et**: Estonian\\n- **eu**: Basque\\n- **ee**: Ewe\\n- **fo**: Faroese\\n- **fa**: Persian\\n- **fj**: Fijian\\n- **fi**: Finnish\\n- **fr**: French\\n- **fy**: Western Frisian\\n- **ff**: Fulah\\n- **ka**: Georgian\\n- **de**: German\\n- **gd**: Gaelic; Scottish Gaelic\\n- **ga**: Irish\\n- **gl**: Galician\\n- **gv**: Manx\\n- **el**: Greek, Modern (1453-)\\n- **gn**: Guarani\\n- **gu**: Gujarati\\n- **ht**: Haitian; Haitian Creole\\n- **ha**: Hausa\\n- **ho**: Hiri Motu\\n- **hr**: Croatian\\n- **hu**: Hungarian\\n- **hy**: Armenian\\n- **ig**: Igbo\\n- **is**: Icelandic\\n- **io**: Ido\\n- **ii**: Sichuan Yi; Nuosu\\n- **iu**: Inuktitut\\n- **ie**: Interlingue; Occidental\\n- **ia**: Interlingua (International Auxiliary Language Association)\\n- **id**: Indonesian\\n- **ik**: Inupiaq\\n- **is**: Icelandic\\n- **it**: Italian\\n- **jv**: Javanese\\n- **ja**: Japanese\\n- **kl**: Kalaallisut; Greenlandic\\n- **kn**: Kannada\\n- **ks**: Kashmiri\\n- **ka**: Georgian\\n- **kr**: Kanuri\\n- **kk**: Kazakh\\n- **km**: Central Khmer\\n- **ki**: Kikuyu; Gikuyu\\n- **rw**: Kinyarwanda\\n- **ky**: Kirghiz; Kyrgyz\\n- **kv**: Komi\\n- **kg**: Kongo\\n- **ko**: Korean\\n- **kj**: Kuanyama; Kwanyama\\n- **ku**: Kurdish\\n- **lo**: Lao\\n- **la**: Latin\\n- **lv**: Latvian\\n- **li**: Limburgan; Limburger; limburgish\\n- **ln**: Lingala\\n- **lt**: Lithuanian\\n- **lb**: Luxembourgish; Letzeburgesch\\n- **lu**: Luba-Katanga\\n- **lg**: Ganda\\n- **mk**: Macedonian\\n- **mh**: Marshallese\\n- **ml**: Malayalam\\n- **mi**: Maori\\n- **mr**: Marathi\\n- **ms**: Malay\\n- **mk**: Macedonian\\n- **mg**: Malagasy\\n- **mt**: Maltese\\n- **mn**: Mongolian\\n- **mi**: Maori\\n- **ms**: Malay\\n- **my**: Burmese\\n- **na**: Nauru\\n- **nv**: Navajo; Navaho\\n- **nr**: Ndebele, South; South Ndebele\\n- **nd**: Ndebele, North; North Ndebele\\n- **ng**: Ndonga\\n- **ne**: Nepali\\n- **nl**: Dutch; Flemish\\n- **nn**: Norwegian Nynorsk; Nynorsk, Norwegian\\n- **nb**: Bokm\u00e5l, Norwegian; Norwegian Bokm\u00e5l\\n- **no**: Norwegian\\n- **ny**: Chichewa; Chewa; Nyanja\\n- **oc**: Occitan (post 1500)\\n- **oj**: Ojibwa\\n- **or**: Oriya\\n- **om**: Oromo\\n- **os**: Ossetian; Ossetic\\n- **pa**: Panjabi; Punjabi\\n- **fa**: Persian\\n- **pi**: Pali\\n- **pl**: Polish\\n- **pt**: Portuguese\\n- **ps**: Pushto; Pashto\\n- **qu**: Quechua\\n- **rm**: Romansh\\n- **ro**: Romanian; Moldavian; Moldovan\\n- **rn**: Rundi\\n- **ru**: Russian\\n- **sg**: Sango\\n- **sa**: Sanskrit\\n- **si**: Sinhala; Sinhalese\\n- **sk**: Slovak\\n- **sl**: Slovenian\\n- **se**: Northern Sami\\n- **sm**: Samoan\\n- **sn**: Shona\\n- **sd**: Sindhi\\n- **so**: Somali\\n- **st**: Sotho, Southern\\n- **es**: Spanish; Castilian\\n- **sq**: Albanian\\n- **sc**: Sardinian\\n- **sr**: Serbian\\n- **ss**: Swati\\n- **su**: Sundanese\\n- **sw**: Swahili\\n- **sv**: Swedish\\n- **ty**: Tahitian\\n- **ta**: Tamil\\n- **tt**: Tatar\\n- **te**: Telugu\\n- **tg**: Tajik\\n- **tl**: Tagalog\\n- **th**: Thai\\n- **bo**: Tibetan\\n- **ti**: Tigrinya\\n- **to**: Tonga (Tonga Islands)\\n- **tn**: Tswana\\n- **ts**: Tsonga\\n- **tk**: Turkmen\\n- **tr**: Turkish\\n- **tw**: Twi\\n- **ug**: Uighur; Uyghur\\n- **uk**: Ukrainian\\n- **ur**: Urdu\\n- **uz**: Uzbek\\n- **ve**: Venda\\n- **vi**: Vietnamese\\n- **vo**: Volap\u00fck\\n- **cy**: Welsh\\n- **wa**: Walloon\\n- **wo**: Wolof\\n- **xh**: Xhosa\\n- **yi**: Yiddish\\n- **yo**: Yoruba\\n- **za**: Zhuang; Chuang\\n- **zh**: Chinese\\n- **zu**: Zulu", - "items": { - "$ref": "#/$defs/LanguageEnum" - }, - "title": "Language", - "type": "array" - }, - "format": { - "description": "If multiple formats are available please specify. See application, audio, image, message, model, multipart, text, video, https://www.iana.org/assignments/media-types/media-types.xhtml Note: If your file format is not included in the current list of formats, please indicate other. If you are using the HOP you will be directed to a service desk page where you can request your additional format. If not please go to: https://metadata.atlassian.net/servicedesk/customer/portal/4 to request your format.", - "examples": [ - "text/tab-separated-values", - "application/sql", - "text/csv", - "image/diacom-rle" - ], - "guidance": "- If multiple formats are available, please specify. See application, audio, image, message, model, multipart, text, video, .\\n- Please **enter one format type at a time** and click **Add New Field** to add further keywords.\\n- Note: If your file format is not included in the current list of formats, please indicate other.\\n- **Example**: text/tab-separated-values, application/sql, text/csv, image/diacom-rle", - "items": { - "$ref": "#/$defs/Format" - }, - "title": "Format", - "type": "array" - } - }, - "required": [ - "vocabularyEncodingScheme", - "conformsTo", - "language", - "format" - ], - "title": "FormatAndStandards", - "type": "object" - }, - "HealthAndDisease": { - "properties": { - "name": { - "Literal": true, - "default": "Health and disease", - "title": "Name", - "type": "string" - }, - "subTypes": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/HealthAndDiseaseSubTypes" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "title": "Subtypes" - } - }, - "required": [ - "subTypes" - ], - "title": "HealthAndDisease", - "type": "object" - }, - "HealthAndDiseaseSubTypes": { - "enum": [ - "Mental health", - "Cardiovascular", - "Cancer", - "Rare diseases", - "Metabolic and endocrine", - "Neurological", - "Reproductive", - "Maternity and neonatology", - "Respiratory", - "Immunity", - "Musculoskeletal", - "Vision", - "Renal and urogenital", - "Oral and gastrointestinal", - "Cognitive function", - "Hearing", - "Others" - ], - "title": "HealthAndDiseaseSubTypes", - "type": "string" - }, - "ImagingAreaOfTheBody": { - "properties": { - "name": { - "Literal": true, - "default": "Imaging Area Of The Body", - "title": "Name", - "type": "string" - }, - "subTypes": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/ImagingAreaOfTheBodySubTypes" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "title": "Subtypes" - } - }, - "required": [ - "subTypes" - ], - "title": "ImagingAreaOfTheBody", - "type": "object" - }, - "ImagingAreaOfTheBodySubTypes": { - "enum": [ - "Head", - "Chest", - "Arm", - "Abdomen", - "Leg", - "Others" - ], - "title": "ImagingAreaOfTheBodySubTypes", - "type": "string" - }, - "ImagingTypes": { - "properties": { - "name": { - "Literal": true, - "default": "Imaging types", - "title": "Name", - "type": "string" - }, - "subTypes": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/ImagingTypesSubTypes" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "title": "Subtypes" - } - }, - "required": [ - "subTypes" - ], - "title": "ImagingTypes", - "type": "object" - }, - "ImagingTypesSubTypes": { - "enum": [ - "CT", - "MRI", - "PET", - "X-ray", - "Ultrasound", - "Pathology", - "Others" - ], - "title": "ImagingTypesSubTypes", - "type": "string" - }, - "InformationAndCommunication": { - "properties": { - "name": { - "Literal": true, - "default": "Information and communication", - "title": "Name", - "type": "string" - }, - "subTypes": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/NotApplicableSubTypes" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "title": "Subtypes" - } - }, - "required": [ - "subTypes" - ], - "title": "InformationAndCommunication", - "type": "object" - }, - "Isocountrycode": { - "pattern": "^[A-Z]{2}(-[A-Z]{2,3})?$", - "title": "Isocountrycode", - "type": "string" - }, - "LanguageEnum": { - "enum": [ - "aa", - "ab", - "ae", - "af", - "ak", - "am", - "an", - "ar", - "as", - "av", - "ay", - "az", - "ba", - "be", - "bg", - "bh", - "bi", - "bm", - "bn", - "bo", - "br", - "bs", - "ca", - "ce", - "ch", - "co", - "cr", - "cs", - "cu", - "cv", - "cy", - "da", - "de", - "dv", - "dz", - "ee", - "el", - "en", - "eo", - "es", - "et", - "eu", - "fa", - "ff", - "fi", - "fj", - "fo", - "fr", - "fy", - "ga", - "gd", - "gl", - "gn", - "gu", - "gv", - "ha", - "he", - "hi", - "ho", - "hr", - "ht", - "hu", - "hy", - "hz", - "ia", - "id", - "ie", - "ig", - "ii", - "ik", - "io", - "is", - "it", - "iu", - "ja", - "jv", - "ka", - "kg", - "ki", - "kj", - "kk", - "kl", - "km", - "kn", - "ko", - "kr", - "ks", - "ku", - "kv", - "kw", - "ky", - "la", - "lb", - "lg", - "li", - "ln", - "lo", - "lt", - "lu", - "lv", - "mg", - "mh", - "mi", - "mk", - "ml", - "mn", - "mr", - "ms", - "mt", - "my", - "na", - "nb", - "nd", - "ne", - "ng", - "nl", - "nn", - "no", - "nr", - "nv", - "ny", - "oc", - "oj", - "om", - "or", - "os", - "pa", - "pi", - "pl", - "ps", - "pt", - "qu", - "rm", - "rn", - "ro", - "ru", - "rw", - "sa", - "sc", - "sd", - "se", - "sg", - "si", - "sk", - "sl", - "sm", - "sn", - "so", - "sq", - "sr", - "ss", - "st", - "su", - "sv", - "sw", - "ta", - "te", - "tg", - "th", - "ti", - "tk", - "tl", - "tn", - "to", - "tr", - "ts", - "tt", - "tw", - "ty", - "ug", - "uk", - "ur", - "uz", - "ve", - "vi", - "vo", - "wa", - "wo", - "xh", - "yi", - "yo", - "za", - "zh", - "zu" - ], - "title": "LanguageEnum", - "type": "string" - }, - "Lifestyle": { - "properties": { - "name": { - "Literal": true, - "default": "Lifestyle", - "title": "Name", - "type": "string" - }, - "subTypes": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/LifestyleSubTypes" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "title": "Subtypes" - } - }, - "required": [ - "subTypes" - ], - "title": "Lifestyle", - "type": "object" - }, - "LifestyleSubTypes": { - "enum": [ - "Smoking", - "Physical activity", - "Dietary habits", - "Alcohol", - "Others" - ], - "title": "LifestyleSubTypes", - "type": "string" - }, - "LongDescription": { - "anyOf": [ - { - "maxLength": 50000, - "minLength": 2, - "type": "string" - }, - { - "type": "null" - } - ], - "title": "LongDescription" - }, - "MaterialTypeCategoriesV2": { - "enum": [ - "None/not available", - "Bone marrow", - "Cancer cell lines", - "CDNA/MRNA", - "Core biopsy", - "DNA", - "Entire body organ", - "Faeces", - "Immortalized cell lines", - "Isolated pathogen", - "MicroRNA", - "Peripheral blood cells", - "Plasma", - "PM Tissue", - "Primary cells", - "RNA", - "Saliva", - "Serum", - "Swabs", - "Tissue", - "Urine", - "Whole blood", - "Availability to be confirmed", - "Other" - ], - "title": "MaterialTypeCategoriesV2", - "type": "string" - }, - "MeasuredProperty": { - "title": "MeasuredProperty" - }, - "MeasurementsTests": { - "properties": { - "name": { - "Literal": true, - "default": "Measurements/Tests", - "title": "Name", - "type": "string" - }, - "subTypes": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/MeasurementsTestsSubTypes" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "title": "Subtypes" - } - }, - "required": [ - "subTypes" - ], - "title": "MeasurementsTests", - "type": "object" - }, - "MeasurementsTestsSubTypes": { - "enum": [ - "Laboratory", - "Other diagnostics" - ], - "title": "MeasurementsTestsSubTypes", - "type": "string" - }, - "MemberOfV2": { - "enum": [ - "Hub", - "Alliance", - "Other", - "NCS" - ], - "title": "MemberOfV2", - "type": "string" - }, - "Name": { - "title": "Name" - }, - "NotApplicableSubTypes": { - "const": "Not applicable", - "title": "NotApplicableSubTypes" - }, - "Observation": { - "additionalProperties": false, - "properties": { - "observedNode": { - "allOf": [ - { - "$ref": "#/$defs/StatisticalPopulationConstrainedV2" - } - ], - "description": "Please select one of the following broad notes for your measured observation. Indicating whether the measured property is a recording of unique persons, events, findings or scans per modality.", - "examples": [ - "Persons" - ], - "guidance": "- **Persons**: Unique persons recorded in the dataset\\n- **Events**: Unique events such as procedures and prescriptions within the dataset\\n-**Findings**: Unique findings included in the dataset such as diagnoses'\\n-**Number of scans per modality**: Unique scans for a specified imaging method modality (e.g. 12 x-rays)", - "title": "Dataset volume measure" - }, - "measuredValue": { - "description": "An integer value size of the measured property, such as \u20181000\u2019 for 1000 people in the study or \u201887\u2019 for 87 MRI scans in the dataset.", - "examples": [ - 1000 - ], - "guidance": "An integer value size of the measured property, such as \u20181000\u2019 for 1000 people in the study or \u201887\u2019 for 87 MRI scans in the dataset.", - "title": "Measured value", - "type": "integer" - }, - "disambiguatingDescription": { - "anyOf": [ - { - "$ref": "#/$defs/AbstractText" - }, - { - "type": "null" - } - ], - "default": null, - "description": "If required, please provide additional details that help distinguish between similar measured properties within your dataset, for example this is useful when SNOMED CT terms do not provide sufficient detail to distinguish between parts of the dataset population. Limited to 500 characters.", - "guidance": "If required please provide additional details that help distinguish between similar measured properties within your dataset, for example this is useful when SNOMED CT terms do not provide sufficient detail to distinguish between parts of the dataset population.", - "title": "Disambiguating description" - }, - "observationDate": { - "anyOf": [ - { - "format": "date", - "type": "string" - }, - { - "format": "date-time", - "type": "string" - } - ], - "description": "Provide the date, or datetime that the observation was made. Multiple observations of the same property can be provided, for example an observation of cumulative COVID positive cases by specimen on the 1/1/2021 with a measuredValue of 2000000, and a second observation entry on 8/2/2021 recording a measuredValue of as 3100000.", - "examples": [ - "2024-10-24" - ], - "guidance": "Provide the date, or datetime that the observation was made. Multiple observations of the same property can be provided, for example an observation of cumulative COVID positive cases by specimen on the 1/1/2021 with a measuredValue of 2000000, and a second observation entry on 8/2/2021 recording a measuredValue of as 3100000.", - "title": "Observation date" - }, - "measuredProperty": { - "allOf": [ - { - "$ref": "#/$defs/MeasuredProperty" - } - ], - "description": "Descriptive term for the observation property measured. For example, people, procedures, x-rays, or diagnosis of type 1 diabetes. This could also be a specific SNOMED CT term.", - "examples": [ - "Count" - ], - "guidance": "Descriptive term for the observation property measured.", - "title": "Measured property" - } - }, - "required": [ - "observedNode", - "measuredValue", - "observationDate", - "measuredProperty" - ], - "title": "Observation", - "type": "object" - }, - "Omics": { - "additionalProperties": false, - "properties": { - "assay": { - "anyOf": [ - { - "$ref": "#/$defs/Assay" - }, - { - "type": "null" - } - ], - "default": null, - "description": "The specific 'omics assay that generated the dataset.", - "guidance": "The specific 'omics assay that generated the dataset. If the assay used to generate your dataset is not listed, please contract the gateway team by submitting an enquiry.", - "title": "Omics assay" - }, - "platform": { - "anyOf": [ - { - "$ref": "#/$defs/Platform" - }, - { - "type": "null" - } - ], - "default": null, - "description": "The specific technology or infrastructure used to perform the assay. If the omics platform used to create your dataset is not listed, please select other, a member of the gateway team will contact you to add an appropriate term(s) both to your record and to the metadata schema on your behalf.", - "guidance": "The specific technology or infrastructure used to perform the assay. If the omics platform used to create your dataset is not listed, please select other, a member of the gateway team will contact you to add an appropriate term(s) both to your record and to the metadata schema on your behalf.", - "title": "Omics Platform" - } - }, - "title": "Omics", - "type": "object" - }, - "OmicsDataType": { - "properties": { - "name": { - "Literal": true, - "default": "Omics", - "title": "Name", - "type": "string" - }, - "subTypes": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/OmicsDataTypeSubTypes" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "title": "Subtypes" - } - }, - "required": [ - "subTypes" - ], - "title": "OmicsDataType", - "type": "object" - }, - "OmicsDataTypeSubTypes": { - "enum": [ - "Proteomics", - "Transcriptomics", - "Epigenomics", - "Metabolomics", - "Metagenomics", - "Genomics", - "Lipidomics", - "Others" - ], - "title": "OmicsDataTypeSubTypes", - "type": "string" - }, - "OneHundredFiftyCharacters": { - "maxLength": 150, - "minLength": 2, - "title": "OneHundredFiftyCharacters", - "type": "string" - }, - "Organisation": { - "additionalProperties": false, - "properties": { - "identifier": { - "anyOf": [ - { - "maxLength": 50, - "minLength": 2, - "type": "string" - }, - { - "type": "integer" - } - ], - "description": "Please provide a Research Organization Registry (ROR) identifier (see https://ror.org/) for your organisation.", - "examples": [ - "30f16703-28bc-4f45-9ce5-625d2d3db27d" - ], - "guidance": "**Example**: https://ror.org/053fq8t95\\nIf your organisation does not have a ROR identifier please use the \u201csuggest and institute\u201d function here: https://docs.google.com/forms/d/e/1FAIpQLSdJYaMTCwS7muuTa-B_CnAtCSkKzt19lkirAKG4u7umH9Nosg/viewform", - "title": "identifier" - }, - "name": { - "allOf": [ - { - "$ref": "#/$defs/OneHundredFiftyCharacters" - } - ], - "description": "The organisation responsible for running or supporting the data access request process, as well as publishing and maintaining the metadata.", - "examples": [ - "Health Data Research UK" - ], - "guidance": "In most this will be the same as the Team you have on the Gateway. However, in some cases this will be different. For example, Tissue Directory are a Team on the Gateway but coordinate activities across a number of Data Providers such as Cambridge Blood and Stem Cell Biobank.", - "title": "Name of Data Custodian" - }, - "logo": { - "anyOf": [ - { - "$ref": "#/$defs/Url" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please provide a logo associated with the Gateway Organisation using a valid URL. The following formats will be accepted .jpg, .png or .svg. If a logo is not submitted this will default to the logo for the team submitting the metadata.", - "title": "Organisation Logo" - }, - "description": { - "anyOf": [ - { - "$ref": "#/$defs/Description" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please provide a URL that describes the organisation. If a description is not provided this will default to the description of the team submitting the metadata.", - "title": "Organisation Description" - }, - "contactPoint": { - "anyOf": [ - { - "$ref": "#/$defs/EmailAddress" - }, - { - "items": { - "$ref": "#/$defs/EmailAddress" - }, - "type": "array" - } - ], - "description": "Organisation contact point(s) which will be used for receiving queries from HDR, and enquiries and data access requests from Researchers. If a contact point is not provided this will default to the contact point for the team submitting the metadata.", - "examples": [ - "test@test.co.uk" - ], - "title": "contact point" - }, - "memberOf": { - "anyOf": [ - { - "$ref": "#/$defs/MemberOfV2" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please indicate if the organisation is an Alliance Member or a Hub. If this field is not submitted this will default to the membership for the team submitting the metadata.", - "title": "Organisation Membership" - } - }, - "required": [ - "identifier", - "name", - "contactPoint" - ], - "title": "Organisation", - "type": "object" - }, - "Origin": { - "additionalProperties": false, - "properties": { - "purpose": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/PurposeV2" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please indicate the purpose(s) that the dataset was collected.", - "guidance": "- **Research cohort**: Data collected for a defined group of people.\\n- **Study**: Data collected for a specific research study.\\n- **Disease registry**: Data collected as part of a disease registry.\\n- **Trial**: Data collected for as part of a clinical trial.\\n- **Care**: Data collected as part of routine clinical care.\\n- **Audit**: Data collected as part of an audit programme.\\n- **Administrative**: Data collected for administrative and management information purposes.\\n- **Financial**: Data collected either for payments or for billing.\\n- **Statutory**: Data collected in compliance with statutory requirements.\\n- **Other**: Data collected for other purpose.", - "title": "Purpose of dataset collection" - }, - "datasetType": { - "description": "The topic areas to which the dataset content relates.", - "examples": [ - "Health and disease" - ], - "guidance": "Types include those listed below. Datasets can have more than one type associated.\\n- **Health and disease**: Includes any data related to mental health, cardiovascular, cancer, rare diseases, metabolic and endocrine, neurological, reproductive, maternity and neonatology, respiratory, immunity, musculoskeletal, vision, renal and urogenital, oral and gastrointestinal, cognitive function or hearing.\\n- **Treatments/Interventions**: Includes any data related to treatment or interventions related to vaccines or which are preventative or therapeutic in nature.\\n- **Measurements/Tests**: Includes any data related to laboratory or other diagnostics.\\n- **Imaging types**: Includes any data related to CT, MRI, PET, x-ray, ultrasound or pathology imaging.\\n- **Imaging area of the body**: Indicates whether the dataset relates to head, chest, arm abdomen or leg imaging.\\n- **Omics**: Includes any data related to proteomics, transcriptomics, epigenomics, metabolomics, multiomics, metagenomics or genomics.\\n- **Socioeconomic**: Includes any data related to education, crime and justice, ethnicity, housing, labour, ageing, economics, marital status, social support, deprivation, religion, occupation, finances or family circumstances.\\n- **Lifestyle**: Includes any data related to smoking, physical activity, dietary habits or alcohol.\\n- **Registry**: Includes any data related to disease registries for research, national disease registries, audits, or birth and deaths records.\\n- **Environment and energy**: Includes any data related to the monitoring or study of environmental or energy factors or events.\\n- **Information and communication**: Includes any data related to the study or application of information and communication.\\n- **Politics**: Includes any data related to political views, activities, voting, etc.", - "items": { - "anyOf": [ - { - "$ref": "#/$defs/HealthAndDisease" - }, - { - "$ref": "#/$defs/TreatmentsInterventions" - }, - { - "$ref": "#/$defs/MeasurementsTests" - }, - { - "$ref": "#/$defs/ImagingTypes" - }, - { - "$ref": "#/$defs/ImagingAreaOfTheBody" - }, - { - "$ref": "#/$defs/OmicsDataType" - }, - { - "$ref": "#/$defs/Socioeconomic" - }, - { - "$ref": "#/$defs/Lifestyle" - }, - { - "$ref": "#/$defs/Registry" - }, - { - "$ref": "#/$defs/EnvironmentAndEnergy" - }, - { - "$ref": "#/$defs/InformationAndCommunication" - }, - { - "$ref": "#/$defs/Politics" - } - ] - }, - "title": "Dataset type", - "type": "array" - }, - "source": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/SourceV2" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please indicate the source of the data extraction.", - "guidance": " - **EPR**: Data Extracted from Electronic Patient Record.\\n- **Electronic survey**: Data has been extracted from electronic surveys.\\n- **LIMS**: Data has been extracted from a laboratory information management system.\\n- **Paper-based**: Data has been extracted from paper forms.\\n- **Free text NLP**: Data has been extracted from unstructured freetext using natural language processing.\\n- **Machine generated**: Data has been machine generated i.e. imaging.\\n- **Other**: Data has been extracted by other means.", - "title": "Source of data extraction" - }, - "collectionSource": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/SettingV2" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please indicate the setting(s) where data was collected. Multiple settings may be provided.", - "guidance": "- **Cohort, study, trial**: Cohort, study or trial data collection as part of protocol.\\n- **Clinic**: Specific clinic such as antenatal clinic.\\n- **Primary care - Referrals**: General medical practitioner referral to another service.\\n- **Primary care - Clinic**: General medical practitioner practice.\\n- **Primary care - Out of hours**: General medical practitioner care or advice outside of standard hours.\\n- **Secondary care - Accident and emergency**: Accident emergency department.\\n- **Secondary care - Outpatients**: Outpatient care.\\n- **Secondary care - In-patients**: In-patient care.\\n- **Secondary care - Ambulance**: Care provided in association with ambulance service.\\n- **Secondary care - ICU**: Intensive care units, also referred to as critical care units (CCUs) or intensive therapy units (ITUs).\\n- **Prescribing - Community pharmacy**: Pharmacy based in the community.\\n- **Prescribing - Community pharmacy**: Pharmacy based in a hospital setting.\\n- **Patient report outcome**: Reported by patient.\\n- **Wearables**: Data collection devices worn on the body.\\n- **Local authority**: Local authority or entity associated with a local authority.\\n- **National government**: National government or entity associated with the national government.\\n- **Community**: Community settings.\\n- **Services**: Services such as drug misuse or blood transfusion.\\n- **Home**: Home setting.\\n- **Private**: Private medical clinic.\\n- **Social care - Health care at home**: service provided in the home or residence of a person.\\n- **Social care - Other social data**: service provided in a setting outside of the person's home or residence.\\n- **Census**: collected as part of census.\\n- **Other**: Other setting.", - "title": "Collection source setting" - }, - "imageContrast": { - "anyOf": [ - { - "$ref": "#/$defs/Ternary" - }, - { - "type": "null" - } - ], - "default": "Not stated", - "description": "Indicate whether usage of imaging contrast is captured within the dataset.", - "guidance": "If any contrast media or contrast agents were used in creating the images within the dataset and the contrast is known, mark 'Yes'. If this information is not known or not captured, indicate 'Not stated'. If there was no contrast used in the images, mark 'No'.", - "title": "Image contrast" - } - }, - "required": [ - "datasetType" - ], - "title": "Origin", - "type": "object" - }, - "PeriodicityV2": { - "enum": [ - "Static", - "Irregular", - "Continuous", - "Biennial", - "Annual", - "Biannual", - "Quarterly", - "Bimonthly", - "Monthly", - "Biweekly", - "Weekly", - "Twice a week", - "Daily", - "Other", - null - ], - "title": "PeriodicityV2" - }, - "Pipeline": { - "enum": [ - "Available", - "Not available" - ], - "title": "Pipeline", - "type": "string" - }, - "Platform": { - "enum": [ - "Other", - "NMR Nightingale", - "Metabolon", - "Biocrates", - "Illumina", - "Oxford Nanopore", - "454", - "Hi-C", - "HiFi" - ], - "title": "Platform", - "type": "string" - }, - "Politics": { - "properties": { - "name": { - "Literal": true, - "default": "Politics", - "title": "Name", - "type": "string" - }, - "subTypes": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/NotApplicableSubTypes" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "title": "Subtypes" - } - }, - "required": [ - "subTypes" - ], - "title": "Politics", - "type": "object" - }, - "Provenance": { - "additionalProperties": false, - "properties": { - "origin": { - "anyOf": [ - { - "$ref": "#/$defs/Origin" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Coverage by origin (geographical and situations).", - "title": "Origin Coverage" - }, - "temporal": { - "allOf": [ - { - "$ref": "#/$defs/Temporal" - } - ], - "description": "Dates and other temporal coverage information.", - "title": "Temporal Coverage" - } - }, - "required": [ - "temporal" - ], - "title": "Provenance", - "type": "object" - }, - "PurposeV2": { - "enum": [ - "Research cohort", - "Study", - "Disease registry", - "Trial", - "Care", - "Audit", - "Administrative", - "Financial", - "Statutory", - "Other", - null - ], - "title": "PurposeV2" - }, - "Registry": { - "properties": { - "name": { - "Literal": true, - "default": "Registry", - "title": "Name", - "type": "string" - }, - "subTypes": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/RegistrySubTypes" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "title": "Subtypes" - } - }, - "required": [ - "subTypes" - ], - "title": "Registry", - "type": "object" - }, - "RegistrySubTypes": { - "enum": [ - "Disease registry (research)", - "National disease registries and audits", - "Births and deaths", - "Others" - ], - "title": "RegistrySubTypes", - "type": "string" - }, - "Revision": { - "additionalProperties": false, - "properties": { - "version": { - "allOf": [ - { - "$ref": "#/$defs/Semver" - } - ], - "description": "Version number used for previous version of this dataset", - "examples": [ - "6.0.0" - ], - "title": "revision version" - }, - "url": { - "anyOf": [ - { - "$ref": "#/$defs/Url" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Some url with a reference to the record of a previous version of this dataset", - "examples": [ - "https://api.service.nhs.uk/health-research-data-catalogue/datasetrevisions/841f7da2-b018-41f6-b4ae-2e0aadab6561" - ], - "title": "revision url" - } - }, - "required": [ - "version" - ], - "title": "Revision", - "type": "object" - }, - "Semver": { - "pattern": "^([0-9]+)\\.([0-9]+)\\.([0-9]+)$", - "title": "Semver", - "type": "string" - }, - "SettingV2": { - "enum": [ - "Cohort, study, trial", - "Clinic", - "Primary care - Referrals", - "Primary care - Clinic", - "Primary care - Out of hours", - "Secondary care - Accident and Emergency", - "Secondary care - Outpatients", - "Secondary care - In-patients", - "Secondary care - Ambulance", - "Secondary care - ICU", - "Prescribing - Community pharmacy", - "Prescribing - Hospital", - "Patient report outcome", - "Wearables", - "Local authority", - "National government", - "Community", - "Services", - "Home", - "Private", - "Social care - Health care at home", - "Social care - Other social data", - "Census", - "Other", - null - ], - "title": "SettingV2" - }, - "ShortDescription": { - "anyOf": [ - { - "maxLength": 1000, - "minLength": 2, - "type": "string" - }, - { - "type": "null" - } - ], - "title": "ShortDescription" - }, - "Socioeconomic": { - "properties": { - "name": { - "Literal": true, - "default": "Socioeconomic", - "title": "Name", - "type": "string" - }, - "subTypes": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/SocioeconomicSubTypes" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "title": "Subtypes" - } - }, - "required": [ - "subTypes" - ], - "title": "Socioeconomic", - "type": "object" - }, - "SocioeconomicSubTypes": { - "enum": [ - "Education", - "Crime and justice", - "Ethnicity", - "Housing", - "Labour", - "Ageing", - "Economics", - "Marital status", - "Social support", - "Deprivation", - "Religion", - "Occupation", - "Finances", - "Family circumstance", - "Others" - ], - "title": "SocioeconomicSubTypes", - "type": "string" - }, - "SourceV2": { - "enum": [ - "EPR", - "Electronic survey", - "LIMS", - "Paper-based", - "Free text NLP", - "Machine generated", - "Other" - ], - "title": "SourceV2", - "type": "string" - }, - "StandardisedDataModelsEnumV2": { - "enum": [ - "BNF", - "HL7 FHIR", - "HL7 V2", - "HL7 CDA", - "HL7 CCOW", - "LOINC", - "DDI", - "DCAT", - "DICOM", - "I2B2", - "IHE", - "OMOP", - "OPENEHR", - "SENTINEL", - "PCORNET", - "CDISC", - "LOCAL", - "OTHER", - "NHS DATA DICTIONARY", - "NHS SCOTLAND DATA DICTIONARY", - "NHS WALES DATA DICTIONARY" - ], - "title": "StandardisedDataModelsEnumV2", - "type": "string" - }, - "StatisticalPopulationConstrainedV2": { - "enum": [ - "Persons", - "Events", - "Findings", - "Number of scans per modality" - ], - "title": "StatisticalPopulationConstrainedV2", - "type": "string" - }, - "StructuralMetadata": { - "additionalProperties": false, - "properties": { - "tables": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/DataTable" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Tables in the dataset", - "title": "Tables" - }, - "syntheticDataWebLink": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/Url" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please provide the website address(es) with information on your synthetic dataset creation, or the location where a synthetic version of the dataset can be accessed.\\n- Please split your existing list of citations into separate fields.\\n- To add multiple entries, select from the drop-down list, or add to the drop-down. Click the 'x' symbol to remove any entries.\\n- **Example**: https://www.pioneerdatahub.co.uk/dataset/synthetic-dataset-patients-at-risk-of-sudden-death-hypertrophic-cardiomyopathy/", - "title": "Synthetic data web links" - } - }, - "title": "StructuralMetadata", - "type": "object" - }, - "Summary": { - "additionalProperties": false, - "properties": { - "title": { - "allOf": [ - { - "$ref": "#/$defs/OneHundredFiftyCharacters" - } - ], - "description": "Title of the dataset limited to 150 characters. It should provide a short description of the dataset and be unique across the gateway. If your title is not unique, please add a prefix with your organisation name or identifier to differentiate it from other datasets within the Gateway. Good titles should summarise the content of the dataset and if relevant, the region the dataset covers.", - "examples": [ - "North West London COVID-19 Patient Level Situation Report", - "Scottish Morbidity Record (SMR)" - ], - "guidance": "- The **title** should provide a short description of the dataset and be **unique** across the gateway.\\n- If your title is not unique, please **add a prefix with your organisation name or identifier** to differentiate it from other datasets within the Gateway.\\n- If an accronym is widely used the dataset name, please add it in brackets () at the end of the title.\\n- Good titles should summarise the content of the dataset and if relevant, **the region the dataset covers**.\\n- **Example**: North West London COVID-19 Patient Level Situation Report", - "title": "Title" - }, - "abstract": { - "allOf": [ - { - "$ref": "#/$defs/AbstractText" - } - ], - "description": "Provide a clear and brief descriptive signpost for researchers who are searching for data that may be relevant to their research. The abstract should allow the reader to determine the scope of the data collection and accurately summarise its content. The optimal length is one paragraph (limited to 255 characters) and effective abstracts should avoid long sentences and abbreviations where possible.", - "examples": [ - "CPRD Aurum contains primary care data contributed by General Practitioner (GP) practices using EMIS Web\u00ae including patient registration information and all care events that GPs have chosen to record as part of their usual medical practice." - ], - "guidance": "- The abstract should provide a **clear and brief descriptive** signpost for researchers who are searching for data that may be relevant to their research.\\n- The abstract should allow the reader to determine the **scope of the data collection and accurately summarise its content**.\\n- Effective abstracts should **avoid long sentences and abbreviations** where possible.\\n- **Note**: Researchers will view Titles and the first line of Abstracts (list view) when searching for datasets and choosing whether to explore their content further.\\n- **Abstracts should be different from the full description** for a dataset.\\n- **Example**: CPRD Aurum contains primary care data contributed by General Practitioner (GP) practices using EMIS Web\u00ae including patient registration information and all care events that GPs have chosen to record as part of their usual medical practice.", - "title": "Dataset abstract" - }, - "dataCustodian": { - "allOf": [ - { - "$ref": "#/$defs/Organisation" - } - ], - "description": "This is the organisation responsible for running or supporting the data access request process, as well as enquiries about a dataset. In most this will be the same as the HDR UK Organisation (Hub or Alliance Member). However, in some cases this will be different i.e. Tissue Directory are an HDR UK Gateway organisation but coordinate activities across a number of data publishers i.e. Cambridge Blood and Stem Cell Biobank.", - "title": "Dataset Custodian" - }, - "populationSize": { - "description": "Input the number of people captured within the dataset.", - "examples": [ - 1000 - ], - "guidance": "This number informs a filter for Researchers to differentiate dataset search results based on the number of people in the dataset, and does not pull from the **Observations** fields. The filter also allows for Researchers to search datasets which have no population size reported, but will **not** pull any population size captured in the **Observations** section.", - "title": "Dataset population size", - "type": "integer" - }, - "keywords": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/OneHundredFiftyCharacters" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please provide a list of relevant and specific keywords that can improve the search engine optimisation (SEO) of your dataset as a comma separated list. Notes: Onboarding portal will suggest keywords based on title, abstract and description. We are compiling a standardised list of keywords and synonyms across datasets to make filtering easier for users.", - "examples": [ - "Outpatient Care", - "Socioeconomic Deprivation", - "Infant Morbidity", - "Learning disability", - "Primary Care Prescription", - "Accident and Emergency Admissions" - ], - "guidance": "- Please provide **relevant** and **specific keywords** that can **improve the search engine optimization** of your dataset.\\n- Please **enter one keyword at a time** and click **Add New Field** to add further keywords.\\n- Text from the title is automatically included in the search, there is no need to include this in the keywords.\\n- Include words that researcher may include in their searches.", - "title": "Keywords" - }, - "doiName": { - "anyOf": [ - { - "$ref": "#/$defs/Doi" - }, - { - "type": "null" - } - ], - "default": null, - "description": "DOI associated to this dataset. Find out more about DOIs here: [https://www.doi.org/the-identifier/what-is-a-doi/](https://www.doi.org/the-identifier/what-is-a-doi/)", - "examples": [ - "10.1093/ije/dyx196" - ], - "guidance": "- Please note: This is **not** the DOI of the publication(s) associated with the dataset.\\n- All HDR UK registered **datasets** should either have a **(DOI)** or be working towards obtaining one.\\n- If a DOI is available, please provide the DOI.\\n- **What happens if I do not have a DOI?**: Contact your academic organisation to find out if there is an existing relationship with a DOI provider. If that is not available, sites such as figshare offer free services to mint a DOI for your dataset. Subsequent versions of the Metadata Exchange will provide a DOI minting service.", - "title": "Digital Object Identifier (DOI) for dataset" - }, - "contactPoint": { - "allOf": [ - { - "$ref": "#/$defs/EmailAddress" - } - ], - "description": "Please provide a valid email address that can be used to coordinate data access requests.", - "examples": [ - "gateway@hdruk.ac.uk" - ], - "guidance": "Organisations are expected to provide a dedicated email address associated with the data access request process. If no contact point is provided in this field, this field will be defaulted to the teams support email provided in the teams setting.\\n**Note:** An employee's email address can only be provided on a temporary basis and if one is provided, **you must obtain explicit consent for this purpose**.", - "title": "Contact point" - }, - "datasetAliases": { - "anyOf": [ - { - "$ref": "#/$defs/CommaSeparatedValues" - }, - { - "items": { - "anyOf": [ - { - "$ref": "#/$defs/ShortDescription" - }, - { - "type": "null" - } - ] - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Dataset & BioSample alias or alternate names.", - "guidance": "Alternate name, acronym or other identifier for the Dataset and/or BioSamples.", - "title": "Dataset & BioSample alias" - } - }, - "required": [ - "title", - "abstract", - "dataCustodian", - "populationSize", - "contactPoint" - ], - "title": "Summary", - "type": "object" - }, - "Temporal": { - "additionalProperties": false, - "properties": { - "publishingFrequency": { - "allOf": [ - { - "$ref": "#/$defs/PeriodicityV2" - } - ], - "description": "Please indicate the frequency of distribution release. If a dataset is distributed regularly please choose a distribution release periodicity from the constrained list and indicate the next release date. When the release date becomes historical, a new release date will be calculated based on the publishing periodicity. If a dataset has been published and will remain static please indicate that it is static and indicated when it was released. If a dataset is released on an irregular basis or \u201con-demand\u201d please indicate that it is Irregular and leave release date as null. If a dataset can be published in real-time or near-real-time please indicate that it is continuous and leave release date as null. Notes: see https://www.dublincore.org/specifications/dublin-core/collection-description/frequency/", - "examples": [ - "Continuous" - ], - "guidance": "Please indicate the frequency of publishing.\\n- If a dataset is published regularly please choose a publishing periodicity from the constrained list and indicate the next release date.\\n- When the release date becomes historical, a new release date will be calculated based on the publishing periodicity.\\n- If a dataset has been published and will remain static please indicate that it is static and indicate when it was released.\\n- If a dataset is released on an irregular basis or \u201con-demand\u201d please indicate that it is Irregular and leave release date as null.\\n- If a dataset can be published in real-time or near-real-time please indicate that it is continuous and leave release date as null.\\n- Notes: see https://www.dublincore.org/specifications/dublin-core/collection-description/frequency/.\\n\\n Options:\\n- **Static**: Dataset published once.\\n- **Irregular**: Dataset published at uneven intervals.\\n- **Continuous**: Dataset published without interruption.\\n- **Biennial**: Dataset published every two years.\\n- **Annual**: Dataset published occurs once a year.\\n- **Biannual**: Dataset published twice a year.\\n- **Quarterly**: Dataset published every three months.\\n- **Bimonthly**: Dataset published every two months.\\n- **Monthly**: Dataset published once a month.\\n- **Biweekly**: Dataset published every two weeks.\\n- **Weekly**: Dataset published once a week.\\n- **Twice weekly**: Dataset published twice a week.\\n- **Daily**: Dataset published once a day.\\n- **Other**: Dataset published using other interval.", - "title": "Publishing frequency" - }, - "distributionReleaseDate": { - "anyOf": [ - { - "format": "date", - "type": "string" - }, - { - "format": "date-time", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Date of the latest release of the dataset. If this is a regular release i.e. quarterly, or this is a static dataset please complete this alongside Periodicity. If this is Irregular or Continuously released please leave this blank. Notes: Periodicity and release date will be used to determine when the next release is expected. E.g. if the release date is documented as 01/01/2020 and it is now 20/04/2020 and there is a quarterly release schedule, the latest release will be calculated as 01/04/2020.", - "examples": [ - "2024-10-24T00:00:00.000Z" - ], - "guidance": "- Please indicate the frequency the dataset is published.\\n- If a dataset is published regularly please choose a publishing periodicity from the constrained list and indicate the next release date.\\n- When the release date becomes historical, a new release date will be calculated based on the publishing periodicity.\\n- If a dataset has been published and will remain static please indicate that it is static and indicate when it was released.\\n- If a dataset is released on an irregular basis or \u201con-demand\u201d please indicate that it is Irregular and leave release date as null.\\n- If a dataset can be published in real-time or near-real-time please indicate that it is continuous and leave release date as null.\\n- Notes: see [https://www.dublincore.org/specifications/dublin-core/collection-description/frequency/](https://www.dublincore.org/specifications/dublin-core/collection-description/frequency/)", - "title": "Distribution release date" - }, - "startDate": { - "anyOf": [ - { - "format": "date", - "type": "string" - }, - { - "format": "date-time", - "type": "string" - } - ], - "description": "The start of the time period that the dataset provides coverage for. If there are multiple cohorts in the dataset with varying start dates, please provide the earliest date and use the description or the media attribute to provide more information.", - "examples": [ - "2024-10-24T00:00:00.000Z" - ], - "guidance": "- The start of the time period that the dataset provides coverage for.\\n- If there are multiple cohorts in the dataset with varying start dates, please provide the earliest date and use the description or the media attribute to provide more information.", - "title": "Start date" - }, - "endDate": { - "anyOf": [ - { - "format": "date", - "type": "string" - }, - { - "format": "date-time", - "type": "string" - }, - { - "$ref": "#/$defs/EndDateEnum" - }, - { - "type": "null" - } - ], - "default": null, - "description": "The end of the time period that the dataset provides coverage for. If the dataset is \u201cContinuous\u201d and has no known end date, please state continuous. If there are multiple cohorts in the dataset with varying end dates, please provide the latest date and use the description or the media attribute to provide more information.", - "examples": [ - "2024-10-24T00:00:00.000Z" - ], - "guidance": "- The end of the time period that the dataset provides coverage for.\\n- If the dataset is **\u201cContinuous\u201d** and has no known end date, **please leave blank**.\\n- If there are **multiple cohorts** in the dataset with varying end dates, please provide the **latest date**.", - "title": "End date" - }, - "timeLag": { - "allOf": [ - { - "$ref": "#/$defs/TimeLagV2" - } - ], - "description": "Please indicate the typical time-lag between an event and the data for that event appearing in the dataset.", - "examples": [ - "Not applicable" - ], - "guidance": "Please indicate the typical time-lag between an event and the data for that event appearing in the dataset.\\n- **Less than 1 week**: Typical time lag of less than a week.\\n- **1-2 weeks**: Typical time-lag of one to two weeks.\\n- **2-4 weeks**: Typical time-lag of two to four weeks.\\n- **1-2 months**: Typical time-lag of one to two months.\\n- **2-6 months**: Typical time-lag of two to six months.\\n- **6 months plus**: Typical time-lag of more than six months.\\n- **Variable**: Variable time-lag.\\n- **Not applicable**: Not Applicable i.e. static dataset.\\n- **Other**: Other time-lag.", - "title": "Time lag" - } - }, - "required": [ - "publishingFrequency", - "startDate", - "timeLag" - ], - "title": "Temporal", - "type": "object" - }, - "Ternary": { - "enum": [ - "Yes", - "No", - "Not stated" - ], - "title": "Ternary", - "type": "string" - }, - "TimeLagV2": { - "enum": [ - "Less than 1 week", - "1-2 weeks", - "2-4 weeks", - "1-2 months", - "2-6 months", - "More than 6 months", - "Variable", - "Not applicable", - "Other" - ], - "title": "TimeLagV2", - "type": "string" - }, - "TreatmentsInterventions": { - "properties": { - "name": { - "Literal": true, - "default": "Treatments/Interventions", - "title": "Name", - "type": "string" - }, - "subTypes": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/TreatmentsInterventionsSubTypes" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "title": "Subtypes" - } - }, - "required": [ - "subTypes" - ], - "title": "TreatmentsInterventions", - "type": "object" - }, - "TreatmentsInterventionsSubTypes": { - "enum": [ - "Vaccines", - "Preventive", - "Therapeutic", - "Others" - ], - "title": "TreatmentsInterventionsSubTypes", - "type": "string" - }, - "Url": { - "anyOf": [ - { - "format": "uri", - "minLength": 1, - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Url" - }, - "Usage": { - "additionalProperties": false, - "properties": { - "dataUseLimitation": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/DataUseLimitationV2" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please provide an indication of consent permissions for datasets and/or materials, and relates to the purposes for which datasets and/or material might be removed, stored or used. NOTE: we have extended the Data Use Ontology to include a value for NO LINKAGE.", - "guidance": "Please provide an indication of consent permissions for datasets and/or materials, and relates to the purposes for which datasets and/or material might be removed, stored or used.\\n- **General research use**: This data use limitation indicates that use is allowed for general research use for any research purpose.\\n- **Genetic studies only**: This data use limitation indicates that use is limited to genetic studies only (i.e., no phenotype-only research).\\n- **No general methods research**: This data use limitation indicates that use includes methods development research(e.g., development of software or algorithms) only within the bounds of other use limitations.\\n- **No restriction**: This data use limitation indicates there is no restriction on use.\\n- **Research-specific restrictions**: This data use limitation indicates that use is limited to studies of a certain research type.\\n- **Research use only**: This data use limitation indicates that use is limited to research purposes (e.g., does not include its use in clinical care).\\n- **No linkage**: This data use limitation indicates there is a restriction on linking to any other datasets", - "title": "Data use limitation" - }, - "dataUseRequirements": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/DataUseRequirementsV2" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please indicate fit here are any additional conditions set for use if any, multiple requirements may be provided. Please ensure that these restrictions are documented in access rights information.", - "guidance": "- Please indicate if there are any additional conditions set for use if any, multiple requirements may be provided.\\n- Please ensure that these restrictions are documented in access rights information.\\n- **Collaboration required**: This requirement indicates that the requestor must either agree to join a research consortium or collaborate with the primary study investigator(s).\\n- **Ethics approval required**: This requirement indicates that the requestor must provide documentation of local institutional review board (IRB)/ ethics review board (ERB) approval.\\n- **Geographical restrictions**: This requirement indicates that use is limited to within a specific geographic region.\\n- **Institution-specific restrictions**: This requirement indicates that use is limited to use within an approved institution.\\n- **Not for profit use**: This requirement indicates that use of the data is limited to not-for-profit organizations and not-for-profit use, non-commercial use.\\n- **Project-specific restrictions**: This requirement indicates that use is limited to use within an approved project.\\n- **Publication moratorium**: This requirement indicates that requestor agrees not to publish results of studies until a specific date.\\n- **Publication required**: This requirement indicates that requestor agrees to make results of studies using the data available to the larger scientific community.\\n- **Return to database or resource**: This requirement indicates that the requestor must return derived/enriched data to the database/resource.\\n- **Time limit on use**: This requirement indicates that use is approved for a specific number of months.\\n- **User-specific restriction**: This requirement indicates that use is limited to use by approved users.", - "title": "Data use requirements" - }, - "resourceCreator": { - "anyOf": [ - { - "$ref": "#/$defs/ShortDescription" - }, - { - "items": { - "anyOf": [ - { - "$ref": "#/$defs/ShortDescription" - }, - { - "type": "null" - } - ] - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Please provide the text that you would like included as part of any citation that credits this dataset. This is typically just the name of the publisher. No employee details should be provided.", - "examples": [ - "National Services Scotland" - ], - "guidance": "- Please provide the text that you would like included as part of any citation that credits this dataset.\\n- This is typically just the name of the publisher. No employee details should be provided.\\n- To add multiple entries, please click on **'+' symbol** to enter each separate website.\\n- **Example**: National Services Scotland", - "title": "Citation requirements" - }, - "dataUsePermissions": { - "anyOf": [ - { - "$ref": "#/$defs/DataUsePermissions" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Permissions relating to how people and materials within this dataset may be used, beyond the general access and use conditions described elsewhere in this section.", - "title": "Data Use Permissions" - }, - "duoCodes": { - "anyOf": [ - { - "items": { - "$ref": "#/$defs/DuoCodesEnum" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Machine-readable codes from the GA4GH Data Use Ontology describing the permitted or restricted uses of this dataset, for interoperability with other GA4GH-compliant systems.", - "examples": [ - "DUO:0000042" - ], - "guidance": "Please select any GA4GH Data Use Ontology (DUO) codes that describe the permitted or restricted uses of this dataset, e.g. DUO:0000042 (general research use), DUO:0000021 (ethics approval required). Multiple codes may apply to the same dataset. This is separate from Data use limitation/Data use requirements above, which use HDR UK's own free-text categories rather than the GA4GH ontology's identifiers.", - "title": "GA4GH Data Use Ontology (DUO) codes" - } - }, - "title": "Usage", - "type": "object" - }, - "Uuidv4": { - "maxLength": 36, - "minLength": 36, - "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", - "title": "Uuidv4", - "type": "string" - }, - "YesNo": { - "enum": [ - "Yes", - "No" - ], - "title": "YesNo", - "type": "string" - } - }, - "additionalProperties": false, - "properties": { - "identifier": { - "anyOf": [ - { - "$ref": "#/$defs/Uuidv4" - }, - { - "$ref": "#/$defs/Url" - }, - { - "type": "null" - } - ], - "description": "System dataset identifier.", - "examples": [ - "226fb3f1-4471-400a-8c39-2b66d46a39b6", - "https://web.www.healthdatagateway.org/dataset/226fb3f1-4471-400a-8c39-2b66d46a39b6" - ], - "guidance": "N/A", - "title": "Dataset identifier" - }, - "version": { - "allOf": [ - { - "$ref": "#/$defs/Semver" - } - ], - "description": "Dataset metadata version.", - "examples": [ - "1.1.0" - ], - "guidance": "Dataset metadata version should follow standard SEMVER naming conventions (https://semver.org). For example: 1.1.0 major.minor.patch.\\nMajor: Significant/breaking changes.\\nMinor: New features and bug fixes.\\nPatch: Minor fixes without new features.", - "title": "Dataset Version" - }, - "revisions": { - "description": "A list of persistent identifiers and version numbers for previous versions of metadata for this dataset", - "items": { - "$ref": "#/$defs/Revision" - }, - "title": "Metadata Version Revisions", - "type": "array" - }, - "issued": { - "description": "Datetime stamp of when this metadata version was initially issued", - "examples": [ - "2024-10-24T00:00:00.000Z" - ], - "format": "date-time", - "title": "Metadata Issued Datetime", - "type": "string" - }, - "modified": { - "description": "Datetime stamp of when this metadata was last modified", - "examples": [ - "2024-10-24T00:00:00.000Z" - ], - "format": "date-time", - "title": "Last Modified Datetime", - "type": "string" - }, - "summary": { - "allOf": [ - { - "$ref": "#/$defs/Summary" - } - ], - "description": "Summary of metadata describing key pieces of information." - }, - "documentation": { - "anyOf": [ - { - "$ref": "#/$defs/Documentation" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Documentation can include a rich text description of the dataset or links to media such as documents, images, presentations, videos or links to data dictionaries, profiles or dashboards. Organisations are required to confirm that they have permission to distribute any additional media.", - "title": "Documentation" - }, - "coverage": { - "anyOf": [ - { - "$ref": "#/$defs/Coverage" - }, - { - "type": "null" - } - ], - "default": null, - "description": "This information includes attributes for geographical and temporal coverage, cohort details etc. to enable a deeper understanding of the dataset content so that researchers can make decisions about the relevance of the underlying data.", - "title": "Coverage" - }, - "provenance": { - "anyOf": [ - { - "$ref": "#/$defs/Provenance" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Provenance information allows researchers to understand data within the context of its origins and can be an indicator of quality, authenticity and timeliness.", - "title": "Provenance" - }, - "accessibility": { - "allOf": [ - { - "$ref": "#/$defs/Accessibility" - } - ], - "description": "Accessibility information allows researchers to understand access, usage, limitations, formats, standards and linkage or interoperability with toolsets." - }, - "enrichmentAndLinkage": { - "anyOf": [ - { - "$ref": "#/$defs/EnrichmentAndLinkage" - }, - { - "type": "null" - } - ], - "default": null, - "description": "This section includes information about related datasets that may have previously been linked, as well as indicating if there is the opportunity to link to other datasets in the future. If a dataset has been enriched and/or derivations, scores and existing tools are available this section allows providers to indicate this to researchers.", - "title": "Enrichment and Linkage" - }, - "observations": { - "description": "This section provides an overview of observations of your dataset linked to specific points in time. Multiple observations about the dataset are encouraged to be provided, including multiple observations of the same property at different timepoints. At least one observation is required.", - "items": { - "$ref": "#/$defs/Observation" - }, - "title": "Observations", - "type": "array" - }, - "structuralMetadata": { - "anyOf": [ - { - "$ref": "#/$defs/StructuralMetadata" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Descriptions of all tables and data elements that can be included in the dataset.", - "title": "Structural metadata" - }, - "demographicFrequency": { - "anyOf": [ - { - "$ref": "#/$defs/DemographicFrequency" - }, - { - "type": "null" - } - ], - "default": null, - "description": "The statistical characteristics of a population or group within the dataset.", - "title": "Demographic frequency" - }, - "omics": { - "anyOf": [ - { - "$ref": "#/$defs/Omics" - }, - { - "type": "null" - } - ], - "default": null, - "description": "Omics", - "title": "Omics" - } - }, - "required": [ - "identifier", - "version", - "revisions", - "issued", - "modified", - "summary", - "accessibility", - "observations" - ], - "title": "Hdruk410", - "type": "object" -} \ No newline at end of file diff --git a/.github/actions/gateway-publish/src/gateway_publish/validate.py b/.github/actions/gateway-publish/src/gateway_publish/validate.py deleted file mode 100644 index eddd289..0000000 --- a/.github/actions/gateway-publish/src/gateway_publish/validate.py +++ /dev/null @@ -1,58 +0,0 @@ -"""Offline validation against the HDR UK schemas bundled from HDRUK/schemata-2.""" - -import json -from collections.abc import Iterator -from importlib import resources -from typing import Any - -from jsonschema import Draft202012Validator -from jsonschema.exceptions import ValidationError - -DEFAULT_MODEL = "HDRUK" - - -def available_versions(model: str = DEFAULT_MODEL) -> list[str]: - root = resources.files("gateway_publish").joinpath("schemas", model) - return sorted(p.name for p in root.iterdir() if p.is_dir()) - - -def load_schema(version: str, model: str = DEFAULT_MODEL) -> dict[str, Any]: - path = resources.files("gateway_publish").joinpath("schemas", model, version, "schema.json") - if not path.is_file(): - raise ValueError( - f"No bundled schema for {model} {version}; available: {', '.join(available_versions(model))}" - ) - return json.loads(path.read_text()) - - -def validation_errors(metadata: dict[str, Any], version: str, model: str = DEFAULT_MODEL) -> list[str]: - """Return readable error messages, empty if the metadata is valid.""" - validator = Draft202012Validator(load_schema(version, model)) - messages: list[str] = [] - for error in sorted(validator.iter_errors(metadata), key=lambda e: list(map(str, e.absolute_path))): - for leaf in _specific_errors(error): - message = f"/{'/'.join(str(p) for p in leaf.absolute_path)}: {leaf.message}" - if message not in messages: - messages.append(message) - return messages - - -def _leaves(error: ValidationError) -> Iterator[ValidationError]: - if error.context: - for child in error.context: - yield from _leaves(child) - else: - yield error - - -def _specific_errors(error: ValidationError) -> list[ValidationError]: - """The deepest failures inside nested anyOfs, rather than " is not valid". - - The schemas wrap most fields in anyOf[, null], so the "is not of type 'null'" - branch failures are noise whenever another branch explains the problem. - """ - leaves = [e for e in _leaves(error) if not (e.validator == "type" and e.validator_value == "null")] - if not leaves: - return [error] - depth = max(len(e.absolute_path) for e in leaves) - return [e for e in leaves if len(e.absolute_path) == depth] diff --git a/.github/actions/gateway-publish/tests/conftest.py b/.github/actions/gateway-publish/tests/conftest.py index edcd3ed..935c4b4 100644 --- a/.github/actions/gateway-publish/tests/conftest.py +++ b/.github/actions/gateway-publish/tests/conftest.py @@ -1,11 +1,7 @@ -import json -from pathlib import Path - import pytest from gateway_publish.config import GatewayConfig -FIXTURES = Path(__file__).parent / "fixtures" APP_ID = "test-app-id-0123456789" CLIENT_ID = "test-client-id-9876543210" TEAM_ID = 42 @@ -27,7 +23,7 @@ def config(gateway_env) -> GatewayConfig: @pytest.fixture def example_metadata() -> dict: - return json.loads((FIXTURES / "example-hdruk410.json").read_text()) + return {"summary": {"title": "Example"}} @pytest.fixture(autouse=True) diff --git a/.github/actions/gateway-publish/tests/fixtures/dataset.golden.json b/.github/actions/gateway-publish/tests/fixtures/dataset.golden.json new file mode 100644 index 0000000..febd7ba --- /dev/null +++ b/.github/actions/gateway-publish/tests/fixtures/dataset.golden.json @@ -0,0 +1,115 @@ +{ + "identifier": null, + "version": "1.2.3", + "revisions": [], + "issued": "2026-01-02T03:04:05.000Z", + "modified": "2026-01-02T03:04:05.000Z", + "summary": { + "title": "Test Visits", + "abstract": "Made-up visits for testing.", + "contactPoint": "data.access@example.org", + "populationSize": -1, + "keywords": [ + "test" + ], + "dataCustodian": { + "identifier": "74", + "name": "Nottingham University Hospitals - NHS Trust", + "contactPoint": "data.access@example.org" + } + }, + "coverage": { + "spatial": "Nottinghamshire, England", + "typicalAgeRangeMin": 0, + "typicalAgeRangeMax": 110 + }, + "provenance": { + "origin": { + "datasetType": [ + { + "name": "Health and disease", + "subTypes": [] + } + ] + }, + "temporal": { + "publishingFrequency": "Quarterly", + "startDate": "2009-01-01", + "timeLag": "1-2 months" + } + }, + "accessibility": { + "access": { + "accessRights": "In Progress" + }, + "formatAndStandards": { + "vocabularyEncodingScheme": [ + "LOCAL" + ], + "conformsTo": [ + "LOCAL" + ], + "language": [ + "en" + ], + "format": [ + "CSV" + ] + } + }, + "observations": [], + "structuralMetadata": { + "tables": [ + { + "name": "Visit", + "description": "One row per hospital visit.", + "columns": [ + { + "name": "visit_id", + "dataType": "integer", + "description": "Visit identifier.", + "sensitive": false + }, + { + "name": "pseudo_nhs_number", + "dataType": "string", + "description": "Pseudonymised NHS number.", + "sensitive": true + }, + { + "name": "visit_date", + "dataType": "date", + "description": "Date of the visit.", + "sensitive": false + }, + { + "name": "outcome", + "dataType": "string", + "description": "How the visit ended.", + "sensitive": false, + "values": [ + { + "name": "01", + "description": "Discharged" + }, + { + "name": "02", + "description": "Admitted" + }, + { + "name": "99", + "description": null + } + ] + }, + { + "name": "note", + "dataType": "string", + "description": null, + "sensitive": false + } + ] + } + ] + } +} diff --git a/.github/actions/gateway-publish/tests/fixtures/demographics/gateway/gateway.yaml b/.github/actions/gateway-publish/tests/fixtures/dataset/gateway/gateway.yaml similarity index 100% rename from .github/actions/gateway-publish/tests/fixtures/demographics/gateway/gateway.yaml rename to .github/actions/gateway-publish/tests/fixtures/dataset/gateway/gateway.yaml diff --git a/.github/actions/gateway-publish/tests/fixtures/dataset/gateway/metadata.yaml b/.github/actions/gateway-publish/tests/fixtures/dataset/gateway/metadata.yaml new file mode 100644 index 0000000..5b0d43b --- /dev/null +++ b/.github/actions/gateway-publish/tests/fixtures/dataset/gateway/metadata.yaml @@ -0,0 +1,33 @@ +# Made-up catalogue fields for the test schema: the fields HDRUK 4.1.0 requires. +summary: + title: Test Visits + abstract: Made-up visits for testing. + contactPoint: data.access@example.org + populationSize: -1 + keywords: [test] + +coverage: + spatial: Nottinghamshire, England + typicalAgeRangeMin: 0 + typicalAgeRangeMax: 110 + +provenance: + origin: + datasetType: + - name: Health and disease + subTypes: [] + temporal: + publishingFrequency: Quarterly + startDate: "2009-01-01" + timeLag: 1-2 months + +accessibility: + access: + accessRights: In Progress + formatAndStandards: + vocabularyEncodingScheme: [LOCAL] + conformsTo: [LOCAL] + language: [en] + format: [CSV] + +observations: [] diff --git a/.github/actions/gateway-publish/tests/fixtures/dataset/schema.yaml b/.github/actions/gateway-publish/tests/fixtures/dataset/schema.yaml new file mode 100644 index 0000000..e561634 --- /dev/null +++ b/.github/actions/gateway-publish/tests/fixtures/dataset/schema.yaml @@ -0,0 +1,43 @@ +# A small LinkML schema covering each mapping case in build.structural_metadata. +id: https://example.org/test-dataset +name: test_dataset +imports: + - linkml:types +prefixes: + linkml: https://w3id.org/linkml/ +default_range: string + +classes: + Visit: + description: One row per hospital visit. + tree_root: true + slots: [visit_id, pseudo_nhs_number, visit_date, outcome, note] + NotPublished: + description: Not a tree_root, so not a table. + slots: [visit_id] + +slots: + visit_id: + description: Visit identifier. + range: integer + pseudo_nhs_number: + description: Pseudonymised NHS number. + annotations: + sensitivity: pseudonymised + visit_date: + description: Date of the visit. + range: date + outcome: + description: How the visit ended. + range: Outcome + note: + description: "" + +enums: + Outcome: + permissible_values: + "01": + description: Discharged + "02": + description: Admitted + "99": {} diff --git a/.github/actions/gateway-publish/tests/fixtures/demographics.golden.json b/.github/actions/gateway-publish/tests/fixtures/demographics.golden.json deleted file mode 100644 index 8c40025..0000000 --- a/.github/actions/gateway-publish/tests/fixtures/demographics.golden.json +++ /dev/null @@ -1,225 +0,0 @@ -{ - "identifier": null, - "version": "1.2.3", - "revisions": [], - "issued": "2026-01-02T03:04:05.000Z", - "modified": "2026-01-02T03:04:05.000Z", - "summary": { - "title": "NUH Pseudonymised Patient Demographics", - "abstract": "Pseudonymised demographic data for patients of Nottingham University Hospitals NHS Trust, including sex, gender identity, month of birth, date of death, ethnicity, marital status, religion, nationality and Lower Layer Super Output Area. Intended for linkage with NUH clinical research datasets.", - "contactPoint": "data.access@example.org", - "populationSize": -1, - "keywords": [ - "demographics", - "NHS", - "Nottingham", - "pseudonymised", - "linkage", - "ethnicity" - ], - "dataCustodian": { - "identifier": "74", - "name": "Nottingham University Hospitals - NHS Trust", - "contactPoint": "data.access@example.org" - } - }, - "documentation": { - "description": "One row per patient, pseudonymised for research use. Dates of birth are given as the first of the month, and home postcode is replaced by the Lower Layer Super Output Area. Coded fields (sex, gender identity, ethnicity, marital status, religion) are provided as both a code and its description, following the NHS Data Dictionary where one exists. Records carry ETL and pipeline run metadata. Access requires a data access request." - }, - "coverage": { - "spatial": "Nottinghamshire, England", - "typicalAgeRangeMin": 0, - "typicalAgeRangeMax": 110 - }, - "provenance": { - "origin": { - "purpose": [ - "Care" - ], - "source": [ - "EPR" - ], - "collectionSource": [ - "Secondary care - In-patients", - "Secondary care - Outpatients", - "Secondary care - Accident and Emergency" - ], - "datasetType": [ - { - "name": "Socioeconomic", - "subTypes": [ - "Ethnicity", - "Marital status", - "Religion" - ] - } - ] - }, - "temporal": { - "publishingFrequency": "Quarterly", - "startDate": "2009-01-01", - "timeLag": "1-2 months" - } - }, - "accessibility": { - "access": { - "accessRights": "In Progress", - "accessServiceCategory": "TRE/SDE", - "jurisdiction": [ - "GB-ENG" - ], - "dataController": "Nottingham University Hospitals NHS Trust" - }, - "formatAndStandards": { - "vocabularyEncodingScheme": [ - "NHS NATIONAL CODES" - ], - "conformsTo": [ - "NHS DATA DICTIONARY" - ], - "language": [ - "en" - ], - "format": [ - "CSV" - ] - } - }, - "observations": [], - "structuralMetadata": { - "tables": [ - { - "name": "CoreDemographics", - "description": "Pseudonymised patient demographic data (sex, DOB, ethnicity, LLSOA, etc.) for linkage with clinical datasets.", - "columns": [ - { - "name": "etl_id", - "dataType": "integer", - "description": "Internal identifier for the ETL batch run that loaded this record.", - "sensitive": false - }, - { - "name": "etl_date", - "dataType": "datetime", - "description": "Date and time the ETL process ran.", - "sensitive": false - }, - { - "name": "core_pid_published_runid", - "dataType": "integer", - "description": "pipeline meta data", - "sensitive": false - }, - { - "name": "ndo_run_date", - "dataType": "date", - "description": null, - "sensitive": false - }, - { - "name": "pseudo_nhs_number", - "dataType": "string", - "description": "The NHS NUMBER, the primary identifier of a PERSON, is a unique identifier for a PATIENT within the NHS in England and Wales. Pseudonymised for research use.", - "sensitive": true - }, - { - "name": "dob_first_of_month", - "dataType": "date", - "description": "First of month proxy date of birth.", - "sensitive": false - }, - { - "name": "deceased", - "dataType": "integer", - "description": "an integer code defining wether the participant is deceased", - "sensitive": false - }, - { - "name": "date_of_death", - "dataType": "date", - "description": "The date of the participant's death", - "sensitive": false - }, - { - "name": "sex", - "dataType": "string", - "description": "The sex of PATIENTS intended to use a WARD indicated in the WARD OPERATIONAL PLANS, with the addition of Home Leave.\nhttps://www.datadictionary.nhs.uk/data_elements/sex_of_patients_code.html", - "sensitive": false - }, - { - "name": "sex_desc", - "dataType": "string", - "description": "The sex of PATIENTS intended to use a WARD indicated in the WARD OPERATIONAL PLANS, with the addition of Home Leave.\nhttps://www.datadictionary.nhs.uk/data_elements/sex_of_patients_code.html", - "sensitive": false - }, - { - "name": "gender_identity", - "dataType": "string", - "description": "The gender identity of a PERSON as stated by the PERSON.\nhttps://www.datadictionary.nhs.uk/attributes/gender_identity_code.html", - "sensitive": false - }, - { - "name": "gender_identity_desc", - "dataType": "string", - "description": "The gender identity of a PERSON as stated by the PERSON.\nhttps://www.datadictionary.nhs.uk/attributes/gender_identity_code.html", - "sensitive": false - }, - { - "name": "admin_gender", - "dataType": "string", - "description": "a code detailing the patient's gender from and administrative perspective", - "sensitive": false - }, - { - "name": "ethnicity", - "dataType": "string", - "description": "The ethnicity of a PERSON, as specified by the PERSON.", - "sensitive": false - }, - { - "name": "ethnicity_desc", - "dataType": "string", - "description": "The ethnicity of a PERSON, as specified by the PERSON.", - "sensitive": false - }, - { - "name": "marital_status", - "dataType": "string", - "description": "An indicator to identify the legal marital status of a PERSON.\nhttps://www.datadictionary.nhs.uk/data_elements/person_marital_status.html", - "sensitive": false - }, - { - "name": "marital_status_desc", - "dataType": "string", - "description": "An indicator to identify the legal marital status of a PERSON.\nhttps://www.datadictionary.nhs.uk/data_elements/person_marital_status.html", - "sensitive": false - }, - { - "name": "religion", - "dataType": "string", - "description": "The RELIGIOUS OR OTHER BELIEF SYSTEM AFFILIATION of a PERSON , as specified by a PERSON .\nhttps://archive.datadictionary.nhs.uk/DD%20Release%20May%202024/attributes/religious_or_other_belief_system_affiliation_code.html", - "sensitive": false - }, - { - "name": "religion_desc", - "dataType": "string", - "description": "The RELIGIOUS OR OTHER BELIEF SYSTEM AFFILIATION of a PERSON , as specified by a PERSON .\nhttps://archive.datadictionary.nhs.uk/DD%20Release%20May%202024/attributes/religious_or_other_belief_system_affiliation_code.html", - "sensitive": false - }, - { - "name": "nationality", - "dataType": "string", - "description": "a text description of the patient's nationality", - "sensitive": false - }, - { - "name": "llsoa", - "dataType": "string", - "description": "Lower Layer Super Output Area, derived from PATIENT POSTCODE for geographic analysis while preserving patient privacy.", - "sensitive": false - } - ] - } - ] - } -} diff --git a/.github/actions/gateway-publish/tests/fixtures/demographics/demographics.yaml b/.github/actions/gateway-publish/tests/fixtures/demographics/demographics.yaml deleted file mode 100644 index bf9bfef..0000000 --- a/.github/actions/gateway-publish/tests/fixtures/demographics/demographics.yaml +++ /dev/null @@ -1,267 +0,0 @@ -id: https://health-informatics-uon.github.io/nuh-data/datasets/demographics -name: demographics -title: demographics -description: >- - demographics - -license: demographics - -created_by: https://github.com/Health-Informatics-UoN - -annotations: - data_custodian: Nottingham University Hospitals NHS Trust - created_by_name: Nottingham University Hospitals NHS Trust - geographic_coverage: Nottinghamshire, England - data_standards: OTHER - access_request_type: Data Access Request - access_status: In Progress - -keywords: - - NHS - - Nottingham - - clinical - -prefixes: - linkml: https://w3id.org/linkml/ - SNOMED: http://snomed.info/id/ - ICD: http://id.who.int/icd/entity/ - OPCS: https://datadictionary.nhs.uk/attributes/opcs_code/ - NICIP: https://www.datadictionary.nhs.uk/nhs_business_definitions/nicip_code/ - dmd: https://dmd.nhs.uk/concept/ - -default_prefix: demographics -default_range: string - -imports: - - linkml:types - -classes: - CoreDemographics: - description: >- - Pseudonymised patient demographic data (sex, DOB, ethnicity, LLSOA, etc.) for linkage with clinical datasets. - tree_root: true - slots: - - etl_id - - etl_date - - core_pid_published_runid - - ndo_run_date - - pseudo_nhs_number - - dob_first_of_month - - deceased - - date_of_death - - sex - - sex_desc - - gender_identity - - gender_identity_desc - - admin_gender - - ethnicity - - ethnicity_desc - - marital_status - - marital_status_desc - - religion - - religion_desc - - nationality - - llsoa - -slots: - etl_id: - description: "Internal identifier for the ETL batch run that loaded this record." - range: integer - required: false - annotations: - sql_column: ETL_ID - sql_type: "INT" - - etl_date: - description: "Date and time the ETL process ran." - range: datetime - required: false - annotations: - sql_column: ETL_DATE - sql_type: "DATETIME" - - ndo_run_date: - description: "" - range: date - required: false - annotations: - sql_column: NDO_RUN_DATE - sql_type: DATE - - pseudo_nhs_number: - description: >- - The NHS NUMBER, the primary identifier of a PERSON, is a unique identifier - for a PATIENT within the NHS in England and Wales. Pseudonymised for - research use. - range: string - required: false - annotations: - sql_column: PSEUDO_NHS_NUMBER - sql_type: "VARBINARY(100)" - sensitivity: pseudonymised - - dob_first_of_month: - description: "First of month proxy date of birth." - range: date - required: false - annotations: - sql_column: DOB_FIRST_OF_MONTH - sql_type: "DATE" - - llsoa: - description: >- - Lower Layer Super Output Area, derived from PATIENT POSTCODE for - geographic analysis while preserving patient privacy. - range: string - required: false - annotations: - sql_column: LLSOA - sql_type: "NVARCHAR(100)" - - core_pid_published_runid: - description: "pipeline meta data" - range: integer - required: false - annotations: - sql_column: CORE_PID_PUBLISHED_RUNID - sql_type: "INT" - - deceased: - description: "an integer code defining wether the participant is deceased" - range: integer - required: false - annotations: - sql_column: DECEASED - sql_type: "INT" - - date_of_death: - description: "The date of the participant's death" - range: date - required: false - annotations: - sql_column: DATE_OF_DEATH - sql_type: "DATE" - - sex_desc: - description: >- - The sex of PATIENTS intended to use a WARD indicated in the WARD OPERATIONAL PLANS, with the addition of Home Leave. - - https://www.datadictionary.nhs.uk/data_elements/sex_of_patients_code.html - range: string - required: false - annotations: - sql_column: SEX_DESC - sql_type: "NVARCHAR(64)" - - sex: - description: >- - The sex of PATIENTS intended to use a WARD indicated in the WARD OPERATIONAL PLANS, with the addition of Home Leave. - - https://www.datadictionary.nhs.uk/data_elements/sex_of_patients_code.html - range: string - required: false - annotations: - sql_column: SEX - sql_type: "NVARCHAR(6)" - - gender_identity_desc: - description: >- - The gender identity of a PERSON as stated by the PERSON. - - https://www.datadictionary.nhs.uk/attributes/gender_identity_code.html - range: string - required: false - annotations: - sql_column: GENDER_IDENTITY_DESC - sql_type: "NVARCHAR(64)" - - gender_identity: - description: >- - The gender identity of a PERSON as stated by the PERSON. - - https://www.datadictionary.nhs.uk/attributes/gender_identity_code.html - range: string - required: false - annotations: - sql_column: GENDER_IDENTITY - sql_type: "NVARCHAR(6)" - - admin_gender: - description: "a code detailing the patient's gender from and administrative perspective" - range: string - required: false - annotations: - sql_column: ADMIN_GENDER - sql_type: "NVARCHAR(64)" - - ethnicity_desc: - description: >- - The ethnicity of a PERSON, as specified by the PERSON. - - range: string - required: false - annotations: - sql_column: ETHNICITY_DESC - sql_type: "NVARCHAR(64)" - - ethnicity: - description: >- - The ethnicity of a PERSON, as specified by the PERSON. - - range: string - required: false - annotations: - sql_column: ETHNICITY - sql_type: "NVARCHAR(6)" - - marital_status_desc: - description: >- - An indicator to identify the legal marital status of a PERSON. - - https://www.datadictionary.nhs.uk/data_elements/person_marital_status.html - range: string - required: false - annotations: - sql_column: MARITAL_STATUS_DESC - sql_type: "NVARCHAR(64)" - - marital_status: - description: >- - An indicator to identify the legal marital status of a PERSON. - - https://www.datadictionary.nhs.uk/data_elements/person_marital_status.html - range: string - required: false - annotations: - sql_column: MARITAL_STATUS - sql_type: "NVARCHAR(6)" - - religion_desc: - description: >- - The RELIGIOUS OR OTHER BELIEF SYSTEM AFFILIATION of a PERSON , as specified by a PERSON . - - https://archive.datadictionary.nhs.uk/DD%20Release%20May%202024/attributes/religious_or_other_belief_system_affiliation_code.html - range: string - required: false - annotations: - sql_column: RELIGION_DESC - sql_type: "NVARCHAR(64)" - - religion: - description: >- - The RELIGIOUS OR OTHER BELIEF SYSTEM AFFILIATION of a PERSON , as specified by a PERSON . - - https://archive.datadictionary.nhs.uk/DD%20Release%20May%202024/attributes/religious_or_other_belief_system_affiliation_code.html - range: string - required: false - annotations: - sql_column: RELIGION - sql_type: "NVARCHAR(6)" - - nationality: - description: a text description of the patient's nationality - range: string - required: false - annotations: - sql_column: NATIONALITY - sql_type: "NVARCHAR(50)" diff --git a/.github/actions/gateway-publish/tests/fixtures/demographics/gateway/metadata.yaml b/.github/actions/gateway-publish/tests/fixtures/demographics/gateway/metadata.yaml deleted file mode 100644 index 73c9076..0000000 --- a/.github/actions/gateway-publish/tests/fixtures/demographics/gateway/metadata.yaml +++ /dev/null @@ -1,63 +0,0 @@ -# Test catalogue fields for the demographics schema, with made-up values. - -summary: - title: NUH Pseudonymised Patient Demographics - abstract: >- - Pseudonymised demographic data for patients of Nottingham University Hospitals NHS - Trust, including sex, gender identity, month of birth, date of death, ethnicity, - marital status, religion, nationality and Lower Layer Super Output Area. Intended - for linkage with NUH clinical research datasets. - contactPoint: data.access@example.org - populationSize: -1 - keywords: - - demographics - - NHS - - Nottingham - - pseudonymised - - linkage - - ethnicity - -documentation: - description: >- - One row per patient, pseudonymised for research use. Dates of birth are given as the - first of the month, and home postcode is replaced by the Lower Layer Super Output Area. - Coded fields (sex, gender identity, ethnicity, marital status, religion) are provided as - both a code and its description, following the NHS Data Dictionary where one exists. - Records carry ETL and pipeline run metadata. Access requires a data access request. - -coverage: - spatial: Nottinghamshire, England - typicalAgeRangeMin: 0 - typicalAgeRangeMax: 110 - -provenance: - origin: - purpose: [Care] - source: [EPR] - collectionSource: - - Secondary care - In-patients - - Secondary care - Outpatients - - Secondary care - Accident and Emergency - datasetType: - - name: Socioeconomic - subTypes: [Ethnicity, Marital status, Religion] - temporal: - publishingFrequency: Quarterly - startDate: "2009-01-01" - # No endDate for an ongoing dataset: HDRUK allows "CONTINUOUS", but it fails - # TRASER's translation to GWDM 2.2 (the live Gateway would reject an ACTIVE push). - timeLag: 1-2 months - -accessibility: - access: - accessRights: In Progress # replace with the access-request page URL when there is one - accessServiceCategory: TRE/SDE - jurisdiction: [GB-ENG] - dataController: Nottingham University Hospitals NHS Trust - formatAndStandards: - vocabularyEncodingScheme: [NHS NATIONAL CODES] - conformsTo: [NHS DATA DICTIONARY] - language: [en] - format: [CSV] - -observations: [] diff --git a/.github/actions/gateway-publish/tests/fixtures/example-hdruk300.json b/.github/actions/gateway-publish/tests/fixtures/example-hdruk300.json deleted file mode 100644 index 725a9ff..0000000 --- a/.github/actions/gateway-publish/tests/fixtures/example-hdruk300.json +++ /dev/null @@ -1,160 +0,0 @@ -{ - "identifier": "https://web.www.healthdatagateway.org/19525c5f-92ee-41b6-bb79-673624b27bdd", - "version": "3.0.0", - "issued": "2021-05-10T00:00:00.000Z", - "modified": "2021-05-10T00:00:00.000Z", - "revisions": [], - "summary": { - "title": "Improving Access to Psychological Therapies Data Set", - "abstract": "Patient-level data set that captures information about people in contact with services commissioned as part of the adult Improving Access to Psychological Services (IAPT) programme.", - "contactPoint": "enquiries@nhsdigital.nhs.uk", - "keywords": " Depression,Anxiety,CBT,Counselling,Talking theraphy,Cognitive,National Core Study,NCS", - "alternateIdentifiers": null, - "doiName": null, - "populationSize": -1, - "dataProvider": { - "identifier": "https://web.www.healthdatagateway.org/5f86cd34980f41c6f02261f4", - "name": "NHS DIGITAL", - "logo": null, - "description": null, - "contactPoint": null, - "memberOf": "ALLIANCE" - } - }, - "documentation": { - "description": "Collecting information about people in contact with adult psychological therapy services in England. The IAPT data set was developed with the IAPT programme as a patient level, output based, secondary uses data set which aims to deliver robust, comprehensive, nationally consistent and comparable information for patients accessing NHS-funded IAPT services in England. This national data set has been collected since April 2012 and is a mandatory submission for all NHS funded care, including care delivered by independent sector healthcare providers. Data collection on patients with depression and anxiety disorders that are offered psychological therapies, so that we can improve the delivery of care for these conditions.\n\nProviders of NHS-funded IAPT services are required to submit data to NHS Digital on a monthly basis.\n\nAs a secondary uses data set the IAPT data set re-uses clinical and operational data for purposes other than direct patient care. It defines the data items, definitions and associated value sets extracted or derived from local information systems and sent to NHS Digital for analysis purposes. Timescales for dissemination can be found under 'Our Service Levels' at the following link: https://digital.nhs.uk/services/data-access-request-service-dars/data-access-request-service-dars-process", - "associatedMedia": null, - "inPipeline": null - }, - "coverage": { - "spatial": "United Kingdom,England", - "followup": "0 - 6 MONTHS", - "pathway": null, - "gender": null, - "typicalAgeRangeMin": 18, - "typicalAgeRangeMax": 150, - "datasetCompleteness": null, - "materialType": [ - "None/not available" - ] - }, - "provenance": { - "origin": { - "purpose": [ - "Other", - "Administrative" - ], - "source": [ - "EPR" - ], - "datasetType": "Health and disease", - "datasetSubType": "Not applicable", - "collectionSource": null, - "imageContrast": null - }, - "temporal": { - "distributionReleaseDate": null, - "startDate": "2012-04-01", - "endDate": null, - "timeLag": "2-6 months", - "publishingFrequency": "Monthly" - } - }, - "accessibility": { - "usage": { - "dataUseLimitation": [ - "No restriction" - ], - "dataUseRequirements": null, - "resourceCreator": null - }, - "access": { - "accessRights": "https://digital.nhs.uk/services/data-access-request-service-dars", - "accessService": "Once your DARS application has been approved, data will be made available either by secure file transfer or through the Data Access Environment (DAE). BL\n\nSecure file transfer: https://digital.nhs.uk/services/transfer-data-securely\n\nDAE: https://digital.nhs.uk/services/data-access-environment-dae", - "accessRequestCost": "https://digital.nhs.uk/services/data-access-request-service-dars/data-access-request-service-dars-charges", - "deliveryLeadTime": null, - "jurisdiction": "GB-ENG", - "dataProcessor": null, - "dataController": "NHS DIGITAL", - "accessServiceCategory": null, - "accessMode": "New project" - }, - "formatAndStandards": { - "vocabularyEncodingScheme": [ - "ODS", - "SNOMED CT", - "NHS NATIONAL CODES", - "ICD10" - ], - "conformsTo": [ - "NHS DATA DICTIONARY" - ], - "language": "en", - "format": "CSV" - } - }, - "enrichmentAndLinkage": { - "tools": null, - "derivedFrom": null, - "isPartOf": null, - "linkableDatasets": null, - "similarToDatasets": null, - "publicationAboutDataset": null, - "investigations": null, - "publicationUsingDataset": null - }, - "observations": [ - { - "observedNode": "Event", - "measuredValue": 114125, - "measuredProperty": "COUNT", - "observationDate": "2021-02-25", - "disambiguatingDescription": "In December 2020 there were 114,125 referrals made into IAPT services in England." - }, - { - "observedNode": "Event", - "measuredValue": 81578, - "measuredProperty": "COUNT", - "observationDate": "2021-02-25", - "disambiguatingDescription": "In December 2020, 81,578 referrals into IAPT services in England started a course of treatment." - }, - { - "observedNode": "Event", - "measuredValue": 48331, - "measuredProperty": "COUNT", - "observationDate": "2021-02-25", - "disambiguatingDescription": "In December 2020, 48,331 referrals into IAPT services in England completed a course of treatment." - } - ], - "structuralMetadata": { - "tables": [ - { - "name": "IAPT.iapt.Rep_Referral", - "description": "IAPT.iapt.Rep_Referral", - "columns": [ - { - "name": "Count of number of Non-guided Self Help (Computer) sessions (derived)", - "description": "Count of number of Non-guided Self Help (Computer) sessions (derived)", - "dataType": "Number", - "sensitive": false, - "values": null - } - ] - }, - { - "name": "IAPT.iapt.Rep_Referral", - "description": "IAPT.iapt.Rep_Referral", - "columns": [ - { - "name": "Pseudonymised Service Request Identifier", - "description": "A request for the provision of care services to a PATIENT.", - "dataType": "String", - "sensitive": false, - "values": null - } - ] - } - ], - "syntheticDataWebLink": null - } -} \ No newline at end of file diff --git a/.github/actions/gateway-publish/tests/fixtures/example-hdruk410-structural.json b/.github/actions/gateway-publish/tests/fixtures/example-hdruk410-structural.json deleted file mode 100644 index 863e3d5..0000000 --- a/.github/actions/gateway-publish/tests/fixtures/example-hdruk410-structural.json +++ /dev/null @@ -1,125 +0,0 @@ -{ - "identifier": "226fb3f1-4471-400a-8c39-2b66d46a39b6", - "modified": "2025-12-19T12:18:11+00:00", - "issued": "2025-12-19T12:18:11+00:00", - "observations": [], - "coverage": { - "followUp": null, - "materialType": [ - "None/not available" - ], - "spatial": "UK" - }, - "provenance": { - "origin": { - "datasetType": [ - { - "name": "Health and disease", - "subTypes": [] - } - ] - }, - "temporal": { - "timeLag": "Variable", - "startDate": "2025-12-01T00:00:00.000Z", - "publishingFrequency": "Monthly" - } - }, - "accessibility": { - "formatAndStandards": { - "format": [ - "text", - "tab-separted-values", - "csv" - ], - "language": [ - "en" - ], - "conformsTo": [ - "LOCAL", - "BNF", - "DDI", - "DCAT" - ], - "vocabularyEncodingScheme": [ - "LOCAL" - ] - }, - "access": { - "dataProcessor": "__TestTeam", - "dataController": "__TestTeam", - "jurisdiction": [ - "UK" - ], - "deliveryLeadTime": null, - "accessRequestCost": "https://example.org/applying-access-resource", - "accessService": null, - "accessRights": "https://example.org/applying-access-resource" - }, - "usage": { - "dataUseRequirements": [], - "dataUseLimitation": [ - "General research use" - ], - "duoCodes": [ - "DUO:0000042", - "DUO:0000021" - ], - "dataUsePermissions": { - "patientRecontact": "Yes" - } - } - }, - "documentation": { - "description": "Example" - }, - "summary": { - "contactPoint": "test.custodian@example.com", - "populationSize": -1, - "dataCustodian": { - "memberOf": null, - "contactPoint": "test.custodian@example.com", - "description": "__TestTeam", - "logo": null, - "name": "__TestTeam", - "identifier": "133" - }, - "abstract": "Example", - "title": "Example" - }, - "revisions": [ - { - "version": "1.0.0", - "url": "http://www.example.com/" - } - ], - "version": "1.0.0", - "structuralMetadata": { - "tables": [ - { - "name": "sact_regimen", - "description": "One row per systemic anti-cancer therapy regimen.", - "columns": [ - { - "name": "regimen_id", - "dataType": "string", - "description": "Identifier for the regimen.", - "sensitive": false - }, - { - "name": "start_date", - "dataType": "date", - "description": "Date the regimen started.", - "sensitive": false - }, - { - "name": "nhs_number", - "dataType": "string", - "description": "Patient NHS number.", - "sensitive": true - } - ] - } - ] - } -} diff --git a/.github/actions/gateway-publish/tests/fixtures/example-hdruk410.json b/.github/actions/gateway-publish/tests/fixtures/example-hdruk410.json deleted file mode 100644 index d257c67..0000000 --- a/.github/actions/gateway-publish/tests/fixtures/example-hdruk410.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "identifier": "226fb3f1-4471-400a-8c39-2b66d46a39b6", - "modified": "2025-12-19T12:18:11+00:00", - "issued": "2025-12-19T12:18:11+00:00", - "observations": [], - "coverage": { - "followUp": null, - "materialType": [ - "None/not available" - ], - "spatial": "UK" - }, - "provenance": { - "origin": { - "datasetType": [ - { - "name": "Health and disease", - "subTypes": [] - } - ] - }, - "temporal": { - "timeLag": "Variable", - "startDate": "2025-12-01T00:00:00.000Z", - "publishingFrequency": "Monthly" - } - }, - "accessibility": { - "formatAndStandards": { - "format": [ - "text", - "tab-separted-values", - "csv" - ], - "language": [ - "en" - ], - "conformsTo": [ - "LOCAL", - "BNF", - "DDI", - "DCAT" - ], - "vocabularyEncodingScheme": [ - "LOCAL" - ] - }, - "access": { - "dataProcessor": "__TestTeam", - "dataController": "__TestTeam", - "jurisdiction": [ - "UK" - ], - "deliveryLeadTime": null, - "accessRequestCost": "https://example.org/applying-access-resource", - "accessService": null, - "accessRights": "https://example.org/applying-access-resource" - }, - "usage": { - "dataUseRequirements": [], - "dataUseLimitation": [ - "General research use" - ], - "duoCodes": [ - "DUO:0000042", - "DUO:0000021" - ], - "dataUsePermissions": { - "patientRecontact": "Yes" - } - } - }, - "documentation": { - "description": "Example" - }, - "summary": { - "contactPoint": "test.custodian@example.com", - "populationSize": -1, - "dataCustodian": { - "memberOf": null, - "contactPoint": "test.custodian@example.com", - "description": "__TestTeam", - "logo": null, - "name": "__TestTeam", - "identifier": "133" - }, - "abstract": "Example", - "title": "Example" - }, - "revisions": [ - { - "version": "1.0.0", - "url": "http://www.example.com/" - } - ], - "version": "1.0.0", - "structuralMetadata": { - "tables": [] - } -} diff --git a/.github/actions/gateway-publish/tests/test_build.py b/.github/actions/gateway-publish/tests/test_build.py index 8b98af0..58161f1 100644 --- a/.github/actions/gateway-publish/tests/test_build.py +++ b/.github/actions/gateway-publish/tests/test_build.py @@ -8,19 +8,16 @@ import yaml from gateway_publish.build import BuildError, DatasetDir, build_payload, find_todos, structural_metadata -from gateway_publish.validate import validation_errors -# A copy of the demographics LinkML schema from nuh-data, with made-up catalogue values. -FIXTURE = Path(__file__).parent / "fixtures" / "demographics" -DEMOGRAPHICS_SCHEMA = FIXTURE / "demographics.yaml" -GOLDEN = Path(__file__).parent / "fixtures" / "demographics.golden.json" +FIXTURE = Path(__file__).parent / "fixtures" / "dataset" +GOLDEN = Path(__file__).parent / "fixtures" / "dataset.golden.json" NOW = datetime(2026, 1, 2, 3, 4, 5, tzinfo=UTC) @pytest.fixture -def demographics(tmp_path) -> Path: - """A writable copy of the demographics fixture.""" - root = tmp_path / "demographics" +def dataset(tmp_path) -> Path: + """A writable copy of the test dataset directory.""" + root = tmp_path / "dataset" shutil.copytree(FIXTURE, root) return root @@ -28,25 +25,20 @@ def demographics(tmp_path) -> Path: def edit_yaml(path: Path, change) -> None: data = yaml.safe_load(path.read_text()) change(data) - path.write_text(yaml.safe_dump(data)) + path.write_text(yaml.safe_dump(data, sort_keys=False)) -def test_golden(demographics): +def test_golden(dataset): """Regenerate with UPDATE_GOLDEN=1 after an intended change, and review the diff.""" - payload = build_payload(DatasetDir.find(demographics), "1.2.3", now=NOW) + payload = build_payload(DatasetDir.find(dataset), "1.2.3", now=NOW) if os.environ.get("UPDATE_GOLDEN"): GOLDEN.write_text(json.dumps(payload, indent=2, ensure_ascii=False) + "\n") assert payload == json.loads(GOLDEN.read_text()) -def test_built_payload_is_valid(demographics): - payload = build_payload(DatasetDir.find(demographics), "1.2.3", now=NOW) - assert validation_errors(payload, "4.1.0") == [] - - -def test_build_fills_gateway_fields(demographics): - edit_yaml(demographics / "gateway" / "gateway.yaml", lambda g: g.update(pid="abc-123")) - payload = build_payload(DatasetDir.find(demographics), "1.2.3", now=NOW) +def test_build_fills_gateway_fields(dataset): + edit_yaml(dataset / "gateway" / "gateway.yaml", lambda g: g.update(pid="abc-123")) + payload = build_payload(DatasetDir.find(dataset), "1.2.3", now=NOW) assert payload["version"] == "1.2.3" assert payload["identifier"] == "abc-123" assert payload["issued"] == payload["modified"] == "2026-01-02T03:04:05.000Z" @@ -58,105 +50,100 @@ def test_build_fills_gateway_fields(demographics): def test_structural_metadata_from_linkml(): - tables = structural_metadata(DEMOGRAPHICS_SCHEMA)["tables"] - assert [t["name"] for t in tables] == ["CoreDemographics"] + tables = structural_metadata(FIXTURE / "schema.yaml")["tables"] + # Only tree_root classes become tables. + assert [t["name"] for t in tables] == ["Visit"] columns = {c["name"]: c for c in tables[0]["columns"]} - assert len(columns) == 21 + assert list(columns) == ["visit_id", "pseudo_nhs_number", "visit_date", "outcome", "note"] + assert columns["visit_id"]["dataType"] == "integer" + assert columns["visit_date"]["dataType"] == "date" assert columns["pseudo_nhs_number"]["sensitive"] is True - assert columns["sex"]["sensitive"] is False - assert columns["etl_id"]["dataType"] == "integer" - assert columns["dob_first_of_month"]["dataType"] == "date" + assert columns["visit_id"]["sensitive"] is False # An empty LinkML description becomes null; HDRUK rejects "". - assert columns["ndo_run_date"]["description"] is None - - -def test_enum_range_is_string_with_values(tmp_path): - schema = tmp_path / "s.yaml" - schema.write_text(yaml.safe_dump({ - "id": "https://example.org/s", "name": "s", "imports": ["linkml:types"], - "prefixes": {"linkml": "https://w3id.org/linkml/"}, "default_range": "string", - "classes": {"T": {"tree_root": True, "slots": ["colour"]}}, - "slots": {"colour": {"range": "Colour"}}, - "enums": {"Colour": {"permissible_values": {"R": {"description": "Red"}, "B": {}}}}, - }, sort_keys=False)) - column = structural_metadata(schema)["tables"][0]["columns"][0] - assert column["dataType"] == "string" - assert column["values"] == [{"name": "R", "description": "Red"}, {"name": "B", "description": None}] - - -def test_todos_block_build(demographics): - edit_yaml(demographics / "gateway" / "metadata.yaml", + assert columns["note"]["description"] is None + # Enums are strings, with their permissible values. + assert columns["outcome"]["dataType"] == "string" + assert columns["outcome"]["values"] == [ + {"name": "01", "description": "Discharged"}, + {"name": "02", "description": "Admitted"}, + {"name": "99", "description": None}, + ] + assert "values" not in columns["visit_id"] + + +def test_todos_block_build(dataset): + edit_yaml(dataset / "gateway" / "metadata.yaml", lambda m: m["summary"].update(contactPoint="TODO who?", keywords=["a", "TODO"])) with pytest.raises(BuildError, match="/summary/contactPoint, /summary/keywords/1"): - build_payload(DatasetDir.find(demographics), "1.2.3") + build_payload(DatasetDir.find(dataset), "1.2.3") -def test_metadata_must_not_set_generated_fields(demographics): +def test_metadata_must_not_set_generated_fields(dataset): def change(m): m["version"] = "9.9.9" m["summary"]["dataCustodian"] = {"name": "x"} - edit_yaml(demographics / "gateway" / "metadata.yaml", change) + edit_yaml(dataset / "gateway" / "metadata.yaml", change) with pytest.raises(BuildError, match="version, summary/dataCustodian"): - build_payload(DatasetDir.find(demographics), "1.2.3") + build_payload(DatasetDir.find(dataset), "1.2.3") -def test_dataset_dir_needs_one_schema(demographics): - (demographics / "other.yaml").write_text("id: x\n") - with pytest.raises(BuildError, match="More than one \\*.yaml .* pass the LinkML schema with --schema"): - DatasetDir.find(demographics) - assert DatasetDir.find(demographics, schema=demographics / "demographics.yaml").schema.name == "demographics.yaml" +def test_unquoted_dates_stay_strings(dataset): + path = dataset / "gateway" / "metadata.yaml" + path.write_text(path.read_text().replace('startDate: "2009-01-01"', "startDate: 2009-01-01")) + payload = build_payload(DatasetDir.find(dataset), "1.2.3") + assert payload["provenance"]["temporal"]["startDate"] == "2009-01-01" -def test_schema_found_in_schemas_folder(demographics): - """The dataset-repo layout: schemas/.yaml next to gateway/.""" - (demographics / "schemas").mkdir() - (demographics / "demographics.yaml").rename(demographics / "schemas" / "demographics.yaml") - assert DatasetDir.find(demographics).schema == demographics / "schemas" / "demographics.yaml" +@pytest.mark.parametrize("version, expected", [("1.2.3", "1.2.3"), ("v1.2.3", "1.2.3")]) +def test_version(dataset, version, expected): + assert build_payload(DatasetDir.find(dataset), version)["version"] == expected -def test_no_schema(demographics): - (demographics / "demographics.yaml").unlink() - with pytest.raises(BuildError, match="No LinkML schema"): - DatasetDir.find(demographics) +@pytest.mark.parametrize("version", ["1.2", "1.2.3-rc.1", "latest", ""]) +def test_bad_version(dataset, version): + with pytest.raises(BuildError, match="must be major.minor.patch"): + build_payload(DatasetDir.find(dataset), version) -def test_bad_status(demographics): - edit_yaml(demographics / "gateway" / "gateway.yaml", lambda g: g.update(status="LIVE")) - with pytest.raises(BuildError, match="status must be one of ACTIVE, DRAFT"): - build_payload(DatasetDir.find(demographics), "1.2.3") +def test_schema_found_in_schemas_folder(dataset): + """The dataset-repo layout: schemas/.yaml next to gateway/.""" + (dataset / "schemas").mkdir() + (dataset / "schema.yaml").rename(dataset / "schemas" / "sact.yaml") + assert DatasetDir.find(dataset).schema == dataset / "schemas" / "sact.yaml" -def test_record_created_keeps_comments(demographics): - dataset = DatasetDir.find(demographics) - dataset.record_created(2080, "abc-123") - text = dataset.gateway.read_text() - assert "# Status each release publishes with" in text - assert "dataset_id: 2080\n" in text and "pid: abc-123\n" in text - assert yaml.safe_load(text)["status"] == "DRAFT" +def test_more_than_one_schema_needs_schema_option(dataset): + (dataset / "other.yaml").write_text("id: x\n") + with pytest.raises(BuildError, match="More than one \\*.yaml .* pass the LinkML schema with --schema"): + DatasetDir.find(dataset) + assert DatasetDir.find(dataset, schema=dataset / "schema.yaml").schema.name == "schema.yaml" -def test_gateway_yaml_needs_team(demographics): - edit_yaml(demographics / "gateway" / "gateway.yaml", lambda g: g.pop("team_id")) - with pytest.raises(BuildError, match="'team_id' is required"): - build_payload(DatasetDir.find(demographics), "1.2.3") +def test_no_schema(dataset): + (dataset / "schema.yaml").unlink() + with pytest.raises(BuildError, match="No LinkML schema"): + DatasetDir.find(dataset) -def test_unquoted_dates_stay_strings(demographics): - path = demographics / "gateway" / "metadata.yaml" - path.write_text(path.read_text().replace('startDate: "2009-01-01"', "startDate: 2009-01-01")) - payload = build_payload(DatasetDir.find(demographics), "1.2.3") - assert payload["provenance"]["temporal"]["startDate"] == "2009-01-01" +def test_gateway_yaml_needs_team(dataset): + edit_yaml(dataset / "gateway" / "gateway.yaml", lambda g: g.pop("team_id")) + with pytest.raises(BuildError, match="'team_id' is required"): + build_payload(DatasetDir.find(dataset), "1.2.3") -@pytest.mark.parametrize("version, expected", [("1.2.3", "1.2.3"), ("v1.2.3", "1.2.3")]) -def test_version(demographics, version, expected): - assert build_payload(DatasetDir.find(demographics), version)["version"] == expected +def test_bad_status(dataset): + edit_yaml(dataset / "gateway" / "gateway.yaml", lambda g: g.update(status="LIVE")) + with pytest.raises(BuildError, match="status must be one of ACTIVE, DRAFT"): + build_payload(DatasetDir.find(dataset), "1.2.3") -@pytest.mark.parametrize("version", ["1.2", "1.2.3-rc.1", "latest", ""]) -def test_bad_version(demographics, version): - with pytest.raises(BuildError, match="must be major.minor.patch"): - build_payload(DatasetDir.find(demographics), version) +def test_record_created_keeps_comments(dataset): + found = DatasetDir.find(dataset) + found.record_created(2080, "abc-123") + text = found.gateway.read_text() + assert "# Status each release publishes with" in text + assert "dataset_id: 2080\n" in text and "pid: abc-123\n" in text + assert yaml.safe_load(text)["status"] == "DRAFT" def test_find_todos(): diff --git a/.github/actions/gateway-publish/tests/test_cli.py b/.github/actions/gateway-publish/tests/test_cli.py index 08108a6..195ec44 100644 --- a/.github/actions/gateway-publish/tests/test_cli.py +++ b/.github/actions/gateway-publish/tests/test_cli.py @@ -7,8 +7,8 @@ from gateway_publish import cli from gateway_publish.client import GatewayClient from gateway_publish.config import GatewayConfig -from tests.conftest import APP_ID, CLIENT_ID, FIXTURES, TEAM_ID -from tests.test_build import demographics, edit_yaml # noqa: F401 (fixture) +from tests.conftest import APP_ID, CLIENT_ID, TEAM_ID +from tests.test_build import dataset, edit_yaml # noqa: F401 (fixture) class FakeGateway: @@ -49,9 +49,6 @@ def __call__(self, request: httpx.Request) -> httpx.Response: latest = {"version": len(versions), "metadata": json.dumps({"metadata": versions[-1]})} data = {"id": dataset_id, "pid": f"pid-{dataset_id}", "versions": [latest]} return httpx.Response(200, json={"message": "success", "data": data}) - if request.method == "DELETE": - del self.datasets[dataset_id] - return httpx.Response(200, json={"message": "success"}) return httpx.Response(405) @@ -68,128 +65,64 @@ def fake_gateway(gateway_env, monkeypatch): return gateway -def run(*argv: str) -> None: - cli.main(list(argv)) - - -def test_create_update_get_delete(fake_gateway, capsys): - fixture = FIXTURES / "example-hdruk410.json" - run("create", "--file", str(fixture)) - assert "Created DRAFT dataset 1" in capsys.readouterr().out - assert fake_gateway.statuses[1] == "DRAFT" - - run("update", "--id", "1", "--file", str(fixture)) - run("get", "--id", "1") - assert '"version": 2' in capsys.readouterr().out - - with pytest.raises(SystemExit): - run("delete", "--id", "1") - assert "--confirm 1" in capsys.readouterr().err - assert 1 in fake_gateway.datasets - - run("delete", "--id", "1", "--confirm", "1") - assert fake_gateway.datasets == {} - - -def test_create_active(fake_gateway): - run("create", "--file", str(FIXTURES / "example-hdruk410.json"), "--status", "ACTIVE") - assert fake_gateway.statuses[1] == "ACTIVE" - - -def test_gateway_error_is_reported_without_traceback(fake_gateway, capsys): - with pytest.raises(SystemExit) as exc: - run("get", "--id", "99") - assert exc.value.code == 1 - err = capsys.readouterr().err - assert "HTTP 404" in err and "Likely cause" in err - - -def test_missing_credentials(monkeypatch, capsys): - for name in ("GATEWAY_APP_ID", "GATEWAY_CLIENT_ID", "GATEWAY_TEAM_ID"): - monkeypatch.delenv(name, raising=False) - with pytest.raises(SystemExit): - run("get", "--id", "1") - assert "Missing environment variable" in capsys.readouterr().err - - -def test_output_never_contains_credentials(fake_gateway, capsys): - run("create", "--file", str(FIXTURES / "example-hdruk410.json")) - run("get", "--id", "1") - captured = capsys.readouterr() - for text in (captured.out, captured.err): - assert APP_ID not in text and CLIENT_ID not in text - - -def test_validate(capsys): - run("validate", "--file", str(FIXTURES / "example-hdruk410.json"), "--schema-version", "4.1.0") - assert "is valid" in capsys.readouterr().out - - -def test_validate_reports_errors(tmp_path, capsys): - broken = json.loads((FIXTURES / "example-hdruk410.json").read_text()) - del broken["summary"]["title"] - path = tmp_path / "broken.json" - path.write_text(json.dumps(broken)) - with pytest.raises(SystemExit): - run("validate", "--file", str(path), "--schema-version", "4.1.0") - assert "'title' is a required property" in capsys.readouterr().err - - -def test_validate_pinpoints_nested_enum_error(tmp_path, capsys): - broken = json.loads((FIXTURES / "example-hdruk410.json").read_text()) - broken["provenance"]["temporal"]["timeLag"] = "Whenever" - path = tmp_path / "broken.json" - path.write_text(json.dumps(broken)) - with pytest.raises(SystemExit): - run("validate", "--file", str(path), "--schema-version", "4.1.0") - err = capsys.readouterr().err - assert "/provenance/temporal/timeLag: 'Whenever' is not one of" in err - assert "is not of type 'null'" not in err - +@pytest.fixture +def traser(monkeypatch): + """Records TRASER calls; set `traser.errors` to make the check fail.""" + class Traser: + def __init__(self): + self.calls: list = [] + self.errors: list[str] = [] + fake = Traser() + monkeypatch.setattr(cli, "traser_errors", lambda *a, **k: fake.calls.append(a) or fake.errors) + return fake -# Dataset directories (Phase 1) @pytest.fixture -def no_traser(monkeypatch): - calls = [] - monkeypatch.setattr(cli, "traser_errors", lambda *a, **k: calls.append(a) or []) - return calls +def team_42(dataset): + """The test dataset, pointed at the test team.""" + edit_yaml(dataset / "gateway" / "gateway.yaml", lambda g: g.update(team_id=TEAM_ID)) + return dataset -@pytest.fixture -def team_42(demographics): - """The demographics fixture, pointed at the test team.""" - edit_yaml(demographics / "gateway" / "gateway.yaml", lambda g: g.update(team_id=TEAM_ID)) - return demographics +def run(*argv: str) -> None: + cli.main(list(argv)) def gateway_yaml(dataset) -> dict: return yaml.safe_load((dataset / "gateway" / "gateway.yaml").read_text()) -def test_build_command(demographics, tmp_path, capsys): +def test_build_command(dataset, tmp_path): out = tmp_path / "payload.json" - run("build", str(demographics), "--version", "1.0.0", "-o", str(out)) + run("build", str(dataset), "--version", "1.0.0", "-o", str(out)) payload = json.loads(out.read_text()) assert payload["version"] == "1.0.0" - assert payload["structuralMetadata"]["tables"][0]["name"] == "CoreDemographics" + assert payload["structuralMetadata"]["tables"][0]["name"] == "Visit" -def test_build_reports_todos(demographics, capsys): - edit_yaml(demographics / "gateway" / "metadata.yaml", lambda m: m["summary"].update(contactPoint="TODO")) +def test_build_reports_todos(dataset, capsys): + edit_yaml(dataset / "gateway" / "metadata.yaml", lambda m: m["summary"].update(contactPoint="TODO")) with pytest.raises(SystemExit): - run("build", str(demographics), "--version", "1.0.0") + run("build", str(dataset), "--version", "1.0.0") assert "still has TODOs" in capsys.readouterr().err -def test_validate_dataset(demographics, no_traser, capsys): - run("validate", "--dataset", str(demographics), "--traser") +def test_validate(dataset, traser, capsys): + run("validate", str(dataset)) assert "is valid HDRUK 4.1.0" in capsys.readouterr().out - assert len(no_traser) == 1 + payload, version, model = traser.calls[0] + assert (version, model, payload["version"]) == ("4.1.0", "HDRUK", "0.0.0") -def test_create_dataset_then_push(fake_gateway, team_42, no_traser, capsys): - run("create", "--dataset", str(team_42), "--version", "1.0.0") +def test_validate_reports_traser_errors(dataset, traser, capsys): + traser.errors = ["Output metadata validation failed:", " /provenance/temporal/endDate: bad"] + with pytest.raises(SystemExit): + run("validate", str(dataset)) + assert "/provenance/temporal/endDate: bad" in capsys.readouterr().err + + +def test_create_then_push(fake_gateway, team_42, traser, capsys): + run("create", str(team_42), "--version", "1.0.0") assert gateway_yaml(team_42) == { "team_id": TEAM_ID, "team_name": "Nottingham University Hospitals - NHS Trust", "status": "DRAFT", "dataset_id": 1, "pid": "pid-1", @@ -212,45 +145,65 @@ def test_create_dataset_then_push(fake_gateway, team_42, no_traser, capsys): # The pid recorded at create is sent as the identifier. assert body["metadata"]["metadata"]["identifier"] == "pid-1" assert fake_gateway.datasets[1][-1]["version"] == "1.1.0" - assert len(no_traser) == 2 + assert len(traser.calls) == 2 + + +def test_push_uses_status_from_gateway_yaml(fake_gateway, team_42, traser): + run("create", str(team_42), "--version", "1.0.0") + edit_yaml(team_42 / "gateway" / "gateway.yaml", lambda g: g.update(status="ACTIVE")) + run("push", str(team_42), "--version", "1.1.0") + put = next(r for r in fake_gateway.requests if r.method == "PUT") + assert json.loads(put.content)["status"] == "ACTIVE" + # --status overrides gateway.yaml. + run("push", str(team_42), "--version", "1.2.0", "--status", "DRAFT") + put = [r for r in fake_gateway.requests if r.method == "PUT"][-1] + assert json.loads(put.content)["status"] == "DRAFT" + + +def test_traser_failure_stops_push(fake_gateway, team_42, traser, capsys): + edit_yaml(team_42 / "gateway" / "gateway.yaml", lambda g: g.update(dataset_id=1)) + traser.errors = ["Input metadata validation failed:"] + with pytest.raises(SystemExit): + run("push", str(team_42), "--version", "1.0.0") + assert fake_gateway.requests == [] -def test_create_dataset_refuses_when_id_exists(fake_gateway, team_42, no_traser, capsys): +def test_create_refuses_when_id_exists(fake_gateway, team_42, traser, capsys): edit_yaml(team_42 / "gateway" / "gateway.yaml", lambda g: g.update(dataset_id=7)) with pytest.raises(SystemExit): - run("create", "--dataset", str(team_42), "--version", "1.0.0") + run("create", str(team_42), "--version", "1.0.0") assert "already has dataset_id 7" in capsys.readouterr().err assert fake_gateway.requests == [] -def test_push_without_id_explains(fake_gateway, team_42, no_traser, capsys): +def test_push_without_id_explains(fake_gateway, team_42, traser, capsys): with pytest.raises(SystemExit): run("push", str(team_42), "--version", "1.0.0") assert "Create the dataset once" in capsys.readouterr().err assert fake_gateway.requests == [] -def test_push_refuses_other_team(fake_gateway, demographics, no_traser, capsys): - edit_yaml(demographics / "gateway" / "gateway.yaml", lambda g: g.update(dataset_id=1)) +def test_push_refuses_other_team(fake_gateway, dataset, traser, capsys): + edit_yaml(dataset / "gateway" / "gateway.yaml", lambda g: g.update(dataset_id=1)) with pytest.raises(SystemExit): - run("push", str(demographics), "--version", "1.0.0") + run("push", str(dataset), "--version", "1.0.0") assert "gateway.yaml is for team 74 but the credentials are for team 42" in capsys.readouterr().err assert fake_gateway.requests == [] -def test_push_fails_without_new_version(fake_gateway, team_42, no_traser, capsys): - run("create", "--dataset", str(team_42), "--version", "1.0.0") +def test_push_fails_without_new_version(fake_gateway, team_42, traser, capsys): + run("create", str(team_42), "--version", "1.0.0") fake_gateway.bump_version_on_update = False with pytest.raises(SystemExit): run("push", str(team_42), "--version", "1.1.0") assert "Read-back check failed: no new version" in capsys.readouterr().err -def test_push_dry_run_sends_nothing(monkeypatch, team_42, no_traser, capsys): +def test_push_dry_run_sends_nothing(monkeypatch, team_42, traser, capsys): # No credentials and no transport: a dry run must not need either. for name in ("GATEWAY_APP_ID", "GATEWAY_CLIENT_ID", "GATEWAY_TEAM_ID", "GATEWAY_BASE_URL"): monkeypatch.delenv(name, raising=False) - monkeypatch.setattr(cli, "_client", lambda args: pytest.fail("dry run created a client")) + monkeypatch.setattr(cli, "_client", lambda *a, **k: pytest.fail("dry run created a client")) edit_yaml(team_42 / "gateway" / "gateway.yaml", lambda g: g.update(dataset_id=5)) run("push", str(team_42), "--version", "2.0.0", "--dry-run") out = capsys.readouterr().out @@ -260,20 +213,41 @@ def test_push_dry_run_sends_nothing(monkeypatch, team_42, no_traser, capsys): assert body["create_origin"] == "API" and body["status"] == "DRAFT" -def test_push_uses_status_from_gateway_yaml(fake_gateway, team_42, no_traser, capsys): - run("create", "--dataset", str(team_42), "--version", "1.0.0") - edit_yaml(team_42 / "gateway" / "gateway.yaml", lambda g: g.update(status="ACTIVE")) +def test_get(fake_gateway, team_42, traser, capsys): + run("create", str(team_42), "--version", "1.0.0") + capsys.readouterr() + run("get", "--id", "1") + request = fake_gateway.requests[-1] + assert dict(request.url.params) == {"schema_model": "HDRUK", "schema_version": "4.1.0"} + assert '"pid": "pid-1"' in capsys.readouterr().out + + +def test_gateway_error_is_reported_without_traceback(fake_gateway, capsys): + with pytest.raises(SystemExit) as exc: + run("get", "--id", "99") + assert exc.value.code == 1 + err = capsys.readouterr().err + assert "HTTP 404" in err and "Likely cause" in err + + +def test_missing_credentials(monkeypatch, capsys): + for name in ("GATEWAY_APP_ID", "GATEWAY_CLIENT_ID", "GATEWAY_TEAM_ID"): + monkeypatch.delenv(name, raising=False) + with pytest.raises(SystemExit): + run("get", "--id", "1") + assert "Missing environment variable" in capsys.readouterr().err + + +def test_output_never_contains_credentials(fake_gateway, team_42, traser, capsys): + run("create", str(team_42), "--version", "1.0.0") run("push", str(team_42), "--version", "1.1.0") - assert fake_gateway.statuses[1] == "DRAFT" # create's status - put = next(r for r in fake_gateway.requests if r.method == "PUT") - assert json.loads(put.content)["status"] == "ACTIVE" - # --status overrides gateway.yaml. - run("push", str(team_42), "--version", "1.2.0", "--status", "DRAFT") - put = [r for r in fake_gateway.requests if r.method == "PUT"][-1] - assert json.loads(put.content)["status"] == "DRAFT" + run("get", "--id", "1") + captured = capsys.readouterr() + for text in (captured.out, captured.err, (team_42 / "gateway" / "gateway.yaml").read_text()): + assert APP_ID not in text and CLIENT_ID not in text -def test_team_defaults_to_gateway_yaml(gateway_env, monkeypatch, team_42): +def test_team_defaults_to_gateway_yaml(gateway_env, monkeypatch): monkeypatch.delenv("GATEWAY_TEAM_ID") client = cli._client(cli.build_parser().parse_args(["get", "--id", "1"]), default_team_id=TEAM_ID) assert client.config.team_id == TEAM_ID diff --git a/.github/actions/gateway-publish/tests/test_client.py b/.github/actions/gateway-publish/tests/test_client.py index b6e23b1..bcb5912 100644 --- a/.github/actions/gateway-publish/tests/test_client.py +++ b/.github/actions/gateway-publish/tests/test_client.py @@ -80,16 +80,6 @@ def test_get_requires_both_schema_params(config, model, version): assert recorder.requests == [] -def test_delete_and_list(config): - recorder = Recorder() - client = make_client(config, recorder) - client.delete(9) - assert (recorder.last.method, recorder.last.url.path) == ("DELETE", "/api/v2/teams/42/datasets/9") - client.list(title="SACT") - assert recorder.last.url.path == "/api/v2/teams/42/datasets/status/active" - assert recorder.last.url.params["title"] == "SACT" - - @pytest.mark.parametrize( "status,message,hint_fragment", [ @@ -101,7 +91,6 @@ def test_delete_and_list(config): (401, "This Application is not allowed to interact with datasets from another team!", "GATEWAY_TEAM_ID"), (401, "Unauthorized", "credentials"), (404, "Dataset not found", "no dataset with that ID"), - (410, "This endpoint has been retired.", "retired"), (500, "Dataset with id=1 cannot be found", "server error"), (503, "Service Unavailable", "retrying later"), ], diff --git a/.github/actions/gateway-publish/tests/test_live.py b/.github/actions/gateway-publish/tests/test_live.py deleted file mode 100644 index 8f4339c..0000000 --- a/.github/actions/gateway-publish/tests/test_live.py +++ /dev/null @@ -1,41 +0,0 @@ -"""Opt-in end-to-end test against the Gateway (live by default): create -> rename -> get -> delete. - -The dataset is created as DRAFT and deleted at the end. -Skipped unless GATEWAY_LIVE_TESTS=1 (and GATEWAY_APP_ID, GATEWAY_CLIENT_ID, GATEWAY_TEAM_ID are set). -""" - -import json -import os -import uuid - -import pytest - -from gateway_publish.client import GatewayClient, latest_version -from gateway_publish.config import GatewayConfig -from tests.conftest import FIXTURES - -pytestmark = [ - pytest.mark.live, - pytest.mark.skipif(os.environ.get("GATEWAY_LIVE_TESTS") != "1", reason="GATEWAY_LIVE_TESTS=1 not set"), -] - - -def test_create_rename_get(): - metadata = json.loads((FIXTURES / "example-hdruk410.json").read_text()) - run_id = uuid.uuid4().hex[:8] - metadata["summary"]["title"] = f"gateway-publish test {run_id}" - - with GatewayClient(GatewayConfig.from_env()) as client: - created = client.create(metadata, status="DRAFT") - try: - before = latest_version(client.get(created.dataset_id)) - assert before.title == metadata["summary"]["title"] - - metadata["summary"]["title"] = f"gateway-publish test {run_id} renamed" - client.update(created.dataset_id, metadata, status="DRAFT") - - after = latest_version(client.get(created.dataset_id)) - assert after.title == metadata["summary"]["title"] - assert after.version > before.version - finally: - client.delete(created.dataset_id) diff --git a/.github/actions/gateway-publish/uv.lock b/.github/actions/gateway-publish/uv.lock index f35f74a..95eb227 100644 --- a/.github/actions/gateway-publish/uv.lock +++ b/.github/actions/gateway-publish/uv.lock @@ -206,7 +206,6 @@ version = "0.1.0" source = { editable = "." } dependencies = [ { name = "httpx" }, - { name = "jsonschema" }, { name = "linkml-runtime" }, { name = "pydantic" }, { name = "pyyaml" }, @@ -220,7 +219,6 @@ dev = [ [package.metadata] requires-dist = [ { name = "httpx", specifier = ">=0.28" }, - { name = "jsonschema", specifier = ">=4.23" }, { name = "linkml-runtime", specifier = ">=1.12.1" }, { name = "pydantic", specifier = ">=2" }, { name = "pyyaml", specifier = ">=6.0.3" }, diff --git a/.github/workflows/gateway-publish.yml b/.github/workflows/gateway-publish.yml index 1b044f7..a44894d 100644 --- a/.github/workflows/gateway-publish.yml +++ b/.github/workflows/gateway-publish.yml @@ -51,7 +51,7 @@ on: type: string default: "" traser: - description: Also check the metadata with TRASER, as the Gateway does. + description: Validate with TRASER, as the Gateway does. false skips validation. type: boolean default: true traser-url: diff --git a/.github/workflows/gateway-validate.yml b/.github/workflows/gateway-validate.yml index f1fc1aa..de269e9 100644 --- a/.github/workflows/gateway-validate.yml +++ b/.github/workflows/gateway-validate.yml @@ -2,10 +2,9 @@ # pull requests (see samples/check.gateway.yaml). It needs no secrets, so it is safe for # PRs from forks and Dependabot. # -# It builds the metadata from the LinkML schema and gateway/metadata.yaml, validates it -# against the HDRUK 4.1.0 schema, and (by default) sends it to HDR UK's TRASER service, -# which the Gateway uses and which catches errors the schema alone misses. TRASER receives -# the metadata, which is published anyway. +# It builds the metadata from the LinkML schema and gateway/metadata.yaml, then validates it +# with HDR UK's TRASER service, the way the Gateway does: against HDRUK 4.1.0, then +# translated to GWDM. name: HDR UK Gateway Validate on: @@ -20,7 +19,7 @@ on: type: string default: "" traser: - description: Also check the metadata with TRASER, as the Gateway does. + description: Validate with TRASER, as the Gateway does. false skips validation. type: boolean default: true traser-url: diff --git a/docs/workflows/gateway-publish.md b/docs/workflows/gateway-publish.md index e370f5a..6bef102 100644 --- a/docs/workflows/gateway-publish.md +++ b/docs/workflows/gateway-publish.md @@ -2,7 +2,7 @@ Two reusable workflows that publish a dataset's metadata to the [HDR UK Health Data Research Gateway](https://healthdatagateway.org) from a LinkML repo: -- `gateway-validate.yml` builds and validates the metadata. Run it on pull requests. It needs no secrets. +- `gateway-validate.yml` builds the metadata and validates it with HDR UK's TRASER service, as the Gateway does. Run it on pull requests. It needs no secrets. - `gateway-publish.yml` validates, then sends the metadata to the Gateway as a new version of an existing dataset. Run it after `semantic-release` creates a release. Both run the [gateway-publish action](../../.github/actions/gateway-publish/README.md). It combines: @@ -30,7 +30,7 @@ Both run the [gateway-publish action](../../.github/actions/gateway-publish/READ ```sh export GATEWAY_APP_ID=... GATEWAY_CLIENT_ID=... # don't put these in shell history or files in the repo uv run --project /.github/actions/gateway-publish \ - gateway-publish create --dataset . --version 0.0.0 + gateway-publish create . --version 0.0.0 ``` 6. **Add the publish job** to the release workflow ([sample](../../samples/release.gateway.yaml)). @@ -43,7 +43,7 @@ The workflows never create datasets and never write to the repository. If `gatew |---|---|---|---| | `dataset-dir` | No | `.` | Directory holding `gateway/`. | | `schema` | No | the only `*.yaml` in `dataset-dir`, else in `dataset-dir/schemas` | LinkML schema. | -| `traser` | No | `true` | Also check with HDR UK's TRASER service, as the Gateway does. It catches errors that schema validation misses. | +| `traser` | No | `true` | Validate with HDR UK's TRASER service, as the Gateway does: against HDRUK 4.1.0, then translated to GWDM. This is the only validation. | | `traser-url` | No | HDR UK's dev TRASER | TRASER base URL. | ## `gateway-publish.yml` From 784de988e79cb8bf1cfcce5d33b0cb05d7ced801 Mon Sep 17 00:00:00 2001 From: Andy Rae <1127507+AndyRae@users.noreply.github.com> Date: Mon, 23 Nov 2026 09:56:50 +0000 Subject: [PATCH 03/10] refactor: collapse gateway-publish into one script and one workflow Replace the gateway-publish package with a single script, gateway_publish.py (validate, create, push), plus one test file. Merge gateway-validate.yml and gateway-publish.yml into gateway.yml: it always validates, and publishes after an environment approval when `publish: true`. Drop the samples and the action README; the docs page has the caller snippets and the script's docstring has the API notes. Co-Authored-By: Claude Opus 5.5 --- .github/actions/gateway-publish/.gitignore | 1 - .github/actions/gateway-publish/README.md | 62 --- .github/actions/gateway-publish/action.yml | 62 +-- .../gateway-publish/gateway_publish.py | 279 ++++++++++ .../actions/gateway-publish/pyproject.toml | 26 +- .../actions/gateway-publish/scripts/run.sh | 58 --- .../src/gateway_publish/__init__.py | 1 - .../src/gateway_publish/build.py | 211 -------- .../src/gateway_publish/cli.py | 206 -------- .../src/gateway_publish/client.py | 194 ------- .../src/gateway_publish/config.py | 63 --- .../src/gateway_publish/traser.py | 81 --- .../gateway-publish/test_gateway_publish.py | 157 ++++++ .../actions/gateway-publish/tests/__init__.py | 0 .../actions/gateway-publish/tests/conftest.py | 32 -- .../tests/fixtures/dataset.golden.json | 115 ---- .../fixtures/dataset/gateway/gateway.yaml | 8 - .../fixtures/dataset/gateway/metadata.yaml | 33 -- .../tests/fixtures/dataset/schema.yaml | 43 -- .../gateway-publish/tests/test_build.py | 150 ------ .../actions/gateway-publish/tests/test_cli.py | 256 --------- .../gateway-publish/tests/test_client.py | 169 ------ .../gateway-publish/tests/test_config.py | 43 -- .../gateway-publish/tests/test_traser.py | 61 --- .github/actions/gateway-publish/uv.lock | 490 +++++++++--------- .github/workflows/action-tests.yml | 3 - .github/workflows/gateway-publish.yml | 135 ----- .github/workflows/gateway-validate.yml | 53 -- .github/workflows/gateway.yml | 115 ++++ docs/workflows/gateway-publish.md | 83 --- docs/workflows/gateway.md | 77 +++ docs/workflows/readme.md | 2 +- samples/check.gateway.yaml | 13 - samples/release.gateway.yaml | 40 -- 34 files changed, 915 insertions(+), 2407 deletions(-) delete mode 100644 .github/actions/gateway-publish/README.md create mode 100644 .github/actions/gateway-publish/gateway_publish.py delete mode 100755 .github/actions/gateway-publish/scripts/run.sh delete mode 100644 .github/actions/gateway-publish/src/gateway_publish/__init__.py delete mode 100644 .github/actions/gateway-publish/src/gateway_publish/build.py delete mode 100644 .github/actions/gateway-publish/src/gateway_publish/cli.py delete mode 100644 .github/actions/gateway-publish/src/gateway_publish/client.py delete mode 100644 .github/actions/gateway-publish/src/gateway_publish/config.py delete mode 100644 .github/actions/gateway-publish/src/gateway_publish/traser.py create mode 100644 .github/actions/gateway-publish/test_gateway_publish.py delete mode 100644 .github/actions/gateway-publish/tests/__init__.py delete mode 100644 .github/actions/gateway-publish/tests/conftest.py delete mode 100644 .github/actions/gateway-publish/tests/fixtures/dataset.golden.json delete mode 100644 .github/actions/gateway-publish/tests/fixtures/dataset/gateway/gateway.yaml delete mode 100644 .github/actions/gateway-publish/tests/fixtures/dataset/gateway/metadata.yaml delete mode 100644 .github/actions/gateway-publish/tests/fixtures/dataset/schema.yaml delete mode 100644 .github/actions/gateway-publish/tests/test_build.py delete mode 100644 .github/actions/gateway-publish/tests/test_cli.py delete mode 100644 .github/actions/gateway-publish/tests/test_client.py delete mode 100644 .github/actions/gateway-publish/tests/test_config.py delete mode 100644 .github/actions/gateway-publish/tests/test_traser.py delete mode 100644 .github/workflows/gateway-publish.yml delete mode 100644 .github/workflows/gateway-validate.yml create mode 100644 .github/workflows/gateway.yml delete mode 100644 docs/workflows/gateway-publish.md create mode 100644 docs/workflows/gateway.md delete mode 100644 samples/check.gateway.yaml delete mode 100644 samples/release.gateway.yaml diff --git a/.github/actions/gateway-publish/.gitignore b/.github/actions/gateway-publish/.gitignore index 5831ca4..a230a78 100644 --- a/.github/actions/gateway-publish/.gitignore +++ b/.github/actions/gateway-publish/.gitignore @@ -1,3 +1,2 @@ .venv/ __pycache__/ -.pytest_cache/ diff --git a/.github/actions/gateway-publish/README.md b/.github/actions/gateway-publish/README.md deleted file mode 100644 index 17620e3..0000000 --- a/.github/actions/gateway-publish/README.md +++ /dev/null @@ -1,62 +0,0 @@ -# Gateway publish action - -A composite action that builds HDR UK Health Data Research Gateway metadata from a LinkML schema plus hand-written catalogue fields, validates it, and publishes it to the Gateway. This page is for people changing it. To use it, see [the workflow docs](../../../docs/workflows/gateway-publish.md): most repositories should call the reusable workflows, not this action. - -## How it works - -The action is a Python package, `gateway-publish`, with a CLI. [`action.yml`](action.yml) installs it with uv (from [`uv.lock`](uv.lock)) and [`scripts/run.sh`](scripts/run.sh) runs it with `validate` or `push`, copying the output to the job summary. The credentials reach the CLI as environment variables, never as arguments. - -| Module | What it does | -|---|---| -| [`build.py`](src/gateway_publish/build.py) | Finds the dataset files and builds the payload: `structuralMetadata` from the LinkML schema (one table per `tree_root` class, one column per slot, enum values as column values), the rest from `gateway/metadata.yaml`, plus the fields the Gateway overwrites anyway. | -| [`traser.py`](src/gateway_publish/traser.py) | Validates the payload by sending it to TRASER `/translate` exactly as the Gateway does: HDRUK 4.1.0 input validation, translation to GWDM, output validation. | -| [`client.py`](src/gateway_publish/client.py) | The Gateway API client, with hints for the known error messages. | -| [`config.py`](src/gateway_publish/config.py) | Credentials and base URL from the environment. It refuses to send credentials to unknown hosts. | -| [`cli.py`](src/gateway_publish/cli.py) | `build`, `validate`, `create` (once per dataset), `push`, and `get` for checking a dataset by hand. | - -## Using the CLI locally - -```bash -cd .github/actions/gateway-publish -uv run gateway-publish --help -uv run gateway-publish validate ~/src/nuh-data-sact -uv run gateway-publish build ~/src/nuh-data-sact --version 1.0.0 -o payload.json -uv run gateway-publish push ~/src/nuh-data-sact --version 1.0.0 --dry-run -``` - -Commands that call the Gateway need `GATEWAY_APP_ID` and `GATEWAY_CLIENT_ID` in the environment. The team comes from `gateway.yaml`, or `GATEWAY_TEAM_ID` for `get`. Keep credentials in a gitignored `.env` file and use `uv run --env-file .env ...`. - -## The Gateway API - -HDR UK's [integration docs](https://hdruk.github.io/gateway-2-integrations-testing/) are out of date: they describe the retired `/api/v1/integrations/datasets` endpoints, which now return 410. This action uses the team dataset API instead, which accepts the Private App headers (`x-application-id`, `x-client-id`). Most of what follows comes from reading the [gateway-api source](https://github.com/HDRUK/gateway-api) and was then confirmed on the live Gateway in November 2026. - -| Action | Request | -|---|---| -| Create | `POST /v2/teams/{team}/datasets?input_schema=HDRUK&input_version=4.1.0` | -| Update (adds a version) | `PUT /v3/teams/{team}/datasets/{id}` | -| Get | `GET /v2/teams/{team}/datasets/{id}[?schema_model=HDRUK&schema_version=4.1.0]` | -| List | `GET /v2/teams/{team}/datasets/status/{active,draft,archived}?title=` | - -- **Use v3 to update.** `PUT /v2/...` overwrites the latest version in place. `PUT /v3/...` (not in Swagger) adds a version and stores only a JSON Patch, so after a v3 update the plain GET returns `"metadata": []`. Ask for `schema_model`/`schema_version` to get the full document. -- **Body:** `{"metadata": {"metadata": , "schemaModel": "HDRUK", "schemaVersion": "4.1.0"}, "create_origin": "API", "status": "DRAFT"|"ACTIVE"}`. Always send `status`: without it an update sets the status to null. The envelope declares the input schema on update; on create, only the query parameters reach TRASER. -- **The Gateway overwrites** `identifier` (with its own `pid`), `issued`, `modified`, `revisions` and `summary.dataCustodian` (the owning team). It stores the metadata as GWDM 2.2 and translates it back on GET. -- **Drafts skip validation.** The Gateway only calls TRASER with validation for `ACTIVE` datasets, so the action always runs TRASER itself. -- **TRASER is stricter than the HDRUK schema.** For example, `provenance.temporal.endDate: CONTINUOUS` is valid HDRUK 4.1.0 but fails translation to GWDM 2.2. -- **Unknown IDs:** GET returns 404, but an update probably returns 500. - -## Tests - -The tests use mocked HTTP for the Gateway and TRASER, so they need no credentials. [`action-tests.yml`](../../workflows/action-tests.yml) runs them on PRs that change `.github/actions/`. To run them locally: - -```bash -cd .github/actions/gateway-publish -uv run pytest -``` - -`tests/test_build.py` has a golden-file test: the payload built from `tests/fixtures/dataset/` (a small LinkML schema covering each mapping case) must match `tests/fixtures/dataset.golden.json`. After an intended change, regenerate it with `UPDATE_GOLDEN=1 uv run pytest tests/test_build.py` and review the diff. - -## Changing the action - -- **New HDRUK schema version:** change `SCHEMA_VERSION` in `build.py` and check that TRASER accepts real payloads. -- **GWDM version:** `GWDM_VERSION` in `traser.py` must match what the live Gateway stores (`gwdm_version` on a dataset version). -- **Dependencies:** change `pyproject.toml`, run `uv lock`, and commit `uv.lock`. Dependabot proposes updates monthly. diff --git a/.github/actions/gateway-publish/action.yml b/.github/actions/gateway-publish/action.yml index 4bee864..c8b902e 100644 --- a/.github/actions/gateway-publish/action.yml +++ b/.github/actions/gateway-publish/action.yml @@ -1,62 +1,46 @@ name: HDR UK Gateway publish description: >- - Builds HDR UK Health Data Research Gateway metadata (HDRUK 4.1.0) from a LinkML schema - plus hand-written catalogue fields in gateway/, validates it, and with `command: push` - sends it to the Gateway as a new version of an existing dataset. Run it after checking - out the dataset repo. Most repositories should call the reusable workflows - (gateway-validate.yml, gateway-publish.yml), not this action. + Builds HDR UK Gateway metadata from a dataset repo's LinkML schema and gateway/ files, + validates it with TRASER, and with `command: push` sends it as a new version of the + dataset. Used by .github/workflows/gateway.yml; see gateway_publish.py for details. inputs: command: - description: >- - validate (build and validate; needs no credentials) or push (build, validate, send a - new version, and read it back). + description: validate or push. required: true dataset-dir: - description: Directory holding gateway/metadata.yaml and gateway/gateway.yaml, relative to the workspace. + description: Directory holding gateway/. default: "." schema: - description: >- - LinkML schema, relative to the workspace. Default: the only *.yaml in dataset-dir, - else in dataset-dir/schemas. + description: LinkML schema. Default the only *.yaml in dataset-dir, else in dataset-dir/schemas. default: "" version: - description: >- - Metadata version, major.minor.patch (a leading v is removed). Required for push; - validate uses 0.0.0 if empty. - default: "" + description: Metadata version, major.minor.patch (a leading v is removed). + default: "0.0.0" status: - description: DRAFT or ACTIVE. Default is the status in gateway.yaml, else DRAFT. + description: DRAFT or ACTIVE. Default the status in gateway.yaml. default: "" dry-run: - description: With push, print the request instead of sending it. Needs no credentials. + description: Print the request instead of sending it. default: "false" traser: - description: >- - Validate the metadata with HDR UK's TRASER service, the way the Gateway does (against - HDRUK 4.1.0, then translated to GWDM). This is the only validation; false skips it. + description: Validate with TRASER. false skips validation. default: "true" traser-url: - description: TRASER base URL. Default is HDR UK's dev instance. + description: TRASER base URL. Default HDR UK's dev instance. default: "" base-url: description: Gateway API base URL. default: https://api.healthdatagateway.org/api - allow-unknown-host: - description: Send credentials to a base-url that isn't a known Gateway host. - default: "false" team-id: - description: Gateway team ID. Default is team_id in gateway.yaml; if set, it must match. + description: Gateway team ID. Default team_id in gateway.yaml; if set, it must match. default: "" app-id: - description: The Private App's App ID. Required for push, unless dry-run. + description: The Private App's App ID (push only). default: "" client-id: - description: The Private App's Client ID. Required for push, unless dry-run. + description: The Private App's Client ID (push only). default: "" - python-version: - description: Python version to run the tool with. - default: "3.13" runs: using: composite @@ -64,11 +48,9 @@ runs: # uv installs the dependencies pinned in this action's uv.lock. - name: Set up uv uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2 - with: - python-version: ${{ inputs.python-version }} - enable-cache: false - - name: Run gateway-publish + # Inputs reach the script as environment variables, never interpolated into the shell. + - name: Run gateway_publish.py shell: bash env: COMMAND: ${{ inputs.command }} @@ -80,8 +62,14 @@ runs: TRASER: ${{ inputs.traser }} TRASER_URL: ${{ inputs.traser-url }} GATEWAY_BASE_URL: ${{ inputs.base-url }} - GATEWAY_ALLOW_UNKNOWN_HOST: ${{ inputs.allow-unknown-host == 'true' && '1' || '' }} GATEWAY_TEAM_ID: ${{ inputs.team-id }} GATEWAY_APP_ID: ${{ inputs.app-id }} GATEWAY_CLIENT_ID: ${{ inputs.client-id }} - run: bash "$GITHUB_ACTION_PATH/scripts/run.sh" + run: | + args=("$COMMAND" "$DATASET_DIR" --version "$VERSION") + if [ -n "$SCHEMA" ]; then args+=(--schema "$SCHEMA"); fi + if [ -n "$STATUS" ]; then args+=(--status "$STATUS"); fi + if [ "$DRY_RUN" = "true" ]; then args+=(--dry-run); fi + if [ "$TRASER" != "true" ]; then args+=(--skip-traser); fi + uv run --quiet --frozen --no-dev --project "$GITHUB_ACTION_PATH" \ + python "$GITHUB_ACTION_PATH/gateway_publish.py" "${args[@]}" diff --git a/.github/actions/gateway-publish/gateway_publish.py b/.github/actions/gateway-publish/gateway_publish.py new file mode 100644 index 0000000..ede9dc7 --- /dev/null +++ b/.github/actions/gateway-publish/gateway_publish.py @@ -0,0 +1,279 @@ +"""Publish a dataset's metadata to the HDR UK Health Data Research Gateway. + +The payload (HDRUK 4.1.0) is built from a dataset directory: + .yaml or schemas/.yaml LinkML schema -> structuralMetadata + gateway/metadata.yaml hand-written catalogue fields, in HDRUK 4.1.0 shape + gateway/gateway.yaml team_id, team_name, status, dataset_id, pid + +Commands: + validate DIR build, then check with TRASER + create DIR --version V once per dataset; writes dataset_id and pid to gateway.yaml + push DIR --version V validate, PUT a new version, read it back + +Gateway API notes (HDR UK's integration docs describe a retired API): +- Auth is a Private App's x-application-id / x-client-id headers, on the team dataset API. +- Create is POST /v2/teams/{team}/datasets. Update is PUT /v3/...: the v2 PUT overwrites + the latest version instead of adding one. +- The metadata is sent in the envelope the Gateway's own form uses, which declares the + input schema. Always send status: an update without it sets the status to null. +- The Gateway overwrites identifier, issued, modified, revisions and dataCustodian; we fill + them only so the payload validates. +- The Gateway runs TRASER (HDRUK -> GWDM translation, with validation) on ACTIVE datasets + only, so we always run it ourselves first. It is stricter than the HDRUK schema, e.g. it + rejects provenance.temporal.endDate: CONTINUOUS. +""" + +import argparse +import json +import os +import re +import sys +from datetime import UTC, datetime +from pathlib import Path + +import httpx +import yaml +from linkml_runtime.utils.schemaview import SchemaView + +SCHEMA = ("HDRUK", "4.1.0") +GWDM_VERSION = "2.2" # what the live Gateway stores +GATEWAY_URL = "https://api.healthdatagateway.org/api" +TRASER_URL = "https://hdr-gateway-traser-dev-qmnkcg5qjq-ew.a.run.app" +STATUSES = ("DRAFT", "ACTIVE") +# Filled by build; metadata.yaml must not set them. +GENERATED = ("identifier", "version", "issued", "modified", "revisions", "structuralMetadata") +TIMEOUT = httpx.Timeout(60.0, connect=10.0) +transport = None # tests replace this with an httpx.MockTransport + + +class Error(Exception): + pass + + +class _Loader(yaml.SafeLoader): + """Keeps unquoted dates (startDate: 2020-01-01) as strings, as HDRUK expects.""" + + +_Loader.yaml_implicit_resolvers = { + k: [r for r in v if r[0] != "tag:yaml.org,2002:timestamp"] + for k, v in yaml.SafeLoader.yaml_implicit_resolvers.items() +} + + +def load_yaml(path: Path) -> dict: + if not path.is_file(): + raise Error(f"Missing {path}") + return yaml.load(path.read_text(), Loader=_Loader) or {} + + +def find_schema(root: Path) -> Path: + for folder in (root, root / "schemas"): + found = sorted(folder.glob("*.yaml")) + if len(found) == 1: + return found[0] + if found: + raise Error(f"More than one *.yaml in {folder}; pass --schema") + raise Error(f"No LinkML schema (*.yaml) in {root} or {root / 'schemas'}; pass --schema") + + +def structural_metadata(schema: Path) -> dict: + """One table per tree_root class, one column per slot; enums carry their values.""" + sv = SchemaView(str(schema)) + tables = [] + for cls in (c for c in sv.all_classes().values() if c.tree_root): + columns = [] + for name in sv.class_slots(cls.name): + slot = sv.induced_slot(name, cls.name) + enum = sv.get_enum(slot.range, strict=False) if slot.range else None + column = { + "name": slot.name, + "dataType": "string" if enum else slot.range or "string", + "description": (slot.description or "").strip() or None, # HDRUK rejects "" + "sensitive": "sensitivity" in slot.annotations, + } + if enum: + column["values"] = [ + {"name": k, "description": (v.description or "").strip() or None} + for k, v in enum.permissible_values.items() + ] + columns.append(column) + tables.append({"name": cls.name, "description": (cls.description or "").strip() or None, "columns": columns}) + if not tables: + raise Error(f"{schema}: no tree_root class") + return {"tables": tables} + + +def todos(value, path=""): + if isinstance(value, dict): + return [p for k, v in value.items() for p in todos(v, f"{path}/{k}")] + if isinstance(value, list): + return [p for i, v in enumerate(value) for p in todos(v, f"{path}/{i}")] + return [path] if isinstance(value, str) and value.strip().startswith("TODO") else [] + + +def build(root: Path, schema: Path | None, version: str, now: datetime | None = None) -> tuple[dict, dict]: + """Return (payload, gateway.yaml contents).""" + metadata = load_yaml(root / "gateway" / "metadata.yaml") + gateway = load_yaml(root / "gateway" / "gateway.yaml") + for key in ("team_id", "team_name"): + if not gateway.get(key): + raise Error(f"gateway.yaml: '{key}' is required") + if gateway.get("status") not in (None, *STATUSES): + raise Error("gateway.yaml: status must be DRAFT or ACTIVE") + version = version.removeprefix("v") + if not re.fullmatch(r"\d+\.\d+\.\d+", version): + raise Error(f"Version must be major.minor.patch, got {version!r}") + if found := todos(metadata): + raise Error(f"metadata.yaml still has TODOs at: {', '.join(found)}") + clashes = [f for f in GENERATED if f in metadata] + if "dataCustodian" in metadata.get("summary", {}): + clashes.append("summary/dataCustodian") + if clashes: + raise Error(f"metadata.yaml must not set fields that are generated: {', '.join(clashes)}") + + stamp = (now or datetime.now(UTC)).strftime("%Y-%m-%dT%H:%M:%S.000Z") + summary = metadata.get("summary", {}) + return { + "identifier": gateway.get("pid"), + "version": version, + "revisions": [], + "issued": stamp, + "modified": stamp, + **metadata, + "summary": {**summary, "dataCustodian": { + "identifier": str(gateway["team_id"]), "name": gateway["team_name"], "contactPoint": summary.get("contactPoint"), + }}, + "structuralMetadata": structural_metadata(schema or find_schema(root)), + }, gateway + + +def traser_check(payload: dict) -> None: + """Make the call the Gateway makes for ACTIVE datasets; raise with TRASER's errors.""" + with httpx.Client(base_url=os.environ.get("TRASER_URL") or TRASER_URL, timeout=120, transport=transport) as client: + response = client.post("/translate", params={ + "input_schema": SCHEMA[0], "input_version": SCHEMA[1], "output_schema": "GWDM", + "output_version": GWDM_VERSION, "validate_input": "1", "validate_output": "1", + }, json={"metadata": payload, "extra": { + "id": "placeholder", "pid": "placeholder", "datasetType": "Health and disease", + "publisherId": "placeholder", "publisherName": "placeholder", + }}) + if response.is_success: + return + try: + body = response.json() + except ValueError: + body = {"message": response.text[:300]} + details = body.get("details") + if isinstance(details, dict): + details = details.get("validationErrors") + lines = [f" {d.get('instancePath') or '/'}: {d.get('message')} {d.get('params') or ''}" for d in details or []] + raise Error("\n".join([f"TRASER rejected the metadata (HTTP {response.status_code}): {body.get('message')}", *lines])) + + +def gateway_client() -> httpx.Client: + missing = [n for n in ("GATEWAY_APP_ID", "GATEWAY_CLIENT_ID") if not os.environ.get(n)] + if missing: + raise Error(f"Missing environment variable(s): {', '.join(missing)}") + return httpx.Client( + base_url=(os.environ.get("GATEWAY_BASE_URL") or GATEWAY_URL).rstrip("/"), + headers={"x-application-id": os.environ["GATEWAY_APP_ID"], "x-client-id": os.environ["GATEWAY_CLIENT_ID"]}, + timeout=TIMEOUT, + transport=transport, + ) + + +def call(client: httpx.Client, method: str, path: str, **kwargs) -> dict: + response = client.request(method, path, **kwargs) + if not response.is_success: + try: + message = response.json().get("message") + except ValueError: + message = response.text[:300] + raise Error(f"Gateway {method} {path}: HTTP {response.status_code}: {message}") + return response.json() + + +def latest(client: httpx.Client, team: int, dataset_id: int) -> tuple[int, str | None]: + """(version number, title) of the dataset's latest version.""" + versions = call(client, "GET", f"/v2/teams/{team}/datasets/{dataset_id}")["data"]["versions"] + newest = max(versions, key=lambda v: v["version"]) + return newest["version"], newest.get("title") + + +def body(payload: dict, status: str) -> dict: + envelope = {"metadata": payload, "schemaModel": SCHEMA[0], "schemaVersion": SCHEMA[1]} + return {"metadata": envelope, "create_origin": "API", "status": status} + + +def record_created(path: Path, dataset_id: int, pid: str | None) -> None: + """Write dataset_id and pid into gateway.yaml, keeping its comments.""" + text = path.read_text() + for key, value in (("dataset_id", dataset_id), ("pid", pid)): + line = f"{key}: {'null' if value is None else value}" + text, n = re.subn(rf"^{key}:.*$", line, text, count=1, flags=re.MULTILINE) + if not n: + text = text.rstrip("\n") + f"\n{line}\n" + path.write_text(text) + + +def main(argv: list[str] | None = None) -> None: + parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter) + parser.add_argument("command", choices=("validate", "create", "push")) + parser.add_argument("dataset", type=Path, help="dataset directory (holds gateway/)") + parser.add_argument("--schema", type=Path, help="LinkML schema (default: the only *.yaml in DIR, else DIR/schemas)") + parser.add_argument("--version", default="0.0.0", help="metadata version, major.minor.patch") + parser.add_argument("--status", choices=STATUSES, help="default: gateway.yaml's status, else DRAFT") + parser.add_argument("--dry-run", action="store_true", help="push: print the request instead of sending it") + parser.add_argument("--skip-traser", action="store_true") + args = parser.parse_args(argv) + + try: + payload, gateway = build(args.dataset, args.schema, args.version) + if args.skip_traser: + print("Built; TRASER check skipped") + else: + traser_check(payload) + print(f"Valid {SCHEMA[0]} {SCHEMA[1]}; translates to GWDM {GWDM_VERSION} (TRASER)") + if args.command == "validate": + return + + status = args.status or gateway.get("status") or "DRAFT" + team = int(os.environ.get("GATEWAY_TEAM_ID") or gateway["team_id"]) + if team != gateway["team_id"]: + raise Error(f"gateway.yaml is for team {gateway['team_id']}, but GATEWAY_TEAM_ID is {team}") + datasets = f"/v2/teams/{team}/datasets" + + if args.command == "create": + if gateway.get("dataset_id"): + raise Error(f"gateway.yaml already has dataset_id {gateway['dataset_id']}; use push") + with gateway_client() as client: + dataset_id = call(client, "POST", datasets, json=body(payload, status), + params={"input_schema": SCHEMA[0], "input_version": SCHEMA[1]})["data"] + record_created(args.dataset / "gateway" / "gateway.yaml", dataset_id, None) # never lose the ID + pid = call(client, "GET", f"{datasets}/{dataset_id}")["data"].get("pid") + record_created(args.dataset / "gateway" / "gateway.yaml", dataset_id, pid) + print(f"Created {status} dataset {dataset_id}; commit gateway/gateway.yaml") + return + + dataset_id = gateway.get("dataset_id") + if not dataset_id: + raise Error("gateway.yaml has no dataset_id: run `create` once and commit gateway.yaml") + if args.dry_run: + print(f"DRY RUN: PUT /v3/teams/{team}/datasets/{dataset_id}") + print(json.dumps(body(payload, status), indent=2, ensure_ascii=False)) + return + with gateway_client() as client: + before, _ = latest(client, team, dataset_id) + # Not retried: a retry could add a second version. + call(client, "PUT", f"/v3/teams/{team}/datasets/{dataset_id}", json=body(payload, status)) + after, title = latest(client, team, dataset_id) + print(f"Dataset {dataset_id}: version {before} -> {after}, status {status}") + if after <= before or title != payload["summary"]["title"]: + raise Error(f"Read-back check failed: version {after}, title {title!r}") + except Error as e: + print(f"error: {e}", file=sys.stderr) + sys.exit(1) + + +if __name__ == "__main__": + main() diff --git a/.github/actions/gateway-publish/pyproject.toml b/.github/actions/gateway-publish/pyproject.toml index ade46b7..ed95149 100644 --- a/.github/actions/gateway-publish/pyproject.toml +++ b/.github/actions/gateway-publish/pyproject.toml @@ -1,30 +1,20 @@ [project] name = "gateway-publish" -version = "0.1.0" +version = "0.0.0" description = "Publish dataset metadata to the HDR UK Health Data Research Gateway" -readme = "README.md" requires-python = ">=3.13" dependencies = [ - "httpx>=0.28", + "httpx>=0.28.1", "linkml-runtime>=1.12.1", - "pydantic>=2", "pyyaml>=6.0.3", ] -[project.scripts] -gateway-publish = "gateway_publish.cli:main" - -[build-system] -requires = ["hatchling"] -build-backend = "hatchling.build" - -[tool.hatch.build.targets.wheel] -packages = ["src/gateway_publish"] - [dependency-groups] -dev = [ - "pytest>=8", -] +dev = ["pytest>=9.2.0"] + +[tool.uv] +# A script, not a package: action.yml runs gateway_publish.py directly. +package = false [tool.pytest.ini_options] -testpaths = ["tests"] +addopts = "-p no:cacheprovider" diff --git a/.github/actions/gateway-publish/scripts/run.sh b/.github/actions/gateway-publish/scripts/run.sh deleted file mode 100755 index 8755058..0000000 --- a/.github/actions/gateway-publish/scripts/run.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/usr/bin/env bash -# Runs the gateway-publish CLI (this action's Python package) and copies its output to the -# job summary. -# -# Environment (set by action.yml): -# COMMAND validate or push -# DATASET_DIR, SCHEMA the dataset directory and, optionally, the LinkML schema -# VERSION the metadata version (required for push) -# STATUS DRAFT, ACTIVE or empty (gateway.yaml decides) -# DRY_RUN, TRASER "true" or "false" -# TRASER_URL, GATEWAY_* read by the CLI itself; GATEWAY_APP_ID and GATEWAY_CLIENT_ID are -# secrets, so they are never put on the command line -# GITHUB_ACTION_PATH this action's directory -# GITHUB_STEP_SUMMARY the file that GitHub Actions shows as the job summary -set -euo pipefail - -args=() -case "$COMMAND" in - validate) - args=(validate "$DATASET_DIR") - if [ -n "$VERSION" ]; then args+=(--version "$VERSION"); fi - if [ "$TRASER" != "true" ]; then args+=(--skip-traser); fi - ;; - push) - if [ -z "$VERSION" ]; then - echo "::error::The version input is required for push" - exit 1 - fi - args=(push "$DATASET_DIR" --version "$VERSION") - if [ -n "$STATUS" ]; then args+=(--status "$STATUS"); fi - if [ "$DRY_RUN" = "true" ]; then args+=(--dry-run); fi - if [ "$TRASER" != "true" ]; then args+=(--skip-traser); fi - ;; - *) - echo "::error::Unknown command '$COMMAND' (expected validate or push)" - exit 1 - ;; -esac -if [ -n "$SCHEMA" ]; then args+=(--schema "$SCHEMA"); fi - -log=$(mktemp) -set +e -uv run --quiet --frozen --no-dev --project "$GITHUB_ACTION_PATH" gateway-publish "${args[@]}" 2>&1 | tee "$log" -result=${PIPESTATUS[0]} -set -e - -{ - echo "### HDR UK Gateway: $COMMAND" - echo - echo '```' - cat "$log" - echo '```' -} >> "$GITHUB_STEP_SUMMARY" - -if [ "$result" -ne 0 ]; then - echo "::error::gateway-publish $COMMAND failed; see the log above or the job summary" -fi -exit "$result" diff --git a/.github/actions/gateway-publish/src/gateway_publish/__init__.py b/.github/actions/gateway-publish/src/gateway_publish/__init__.py deleted file mode 100644 index 8ee057c..0000000 --- a/.github/actions/gateway-publish/src/gateway_publish/__init__.py +++ /dev/null @@ -1 +0,0 @@ -"""Publish dataset metadata to the HDR UK Health Data Research Gateway.""" diff --git a/.github/actions/gateway-publish/src/gateway_publish/build.py b/.github/actions/gateway-publish/src/gateway_publish/build.py deleted file mode 100644 index 010ea81..0000000 --- a/.github/actions/gateway-publish/src/gateway_publish/build.py +++ /dev/null @@ -1,211 +0,0 @@ -"""Build a Gateway payload (HDRUK 4.1.0) from a dataset directory. - -A dataset directory (in a dataset repo, the repo root) holds: - .yaml or schemas/.yaml - LinkML schema; supplies structuralMetadata - gateway/metadata.yaml hand-written catalogue fields, in HDRUK 4.1.0 shape - gateway/gateway.yaml the Gateway team, the status to publish with and, once created, - the dataset ID and pid - -`build_payload` merges them and fills the fields the Gateway overwrites anyway (identifier, -issued, modified, revisions, summary.dataCustodian) so the payload passes validation. -""" - -import re -from dataclasses import dataclass -from datetime import UTC, datetime -from pathlib import Path -from typing import Any - -import yaml -from linkml_runtime.utils.schemaview import SchemaView - -from gateway_publish.client import STATUSES - -SCHEMA_MODEL = "HDRUK" -SCHEMA_VERSION = "4.1.0" -TODO_MARKER = "TODO" -# Filled by build; metadata.yaml must not set them. -GENERATED_FIELDS = ("identifier", "version", "issued", "modified", "revisions", "structuralMetadata") - - -class BuildError(Exception): - pass - - -class _Loader(yaml.SafeLoader): - """SafeLoader that keeps unquoted dates (startDate: 2020-01-01) as strings, as HDRUK expects.""" - - -_Loader.yaml_implicit_resolvers = { - first: [(tag, regexp) for tag, regexp in resolvers if tag != "tag:yaml.org,2002:timestamp"] - for first, resolvers in yaml.SafeLoader.yaml_implicit_resolvers.items() -} - - -@dataclass -class DatasetDir: - root: Path - schema: Path - metadata: Path - gateway: Path - - @classmethod - def find(cls, root: Path, schema: Path | None = None) -> "DatasetDir": - """`schema` defaults to the only *.yaml in `root`, or failing that in `root`/schemas.""" - if not root.is_dir(): - raise BuildError(f"Not a directory: {root}") - if schema is None: - schema = _find_schema(root) - dataset = cls(root, schema, root / "gateway" / "metadata.yaml", root / "gateway" / "gateway.yaml") - for path in (dataset.schema, dataset.metadata, dataset.gateway): - if not path.is_file(): - raise BuildError(f"Missing {path}") - return dataset - - def load_metadata(self) -> dict[str, Any]: - return _load_yaml(self.metadata) - - def load_gateway(self) -> dict[str, Any]: - gateway = _load_yaml(self.gateway) - for key in ("team_id", "team_name"): - if not gateway.get(key): - raise BuildError(f"{self.gateway}: '{key}' is required") - if gateway.get("status") not in (None, *STATUSES): - raise BuildError(f"{self.gateway}: status must be one of {', '.join(STATUSES)}") - return gateway - - def record_created(self, dataset_id: int, pid: str | None) -> None: - """Write dataset_id and pid into gateway.yaml, keeping its comments and other keys.""" - text = self.gateway.read_text() - for key, value in (("dataset_id", dataset_id), ("pid", pid)): - line = f"{key}: {yaml.safe_dump(value, default_style=None).splitlines()[0]}" - text, found = re.subn(rf"^{key}:.*$", line, text, count=1, flags=re.MULTILINE) - if not found: - text = text.rstrip("\n") + f"\n{line}\n" - self.gateway.write_text(text) - - -def _find_schema(root: Path) -> Path: - for folder in (root, root / "schemas"): - schemas = sorted(folder.glob("*.yaml")) - if len(schemas) == 1: - return schemas[0] - if schemas: - found = ", ".join(p.name for p in schemas) - raise BuildError(f"More than one *.yaml in {folder} ({found}); pass the LinkML schema with --schema") - raise BuildError(f"No LinkML schema (*.yaml) in {root} or {root / 'schemas'}; pass it with --schema") - - -def _load_yaml(path: Path) -> dict[str, Any]: - try: - data = yaml.load(path.read_text(), Loader=_Loader) - except yaml.YAMLError as e: - raise BuildError(f"{path} is not valid YAML: {e}") from None - if not isinstance(data, dict): - raise BuildError(f"{path} must contain a mapping") - return data - - -def find_todos(value: Any, path: str = "") -> list[str]: - """Paths of string values that still start with the TODO marker.""" - if isinstance(value, dict): - return [p for k, v in value.items() for p in find_todos(v, f"{path}/{k}")] - if isinstance(value, list): - return [p for i, v in enumerate(value) for p in find_todos(v, f"{path}/{i}")] - if isinstance(value, str) and value.strip().startswith(TODO_MARKER): - return [path or "/"] - return [] - - -def _values(sv: SchemaView, range_name: str | None) -> list[dict[str, Any]] | None: - """An enum's permissible values as HDRUK column values; None for other ranges.""" - enum = sv.get_enum(range_name, strict=False) if range_name else None - if enum is None: - return None - return [ - {"name": name, "description": (pv.description or "").strip() or None} - for name, pv in enum.permissible_values.items() - ] - - -def _data_type(sv: SchemaView, range_name: str | None) -> str: - if range_name is None: - return "string" - # Enums are stored as their (string) permissible values. - return "string" if sv.get_enum(range_name, strict=False) else range_name - - -def structural_metadata(schema_path: Path) -> dict[str, Any]: - """One table per tree_root class, one column per slot (as nuh-data's gen_datadict.py).""" - sv = SchemaView(str(schema_path)) - roots = [c for c in sv.all_classes().values() if c.tree_root] - if not roots: - raise BuildError(f"{schema_path}: no tree_root class found") - tables = [] - for cls in roots: - columns = [] - for slot_name in sv.class_slots(cls.name): - slot = sv.induced_slot(slot_name, cls.name) - column = { - "name": slot.name, - "dataType": _data_type(sv, slot.range), - # HDRUK rejects empty descriptions. - "description": (slot.description or "").strip() or None, - "sensitive": "sensitivity" in slot.annotations, - } - values = _values(sv, slot.range) - if values is not None: - column["values"] = values - columns.append(column) - tables.append({"name": cls.name, "description": (cls.description or "").strip() or None, "columns": columns}) - return {"tables": tables} - - -def _timestamp(now: datetime) -> str: - return now.astimezone(UTC).strftime("%Y-%m-%dT%H:%M:%S.000Z") - - -def _semver(version: str) -> str: - """HDRUK needs major.minor.patch; release tags may carry a leading v.""" - plain = version.removeprefix("v") - if not re.fullmatch(r"\d+\.\d+\.\d+", plain): - raise BuildError(f"Version {version!r} must be major.minor.patch, e.g. 1.2.3 (a leading v is allowed)") - return plain - - -def build_payload(dataset: DatasetDir, version: str, now: datetime | None = None) -> dict[str, Any]: - version = _semver(version) - metadata = dataset.load_metadata() - gateway = dataset.load_gateway() - - todos = find_todos(metadata) - if todos: - raise BuildError(f"{dataset.metadata} still has TODOs at: {', '.join(todos)}") - clashes = [f for f in GENERATED_FIELDS if f in metadata] - if "dataCustodian" in metadata.get("summary", {}): - clashes.append("summary/dataCustodian") - if clashes: - raise BuildError(f"{dataset.metadata} must not set fields that build fills: {', '.join(clashes)}") - - stamp = _timestamp(now or datetime.now(UTC)) - summary = metadata.get("summary", {}) - payload = { - "identifier": gateway.get("pid"), - "version": version, - "revisions": [], - "issued": stamp, - "modified": stamp, - **metadata, - "structuralMetadata": structural_metadata(dataset.schema), - } - # Required by the schema but replaced by the Gateway with the owning team. - payload["summary"] = { - **summary, - "dataCustodian": { - "identifier": str(gateway["team_id"]), - "name": gateway["team_name"], - "contactPoint": summary.get("contactPoint"), - }, - } - return payload diff --git a/.github/actions/gateway-publish/src/gateway_publish/cli.py b/.github/actions/gateway-publish/src/gateway_publish/cli.py deleted file mode 100644 index e78761f..0000000 --- a/.github/actions/gateway-publish/src/gateway_publish/cli.py +++ /dev/null @@ -1,206 +0,0 @@ -"""Command line interface: gateway-publish ...""" - -import argparse -import json -import os -import sys -from pathlib import Path -from typing import Any - -from gateway_publish.build import SCHEMA_MODEL, SCHEMA_VERSION, BuildError, DatasetDir, build_payload -from gateway_publish.client import STATUSES, GatewayClient, GatewayError, latest_version -from gateway_publish.config import DEFAULT_BASE_URL, ConfigError, GatewayConfig -from gateway_publish.traser import TraserError, traser_errors - -DECLARED_SCHEMA = (SCHEMA_MODEL, SCHEMA_VERSION) -# Any valid version will do when only checking a dataset directory. -VALIDATE_VERSION = "0.0.0" - - -class CommandError(Exception): - pass - - -def _print_json(data: Any) -> None: - print(json.dumps(data, indent=2, ensure_ascii=False)) - - -def _client(args: argparse.Namespace, default_team_id: int | None = None) -> GatewayClient: - """`default_team_id` applies only when neither --team-id nor $GATEWAY_TEAM_ID is set.""" - team_id = args.team_id - if team_id is None and not os.environ.get("GATEWAY_TEAM_ID"): - team_id = default_team_id - return GatewayClient(GatewayConfig.from_env(base_url=args.base_url, team_id=team_id)) - - -def _dataset(args: argparse.Namespace) -> DatasetDir: - return DatasetDir.find(args.dataset, schema=args.schema) - - -def _check(payload: dict[str, Any], label: str, skip_traser: bool) -> None: - """Validate with TRASER the way the Gateway does; exit 1 with readable errors on failure.""" - if skip_traser: - print(f"{label}: built (TRASER check skipped)") - return - errors = traser_errors(payload, SCHEMA_VERSION, SCHEMA_MODEL) - if errors: - print(f"{label} failed the TRASER check ({SCHEMA_MODEL} {SCHEMA_VERSION} to GWDM):", file=sys.stderr) - for error in errors: - print(f" {error}", file=sys.stderr) - raise SystemExit(1) - print(f"{label} is valid {SCHEMA_MODEL} {SCHEMA_VERSION} and translates to GWDM (TRASER)") - - -def _status(args: argparse.Namespace, gateway: dict[str, Any]) -> str: - """--status if given, else gateway.yaml's status, else DRAFT.""" - return args.status or gateway.get("status") or "DRAFT" - - -def _dataset_client(args: argparse.Namespace, gateway: dict[str, Any]) -> GatewayClient: - """A client for gateway.yaml's team. --team-id or $GATEWAY_TEAM_ID, if set, must agree.""" - client = _client(args, default_team_id=gateway["team_id"]) - if client.config.team_id != gateway["team_id"]: - client.close() - raise CommandError( - f"gateway.yaml is for team {gateway['team_id']} but the credentials are for team " - f"{client.config.team_id}" - ) - return client - - -def cmd_build(args: argparse.Namespace) -> None: - payload = build_payload(_dataset(args), args.version) - text = json.dumps(payload, indent=2, ensure_ascii=False) + "\n" - if args.output: - args.output.write_text(text) - print(f"Wrote {args.output}") - else: - print(text, end="") - - -def cmd_validate(args: argparse.Namespace) -> None: - payload = build_payload(_dataset(args), args.version or VALIDATE_VERSION) - _check(payload, str(args.dataset), args.skip_traser) - - -def cmd_create(args: argparse.Namespace) -> None: - dataset = _dataset(args) - gateway = dataset.load_gateway() - if gateway.get("dataset_id"): - raise CommandError( - f"{dataset.gateway} already has dataset_id {gateway['dataset_id']}; use push to update it" - ) - payload = build_payload(dataset, args.version) - _check(payload, str(args.dataset), args.skip_traser) - - status = _status(args, gateway) - with _dataset_client(args, gateway) as client: - result = client.create(payload, status=status, schema=DECLARED_SCHEMA) - # Record the ID before anything else can fail, so it is never lost. - dataset.record_created(result.dataset_id, None) - pid = client.get(result.dataset_id)["data"].get("pid") - dataset.record_created(result.dataset_id, pid) - print(f"Created {status} dataset {result.dataset_id} (pid {pid}); recorded in {dataset.gateway}") - - -def cmd_push(args: argparse.Namespace) -> None: - dataset = _dataset(args) - gateway = dataset.load_gateway() - status = _status(args, gateway) - payload = build_payload(dataset, args.version) - _check(payload, str(args.dataset), args.skip_traser) - - dataset_id = gateway.get("dataset_id") - if not dataset_id: - raise CommandError( - f"{dataset.gateway} has no dataset_id. Create the dataset once with " - f"`gateway-publish create {args.dataset} --version {args.version}` " - "and commit gateway.yaml." - ) - - if args.dry_run: - base_url = (args.base_url or os.environ.get("GATEWAY_BASE_URL") or DEFAULT_BASE_URL).rstrip("/") - print(f"DRY RUN: would send (credential headers omitted)\n" - f"PUT {base_url}/v3/teams/{gateway['team_id']}/datasets/{dataset_id}") - _print_json(GatewayClient._body(payload, status, DECLARED_SCHEMA)) - return - - title = payload["summary"]["title"] - with _dataset_client(args, gateway) as client: - before = latest_version(client.get(dataset_id)) - client.update(dataset_id, payload, status=status, schema=DECLARED_SCHEMA) - after = latest_version(client.get(dataset_id)) - - print(f"Dataset {dataset_id}: version {before.version} -> {after.version}, status {status}") - problems = [] - if after.version <= before.version: - problems.append(f"no new version (still {after.version})") - if after.title != title: - problems.append(f"retrieved title is {after.title!r}, expected {title!r}") - if problems: - raise CommandError("Read-back check failed: " + "; ".join(problems)) - print("OK: new version with the expected title") - - -def cmd_get(args: argparse.Namespace) -> None: - with _client(args) as client: - _print_json(client.get(args.id, SCHEMA_MODEL, SCHEMA_VERSION)) - - -def build_parser() -> argparse.ArgumentParser: - parser = argparse.ArgumentParser(prog="gateway-publish", description=__doc__) - parser.add_argument("--base-url", help=f"Gateway API base URL (default: $GATEWAY_BASE_URL, else {DEFAULT_BASE_URL})") - parser.add_argument("--team-id", type=int, - help="Gateway team ID (default: $GATEWAY_TEAM_ID, else gateway.yaml's team_id)") - sub = parser.add_subparsers(dest="command", required=True) - - def dataset_command(name: str, help: str, version_required: bool = True) -> argparse.ArgumentParser: - p = sub.add_parser(name, help=help) - p.add_argument("dataset", type=Path, help="dataset directory (holds gateway/)") - p.add_argument("--schema", type=Path, - help="LinkML schema (default: the only *.yaml in the dataset directory, else in its schemas/)") - p.add_argument("--version", required=version_required, - help="metadata version, major.minor.patch (in a dataset repo: the release version)") - return p - - def options(p: argparse.ArgumentParser, status: bool = True) -> None: - p.add_argument("--skip-traser", action="store_true", help="skip the TRASER check") - if status: - p.add_argument("--status", choices=STATUSES, - help="DRAFT or ACTIVE (default: gateway.yaml's status, else DRAFT)") - - p = dataset_command("build", "build the payload and print or save it") - p.add_argument("-o", "--output", type=Path, help="write to this file (default: stdout)") - p.set_defaults(func=cmd_build) - - p = dataset_command("validate", "build the payload and check it with TRASER", version_required=False) - options(p, status=False) - p.set_defaults(func=cmd_validate) - - p = dataset_command("create", "create the dataset on the Gateway, once; writes its ID to gateway.yaml") - options(p) - p.set_defaults(func=cmd_create) - - p = dataset_command("push", "validate and send a new version of the dataset, then read it back") - p.add_argument("--dry-run", action="store_true", help="print the request instead of sending it") - options(p) - p.set_defaults(func=cmd_push) - - p = sub.add_parser("get", help="print a dataset's latest version as HDRUK 4.1.0") - p.add_argument("--id", type=int, required=True) - p.set_defaults(func=cmd_get) - - return parser - - -def main(argv: list[str] | None = None) -> None: - args = build_parser().parse_args(argv) - try: - args.func(args) - except (BuildError, ConfigError, CommandError, GatewayError, TraserError) as e: - print(f"error: {e}", file=sys.stderr) - raise SystemExit(1) from None - - -if __name__ == "__main__": - main() diff --git a/.github/actions/gateway-publish/src/gateway_publish/client.py b/.github/actions/gateway-publish/src/gateway_publish/client.py deleted file mode 100644 index 0f327a1..0000000 --- a/.github/actions/gateway-publish/src/gateway_publish/client.py +++ /dev/null @@ -1,194 +0,0 @@ -"""HTTP client for the Gateway's team dataset API (/api/v{2,3}/teams/{teamId}/datasets). - -Authenticates with a Private App's x-application-id / x-client-id headers. Updates go to -v3, because the v2 PUT overwrites the latest version in place instead of adding one. The -older /api/v1/integrations/datasets endpoints have been retired. See the README. -""" - -import json -import time -from dataclasses import dataclass -from typing import Any - -import httpx - -from gateway_publish.config import GatewayConfig - -TIMEOUT = httpx.Timeout(60.0, connect=10.0) -# Reads are retried on 5xx and connection errors, waiting 2s then 4s. Writes are not: a -# retried update could add a second version. -READ_ATTEMPTS = 3 -RETRY_WAIT = 2.0 -STATUSES = ("ACTIVE", "DRAFT") - - -class GatewayError(Exception): - def __init__(self, status_code: int, message: str, hint: str | None, body: Any): - self.status_code = status_code - self.message = message - self.hint = hint - self.body = body - super().__init__(str(self)) - - def __str__(self) -> str: - text = f"HTTP {self.status_code}: {self.message}" - if self.hint: - text += f"\n Likely cause: {self.hint}" - return text - - -# (status code, substring of the response message, hint). First match wins; a None -# substring matches any message for that status. -ERROR_HINTS: list[tuple[int, str | None, str]] = [ - (400, "permissions do not allow", "the Private App lacks the permission for this action " - "(datasets.create / datasets.update). Fix on the app's Permissions tab."), - (400, "not been enabled", "the Private App is disabled. Set it to Enabled on the App Info tab."), - (400, "unknown format", "the metadata matched no supported schema. Run `gateway-publish validate` " - "and see the TRASER details in the response."), - (400, "Title is required", "summary.title is missing from the metadata."), - (401, "No known integration", "GATEWAY_APP_ID does not match any app on this Gateway " - "(wrong value, or credentials from a different environment)."), - (401, "credentials provided are invalid", "GATEWAY_CLIENT_ID does not match the app."), - (401, "another team", "the app belongs to a different team from GATEWAY_TEAM_ID or from the dataset."), - (401, None, "credentials missing, wrong, or not valid for this team."), - (404, None, "no dataset with that ID in this team (wrong ID or team, or it was deleted)."), - (500, None, "server error. For an update this can also mean the dataset ID does not exist."), -] - - -def _hint_for(status_code: int, message: str) -> str | None: - for code, needle, hint in ERROR_HINTS: - if code == status_code and (needle is None or needle.lower() in message.lower()): - return hint - if status_code >= 500: - return "server error on the Gateway; retrying later may help." - return None - - -def _raise_for_status(response: httpx.Response) -> None: - if response.is_success: - return - try: - body = response.json() - except ValueError: - body = response.text - message = body.get("message", "") if isinstance(body, dict) else str(body)[:500] - raise GatewayError(response.status_code, message, _hint_for(response.status_code, message), body) - - -@dataclass -class CreateResult: - dataset_id: int - version_id: int - - -@dataclass -class LatestVersion: - version: int - title: str | None - metadata: dict[str, Any] - - -class GatewayClient: - def __init__(self, config: GatewayConfig, transport: httpx.BaseTransport | None = None, sleep=time.sleep): - self.config = config - self._sleep = sleep - self._http = httpx.Client( - base_url=config.base_url, - headers={ - "x-application-id": config.app_id.get_secret_value(), - "x-client-id": config.client_id.get_secret_value(), - "Accept": "application/json", - }, - timeout=TIMEOUT, - transport=transport, - ) - - def __enter__(self) -> "GatewayClient": - return self - - def __exit__(self, *exc: object) -> None: - self.close() - - def close(self) -> None: - self._http.close() - - def _datasets_path(self, api: str = "v2") -> str: - return f"/{api}/teams/{self.config.team_id}/datasets" - - @staticmethod - def _body(metadata: dict[str, Any], status: str, schema: tuple[str, str] | None = None) -> dict[str, Any]: - # create_origin and status are read unconditionally by the Gateway; omitting - # status on update would blank the dataset's status. DRAFT datasets are left out - # of search, but the Gateway skips schema validation for them. - if status not in STATUSES: - raise ValueError(f"status must be one of {', '.join(STATUSES)}") - if schema: - # The envelope the Gateway's own form sends. Update passes schemaModel and - # schemaVersion to TRASER; create records them as the version's source schema. - metadata = {"metadata": metadata, "schemaModel": schema[0], "schemaVersion": schema[1]} - return {"metadata": metadata, "create_origin": "API", "status": status} - - def create( - self, metadata: dict[str, Any], *, status: str, schema: tuple[str, str] | None = None - ) -> CreateResult: - """Create a dataset. `schema` = (model, version) declares the input schema.""" - # Create only passes the query parameters to TRASER, not the envelope's schema. - params = {"input_schema": schema[0], "input_version": schema[1]} if schema else None - response = self._http.post(self._datasets_path(), params=params, json=self._body(metadata, status, schema)) - _raise_for_status(response) - body = response.json() - return CreateResult(dataset_id=int(body["data"]), version_id=int(body["version"])) - - def update( - self, dataset_id: int, metadata: dict[str, Any], *, status: str, schema: tuple[str, str] | None = None - ) -> dict[str, Any]: - """Add a new version of the dataset (v3; the v2 PUT would overwrite the latest one).""" - response = self._http.put( - f"{self._datasets_path('v3')}/{dataset_id}", json=self._body(metadata, status, schema) - ) - _raise_for_status(response) - return response.json() - - def _read(self, path: str, params: dict[str, Any] | None = None) -> httpx.Response: - for attempt in range(1, READ_ATTEMPTS + 1): - try: - response = self._http.get(path, params=params) - if response.status_code < 500 or attempt == READ_ATTEMPTS: - return response - except httpx.TransportError: - if attempt == READ_ATTEMPTS: - raise - self._sleep(RETRY_WAIT * 2 ** (attempt - 1)) - raise AssertionError("unreachable") - - def get( - self, - dataset_id: int, - schema_model: str | None = None, - schema_version: str | None = None, - ) -> dict[str, Any]: - if bool(schema_model) != bool(schema_version): - raise ValueError("schema_model and schema_version must be given together") - params = {"schema_model": schema_model, "schema_version": schema_version} if schema_model else None - response = self._read(f"{self._datasets_path()}/{dataset_id}", params=params) - _raise_for_status(response) - return response.json() - - -def latest_version(get_response: dict[str, Any]) -> LatestVersion: - """Pull the latest version number, title and stored metadata out of a GET response. - - The Gateway returns only the latest version in `data.versions`; its `metadata` may be - a JSON string or an object, wrapping the GWDM document under a further `metadata` key. - """ - versions = get_response["data"].get("versions") or [] - if not versions: - raise ValueError("GET response contains no versions") - latest = max(versions, key=lambda v: v.get("version", 0)) - stored = latest.get("metadata") or {} - if isinstance(stored, str): - stored = json.loads(stored) - document = stored.get("metadata", stored) - title = (document.get("summary") or {}).get("title") or latest.get("title") - return LatestVersion(version=int(latest.get("version", 0)), title=title, metadata=document) diff --git a/.github/actions/gateway-publish/src/gateway_publish/config.py b/.github/actions/gateway-publish/src/gateway_publish/config.py deleted file mode 100644 index 337f5ee..0000000 --- a/.github/actions/gateway-publish/src/gateway_publish/config.py +++ /dev/null @@ -1,63 +0,0 @@ -"""Connection settings, read from the environment. - -Credentials are held as SecretStr so they never appear in reprs, tracebacks or logs. -""" - -import os -from urllib.parse import urlparse - -from pydantic import BaseModel, SecretStr - -DEFAULT_BASE_URL = "https://api.healthdatagateway.org/api" -KNOWN_HOSTS = {"api.healthdatagateway.org", "api.dev.hdruk.cloud"} - - -class ConfigError(Exception): - pass - - -class GatewayConfig(BaseModel): - base_url: str = DEFAULT_BASE_URL - app_id: SecretStr - client_id: SecretStr - team_id: int - - @classmethod - def from_env(cls, base_url: str | None = None, team_id: int | None = None) -> "GatewayConfig": - missing = [ - name - for name in ("GATEWAY_APP_ID", "GATEWAY_CLIENT_ID") - if not os.environ.get(name) - ] - if team_id is None and not os.environ.get("GATEWAY_TEAM_ID"): - missing.append("GATEWAY_TEAM_ID") - if missing: - raise ConfigError( - f"Missing environment variable(s): {', '.join(missing)}. " - "App ID and Client ID come from the Private App's Authentication tab " - "(Integrations > API Management > Manage API); the team ID is the " - "Gateway team that owns the app." - ) - - try: - resolved_team_id = team_id if team_id is not None else int(os.environ["GATEWAY_TEAM_ID"]) - except ValueError: - raise ConfigError("GATEWAY_TEAM_ID must be an integer") from None - - config = cls( - base_url=(base_url or os.environ.get("GATEWAY_BASE_URL") or DEFAULT_BASE_URL).rstrip("/"), - app_id=SecretStr(os.environ["GATEWAY_APP_ID"]), - client_id=SecretStr(os.environ["GATEWAY_CLIENT_ID"]), - team_id=resolved_team_id, - ) - config.check_target_allowed() - return config - - def check_target_allowed(self) -> None: - """Refuse to send credentials to an unknown host unless explicitly opted in.""" - host = urlparse(self.base_url).hostname - if host not in KNOWN_HOSTS and os.environ.get("GATEWAY_ALLOW_UNKNOWN_HOST") != "1": - raise ConfigError( - f"Refusing to send credentials to unknown host {host} " - f"(known: {', '.join(sorted(KNOWN_HOSTS))}). Set GATEWAY_ALLOW_UNKNOWN_HOST=1 to override." - ) diff --git a/.github/actions/gateway-publish/src/gateway_publish/traser.py b/.github/actions/gateway-publish/src/gateway_publish/traser.py deleted file mode 100644 index 2e12f9f..0000000 --- a/.github/actions/gateway-publish/src/gateway_publish/traser.py +++ /dev/null @@ -1,81 +0,0 @@ -"""Check metadata with TRASER, HDR UK's translation service, the way the Gateway does. - -On create/update (non-draft) the Gateway POSTs {"metadata": ..., "extra": {...}} to TRASER's -/translate, asking for GWDM output with input and output validation on. Reproducing that call -catches problems the plain /validate endpoint would miss, such as a translation that produces -invalid GWDM. The dev TRASER is used; the live Gateway's own instance may differ. -""" - -import os -from typing import Any - -import httpx - -DEFAULT_TRASER_URL = "https://hdr-gateway-traser-dev-qmnkcg5qjq-ew.a.run.app" -# What the live Gateway stores (dataset_versions.gwdm_version, observed 2026-11-20); the -# code default is 2.0, which drops HDRUK 4.1.0-only fields. -GWDM_VERSION = "2.2" -# Mirrors the `extra` block the Gateway adds (MetadataOnboard::metadataOnboard). -EXTRA = { - "id": "placeholder", - "pid": "placeholder", - "datasetType": "Health and disease", - "publisherId": "placeholder", - "publisherName": "placeholder", -} - - -class TraserError(Exception): - pass - - -def _format_errors(errors: Any) -> list[str]: - if not isinstance(errors, list): - return [str(errors)] - return [ - f"{e.get('instancePath') or '/'}: {e.get('message')} {e.get('params') or ''}".rstrip() - if isinstance(e, dict) else str(e) - for e in errors - ] - - -def traser_errors( - metadata: dict[str, Any], - version: str, - model: str = "HDRUK", - base_url: str | None = None, - transport: httpx.BaseTransport | None = None, -) -> list[str]: - """Return readable errors from TRASER's /translate to GWDM, empty if it succeeds.""" - url = base_url or os.environ.get("TRASER_URL") or DEFAULT_TRASER_URL - with httpx.Client(base_url=url, timeout=120, transport=transport) as client: - try: - response = client.post( - "/translate", - params={ - "input_schema": model, - "input_version": version, - "output_schema": "GWDM", - "output_version": GWDM_VERSION, - "validate_input": "1", - "validate_output": "1", - }, - json={"metadata": metadata, "extra": EXTRA}, - ) - except httpx.HTTPError as e: - raise TraserError(f"Could not reach TRASER at {url}: {e}") from None - - if response.is_success: - return [] - try: - body = response.json() - except ValueError: - raise TraserError(f"TRASER returned HTTP {response.status_code}: {response.text[:300]}") from None - if response.status_code != 400: - raise TraserError(f"TRASER returned HTTP {response.status_code}: {body}") - - message = body.get("message", "") - details = body.get("details") - if isinstance(details, dict) and "validationErrors" in details: - details = details["validationErrors"] - return [f"{message}:"] + [f" {line}" for line in _format_errors(details)] diff --git a/.github/actions/gateway-publish/test_gateway_publish.py b/.github/actions/gateway-publish/test_gateway_publish.py new file mode 100644 index 0000000..6cac484 --- /dev/null +++ b/.github/actions/gateway-publish/test_gateway_publish.py @@ -0,0 +1,157 @@ +"""Tests for gateway_publish.py. Run: uv run pytest""" +import json + +import httpx +import pytest + +import gateway_publish as gp + +SCHEMA = """ +id: https://example.org/test +name: test +imports: [linkml:types] +prefixes: {linkml: https://w3id.org/linkml/} +default_range: string +classes: + Visit: + description: One row per visit. + tree_root: true + slots: [visit_id, nhs_number, outcome, note] + NotATable: + slots: [visit_id] +slots: + visit_id: {description: Visit identifier., range: integer} + nhs_number: {description: Pseudonymised NHS number., annotations: {sensitivity: pseudonymised}} + outcome: {description: How the visit ended., range: Outcome} + note: {description: ""} +enums: + Outcome: + permissible_values: + "01": {description: Discharged} + "99": {} +""" + +METADATA = """ +summary: + title: Test Visits + contactPoint: data@example.org +provenance: + temporal: + startDate: 2009-01-01 +""" + +GATEWAY = """# comment kept +team_id: 74 +team_name: NUH +status: DRAFT +dataset_id: null +pid: null +""" + + +@pytest.fixture +def dataset(tmp_path, monkeypatch): + (tmp_path / "schemas").mkdir() + (tmp_path / "schemas" / "test.yaml").write_text(SCHEMA) + (tmp_path / "gateway").mkdir() + (tmp_path / "gateway" / "metadata.yaml").write_text(METADATA) + (tmp_path / "gateway" / "gateway.yaml").write_text(GATEWAY) + monkeypatch.setenv("GATEWAY_APP_ID", "app-secret") + monkeypatch.setenv("GATEWAY_CLIENT_ID", "client-secret") + monkeypatch.delenv("GATEWAY_TEAM_ID", raising=False) + return tmp_path + + +@pytest.fixture +def gateway(monkeypatch): + """A fake Gateway and TRASER. Set `traser_status` to make TRASER reject the metadata.""" + class Fake: + requests: list + traser_status = 200 + version = 0 + title = None + + def __call__(self, request): + self.requests.append(request) + if request.url.path == "/translate": + return httpx.Response(self.traser_status, json={"message": "Input metadata validation failed", "details": { + "validationErrors": [{"instancePath": "/summary", "message": "bad"}]}}) + if request.method in ("POST", "PUT"): + self.version += 1 + self.title = json.loads(request.content)["metadata"]["metadata"]["summary"]["title"] + return httpx.Response(201, json={"data": 2080}) + return httpx.Response(200, json={"data": {"pid": "pid-1", "versions": [{"version": self.version, "title": self.title}]}}) + + fake = Fake() + fake.requests = [] + monkeypatch.setattr(gp, "transport", httpx.MockTransport(fake)) + return fake + + +def test_build(dataset): + payload, _ = gp.build(dataset, None, "v1.2.3") + assert payload["version"] == "1.2.3" + assert payload["provenance"]["temporal"]["startDate"] == "2009-01-01" # not a date object + assert payload["summary"]["dataCustodian"] == {"identifier": "74", "name": "NUH", "contactPoint": "data@example.org"} + [table] = payload["structuralMetadata"]["tables"] + assert table["name"] == "Visit" + assert table["columns"] == [ + {"name": "visit_id", "dataType": "integer", "description": "Visit identifier.", "sensitive": False}, + {"name": "nhs_number", "dataType": "string", "description": "Pseudonymised NHS number.", "sensitive": True}, + {"name": "outcome", "dataType": "string", "description": "How the visit ended.", "sensitive": False, + "values": [{"name": "01", "description": "Discharged"}, {"name": "99", "description": None}]}, + {"name": "note", "dataType": "string", "description": None, "sensitive": False}, + ] + + +@pytest.mark.parametrize("metadata, version, error", [ + ("summary: {title: TODO}", "1.0.0", "TODOs at: /summary/title"), + ("version: 9.9.9", "1.0.0", "must not set fields that are generated: version"), + ("summary: {title: x}", "1.0", "major.minor.patch"), +]) +def test_build_errors(dataset, metadata, version, error): + (dataset / "gateway" / "metadata.yaml").write_text(metadata) + with pytest.raises(gp.Error, match=error): + gp.build(dataset, None, version) + + +def test_create_then_push(dataset, gateway, capsys): + gp.main(["create", str(dataset), "--version", "1.0.0"]) + gateway_yaml = (dataset / "gateway" / "gateway.yaml").read_text() + assert "# comment kept" in gateway_yaml and "dataset_id: 2080" in gateway_yaml and "pid: pid-1" in gateway_yaml + post = next(r for r in gateway.requests if r.method == "POST" and r.url.path != "/translate") + assert post.url.path == "/api/v2/teams/74/datasets" + assert post.headers["x-application-id"] == "app-secret" + assert json.loads(post.content)["status"] == "DRAFT" + + gp.main(["push", str(dataset), "--version", "1.1.0", "--status", "ACTIVE"]) + put = next(r for r in gateway.requests if r.method == "PUT") + assert put.url.path == "/api/v3/teams/74/datasets/2080" + body = json.loads(put.content) + assert body["status"] == "ACTIVE" and body["create_origin"] == "API" + assert body["metadata"]["schemaModel"] == "HDRUK" and body["metadata"]["metadata"]["identifier"] == "pid-1" + out = capsys.readouterr().out + assert "version 1 -> 2, status ACTIVE" in out + assert "secret" not in out + + +def test_traser_rejection_stops_push(dataset, gateway, capsys): + gateway.traser_status = 400 + with pytest.raises(SystemExit): + gp.main(["create", str(dataset), "--version", "1.0.0"]) + assert "/summary: bad" in capsys.readouterr().err + assert all(r.url.path == "/translate" for r in gateway.requests) + + +def test_push_needs_dataset_id(dataset, gateway, capsys): + with pytest.raises(SystemExit): + gp.main(["push", str(dataset), "--version", "1.0.0"]) + assert "run `create` once" in capsys.readouterr().err + + +def test_dry_run_sends_nothing(dataset, gateway, monkeypatch, capsys): + monkeypatch.delenv("GATEWAY_APP_ID") + (dataset / "gateway" / "gateway.yaml").write_text(GATEWAY.replace("dataset_id: null", "dataset_id: 5")) + gp.main(["push", str(dataset), "--version", "2.0.0", "--dry-run", "--skip-traser"]) + assert "PUT /v3/teams/74/datasets/5" in capsys.readouterr().out + assert gateway.requests == [] diff --git a/.github/actions/gateway-publish/tests/__init__.py b/.github/actions/gateway-publish/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/.github/actions/gateway-publish/tests/conftest.py b/.github/actions/gateway-publish/tests/conftest.py deleted file mode 100644 index 935c4b4..0000000 --- a/.github/actions/gateway-publish/tests/conftest.py +++ /dev/null @@ -1,32 +0,0 @@ -import pytest - -from gateway_publish.config import GatewayConfig - -APP_ID = "test-app-id-0123456789" -CLIENT_ID = "test-client-id-9876543210" -TEAM_ID = 42 - - -@pytest.fixture -def gateway_env(monkeypatch): - monkeypatch.setenv("GATEWAY_APP_ID", APP_ID) - monkeypatch.setenv("GATEWAY_CLIENT_ID", CLIENT_ID) - monkeypatch.setenv("GATEWAY_TEAM_ID", str(TEAM_ID)) - monkeypatch.delenv("GATEWAY_BASE_URL", raising=False) - monkeypatch.delenv("GATEWAY_ALLOW_UNKNOWN_HOST", raising=False) - - -@pytest.fixture -def config(gateway_env) -> GatewayConfig: - return GatewayConfig.from_env() - - -@pytest.fixture -def example_metadata() -> dict: - return {"summary": {"title": "Example"}} - - -@pytest.fixture(autouse=True) -def no_retry_wait(monkeypatch): - """Retried reads don't wait in tests; tests of the waits pass their own `sleep`.""" - monkeypatch.setattr("gateway_publish.client.RETRY_WAIT", 0.0) diff --git a/.github/actions/gateway-publish/tests/fixtures/dataset.golden.json b/.github/actions/gateway-publish/tests/fixtures/dataset.golden.json deleted file mode 100644 index febd7ba..0000000 --- a/.github/actions/gateway-publish/tests/fixtures/dataset.golden.json +++ /dev/null @@ -1,115 +0,0 @@ -{ - "identifier": null, - "version": "1.2.3", - "revisions": [], - "issued": "2026-01-02T03:04:05.000Z", - "modified": "2026-01-02T03:04:05.000Z", - "summary": { - "title": "Test Visits", - "abstract": "Made-up visits for testing.", - "contactPoint": "data.access@example.org", - "populationSize": -1, - "keywords": [ - "test" - ], - "dataCustodian": { - "identifier": "74", - "name": "Nottingham University Hospitals - NHS Trust", - "contactPoint": "data.access@example.org" - } - }, - "coverage": { - "spatial": "Nottinghamshire, England", - "typicalAgeRangeMin": 0, - "typicalAgeRangeMax": 110 - }, - "provenance": { - "origin": { - "datasetType": [ - { - "name": "Health and disease", - "subTypes": [] - } - ] - }, - "temporal": { - "publishingFrequency": "Quarterly", - "startDate": "2009-01-01", - "timeLag": "1-2 months" - } - }, - "accessibility": { - "access": { - "accessRights": "In Progress" - }, - "formatAndStandards": { - "vocabularyEncodingScheme": [ - "LOCAL" - ], - "conformsTo": [ - "LOCAL" - ], - "language": [ - "en" - ], - "format": [ - "CSV" - ] - } - }, - "observations": [], - "structuralMetadata": { - "tables": [ - { - "name": "Visit", - "description": "One row per hospital visit.", - "columns": [ - { - "name": "visit_id", - "dataType": "integer", - "description": "Visit identifier.", - "sensitive": false - }, - { - "name": "pseudo_nhs_number", - "dataType": "string", - "description": "Pseudonymised NHS number.", - "sensitive": true - }, - { - "name": "visit_date", - "dataType": "date", - "description": "Date of the visit.", - "sensitive": false - }, - { - "name": "outcome", - "dataType": "string", - "description": "How the visit ended.", - "sensitive": false, - "values": [ - { - "name": "01", - "description": "Discharged" - }, - { - "name": "02", - "description": "Admitted" - }, - { - "name": "99", - "description": null - } - ] - }, - { - "name": "note", - "dataType": "string", - "description": null, - "sensitive": false - } - ] - } - ] - } -} diff --git a/.github/actions/gateway-publish/tests/fixtures/dataset/gateway/gateway.yaml b/.github/actions/gateway-publish/tests/fixtures/dataset/gateway/gateway.yaml deleted file mode 100644 index 5d08e55..0000000 --- a/.github/actions/gateway-publish/tests/fixtures/dataset/gateway/gateway.yaml +++ /dev/null @@ -1,8 +0,0 @@ -# HDR UK Gateway settings for this dataset. -team_id: 74 -team_name: Nottingham University Hospitals - NHS Trust -# Status each release publishes with: DRAFT or ACTIVE (listed in the Gateway's catalogue). -status: DRAFT -# Written by `gateway-publish create`. Edit by hand only to recover a lost ID. -dataset_id: null -pid: null diff --git a/.github/actions/gateway-publish/tests/fixtures/dataset/gateway/metadata.yaml b/.github/actions/gateway-publish/tests/fixtures/dataset/gateway/metadata.yaml deleted file mode 100644 index 5b0d43b..0000000 --- a/.github/actions/gateway-publish/tests/fixtures/dataset/gateway/metadata.yaml +++ /dev/null @@ -1,33 +0,0 @@ -# Made-up catalogue fields for the test schema: the fields HDRUK 4.1.0 requires. -summary: - title: Test Visits - abstract: Made-up visits for testing. - contactPoint: data.access@example.org - populationSize: -1 - keywords: [test] - -coverage: - spatial: Nottinghamshire, England - typicalAgeRangeMin: 0 - typicalAgeRangeMax: 110 - -provenance: - origin: - datasetType: - - name: Health and disease - subTypes: [] - temporal: - publishingFrequency: Quarterly - startDate: "2009-01-01" - timeLag: 1-2 months - -accessibility: - access: - accessRights: In Progress - formatAndStandards: - vocabularyEncodingScheme: [LOCAL] - conformsTo: [LOCAL] - language: [en] - format: [CSV] - -observations: [] diff --git a/.github/actions/gateway-publish/tests/fixtures/dataset/schema.yaml b/.github/actions/gateway-publish/tests/fixtures/dataset/schema.yaml deleted file mode 100644 index e561634..0000000 --- a/.github/actions/gateway-publish/tests/fixtures/dataset/schema.yaml +++ /dev/null @@ -1,43 +0,0 @@ -# A small LinkML schema covering each mapping case in build.structural_metadata. -id: https://example.org/test-dataset -name: test_dataset -imports: - - linkml:types -prefixes: - linkml: https://w3id.org/linkml/ -default_range: string - -classes: - Visit: - description: One row per hospital visit. - tree_root: true - slots: [visit_id, pseudo_nhs_number, visit_date, outcome, note] - NotPublished: - description: Not a tree_root, so not a table. - slots: [visit_id] - -slots: - visit_id: - description: Visit identifier. - range: integer - pseudo_nhs_number: - description: Pseudonymised NHS number. - annotations: - sensitivity: pseudonymised - visit_date: - description: Date of the visit. - range: date - outcome: - description: How the visit ended. - range: Outcome - note: - description: "" - -enums: - Outcome: - permissible_values: - "01": - description: Discharged - "02": - description: Admitted - "99": {} diff --git a/.github/actions/gateway-publish/tests/test_build.py b/.github/actions/gateway-publish/tests/test_build.py deleted file mode 100644 index 58161f1..0000000 --- a/.github/actions/gateway-publish/tests/test_build.py +++ /dev/null @@ -1,150 +0,0 @@ -import json -import os -import shutil -from datetime import UTC, datetime -from pathlib import Path - -import pytest -import yaml - -from gateway_publish.build import BuildError, DatasetDir, build_payload, find_todos, structural_metadata - -FIXTURE = Path(__file__).parent / "fixtures" / "dataset" -GOLDEN = Path(__file__).parent / "fixtures" / "dataset.golden.json" -NOW = datetime(2026, 1, 2, 3, 4, 5, tzinfo=UTC) - - -@pytest.fixture -def dataset(tmp_path) -> Path: - """A writable copy of the test dataset directory.""" - root = tmp_path / "dataset" - shutil.copytree(FIXTURE, root) - return root - - -def edit_yaml(path: Path, change) -> None: - data = yaml.safe_load(path.read_text()) - change(data) - path.write_text(yaml.safe_dump(data, sort_keys=False)) - - -def test_golden(dataset): - """Regenerate with UPDATE_GOLDEN=1 after an intended change, and review the diff.""" - payload = build_payload(DatasetDir.find(dataset), "1.2.3", now=NOW) - if os.environ.get("UPDATE_GOLDEN"): - GOLDEN.write_text(json.dumps(payload, indent=2, ensure_ascii=False) + "\n") - assert payload == json.loads(GOLDEN.read_text()) - - -def test_build_fills_gateway_fields(dataset): - edit_yaml(dataset / "gateway" / "gateway.yaml", lambda g: g.update(pid="abc-123")) - payload = build_payload(DatasetDir.find(dataset), "1.2.3", now=NOW) - assert payload["version"] == "1.2.3" - assert payload["identifier"] == "abc-123" - assert payload["issued"] == payload["modified"] == "2026-01-02T03:04:05.000Z" - assert payload["summary"]["dataCustodian"] == { - "identifier": "74", - "name": "Nottingham University Hospitals - NHS Trust", - "contactPoint": "data.access@example.org", - } - - -def test_structural_metadata_from_linkml(): - tables = structural_metadata(FIXTURE / "schema.yaml")["tables"] - # Only tree_root classes become tables. - assert [t["name"] for t in tables] == ["Visit"] - columns = {c["name"]: c for c in tables[0]["columns"]} - assert list(columns) == ["visit_id", "pseudo_nhs_number", "visit_date", "outcome", "note"] - assert columns["visit_id"]["dataType"] == "integer" - assert columns["visit_date"]["dataType"] == "date" - assert columns["pseudo_nhs_number"]["sensitive"] is True - assert columns["visit_id"]["sensitive"] is False - # An empty LinkML description becomes null; HDRUK rejects "". - assert columns["note"]["description"] is None - # Enums are strings, with their permissible values. - assert columns["outcome"]["dataType"] == "string" - assert columns["outcome"]["values"] == [ - {"name": "01", "description": "Discharged"}, - {"name": "02", "description": "Admitted"}, - {"name": "99", "description": None}, - ] - assert "values" not in columns["visit_id"] - - -def test_todos_block_build(dataset): - edit_yaml(dataset / "gateway" / "metadata.yaml", - lambda m: m["summary"].update(contactPoint="TODO who?", keywords=["a", "TODO"])) - with pytest.raises(BuildError, match="/summary/contactPoint, /summary/keywords/1"): - build_payload(DatasetDir.find(dataset), "1.2.3") - - -def test_metadata_must_not_set_generated_fields(dataset): - def change(m): - m["version"] = "9.9.9" - m["summary"]["dataCustodian"] = {"name": "x"} - edit_yaml(dataset / "gateway" / "metadata.yaml", change) - with pytest.raises(BuildError, match="version, summary/dataCustodian"): - build_payload(DatasetDir.find(dataset), "1.2.3") - - -def test_unquoted_dates_stay_strings(dataset): - path = dataset / "gateway" / "metadata.yaml" - path.write_text(path.read_text().replace('startDate: "2009-01-01"', "startDate: 2009-01-01")) - payload = build_payload(DatasetDir.find(dataset), "1.2.3") - assert payload["provenance"]["temporal"]["startDate"] == "2009-01-01" - - -@pytest.mark.parametrize("version, expected", [("1.2.3", "1.2.3"), ("v1.2.3", "1.2.3")]) -def test_version(dataset, version, expected): - assert build_payload(DatasetDir.find(dataset), version)["version"] == expected - - -@pytest.mark.parametrize("version", ["1.2", "1.2.3-rc.1", "latest", ""]) -def test_bad_version(dataset, version): - with pytest.raises(BuildError, match="must be major.minor.patch"): - build_payload(DatasetDir.find(dataset), version) - - -def test_schema_found_in_schemas_folder(dataset): - """The dataset-repo layout: schemas/.yaml next to gateway/.""" - (dataset / "schemas").mkdir() - (dataset / "schema.yaml").rename(dataset / "schemas" / "sact.yaml") - assert DatasetDir.find(dataset).schema == dataset / "schemas" / "sact.yaml" - - -def test_more_than_one_schema_needs_schema_option(dataset): - (dataset / "other.yaml").write_text("id: x\n") - with pytest.raises(BuildError, match="More than one \\*.yaml .* pass the LinkML schema with --schema"): - DatasetDir.find(dataset) - assert DatasetDir.find(dataset, schema=dataset / "schema.yaml").schema.name == "schema.yaml" - - -def test_no_schema(dataset): - (dataset / "schema.yaml").unlink() - with pytest.raises(BuildError, match="No LinkML schema"): - DatasetDir.find(dataset) - - -def test_gateway_yaml_needs_team(dataset): - edit_yaml(dataset / "gateway" / "gateway.yaml", lambda g: g.pop("team_id")) - with pytest.raises(BuildError, match="'team_id' is required"): - build_payload(DatasetDir.find(dataset), "1.2.3") - - -def test_bad_status(dataset): - edit_yaml(dataset / "gateway" / "gateway.yaml", lambda g: g.update(status="LIVE")) - with pytest.raises(BuildError, match="status must be one of ACTIVE, DRAFT"): - build_payload(DatasetDir.find(dataset), "1.2.3") - - -def test_record_created_keeps_comments(dataset): - found = DatasetDir.find(dataset) - found.record_created(2080, "abc-123") - text = found.gateway.read_text() - assert "# Status each release publishes with" in text - assert "dataset_id: 2080\n" in text and "pid: abc-123\n" in text - assert yaml.safe_load(text)["status"] == "DRAFT" - - -def test_find_todos(): - assert find_todos({"a": "TODO x", "b": ["ok", " TODO"], "c": {"d": 1}}) == ["/a", "/b/1"] diff --git a/.github/actions/gateway-publish/tests/test_cli.py b/.github/actions/gateway-publish/tests/test_cli.py deleted file mode 100644 index 195ec44..0000000 --- a/.github/actions/gateway-publish/tests/test_cli.py +++ /dev/null @@ -1,256 +0,0 @@ -import json - -import httpx -import pytest -import yaml - -from gateway_publish import cli -from gateway_publish.client import GatewayClient -from gateway_publish.config import GatewayConfig -from tests.conftest import APP_ID, CLIENT_ID, TEAM_ID -from tests.test_build import dataset, edit_yaml # noqa: F401 (fixture) - - -class FakeGateway: - """Minimal in-memory stand-in for the team dataset endpoints.""" - - def __init__(self, bump_version_on_update: bool = True): - self.datasets: dict[int, list[dict]] = {} - self.statuses: dict[int, str] = {} - self.bump_version_on_update = bump_version_on_update - self.requests: list[httpx.Request] = [] - - @staticmethod - def _unwrap(metadata: dict) -> dict: - # The Gateway accepts a bare document or the {"metadata", "schemaModel", "schemaVersion"} envelope. - return metadata["metadata"] if "schemaModel" in metadata else metadata - - def __call__(self, request: httpx.Request) -> httpx.Response: - self.requests.append(request) - parts = request.url.path.rstrip("/").split("/") - dataset_id = int(parts[-1]) if parts[-1].isdigit() else None - if request.method == "POST": - new_id = len(self.datasets) + 1 - body = json.loads(request.content) - self.statuses[new_id] = body["status"] - self.datasets[new_id] = [self._unwrap(body["metadata"])] - return httpx.Response(201, json={"message": "created", "data": new_id, "version": 1000 + new_id}) - if dataset_id not in self.datasets: - return httpx.Response(404, json={"message": "Dataset not found"}) - versions = self.datasets[dataset_id] - if request.method == "PUT": - metadata = self._unwrap(json.loads(request.content)["metadata"]) - if self.bump_version_on_update: - versions.append(metadata) - else: - versions[-1] = metadata - return httpx.Response(200, json={"message": "success"}) - if request.method == "GET": - latest = {"version": len(versions), "metadata": json.dumps({"metadata": versions[-1]})} - data = {"id": dataset_id, "pid": f"pid-{dataset_id}", "versions": [latest]} - return httpx.Response(200, json={"message": "success", "data": data}) - return httpx.Response(405) - - -@pytest.fixture -def fake_gateway(gateway_env, monkeypatch): - gateway = FakeGateway() - monkeypatch.setattr( - cli, - "_client", - lambda args, default_team_id=None: GatewayClient( - GatewayConfig.from_env(team_id=args.team_id), transport=httpx.MockTransport(gateway) - ), - ) - return gateway - - -@pytest.fixture -def traser(monkeypatch): - """Records TRASER calls; set `traser.errors` to make the check fail.""" - class Traser: - def __init__(self): - self.calls: list = [] - self.errors: list[str] = [] - fake = Traser() - monkeypatch.setattr(cli, "traser_errors", lambda *a, **k: fake.calls.append(a) or fake.errors) - return fake - - -@pytest.fixture -def team_42(dataset): - """The test dataset, pointed at the test team.""" - edit_yaml(dataset / "gateway" / "gateway.yaml", lambda g: g.update(team_id=TEAM_ID)) - return dataset - - -def run(*argv: str) -> None: - cli.main(list(argv)) - - -def gateway_yaml(dataset) -> dict: - return yaml.safe_load((dataset / "gateway" / "gateway.yaml").read_text()) - - -def test_build_command(dataset, tmp_path): - out = tmp_path / "payload.json" - run("build", str(dataset), "--version", "1.0.0", "-o", str(out)) - payload = json.loads(out.read_text()) - assert payload["version"] == "1.0.0" - assert payload["structuralMetadata"]["tables"][0]["name"] == "Visit" - - -def test_build_reports_todos(dataset, capsys): - edit_yaml(dataset / "gateway" / "metadata.yaml", lambda m: m["summary"].update(contactPoint="TODO")) - with pytest.raises(SystemExit): - run("build", str(dataset), "--version", "1.0.0") - assert "still has TODOs" in capsys.readouterr().err - - -def test_validate(dataset, traser, capsys): - run("validate", str(dataset)) - assert "is valid HDRUK 4.1.0" in capsys.readouterr().out - payload, version, model = traser.calls[0] - assert (version, model, payload["version"]) == ("4.1.0", "HDRUK", "0.0.0") - - -def test_validate_reports_traser_errors(dataset, traser, capsys): - traser.errors = ["Output metadata validation failed:", " /provenance/temporal/endDate: bad"] - with pytest.raises(SystemExit): - run("validate", str(dataset)) - assert "/provenance/temporal/endDate: bad" in capsys.readouterr().err - - -def test_create_then_push(fake_gateway, team_42, traser, capsys): - run("create", str(team_42), "--version", "1.0.0") - assert gateway_yaml(team_42) == { - "team_id": TEAM_ID, "team_name": "Nottingham University Hospitals - NHS Trust", - "status": "DRAFT", "dataset_id": 1, "pid": "pid-1", - } - post = fake_gateway.requests[0] - assert dict(post.url.params) == {"input_schema": "HDRUK", "input_version": "4.1.0"} - body = json.loads(post.content) - assert body["status"] == "DRAFT" - assert body["metadata"]["schemaModel"] == "HDRUK" and body["metadata"]["schemaVersion"] == "4.1.0" - assert body["metadata"]["metadata"]["version"] == "1.0.0" - - run("push", str(team_42), "--version", "1.1.0", "--status", "ACTIVE") - out = capsys.readouterr().out - assert "version 1 -> 2, status ACTIVE" in out and "OK: new version" in out - put = next(r for r in fake_gateway.requests if r.method == "PUT") - assert put.url.path == f"/api/v3/teams/{TEAM_ID}/datasets/1" - body = json.loads(put.content) - assert body["status"] == "ACTIVE" - assert body["metadata"]["schemaModel"] == "HDRUK" - # The pid recorded at create is sent as the identifier. - assert body["metadata"]["metadata"]["identifier"] == "pid-1" - assert fake_gateway.datasets[1][-1]["version"] == "1.1.0" - assert len(traser.calls) == 2 - - -def test_push_uses_status_from_gateway_yaml(fake_gateway, team_42, traser): - run("create", str(team_42), "--version", "1.0.0") - edit_yaml(team_42 / "gateway" / "gateway.yaml", lambda g: g.update(status="ACTIVE")) - run("push", str(team_42), "--version", "1.1.0") - put = next(r for r in fake_gateway.requests if r.method == "PUT") - assert json.loads(put.content)["status"] == "ACTIVE" - # --status overrides gateway.yaml. - run("push", str(team_42), "--version", "1.2.0", "--status", "DRAFT") - put = [r for r in fake_gateway.requests if r.method == "PUT"][-1] - assert json.loads(put.content)["status"] == "DRAFT" - - -def test_traser_failure_stops_push(fake_gateway, team_42, traser, capsys): - edit_yaml(team_42 / "gateway" / "gateway.yaml", lambda g: g.update(dataset_id=1)) - traser.errors = ["Input metadata validation failed:"] - with pytest.raises(SystemExit): - run("push", str(team_42), "--version", "1.0.0") - assert fake_gateway.requests == [] - - -def test_create_refuses_when_id_exists(fake_gateway, team_42, traser, capsys): - edit_yaml(team_42 / "gateway" / "gateway.yaml", lambda g: g.update(dataset_id=7)) - with pytest.raises(SystemExit): - run("create", str(team_42), "--version", "1.0.0") - assert "already has dataset_id 7" in capsys.readouterr().err - assert fake_gateway.requests == [] - - -def test_push_without_id_explains(fake_gateway, team_42, traser, capsys): - with pytest.raises(SystemExit): - run("push", str(team_42), "--version", "1.0.0") - assert "Create the dataset once" in capsys.readouterr().err - assert fake_gateway.requests == [] - - -def test_push_refuses_other_team(fake_gateway, dataset, traser, capsys): - edit_yaml(dataset / "gateway" / "gateway.yaml", lambda g: g.update(dataset_id=1)) - with pytest.raises(SystemExit): - run("push", str(dataset), "--version", "1.0.0") - assert "gateway.yaml is for team 74 but the credentials are for team 42" in capsys.readouterr().err - assert fake_gateway.requests == [] - - -def test_push_fails_without_new_version(fake_gateway, team_42, traser, capsys): - run("create", str(team_42), "--version", "1.0.0") - fake_gateway.bump_version_on_update = False - with pytest.raises(SystemExit): - run("push", str(team_42), "--version", "1.1.0") - assert "Read-back check failed: no new version" in capsys.readouterr().err - - -def test_push_dry_run_sends_nothing(monkeypatch, team_42, traser, capsys): - # No credentials and no transport: a dry run must not need either. - for name in ("GATEWAY_APP_ID", "GATEWAY_CLIENT_ID", "GATEWAY_TEAM_ID", "GATEWAY_BASE_URL"): - monkeypatch.delenv(name, raising=False) - monkeypatch.setattr(cli, "_client", lambda *a, **k: pytest.fail("dry run created a client")) - edit_yaml(team_42 / "gateway" / "gateway.yaml", lambda g: g.update(dataset_id=5)) - run("push", str(team_42), "--version", "2.0.0", "--dry-run") - out = capsys.readouterr().out - assert f"PUT https://api.healthdatagateway.org/api/v3/teams/{TEAM_ID}/datasets/5" in out - body = json.loads(out[out.index("{"):]) - assert body["metadata"]["metadata"]["version"] == "2.0.0" - assert body["create_origin"] == "API" and body["status"] == "DRAFT" - - -def test_get(fake_gateway, team_42, traser, capsys): - run("create", str(team_42), "--version", "1.0.0") - capsys.readouterr() - run("get", "--id", "1") - request = fake_gateway.requests[-1] - assert dict(request.url.params) == {"schema_model": "HDRUK", "schema_version": "4.1.0"} - assert '"pid": "pid-1"' in capsys.readouterr().out - - -def test_gateway_error_is_reported_without_traceback(fake_gateway, capsys): - with pytest.raises(SystemExit) as exc: - run("get", "--id", "99") - assert exc.value.code == 1 - err = capsys.readouterr().err - assert "HTTP 404" in err and "Likely cause" in err - - -def test_missing_credentials(monkeypatch, capsys): - for name in ("GATEWAY_APP_ID", "GATEWAY_CLIENT_ID", "GATEWAY_TEAM_ID"): - monkeypatch.delenv(name, raising=False) - with pytest.raises(SystemExit): - run("get", "--id", "1") - assert "Missing environment variable" in capsys.readouterr().err - - -def test_output_never_contains_credentials(fake_gateway, team_42, traser, capsys): - run("create", str(team_42), "--version", "1.0.0") - run("push", str(team_42), "--version", "1.1.0") - run("get", "--id", "1") - captured = capsys.readouterr() - for text in (captured.out, captured.err, (team_42 / "gateway" / "gateway.yaml").read_text()): - assert APP_ID not in text and CLIENT_ID not in text - - -def test_team_defaults_to_gateway_yaml(gateway_env, monkeypatch): - monkeypatch.delenv("GATEWAY_TEAM_ID") - client = cli._client(cli.build_parser().parse_args(["get", "--id", "1"]), default_team_id=TEAM_ID) - assert client.config.team_id == TEAM_ID - # An explicit team wins, and _dataset_client then refuses the mismatch. - client = cli._client(cli.build_parser().parse_args(["--team-id", "7", "get", "--id", "1"]), default_team_id=TEAM_ID) - assert client.config.team_id == 7 diff --git a/.github/actions/gateway-publish/tests/test_client.py b/.github/actions/gateway-publish/tests/test_client.py deleted file mode 100644 index bcb5912..0000000 --- a/.github/actions/gateway-publish/tests/test_client.py +++ /dev/null @@ -1,169 +0,0 @@ -import json - -import httpx -import pytest - -from gateway_publish.client import GatewayClient, GatewayError, latest_version -from tests.conftest import APP_ID, CLIENT_ID - - -class Recorder: - """httpx transport that records requests and replies with a canned response.""" - - def __init__(self, status_code: int = 200, body=None, text: str | None = None): - self.requests: list[httpx.Request] = [] - self.status_code = status_code - self.body = body if body is not None else {"message": "success"} - self.text = text - - def __call__(self, request: httpx.Request) -> httpx.Response: - self.requests.append(request) - if self.text is not None: - return httpx.Response(self.status_code, text=self.text) - return httpx.Response(self.status_code, json=self.body) - - @property - def last(self) -> httpx.Request: - return self.requests[-1] - - -def make_client(config, recorder: Recorder) -> GatewayClient: - return GatewayClient(config, transport=httpx.MockTransport(recorder)) - - -def test_create_request_shape(config, example_metadata): - recorder = Recorder(201, {"message": "created", "data": 123, "version": 456}) - result = make_client(config, recorder).create(example_metadata, status="DRAFT") - - request = recorder.last - assert request.method == "POST" - assert str(request.url) == "https://api.healthdatagateway.org/api/v2/teams/42/datasets" - assert request.headers["x-application-id"] == APP_ID - assert request.headers["x-client-id"] == CLIENT_ID - assert json.loads(request.content) == { - "metadata": example_metadata, - "create_origin": "API", - "status": "DRAFT", - } - assert (result.dataset_id, result.version_id) == (123, 456) - - -def test_update_request_shape(config, example_metadata): - recorder = Recorder() - make_client(config, recorder).update(123, example_metadata, status="ACTIVE") - - request = recorder.last - assert request.method == "PUT" - assert request.url.path == "/api/v3/teams/42/datasets/123" - assert json.loads(request.content)["status"] == "ACTIVE" - - -def test_get_with_schema(config): - recorder = Recorder() - make_client(config, recorder).get(123, "HDRUK", "4.1.0") - assert recorder.last.url.path == "/api/v2/teams/42/datasets/123" - assert dict(recorder.last.url.params) == {"schema_model": "HDRUK", "schema_version": "4.1.0"} - - -def test_rejects_unknown_status(config, example_metadata): - recorder = Recorder() - with pytest.raises(ValueError): - make_client(config, recorder).create(example_metadata, status="ARCHIVED") - assert recorder.requests == [] - - -@pytest.mark.parametrize("model,version", [("HDRUK", None), (None, "4.1.0")]) -def test_get_requires_both_schema_params(config, model, version): - recorder = Recorder() - with pytest.raises(ValueError): - make_client(config, recorder).get(123, model, version) - assert recorder.requests == [] - - -@pytest.mark.parametrize( - "status,message,hint_fragment", - [ - (400, "Application permissions do not allow this request", "Permissions tab"), - (400, "Application has not been enabled!", "App Info tab"), - (400, "metadata is in an unknown format and cannot be processed", "gateway-publish validate"), - (401, "No known integration matches the credentials provided", "GATEWAY_APP_ID"), - (401, "The credentials provided are invalid", "GATEWAY_CLIENT_ID"), - (401, "This Application is not allowed to interact with datasets from another team!", "GATEWAY_TEAM_ID"), - (401, "Unauthorized", "credentials"), - (404, "Dataset not found", "no dataset with that ID"), - (500, "Dataset with id=1 cannot be found", "server error"), - (503, "Service Unavailable", "retrying later"), - ], -) -def test_error_mapping(config, status, message, hint_fragment): - recorder = Recorder(status, {"code": status, "message": message, "details": {}}) - with pytest.raises(GatewayError) as exc: - make_client(config, recorder).get(1) - assert exc.value.status_code == status - assert exc.value.message == message - assert hint_fragment in exc.value.hint - - -def test_error_with_non_json_body(config): - recorder = Recorder(502, text="Bad Gateway") - with pytest.raises(GatewayError) as exc: - make_client(config, recorder).get(1) - assert "Bad Gateway" in exc.value.message - - -def test_error_text_has_no_credentials(config): - recorder = Recorder(401, {"message": "Unauthorized"}) - with pytest.raises(GatewayError) as exc: - make_client(config, recorder).get(1) - assert APP_ID not in str(exc.value) - assert CLIENT_ID not in str(exc.value) - - -@pytest.mark.parametrize("encode", [json.dumps, lambda x: x]) -def test_latest_version(encode): - stored = {"metadata": {"summary": {"title": "New"}}, "gwdmVersion": "2.0"} - response = {"data": {"versions": [{"version": 3, "metadata": encode(stored)}]}} - latest = latest_version(response) - assert (latest.version, latest.title) == (3, "New") - - -def test_get_retries_server_errors(config, monkeypatch): - monkeypatch.setattr("gateway_publish.client.RETRY_WAIT", 2.0) - responses = iter([httpx.Response(502), httpx.Response(503), httpx.Response(200, json={"data": {}})]) - waits = [] - client = GatewayClient(config, transport=httpx.MockTransport(lambda r: next(responses)), sleep=waits.append) - assert client.get(1) == {"data": {}} - assert waits == [2.0, 4.0] - - -def test_get_gives_up_after_three_attempts(config): - calls = [] - def handler(request): - calls.append(request) - return httpx.Response(500, json={"message": "boom"}) - client = GatewayClient(config, transport=httpx.MockTransport(handler), sleep=lambda s: None) - with pytest.raises(GatewayError, match="HTTP 500"): - client.get(1) - assert len(calls) == 3 - - -def test_get_retries_connection_errors(config): - attempts = [] - def handler(request): - attempts.append(request) - if len(attempts) == 1: - raise httpx.ConnectError("refused") - return httpx.Response(200, json={"data": {}}) - client = GatewayClient(config, transport=httpx.MockTransport(handler), sleep=lambda s: None) - assert client.get(1) == {"data": {}} - - -def test_update_is_not_retried(config): - calls = [] - def handler(request): - calls.append(request) - return httpx.Response(502) - client = GatewayClient(config, transport=httpx.MockTransport(handler), sleep=lambda s: None) - with pytest.raises(GatewayError): - client.update(1, {"summary": {}}, status="DRAFT") - assert len(calls) == 1 diff --git a/.github/actions/gateway-publish/tests/test_config.py b/.github/actions/gateway-publish/tests/test_config.py deleted file mode 100644 index 4980708..0000000 --- a/.github/actions/gateway-publish/tests/test_config.py +++ /dev/null @@ -1,43 +0,0 @@ -import pytest - -from gateway_publish.config import DEFAULT_BASE_URL, ConfigError, GatewayConfig -from tests.conftest import APP_ID, CLIENT_ID - - -def test_reads_env(config): - assert config.base_url == "https://api.healthdatagateway.org/api" == DEFAULT_BASE_URL - assert config.app_id.get_secret_value() == APP_ID - assert config.team_id == 42 - - -def test_secrets_not_in_repr(config): - for text in (repr(config), str(config), config.model_dump_json()): - assert APP_ID not in text - assert CLIENT_ID not in text - - -def test_missing_env_names_every_variable(monkeypatch): - for name in ("GATEWAY_APP_ID", "GATEWAY_CLIENT_ID", "GATEWAY_TEAM_ID"): - monkeypatch.delenv(name, raising=False) - with pytest.raises(ConfigError) as exc: - GatewayConfig.from_env() - assert "GATEWAY_APP_ID, GATEWAY_CLIENT_ID, GATEWAY_TEAM_ID" in str(exc.value) - - -def test_team_id_flag_overrides_env(gateway_env): - assert GatewayConfig.from_env(team_id=7).team_id == 7 - - -def test_dev_host_allowed(gateway_env): - assert GatewayConfig.from_env(base_url="https://api.dev.hdruk.cloud/api").base_url.startswith("https://api.dev") - - -def test_refuses_unknown_host(gateway_env): - with pytest.raises(ConfigError, match="unknown host example.org"): - GatewayConfig.from_env(base_url="https://example.org/api") - - -def test_unknown_host_allowed_with_override(gateway_env, monkeypatch): - monkeypatch.setenv("GATEWAY_ALLOW_UNKNOWN_HOST", "1") - config = GatewayConfig.from_env(base_url="https://example.org/api/") - assert config.base_url == "https://example.org/api" diff --git a/.github/actions/gateway-publish/tests/test_traser.py b/.github/actions/gateway-publish/tests/test_traser.py deleted file mode 100644 index 78e63c5..0000000 --- a/.github/actions/gateway-publish/tests/test_traser.py +++ /dev/null @@ -1,61 +0,0 @@ -import json - -import httpx -import pytest - -from gateway_publish.traser import TraserError, traser_errors - - -def run(status_code, body, metadata=None): - requests = [] - - def handler(request): - requests.append(request) - return httpx.Response(status_code, json=body) - - errors = traser_errors(metadata or {"summary": {}}, "4.1.0", transport=httpx.MockTransport(handler)) - return errors, requests - - -def test_request_matches_gateway_call(): - errors, requests = run(200, {"required": {}}, {"summary": {"title": "T"}}) - assert errors == [] - request = requests[0] - assert request.url.path == "/translate" - assert dict(request.url.params) == { - "input_schema": "HDRUK", - "input_version": "4.1.0", - "output_schema": "GWDM", - "output_version": "2.2", - "validate_input": "1", - "validate_output": "1", - } - body = json.loads(request.content) - assert body["metadata"] == {"summary": {"title": "T"}} - assert set(body["extra"]) == {"id", "pid", "datasetType", "publisherId", "publisherName"} - - -def test_input_validation_errors(): - errors, _ = run(400, { - "message": "Input metadata validation failed", - "details": {"validationErrors": [ - {"instancePath": "/summary", "message": "must have required property 'title'"}, - ], "data": {}}, - }) - assert errors == [ - "Input metadata validation failed:", - " /summary: must have required property 'title'", - ] - - -def test_output_validation_errors(): - errors, _ = run(400, { - "message": "Output metadata validation failed", - "details": [{"instancePath": "/required", "message": "bad"}], - }) - assert errors == ["Output metadata validation failed:", " /required: bad"] - - -def test_server_error_raises(): - with pytest.raises(TraserError, match="HTTP 500"): - run(500, {"message": "Failed to execute translation"}) diff --git a/.github/actions/gateway-publish/uv.lock b/.github/actions/gateway-publish/uv.lock index 95eb227..cbefdd6 100644 --- a/.github/actions/gateway-publish/uv.lock +++ b/.github/actions/gateway-publish/uv.lock @@ -35,126 +35,126 @@ wheels = [ [[package]] name = "certifi" -version = "2026.10.23" +version = "2026.11.20" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/fd/11/b524cbd9bbdaca58608e4cf4053fd463417549e1959fa8d3aa18319f9555/certifi-2026.10.23.tar.gz", hash = "sha256:a9895e6e2758b371e0545e321a3a8fd1fcfd9829ada8824a936dfb16aaaf36cd", size = 136225, upload-time = "2026-10-23T11:36:16.478Z" } +sdist = { url = "https://files.pythonhosted.org/packages/51/33/4cd27639502f010084bcef7a2036391dd637439901341ce1a530f36f6e51/certifi-2026.11.20.tar.gz", hash = "sha256:af1cb240a8133f105aa52684a3a3258339d7f2fd0bd4e2812698ff5cf5588c4e", size = 128901, upload-time = "2026-11-20T23:37:49.522Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/32/d1/a3652fe2c19134d0d15922177821d863cbd7e842d53a21bbe7e8e3a1b5ac/certifi-2026.10.23-py3-none-any.whl", hash = "sha256:e9b54de76e530bb6cf0ccd036787103acb58fd42ba930ea8bf948ddbaa2f61d1", size = 135082, upload-time = "2026-10-23T11:36:14.763Z" }, + { url = "https://files.pythonhosted.org/packages/6d/39/5eec3296860b94ac20bb8ed807725b88f6adfab3f343df592afd975f5f86/certifi-2026.11.20-py3-none-any.whl", hash = "sha256:7422df25243767b9877031a2248cb14d09ddac9beee846f4cef3d5c9191d488f", size = 127913, upload-time = "2026-11-20T23:37:48.117Z" }, ] [[package]] name = "charset-normalizer" -version = "3.5.2" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/33/1c/f41d4e74c28ab327ff3acd36053f7ea506c55872d7a90b0fa71aa3ab0c89/charset_normalizer-3.5.2.tar.gz", hash = "sha256:39de2a259fc954455c57274dc94c79d5842774e1247a016aff30bc0efed0f4ef", size = 172659, upload-time = "2026-09-30T04:39:23.398Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/c5/34/68292d68512768591aaff07c59bb53ee31341c87759433a859c4641a50c2/charset_normalizer-3.5.2-cp313-cp313-android_24_arm64_v8a.whl", hash = "sha256:ed905975ab14056a2e5eb1c376cb2e1ebc5396baf84163939c518556fccde9f5", size = 225946, upload-time = "2026-09-30T04:35:55.313Z" }, - { url = "https://files.pythonhosted.org/packages/e3/80/bee0b01b90ccd5322ae1d0abb33fab1bd95b7c2eadaf02aeccf22e04ee83/charset_normalizer-3.5.2-cp313-cp313-android_24_x86_64.whl", hash = "sha256:a66c3bc5ab1f0ff2164fc9965ddd611ff0802173f4b9d24554c563f6ab7e1d6e", size = 238619, upload-time = "2026-09-30T04:35:56.863Z" }, - { url = "https://files.pythonhosted.org/packages/78/6e/60ce52a85a7fd631ae8482ae6d74521014ca2f255892679484dc04d7ef56/charset_normalizer-3.5.2-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:d2374b62878abb00cd8309b32af6c0b715cd02dec0ca74ef12e5069bdc64144a", size = 206701, upload-time = "2026-09-30T04:35:58.639Z" }, - { url = "https://files.pythonhosted.org/packages/36/8c/71aafad23f971afc84c2b295bc0c560739ce1dac558aad9fec22e39f3639/charset_normalizer-3.5.2-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:d376bbd28b3a8999db1a103b3b388aee6f1ddeb3e51bc2172993efdcd86e064d", size = 210506, upload-time = "2026-09-30T04:36:00.147Z" }, - { url = "https://files.pythonhosted.org/packages/91/da/3c5a7798c046df7d2d68ad653cf5b6c5a8bfee225055a843c6f2f42aac1a/charset_normalizer-3.5.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:6045373d5a89a5ec71afde535db987ca28e76dfa276c2d4c818265b375d4b055", size = 366626, upload-time = "2026-09-30T04:36:01.77Z" }, - { url = "https://files.pythonhosted.org/packages/e1/16/710ac3de2ee354e2bd1a9c94efe45a2d27b5c6ad39b2d6a905be2c094b6c/charset_normalizer-3.5.2-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:849df64e889b2e17230d58410a03dba311a65b163508fd33679b2b737d4b7858", size = 244624, upload-time = "2026-09-30T04:36:03.389Z" }, - { url = "https://files.pythonhosted.org/packages/d6/39/45c7439f5b63d24f7d5b2a1d760f34af7628782d7144b4cc8ded45c2d4bc/charset_normalizer-3.5.2-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:15c44f7edfd477b06f517a5cc317fc1707edb9de2c865f43d4b6513907473234", size = 235731, upload-time = "2026-09-30T04:36:04.987Z" }, - { url = "https://files.pythonhosted.org/packages/4d/34/38f3154785ce92e9f56eb226f4d35bdfae6b008480dd055f58837a89c810/charset_normalizer-3.5.2-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a89012d6d5476ee112d20d998570ed58df2260a852afb1758809cd6900411d21", size = 270352, upload-time = "2026-09-30T04:36:06.412Z" }, - { url = "https://files.pythonhosted.org/packages/04/f3/859f74e7babc977705026b30593b3be04049632a522fb7000f83c033d747/charset_normalizer-3.5.2-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:0c951d5e6dd9c2ff60609476752bee49da4206adde960ebc247766937f72e718", size = 267393, upload-time = "2026-09-30T04:36:07.865Z" }, - { url = "https://files.pythonhosted.org/packages/4b/85/41d27f234b82e47c167a5f6c0f62501dc0c640585ff4aba79e08a390336a/charset_normalizer-3.5.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7218e8f32b0956cfcd048fd42d9d5779809745ca1d86113ca56f66e7ae1549c4", size = 254660, upload-time = "2026-09-30T04:36:09.248Z" }, - { url = "https://files.pythonhosted.org/packages/58/ca/5d1a997587febe5b26d8daffe363b5c1a091cece19828eec6502fd09c5ef/charset_normalizer-3.5.2-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:a19a731138fc27d5682277d3b9df22855cea1239bce7fcec5f78f42ef2d1f3c3", size = 249996, upload-time = "2026-09-30T04:36:10.73Z" }, - { url = "https://files.pythonhosted.org/packages/b3/1f/d1e78246f7ed60c8c8d606b4ac27f66ce49cc3e95f24893ccbeba9f77302/charset_normalizer-3.5.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:62603db9a7caa0802eaa28c1c46fecd7b3a263a774069c24c3c28c302448721c", size = 247028, upload-time = "2026-09-30T04:36:12.294Z" }, - { url = "https://files.pythonhosted.org/packages/8e/37/eba316edd4f0c4d3a5d945924c4eeeae59abac4056aa815d8a4268f863a2/charset_normalizer-3.5.2-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:b6856554c4f44d79fc2307d5768854310a8f0096e501c75637542c82292b0429", size = 240562, upload-time = "2026-09-30T04:36:13.887Z" }, - { url = "https://files.pythonhosted.org/packages/c8/8e/aaa037d40ca9ef045977f1a661048b1aa33f223adfce3452fe9be9f79d14/charset_normalizer-3.5.2-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:1bc0baf5ef96b6ede57d47f4b8fe4d9d84019c3bfcbeb20a41edc6a6ee341f1f", size = 271699, upload-time = "2026-09-30T04:36:15.41Z" }, - { url = "https://files.pythonhosted.org/packages/26/19/1c1c9f75974adf523b87f34b8a2adc5a435cd65916812bcbd0dfa45f9a29/charset_normalizer-3.5.2-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:56bc200a365efb37383b7852e4cc5898d3b2da5987289b543956cf8cad71018a", size = 252030, upload-time = "2026-09-30T04:36:16.839Z" }, - { url = "https://files.pythonhosted.org/packages/bc/90/0660ef18e18df0a4d2a1a0edff7dfbba42d4e50ef2425557a5bb7051f77b/charset_normalizer-3.5.2-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:2c9ad19a6cfcd5ea5c0d41161d22f9df1dcc277e9bef2751391334546a314c00", size = 268565, upload-time = "2026-09-30T04:36:18.468Z" }, - { url = "https://files.pythonhosted.org/packages/79/ba/57adc269824e8658f1a0f97a9e514c247445a9632b3419b97e0ba37f16dc/charset_normalizer-3.5.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:e243bd13217235fc7290c621941c3f5cc8b66e4872495be821d7436ba2fb838d", size = 257627, upload-time = "2026-09-30T04:36:19.938Z" }, - { url = "https://files.pythonhosted.org/packages/9a/85/33abd4315c052d3d4f54c92b1ee49bfbc0dc7115a981e462a793b6d2ab87/charset_normalizer-3.5.2-cp313-cp313-pyemscripten_2025_0_wasm32.whl", hash = "sha256:a090bb2c68df85450502e3e20d665e3a5af9c65a84d6508ed477badd49166fd3", size = 143407, upload-time = "2026-09-30T04:36:21.376Z" }, - { url = "https://files.pythonhosted.org/packages/4f/de/6435e18d1aaa5d910b896d551411c96af1f42a0c56c29afc2016c61ccc2e/charset_normalizer-3.5.2-cp313-cp313-win32.whl", hash = "sha256:2b7b3bbfb4fe8ef40600792d762fbaa9057559f9d3fad209525b7a22b99e91fd", size = 183207, upload-time = "2026-09-30T04:36:22.776Z" }, - { url = "https://files.pythonhosted.org/packages/9c/76/b8ec57f4e9ee3253541abf95e4a462c0175fe8032dcd070f1f2421240942/charset_normalizer-3.5.2-cp313-cp313-win_amd64.whl", hash = "sha256:78456a747de8dc58360ffa581f30a002baf5aa28cb262536545e91f113ed7639", size = 206489, upload-time = "2026-09-30T04:36:24.306Z" }, - { url = "https://files.pythonhosted.org/packages/3e/60/c647c6ae47480221e875ea5d743ff94946f7416e3c69415ab772928e8d32/charset_normalizer-3.5.2-cp313-cp313-win_arm64.whl", hash = "sha256:11912e4bb14baae7c5d8791aa55ba0a3a03ec6729073307b0f57270abaa713d3", size = 195501, upload-time = "2026-09-30T04:36:25.846Z" }, - { url = "https://files.pythonhosted.org/packages/58/ca/7aa91362a2f77ac8e9e28a9b902a74f7d0e11a851ef0d27a74308da8cd90/charset_normalizer-3.5.2-cp314-cp314-android_24_arm64_v8a.whl", hash = "sha256:1afb975bd5d68d5ce9f6b6d44fdf2f7e34b895a35e95708a7a91b20a3b51d187", size = 226010, upload-time = "2026-09-30T04:36:27.669Z" }, - { url = "https://files.pythonhosted.org/packages/a8/cf/ac8878d0322cf88a1aad4c7b147db32ca0bd806eb0060957b2e31486dbe6/charset_normalizer-3.5.2-cp314-cp314-android_24_x86_64.whl", hash = "sha256:bbbfc8e28816f19d7c0f1816664980c0a9875d01b27cdf8eedddb639d9e108ad", size = 239266, upload-time = "2026-09-30T04:36:29.434Z" }, - { url = "https://files.pythonhosted.org/packages/c9/6d/9a08d7e0b29b7208e2c6c01dc56c8e0520e7c7beadbbfb024b58fd69c8a5/charset_normalizer-3.5.2-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:7967d08cf06dee78443b874f98c98036f624f3a4e73e11f9f64f5be4d25393cf", size = 206783, upload-time = "2026-09-30T04:36:30.872Z" }, - { url = "https://files.pythonhosted.org/packages/82/44/b0aa350280e6ff5a5492d17cf10460dd39d5ee848f872f7ba2df10607f60/charset_normalizer-3.5.2-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:4c2b5031f63e331e3839b40aed2dd6f191e9c07edbde303e7876846ea1946995", size = 210449, upload-time = "2026-09-30T04:36:32.625Z" }, - { url = "https://files.pythonhosted.org/packages/7c/8a/40db9aa9f5907bb0e6f8b6d64064bf8852fb33d4b813ff9414911df7647c/charset_normalizer-3.5.2-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:fcff63213e8e6e47770541a4607175404f47cbb3ebea7b6058cc82d524a0e424", size = 367815, upload-time = "2026-09-30T04:36:34.197Z" }, - { url = "https://files.pythonhosted.org/packages/7f/72/9c5e7707b57c8ddfa9ddf7b0b1d009d7fbab9e9e887d5b721060f37e307d/charset_normalizer-3.5.2-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8d86d6fc60743dc916eb79e2eb1ec4818e21e427731543af40a3021851174a13", size = 247095, upload-time = "2026-09-30T04:36:35.803Z" }, - { url = "https://files.pythonhosted.org/packages/83/09/71e453691e927de4ddf792770cfaab3f49d494e222f66ea5e404bbd5e39c/charset_normalizer-3.5.2-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:7a881931aa470808df94a8c380eed2bbbc76cd9dc622310f99665658c821eb6d", size = 233942, upload-time = "2026-09-30T04:36:37.407Z" }, - { url = "https://files.pythonhosted.org/packages/9f/86/85c84e4da8b27dd409577d9437926ff581c5f9d3c66038dc68c1a526de51/charset_normalizer-3.5.2-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:8024d00c3faf3fc0c16e07a69f4405e8eac7cc0ab15f65fe6cf43827c4cf72b4", size = 273762, upload-time = "2026-09-30T04:36:38.904Z" }, - { url = "https://files.pythonhosted.org/packages/92/08/564955a4b5f2ccb410ab480bbe8c6a18063ff27f2d35458731c4a5335df9/charset_normalizer-3.5.2-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:4d48f2d08b9de5864e2c8744d4461b862fb149a18274abc8b698c45975573438", size = 269514, upload-time = "2026-09-30T04:36:40.469Z" }, - { url = "https://files.pythonhosted.org/packages/18/24/bad3ac4271589df29cf5ce2f5ae490518a5739358052bd0d61209e6fea54/charset_normalizer-3.5.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:34276fd796040bf0993ab33a369aa572e6979c7aab225a88893667ad8eac8f7a", size = 255056, upload-time = "2026-09-30T04:36:42.02Z" }, - { url = "https://files.pythonhosted.org/packages/d6/3e/350d89ad49916b86554d6f5f2d03ec1152148f87e5ff735106c6a03b1a36/charset_normalizer-3.5.2-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0521c5665880b33d603717defa76c094048900010897909952397feb3039da56", size = 251311, upload-time = "2026-09-30T04:36:43.577Z" }, - { url = "https://files.pythonhosted.org/packages/56/5b/4970a2d154df502e133402906dd04e3ae7cada7b3011283c88d0479a2585/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:eff0ac9dbe711a4aee69bf04a83896aa9b85f19641264053a9f6d48573abb7dd", size = 250190, upload-time = "2026-09-30T04:36:45.185Z" }, - { url = "https://files.pythonhosted.org/packages/88/8c/f1a91bddc8fb47c2889e29ea7ea49a194eb0d9868675d786806519c00d76/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:1503bccbeb36d5527790c3930327704c39af22de3112f1b1666a9f3ce15ee204", size = 237098, upload-time = "2026-09-30T04:36:46.689Z" }, - { url = "https://files.pythonhosted.org/packages/24/0e/bb5dace3cc7e79068425386a6589c19b5a2ab5fefc2a46abea6919683332/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:52aa6992700996af31f375de0c6bacd402b0097fe40b53c426b9f51a90ebabc7", size = 274228, upload-time = "2026-09-30T04:36:48.31Z" }, - { url = "https://files.pythonhosted.org/packages/9d/79/b849ad523017ea9f5a45581bbebed91439e0cf42fd2860a6f64e358eb5a6/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:e09a3942ecbdee5cce73ea9d42da82b81b72ac1bf031ce069b93b5adf4eac8cd", size = 252401, upload-time = "2026-09-30T04:36:50.091Z" }, - { url = "https://files.pythonhosted.org/packages/89/8c/75469d690cf47200bce8f6cad7655724fc23148e147abfc5ce78b5f65863/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:c7c9ab723cde841fefb34efbad91e87f00a674b1fe1cd0784fde742bf2c154dc", size = 271846, upload-time = "2026-09-30T04:36:51.719Z" }, - { url = "https://files.pythonhosted.org/packages/26/cd/6d52d3c7437cdcf2e310ce9f28f282e733d4ef60ed19105d1819c356255f/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:ddc7dacc8ece3a182e7f15cb862d1fd616b46d076cb1ae9dd232b2c38b655874", size = 258151, upload-time = "2026-09-30T04:36:53.234Z" }, - { url = "https://files.pythonhosted.org/packages/f7/4c/070b38bdb5f49a70199fce923ec0726a49536a63ab262abbfcaaf351110b/charset_normalizer-3.5.2-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:ee43c17b173d46a3212baa6ead3ae258eeabdae48c263a01ccf0218c366dd655", size = 143570, upload-time = "2026-09-30T04:36:54.816Z" }, - { url = "https://files.pythonhosted.org/packages/81/84/9ebfc8ed6c8c4fcd8e726ff6bf220cc8deb3966e31dce9be8dd8aa017e64/charset_normalizer-3.5.2-cp314-cp314-win32.whl", hash = "sha256:4f87960d57feabfb618e4e0af6e7371645fa26a277860739d6e5d6e0012c92f0", size = 186412, upload-time = "2026-09-30T04:36:56.643Z" }, - { url = "https://files.pythonhosted.org/packages/d1/78/5ed86f743d4bc350db307e7636419a0a5ee1d91806d30c7f667bd5c80dae/charset_normalizer-3.5.2-cp314-cp314-win_amd64.whl", hash = "sha256:e4e81e09c1578b8df602e3db08b0b3ea0a6947ad612f52bf8dc5ea8d47691f0c", size = 210965, upload-time = "2026-09-30T04:36:58.205Z" }, - { url = "https://files.pythonhosted.org/packages/53/94/a3a7698e9b1a395e1eb99ccd9a324be9347973bff4e72db2a06496d7cd27/charset_normalizer-3.5.2-cp314-cp314-win_arm64.whl", hash = "sha256:80d02b6f04e92601a081dd97b23d3128033098bff5d35d392ddcc0476ea11253", size = 200406, upload-time = "2026-09-30T04:36:59.764Z" }, - { url = "https://files.pythonhosted.org/packages/c1/48/c5dd00d5ef7791f02666de250a5bb6071e29b7e133cf4b835800b6d3bc27/charset_normalizer-3.5.2-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:dca9ab98072a5a54ebacebdc45f53e645336b320c667410b061be1ca588ae709", size = 396871, upload-time = "2026-09-30T04:37:01.543Z" }, - { url = "https://files.pythonhosted.org/packages/12/c8/8379554b42e8368161d898476686947a0fdbd3e8865170d7909dcabfdee8/charset_normalizer-3.5.2-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f0aa869112ef88429ae17820d99c3dd9504c9e9c671d3c246f3d7442cb051084", size = 249711, upload-time = "2026-09-30T04:37:03.111Z" }, - { url = "https://files.pythonhosted.org/packages/4a/eb/2ddb1035d17320caa9f41682935123a9a250277b261c3efc86b2d2a21343/charset_normalizer-3.5.2-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c0afc6800ba57ccc350374c5bd6150419915d95ce93cdbab2d783d75eaf30ecb", size = 231146, upload-time = "2026-09-30T04:37:04.721Z" }, - { url = "https://files.pythonhosted.org/packages/4a/24/2ecb4bde104322cd7859d6594fcfa74649f8d90b3221c9feecbef149875b/charset_normalizer-3.5.2-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:7dcd882da75ef9adf94903b1e3b9419e8aa8fb4c7396822b834b9ef7fb96954f", size = 271552, upload-time = "2026-09-30T04:37:06.295Z" }, - { url = "https://files.pythonhosted.org/packages/3f/98/9d5f6ebc3aee9fef5d30b4aff11fb2ab7a1222b4064f8ef2c7c87cde217a/charset_normalizer-3.5.2-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:2e06a3a98f916dd41d27f3105e02e7a40181c98c94b9158733d03a6f80506c09", size = 269810, upload-time = "2026-09-30T04:37:07.905Z" }, - { url = "https://files.pythonhosted.org/packages/09/e1/a3b06a10461b1b7628853c934c644e03bc28e42767116afb52f19a56519b/charset_normalizer-3.5.2-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6bd128f206a7752ae1f2ab6c61bf8a24ba28913a10df8b14c2637b973ff97a80", size = 259845, upload-time = "2026-09-30T04:37:09.554Z" }, - { url = "https://files.pythonhosted.org/packages/fd/d3/6f561f74a296cf27d61775a1dc665ad13f3bff6a798810ca05907f37a7c4/charset_normalizer-3.5.2-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:c8f3d67aeaf55f017982b73683f0e7342ba2f6635a78f69ce89ebb26aa411e5c", size = 252825, upload-time = "2026-09-30T04:37:11.274Z" }, - { url = "https://files.pythonhosted.org/packages/26/9f/69e13ca3b18f43e0eafcd34c04a45b732ae22a43b54a5fc9e119103356eb/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:fe9753dfee015c570d73df76f899f18444d41388bffcde097deba51c4fadbb9f", size = 252659, upload-time = "2026-09-30T04:37:12.941Z" }, - { url = "https://files.pythonhosted.org/packages/73/a9/ace29806a0dae18939919c76ba526472d83214afa101105fabff2cf30625/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:92888bb3187c5ba50500b00b3b310c9f2c651709d28036077680cb5255450a03", size = 238819, upload-time = "2026-09-30T04:37:14.659Z" }, - { url = "https://files.pythonhosted.org/packages/f8/c1/6116d52a2e3311ec80f21f5fb5e17b27405f10b9608af8f6e69516841a1b/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:d008d90a7f2471519aef0c90dfbe73b3e6e4d5e66ac48e19154c17e89e98b604", size = 272973, upload-time = "2026-09-30T04:37:16.346Z" }, - { url = "https://files.pythonhosted.org/packages/19/aa/9955c7e93bba10a9c7e8f7a5031b7ced66f3a1883a55c00712b8d5850ff3/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:31f3930700408d211f13378ccbe1c40845d8da54bd0681fac3a9b5aae81c7aa8", size = 253692, upload-time = "2026-09-30T04:37:18.212Z" }, - { url = "https://files.pythonhosted.org/packages/bb/33/2a6ae7fdc1b10cb581cef91addd8cdfc5f40d50abb5702309369d5834579/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:2a925889534b3748302dae5dead07cc13480de1dac3aea80a941b729b471ef93", size = 268757, upload-time = "2026-09-30T04:37:19.877Z" }, - { url = "https://files.pythonhosted.org/packages/a2/22/80992720a0282cd39bba1db35868e6b9c22f41281160143a836544bc1d8a/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:f5ec61164adcec446f8969a3358ec3f9b26bbda3b9213e5586d219afa8df2915", size = 262220, upload-time = "2026-09-30T04:37:21.583Z" }, - { url = "https://files.pythonhosted.org/packages/92/9f/181fd07e1bffea1d95cd80c84ac537354f50699c22cfc4d3c02b6fc16208/charset_normalizer-3.5.2-cp314-cp314t-win32.whl", hash = "sha256:598a11a2c7ebaa5334bf698bf29568c9c390abac6a154d8170fedecd1cea38c5", size = 197797, upload-time = "2026-09-30T04:37:23.235Z" }, - { url = "https://files.pythonhosted.org/packages/49/1c/25d8415ec1c4f2f41f1680435e4c87cfb378ff2f677d950946f2a45d0632/charset_normalizer-3.5.2-cp314-cp314t-win_amd64.whl", hash = "sha256:7fdde2c9fd9e3eca40631e024664cf2584272cc8f96308cbe5fdfc930f51d8bc", size = 222765, upload-time = "2026-09-30T04:37:24.891Z" }, - { url = "https://files.pythonhosted.org/packages/3e/b4/46b48f013dadfc0d0d33b375438e31bdf5a989dc68389c6bf627054d4df9/charset_normalizer-3.5.2-cp314-cp314t-win_arm64.whl", hash = "sha256:d1befeed746d247c81127bb14de9dc3d30edb6e5976d34f83f86ed262b1d9105", size = 210985, upload-time = "2026-09-30T04:37:26.634Z" }, - { url = "https://files.pythonhosted.org/packages/ca/e9/34e597dee616d0b8ee4b34d29399e85c2204ade174157a48505d42baa4ff/charset_normalizer-3.5.2-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:87475fabc8d9996fd9c27debb395e642e8c838d78a00b6e932227a0e06b81e26", size = 367676, upload-time = "2026-09-30T04:37:28.329Z" }, - { url = "https://files.pythonhosted.org/packages/60/9f/a5d1c91c0263745e2cd344c5a4415d787c575501ab1d449f1148ac6b495d/charset_normalizer-3.5.2-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9409a8bf35cf78353942504b24a57de3d75b708997a1e4bd8db71ac8633ce364", size = 248414, upload-time = "2026-09-30T04:37:30.167Z" }, - { url = "https://files.pythonhosted.org/packages/26/79/e697f77464748a3ee3cf490c83d592459400d4898380d66c38366b03080c/charset_normalizer-3.5.2-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:498dc3188ca05a68231ac3fdbfc7f57eb67e1343c30e0fea17f8218c1599b253", size = 244775, upload-time = "2026-09-30T04:37:31.964Z" }, - { url = "https://files.pythonhosted.org/packages/ca/87/3d42a42e18ea066e2513936fd678a00696e77878b5ae04528976abdbcb83/charset_normalizer-3.5.2-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:e242bb1c5e76e97dfa9e7f209a71e93a01d7f19ffdd5cfbb2e2d55b4f08f8ab0", size = 273877, upload-time = "2026-09-30T04:37:33.661Z" }, - { url = "https://files.pythonhosted.org/packages/c3/76/8a28136f3938ba9836f84280ce0c4d61ed1cf15a036b2034900c62634162/charset_normalizer-3.5.2-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:def79fa35ef0cef8d2accec024f4fdc7ead3012ff02f5215c783f39f03ef8cfc", size = 269455, upload-time = "2026-09-30T04:37:35.573Z" }, - { url = "https://files.pythonhosted.org/packages/a0/a1/4fbf5d0f0f1b2a080474c1cf9a2f12c4c6531bb0e8ba591055e846d2b4e9/charset_normalizer-3.5.2-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:3df041de8887954562c9b261cba85ca0e9ded74048daf125f45edcfaa4832229", size = 257336, upload-time = "2026-09-30T04:37:37.397Z" }, - { url = "https://files.pythonhosted.org/packages/ba/a2/8b50aa320adb880ad579518e6f718f24944804b42a88b83d267d5d444125/charset_normalizer-3.5.2-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:04851f73ae72b8413dddadb16a49dfee95263553741fd42d546f7d66907e6be5", size = 257584, upload-time = "2026-09-30T04:37:39.522Z" }, - { url = "https://files.pythonhosted.org/packages/a5/57/50e3fed84e175f40349bd0da7a4fce94c87f0378f52d74f511d89e0bdc20/charset_normalizer-3.5.2-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:183b88127acdb4fabe59d951ab424faf1af7b63cdbb5f776186c1ea2ffcaed98", size = 251854, upload-time = "2026-09-30T04:37:41.23Z" }, - { url = "https://files.pythonhosted.org/packages/d6/54/f7fbb3493c9f49091213b9c2d6dd65800696f1ce1a3f196a4205f50417b1/charset_normalizer-3.5.2-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:16fa0eccf81304b79c5cd87f9271c3b85dd9dd99245e4422ae9c0dd45e0f99d3", size = 248767, upload-time = "2026-09-30T04:37:42.883Z" }, - { url = "https://files.pythonhosted.org/packages/d9/37/b3a6385acc5a1e45b39ae9c90bfb9cf838a09b9dd37ef2740ab4c6b4a2eb/charset_normalizer-3.5.2-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:7441d755b7ab94f8d4eb3e43ec05482d760842fd263d003a99102d742cd835e2", size = 274479, upload-time = "2026-09-30T04:37:44.658Z" }, - { url = "https://files.pythonhosted.org/packages/89/44/809913e2cfd279e635a9294fdbbfb1b1dc62a8189d473d561f649fce98d8/charset_normalizer-3.5.2-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:ca403d7e4798f525fdfc78e258820419cbbd0f0ecbab9de7840e3c017cf6b8cf", size = 258310, upload-time = "2026-09-30T04:37:46.529Z" }, - { url = "https://files.pythonhosted.org/packages/af/a2/f28400ab13359d91bd39179df8e149376b9bf36588e739a3a4f9de2b84b2/charset_normalizer-3.5.2-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:df29a0a7107f7011e77f4eebdddec4c7331e24d787a0b21a46d63bdf7445da95", size = 271100, upload-time = "2026-09-30T04:37:48.399Z" }, - { url = "https://files.pythonhosted.org/packages/e9/89/9bab37955edf0adb3b66f8a3a6617d9f2f487e0d56f295a6a286cb640aa6/charset_normalizer-3.5.2-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:f3c96f633825733f735c5a9cf21d21a257d8e1edf0b1cee0a064b9c424ca0f7d", size = 259936, upload-time = "2026-09-30T04:37:50.023Z" }, - { url = "https://files.pythonhosted.org/packages/23/b5/4459e08d45a679f903d50fea08bc52cfa728cca4d7bd02c757b5e5abda2e/charset_normalizer-3.5.2-cp315-cp315-win32.whl", hash = "sha256:281cb91036248400f4cc957495cccd44c275c2e0c5854f7e45ac5cf7dc193847", size = 186301, upload-time = "2026-09-30T04:37:51.722Z" }, - { url = "https://files.pythonhosted.org/packages/98/e8/55d5fd3935b4bce6da4fe0df61898e8c82653e317e677bd58aceb9c60f13/charset_normalizer-3.5.2-cp315-cp315-win_amd64.whl", hash = "sha256:89b53f3cda69831909888e0494f4fa0bcd3537e3e138dabeb620bd6ad946bae8", size = 210858, upload-time = "2026-09-30T04:37:53.427Z" }, - { url = "https://files.pythonhosted.org/packages/a9/5b/974423c2fd8e524c7a7f64318c1e02240ef954912fa2b4d70344107b9c68/charset_normalizer-3.5.2-cp315-cp315-win_arm64.whl", hash = "sha256:6be488a102b8cf28d0391d8c4ba7748938ae28b78ad901f8585520fca33ead1a", size = 200309, upload-time = "2026-09-30T04:37:55.015Z" }, - { url = "https://files.pythonhosted.org/packages/ee/f9/00ee0195db1013d8f7c416fd770fbeb560bb46eb2e36b054d05cb56f6cfa/charset_normalizer-3.5.2-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:915563965d418f986e7e145accc592eae9e1a1be3566ff98a05d7a9ec42a76e1", size = 395343, upload-time = "2026-09-30T04:37:56.743Z" }, - { url = "https://files.pythonhosted.org/packages/04/3a/c00b50e94c964cf934c7899cd47c97952fc11dad71cc5884b3c61795b09b/charset_normalizer-3.5.2-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:65cd72beeeca9d3aaea1201e5923859f308f952f9c71de93f06063c79f0f7a3b", size = 250114, upload-time = "2026-09-30T04:37:58.607Z" }, - { url = "https://files.pythonhosted.org/packages/50/27/d102dc880bbcffd0479ab64dfc1fb96777a854355a55e2bda72a71efadcb/charset_normalizer-3.5.2-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:b7fd005a73d9e657273b7a10dc71a9e03c8fb9ee6999798d6918ce095b81ac7f", size = 239997, upload-time = "2026-09-30T04:38:00.511Z" }, - { url = "https://files.pythonhosted.org/packages/a5/4a/bf7ef45794dd293fab5f98a9309817977fbb845b9998f171b8cc5d8437a3/charset_normalizer-3.5.2-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:e54da4baf05720032d527874d40b65fa4d7e5c6c6a43d0c3adbeffcaf275a2b3", size = 272313, upload-time = "2026-09-30T04:38:02.509Z" }, - { url = "https://files.pythonhosted.org/packages/e8/ee/008a2837737991474c5754bb3191010007663860979701990982a502cbaf/charset_normalizer-3.5.2-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:124fbf1a8ff966d87ae05bb8bd45a71f966055ed8bba320d0c7cf450bc5f4d0e", size = 269986, upload-time = "2026-09-30T04:38:04.435Z" }, - { url = "https://files.pythonhosted.org/packages/93/ad/bd74a283940dc910c5b14f8e4f80a248082bc9c0fcbe1f54530cb6d9cc5e/charset_normalizer-3.5.2-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:28b4f0d66fb834ff90f28209ac7bce77868c45d8c93e26f906709d9b7c2e1af9", size = 260202, upload-time = "2026-09-30T04:38:06.549Z" }, - { url = "https://files.pythonhosted.org/packages/8a/7b/ed341c66f69f688723501fac752be3d63c7159ca0d0d4174fc611e5710bb/charset_normalizer-3.5.2-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:58ca3755ee7ff7f59b57789ec9833c9de9ea275405cdd240eda1f193112e398a", size = 259083, upload-time = "2026-09-30T04:38:08.311Z" }, - { url = "https://files.pythonhosted.org/packages/cc/9d/e41588b777965e5031a43128a1e96173ebb35ac75fc53ec3b517e7c21cd4/charset_normalizer-3.5.2-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:443eae2bf318abeaf6f15d785138f71fd6de770e99a92158b8b814265e079115", size = 253081, upload-time = "2026-09-30T04:38:10.402Z" }, - { url = "https://files.pythonhosted.org/packages/81/35/b761eb6d8c1eb218b9b42b9b4d5ac902afdc399fb6dac6f9a9aac7bda589/charset_normalizer-3.5.2-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:58f361dcbab699cf8f42db3f47c8e7fd1036f138c23a5d08de9fde5f425a730c", size = 248712, upload-time = "2026-09-30T04:38:12.317Z" }, - { url = "https://files.pythonhosted.org/packages/4d/2c/147169a041b747759f37405c0a97157e8e92de967968373101ff14915cba/charset_normalizer-3.5.2-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:1b4cbc7c3491ccb4aa17fcd8165649d01cf39f76de1696da8631b5f71b85401d", size = 274176, upload-time = "2026-09-30T04:38:14.138Z" }, - { url = "https://files.pythonhosted.org/packages/f0/2d/0ff8db0d373ba8538db686db11cd7e8912031490b9e4f383b41912e8d594/charset_normalizer-3.5.2-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:ba0b1d2620edf869789c3879223f52bf2afc5d31b3cb47cc57b3a12c05e2aa9d", size = 259413, upload-time = "2026-09-30T04:38:15.841Z" }, - { url = "https://files.pythonhosted.org/packages/8a/8e/b4a085fb47c9d3a7e43576a4784fdd8fe23f907514a972de8086edaf7a48/charset_normalizer-3.5.2-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:5e2b6b57e9733d39f0c9fd3185efa6b8e29652c4cd8fe94180272cf6ed9a78c4", size = 269434, upload-time = "2026-09-30T04:38:17.626Z" }, - { url = "https://files.pythonhosted.org/packages/83/1c/d8d8d7322a7c3eecdf3237a4a419cf41d2eaad8e006ce7dfdd9d4c8fa2eb/charset_normalizer-3.5.2-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:51cf45226a9b588d0d2b4880c62d686934b63ab0bd79ca23ab0e9762eb27441b", size = 262716, upload-time = "2026-09-30T04:38:19.214Z" }, - { url = "https://files.pythonhosted.org/packages/a0/16/0e4c6ba9b44e97a2da150e52d331e8f9c968b21b358fbffa6c856cebcd89/charset_normalizer-3.5.2-cp315-cp315t-win32.whl", hash = "sha256:5fb29fb8cd1a46c27a1bf9613ad5ec2599310d46b4025d9556404a6b6a292800", size = 197159, upload-time = "2026-09-30T04:38:21.037Z" }, - { url = "https://files.pythonhosted.org/packages/be/33/e90bc2b1374f7f36ef106f56620de5a783907e19ca857efe2277e31cac3e/charset_normalizer-3.5.2-cp315-cp315t-win_amd64.whl", hash = "sha256:a192e2c40070d92c3ccf777e3a5c4ff515573cd2bb7ed0c537fdadbbec5bbf21", size = 221322, upload-time = "2026-09-30T04:38:22.886Z" }, - { url = "https://files.pythonhosted.org/packages/66/89/dfa6dcb08c200b7830ab56439e8c1890f2971d51aafbb3937894a2e7fcfc/charset_normalizer-3.5.2-cp315-cp315t-win_arm64.whl", hash = "sha256:749e97e1b32313717a565abbe321bc2190bc8b35f1a67e4cdbc7c56c8d8ffe58", size = 209192, upload-time = "2026-09-30T04:38:24.648Z" }, - { url = "https://files.pythonhosted.org/packages/8c/ab/176fbfd5b64939c55d652366aa5b9ef1d767af207a3aa6ebeb0d226c484d/charset_normalizer-3.5.2-cp37-abi3-macosx_10_9_universal2.whl", hash = "sha256:4275811936e2f06feff5e598fb42a1b7ae852da8e39605211892b56b81a34efd", size = 331815, upload-time = "2026-09-30T04:38:26.216Z" }, - { url = "https://files.pythonhosted.org/packages/7e/84/371eac6b30bdbcbf2d632a1a01809103459216fcaae61b8b8d922c1bfb8a/charset_normalizer-3.5.2-cp37-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:1c50fe28bbc2ced33386f298650d91218076c05420e6cbd790b913adc41659e7", size = 253276, upload-time = "2026-09-30T04:38:28.032Z" }, - { url = "https://files.pythonhosted.org/packages/43/6f/c4fbae58febff71709c51bc7e18fdfa55341dc382704740f9f0cbf03817b/charset_normalizer-3.5.2-cp37-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d19fbd981a488e22cd04883659ca6b08f50b5974f9fd7c95655ef6a043e5893f", size = 241239, upload-time = "2026-09-30T04:38:29.732Z" }, - { url = "https://files.pythonhosted.org/packages/61/71/458c3f42164a07d0c5210798e9e704b39e540a6793b05aba67f3a35243a9/charset_normalizer-3.5.2-cp37-abi3-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:0fed1d06615f022ee3b13caf5e8b180cfea32bb2c5aded8a9d44277afc040f93", size = 231121, upload-time = "2026-09-30T04:38:31.462Z" }, - { url = "https://files.pythonhosted.org/packages/09/54/ab9e89367076f6331bb6c65c4bf14a5361fa5191cb6561bf534f18504e1b/charset_normalizer-3.5.2-cp37-abi3-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:838dcc90063569a0448120554591a1d6c4a4ffe11babf048908793154ab86ade", size = 260350, upload-time = "2026-09-30T04:38:33.239Z" }, - { url = "https://files.pythonhosted.org/packages/7c/c1/061431ecc688d9d76602502cb57cc01e691e682c18f1beb45f9673b5bbd2/charset_normalizer-3.5.2-cp37-abi3-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:2ce45c6627b22c47e390bc91a41c3d13032192e699fa0bea96e9671b373d69b0", size = 255430, upload-time = "2026-09-30T04:38:34.865Z" }, - { url = "https://files.pythonhosted.org/packages/8d/1f/20c8949f0676f7ab811abdeb7f4d7f1cbc6e61ff20bef08b44edeb092bc8/charset_normalizer-3.5.2-cp37-abi3-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0774bf9bf620249fee3e0b8b9fd3065de213be30f3aa94ce2494b3b638949e26", size = 250612, upload-time = "2026-09-30T04:38:36.649Z" }, - { url = "https://files.pythonhosted.org/packages/2b/9e/46f2fa4c431fc98c4ae76a8cb5bdca54e0341e3cfc3fcfd8e82740250818/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:1db38f4c5496827c1a501846d64d14c3b80c7e6714e406cd7dc36a9899fa1011", size = 242083, upload-time = "2026-09-30T04:38:38.26Z" }, - { url = "https://files.pythonhosted.org/packages/bd/39/559be29a0c0f086e0bba6922babd38916cc5e0b58ced4de13ee01ea05508/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:304d8e4d493af723536393eee0c689eb7813f4a474c8b479dee63f1fdd98f621", size = 232738, upload-time = "2026-09-30T04:38:39.81Z" }, - { url = "https://files.pythonhosted.org/packages/ff/6c/387b0e4f756a282831c1d9fc6aeb6c51ca4507ca202767c8de15ce9b12e2/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_ppc64le.whl", hash = "sha256:9b7f416ff0978e2f2249330527f0ad6fa02f4932e6199692d3b52da2048c19e4", size = 260703, upload-time = "2026-09-30T04:38:41.346Z" }, - { url = "https://files.pythonhosted.org/packages/96/92/1fdf015f09ef449f50d3ac4b67c90887c9c318b727daa95cc4f866e6521d/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_riscv64.whl", hash = "sha256:01077390b03f7988f11d700a2194e69b119741a86b1a638b1db88891e3eced8e", size = 247622, upload-time = "2026-09-30T04:38:42.937Z" }, - { url = "https://files.pythonhosted.org/packages/dc/3c/8e7b8a5671ad5d433669fb2a76f1a0164df2d9b1718b0206bc2a16d840cc/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_s390x.whl", hash = "sha256:7e841fb9010836c992c9f12fcbd43a831de93a5f726fc1ccd8ca1d0268c5014c", size = 257500, upload-time = "2026-09-30T04:38:44.604Z" }, - { url = "https://files.pythonhosted.org/packages/b4/f0/45b579df5cabc1d5d53ea1cc35e8437d3ca768c0acccc7041517cb6fbb32/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:9cae88599c7219005d879f98e5ed53341e9a122af585e1091200358a3003d2a0", size = 255100, upload-time = "2026-09-30T04:38:46.289Z" }, - { url = "https://files.pythonhosted.org/packages/31/68/fdec18a343f5fb3f310588dd478b09ac4799e0b187dbade3a8cd776f03ef/charset_normalizer-3.5.2-cp37-abi3-win32.whl", hash = "sha256:01b0c0d2262a9e28e8484a278c7e1b5d650e3ac8cf2683d2967e25899f208bdf", size = 174499, upload-time = "2026-09-30T04:38:47.999Z" }, - { url = "https://files.pythonhosted.org/packages/9d/8a/b618149cc5207943a0242068d7a27897f56a62947b5a039085f2a22029f8/charset_normalizer-3.5.2-cp37-abi3-win_amd64.whl", hash = "sha256:9f56f72050826f63dcee7a7f55b0a77168cb3bfc553fd405e7f8f9ece75a4036", size = 200092, upload-time = "2026-09-30T04:38:49.707Z" }, - { url = "https://files.pythonhosted.org/packages/03/cf/4c66866fa9e2b1c78e3c911516d1de497a677b7ac60f1eceda74ce777ca3/charset_normalizer-3.5.2-cp37-abi3-win_arm64.whl", hash = "sha256:40ab6bffa02ae10a0581e6c198be7d2d8ca5c2a0c64e4ed3465d766df457573e", size = 294363, upload-time = "2026-09-30T04:38:51.312Z" }, - { url = "https://files.pythonhosted.org/packages/fc/ad/d07d7862a62ffa6d79d68074d14823243dd235a77c45262acbf6adeb28bf/charset_normalizer-3.5.2-py3-none-any.whl", hash = "sha256:b6b751274acb69d77b3323d6b7dbaa3c7fdfc1eb829b7eb61d262f32e1af9685", size = 68872, upload-time = "2026-09-30T04:39:21.828Z" }, +version = "3.5.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/c2/c3/cae6d3bdefd96a941ffc247c714ac4babc488a69012e11c058f6c17c6c47/charset_normalizer-3.5.3.tar.gz", hash = "sha256:a250888753faa289e2997962fbb17c4960cbdb58575533ca6fceee68c224bdff", size = 189359, upload-time = "2026-11-23T02:46:51.755Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/6c/b8/9aa05e4bb709dc3f70fe040ca5af4a0bf13064b5a24238988f585f6a98c1/charset_normalizer-3.5.3-cp313-cp313-android_24_arm64_v8a.whl", hash = "sha256:7fd816f466883dcaac196ac77271d0292eee4a81f4db1191b95d15328f335937", size = 230514, upload-time = "2026-11-23T02:44:16.444Z" }, + { url = "https://files.pythonhosted.org/packages/fe/cb/b42344c84f48204ba696e75424eca12b33f0f046dbe8290bfd2917dffde3/charset_normalizer-3.5.3-cp313-cp313-android_24_x86_64.whl", hash = "sha256:af217012cfdaf6ea5dc0c538aac29b7bd030eb865056cc60f1d973b982b7917b", size = 244366, upload-time = "2026-11-23T02:44:17.675Z" }, + { url = "https://files.pythonhosted.org/packages/a3/08/fb0a6bdbfee82133f43d5c506b865bc9bbef785eefc355b86374ae87f943/charset_normalizer-3.5.3-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:d12571adb9ceeb9ba0640db46433430062f5f1dec89e39713a2a5a8ce3016c37", size = 222552, upload-time = "2026-11-23T02:44:18.941Z" }, + { url = "https://files.pythonhosted.org/packages/59/16/77d291a7b6bc0784a567ef7b00aa3267efa645ace0abf38a30cf3bea0d63/charset_normalizer-3.5.3-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:183aee7e84789391e547ec1609f8269332b9b123d21e97f7ef79eaa474c47e08", size = 226639, upload-time = "2026-11-23T02:44:20.168Z" }, + { url = "https://files.pythonhosted.org/packages/75/59/47eca4000f8367014c2e1be786aa82bd8702120f24749853e6297eb8217b/charset_normalizer-3.5.3-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:499e4bbeb1e79b14756311a1d12cb88112f244423e152d80981d9bcaff3279fa", size = 386082, upload-time = "2026-11-23T02:44:21.363Z" }, + { url = "https://files.pythonhosted.org/packages/21/59/0a22abdaa8c34c1daa886001c3f238e9b09dbaeaa75febf7f8f203520774/charset_normalizer-3.5.3-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:656b9744bac4493561d28b56d7d646afd7a8471254ef7004d849aa8368020037", size = 256179, upload-time = "2026-11-23T02:44:22.674Z" }, + { url = "https://files.pythonhosted.org/packages/c2/22/f1d08fb14f5a7cc6ea88cde946136bb58c3d83038385268e541f424544fa/charset_normalizer-3.5.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:fd0341b9dea133d187d7c5a2cd7e21ae6449a7b68ea8c2454f9cf77def11ec1b", size = 238899, upload-time = "2026-11-23T02:44:23.917Z" }, + { url = "https://files.pythonhosted.org/packages/3c/f1/f910dfdeb3c32ba767f8f9b7290ec3aed1fc44998935255d572551168bed/charset_normalizer-3.5.3-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c9d1f467d121b33b06865c94ed5ed8388a9ef76f5e1acc1c8a854ac653493f5d", size = 237042, upload-time = "2026-11-23T02:44:25.138Z" }, + { url = "https://files.pythonhosted.org/packages/f2/1c/7916607074b99e7d5c5d53e88b76fe1a06328864536d3c7228819b7d9cf4/charset_normalizer-3.5.3-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:0810592b80dc5a97f8103443460264b588f31c6baa8a20abae7c683435d8117a", size = 272418, upload-time = "2026-11-23T02:44:26.432Z" }, + { url = "https://files.pythonhosted.org/packages/ce/8f/1d97b6b3287d80b7b961019dcdfb66d917ff3063d46ab0ded635e7615484/charset_normalizer-3.5.3-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:db2eedef732424346f98d0aba5c6ad688b648bc79847f4cc70dfca830130b1e6", size = 270735, upload-time = "2026-11-23T02:44:27.711Z" }, + { url = "https://files.pythonhosted.org/packages/c6/3c/e51672360b768d7af7a56e00e39f93752489d0dd668034ea14f3d58898e2/charset_normalizer-3.5.3-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:caefc441edff6070a9f9749ca880a22731a1715d9e74b24304a546eec44bfc16", size = 252692, upload-time = "2026-11-23T02:44:29.013Z" }, + { url = "https://files.pythonhosted.org/packages/a5/1c/569563a1d2cf0a4f7f798a6736acb15f6ea9764382e036e37d8ac7ab9bc2/charset_normalizer-3.5.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:3ce4e4587e451ebc7d9899a7a1f539ea30a3c712d7bc8e0d256923c697fd5dcc", size = 240591, upload-time = "2026-11-23T02:44:30.138Z" }, + { url = "https://files.pythonhosted.org/packages/8a/64/7e7181b347948740211351c6d41dd5b78cf3bb81e44ab10f83128a80ed82/charset_normalizer-3.5.3-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:0b3fc6f7dd9db4a7782e65dc98eb80b2a91a854cf54a03dd93649be2f7ca638d", size = 242946, upload-time = "2026-11-23T02:44:31.33Z" }, + { url = "https://files.pythonhosted.org/packages/c7/03/5f2f94a3289330678689c0af2da8c31f3e10a8bd77ac8b1a68c97239dc5e/charset_normalizer-3.5.3-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:bed05639ae1bc23df7996a4fd13ea5064ddf60dc7dabd754f8badf060daec63f", size = 273418, upload-time = "2026-11-23T02:44:32.535Z" }, + { url = "https://files.pythonhosted.org/packages/3c/8b/854724ee0da7d44e33fa42cc9a355a5422ef78ad0fe294d7812d8f1bac06/charset_normalizer-3.5.3-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:a36bba41dc7fd263417688c4daf95a1091f93e1f6957c0f71ad7798907c5a10c", size = 253644, upload-time = "2026-11-23T02:44:33.728Z" }, + { url = "https://files.pythonhosted.org/packages/45/45/4f98894509fd63f8d366e68faa60c268492b1476ef468d0a5397055b6972/charset_normalizer-3.5.3-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:b013417037c931583578639cab2523d5a2efc35a584c192d07f4c909b133f6b0", size = 272406, upload-time = "2026-11-23T02:44:34.917Z" }, + { url = "https://files.pythonhosted.org/packages/08/09/c62783ce9f70a78dcab2b63c6079ee978a0f74f22a732eff9bc585c151ac/charset_normalizer-3.5.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:8baddc6349faf49edae4d1322f12b681b9e86acacd01874457c997437ef4ccaa", size = 258180, upload-time = "2026-11-23T02:44:36.164Z" }, + { url = "https://files.pythonhosted.org/packages/60/b3/30ac20e447638738c8714c9e893450ed577a7c76ddf5459f461da2f27a42/charset_normalizer-3.5.3-cp313-cp313-pyemscripten_2025_0_wasm32.whl", hash = "sha256:6dde7edd9ba5005389bc7c0ab461411f281dbacb2b06e52bd23592eba42bb503", size = 145567, upload-time = "2026-11-23T02:44:37.27Z" }, + { url = "https://files.pythonhosted.org/packages/aa/de/c352e4d1d7aa85956db646cc6873fb7e81c12cdda3446401c554b50ca5e9/charset_normalizer-3.5.3-cp313-cp313-win32.whl", hash = "sha256:b30e5496e453ac971bb17f5e096b84fbaae16d09e2613f6148ff528c08a54a0c", size = 185084, upload-time = "2026-11-23T02:44:38.431Z" }, + { url = "https://files.pythonhosted.org/packages/6c/53/c56cbbee8fc51fef0a8e775488c4ef5205047a190ad850c43ad4b2ae7b35/charset_normalizer-3.5.3-cp313-cp313-win_amd64.whl", hash = "sha256:cb18428af7399e0a6f7e3b45f110d57a1a47cf07fd4b3ce50e2366d99a38959a", size = 213792, upload-time = "2026-11-23T02:44:39.613Z" }, + { url = "https://files.pythonhosted.org/packages/b4/02/9c2209835e8767fefe1d91c22ae700bee5e6105e0e820debdf3e4fd07e86/charset_normalizer-3.5.3-cp313-cp313-win_arm64.whl", hash = "sha256:8b969f0309de905101bc3d2471c112e9ccbba711a7590b12d51f372b4163688a", size = 200777, upload-time = "2026-11-23T02:44:40.757Z" }, + { url = "https://files.pythonhosted.org/packages/9c/19/171fbc8735d20f22891d7f48ebb7ab5bd16e329726920d4c47ca6a520aab/charset_normalizer-3.5.3-cp314-cp314-android_24_arm64_v8a.whl", hash = "sha256:c39a4fe28a16e8fa667c55c154f62c6c3cd9ca2491cca9f16330dd7360d05b76", size = 230746, upload-time = "2026-11-23T02:44:41.982Z" }, + { url = "https://files.pythonhosted.org/packages/f2/6e/dd550464337918ade1b01ff3f232f9f9c5374df2cc784044616e5e42d1ca/charset_normalizer-3.5.3-cp314-cp314-android_24_x86_64.whl", hash = "sha256:9c1bd8321a840729a6b2620774cf4000fafe66c54cac9064972a10c4f607794b", size = 244366, upload-time = "2026-11-23T02:44:43.197Z" }, + { url = "https://files.pythonhosted.org/packages/43/9d/0a283271f4c7857bb6669228fcc4c92e73b6b6029cf1762344eb9830628e/charset_normalizer-3.5.3-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:5f86753952f7de3abc7ce871f8239ce4e0d32a91c84d22f3a667e669907c3897", size = 224040, upload-time = "2026-11-23T02:44:44.437Z" }, + { url = "https://files.pythonhosted.org/packages/96/8f/f084960593eaa570230bd847c198531ea5d0df7580a9d43dfac48f746f62/charset_normalizer-3.5.3-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:581d6e7df9b58d34147e21efde42a480b5087fe54f31e42550c26321566ba1e4", size = 227968, upload-time = "2026-11-23T02:44:45.792Z" }, + { url = "https://files.pythonhosted.org/packages/de/f4/8a4dd59b77e505ce3fbfd27bf3cafedf27ef946bfd6b4c074f0d4a705fc9/charset_normalizer-3.5.3-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:8231365b03b702b516aad35c9515694177ac31c9dc6240326f07308a4c45c708", size = 388599, upload-time = "2026-11-23T02:44:47.076Z" }, + { url = "https://files.pythonhosted.org/packages/aa/a8/0fed9cde3b8197c99b0981bc53ee7f84cc38a3805a4c5f1c1003cda50588/charset_normalizer-3.5.3-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:ee9de080e8d6221bbe4ba2667367b1cee0f47a53f60ffc5e431b698cd2f2b214", size = 257076, upload-time = "2026-11-23T02:44:48.32Z" }, + { url = "https://files.pythonhosted.org/packages/ea/4d/3025852264de946fd2c559ea445bd8600c7b76ce9e0a9774e08ec243311d/charset_normalizer-3.5.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:61e32fdbf56f4cd25a1efa451c8b5fe886fc5e00143ccaacafdf21f301fad059", size = 240721, upload-time = "2026-11-23T02:44:49.495Z" }, + { url = "https://files.pythonhosted.org/packages/e3/7c/324b9b9354fb779d88ae14a3e5b8d16ab4e2c535fc7af609c647215a8c29/charset_normalizer-3.5.3-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:826d82356907350f345cf0aa744d43a69ac7948bd60f460f997cde86928beadf", size = 236682, upload-time = "2026-11-23T02:44:50.704Z" }, + { url = "https://files.pythonhosted.org/packages/2e/5d/ede4f860c14369e599b9eaea27277faa6b799e4205037dcdea9ba70482f9/charset_normalizer-3.5.3-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a312fedd182357f2c22f066d17dcd7413b6a205ee3d063d36950e94e3019d3de", size = 276116, upload-time = "2026-11-23T02:44:52.196Z" }, + { url = "https://files.pythonhosted.org/packages/55/04/156d80f0d51fb1edbb04969d5127fe34eff9721374cd4f02b822a4ea787b/charset_normalizer-3.5.3-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:249bf0b6f43985c33c83adbbab0ca71246ec24c82d960fa00c4ddb2cfed25db9", size = 273001, upload-time = "2026-11-23T02:44:53.499Z" }, + { url = "https://files.pythonhosted.org/packages/c9/53/2ebca72cbea022292180ee0a5cedb65c4cafbdffeee4142910bf70d0f454/charset_normalizer-3.5.3-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:ea880ae1a692ae694c11bca7be74864614ff1a58bdfff4605f36d1956b4b1588", size = 254524, upload-time = "2026-11-23T02:44:54.678Z" }, + { url = "https://files.pythonhosted.org/packages/d4/32/fb3d20d2bb50071c6370d03c24fbd7fa7c49a5d4170d00a9029b6851c44d/charset_normalizer-3.5.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:e34f591669498a03cd70993b0a79b9f0ef40c4e6f8232466bac33c42f0c15742", size = 242520, upload-time = "2026-11-23T02:44:55.846Z" }, + { url = "https://files.pythonhosted.org/packages/01/0e/9f259d7b12c7d707c2784deef221cef368b10a37b5dc56bc49f818116ddf/charset_normalizer-3.5.3-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:ddea089587432e3df6771a4a405ef249cc9727f7becb1de3f00ab571b2432002", size = 240962, upload-time = "2026-11-23T02:44:57.08Z" }, + { url = "https://files.pythonhosted.org/packages/b4/b0/d1916a27c54a67730104da1fee1218d3a476954b3ed2e47a1c28569ec720/charset_normalizer-3.5.3-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:f160f03e15bd1e3c35db9bfc20c42ff83155d37f9b0c79806cb10051ca725f13", size = 276468, upload-time = "2026-11-23T02:44:58.303Z" }, + { url = "https://files.pythonhosted.org/packages/17/96/c72352c6bdd9251e979731bdee97fb88dcb9574b0baf9df4d519dc124546/charset_normalizer-3.5.3-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:6651fecdac146ecfa52700e02a5fa3b3677bddf5fced4983b43e904244de3f6a", size = 254535, upload-time = "2026-11-23T02:44:59.853Z" }, + { url = "https://files.pythonhosted.org/packages/25/d8/5d22ba93705c0ae58ea135f3e4a914953348cf6e50d4a40d638dace152e8/charset_normalizer-3.5.3-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:45aa4ccf5a6caba138dd0f8bf36fa3e26654585d534881b62ce5e4fea2487772", size = 274514, upload-time = "2026-11-23T02:45:01.002Z" }, + { url = "https://files.pythonhosted.org/packages/7a/40/997607e03b4a79f3ac2074f0519bebe35b88b874139c9a98e96e0711bfac/charset_normalizer-3.5.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:9eba4613d45b49196af04a5cbadfc5e9379ba94aac85184b72cb1107ad31af0d", size = 258968, upload-time = "2026-11-23T02:45:02.207Z" }, + { url = "https://files.pythonhosted.org/packages/d7/1b/c3a6b94a46302aeb20e5cbbcefbb18cfec59abf235f031409bd15f555ff4/charset_normalizer-3.5.3-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:2e7fbd98443f28a5ed8004f0b058edcc4720a3d344adf007c0b7f1adbff2f59f", size = 145526, upload-time = "2026-11-23T02:45:03.786Z" }, + { url = "https://files.pythonhosted.org/packages/fd/82/0e4c6c596fd0ec4615255d05cab0c8fa42cec62e3b2be51bdcabab4a0215/charset_normalizer-3.5.3-cp314-cp314-win32.whl", hash = "sha256:d8f85e019c9f08ec134648a378ddd3f6f073c1e4b5ce9bdacd9a9e7b60749cd2", size = 187860, upload-time = "2026-11-23T02:45:05.079Z" }, + { url = "https://files.pythonhosted.org/packages/a0/4e/0d31216be12c3146dd282b043957805d4dda8806cd7b99c90273d251f0f2/charset_normalizer-3.5.3-cp314-cp314-win_amd64.whl", hash = "sha256:b66a0e045cf859d7418f26a554509b65f21ebb6d90a95152460781939e8264f4", size = 218705, upload-time = "2026-11-23T02:45:06.207Z" }, + { url = "https://files.pythonhosted.org/packages/68/5c/8c8f2202314b8918d51146ab2337af9721c9e7c74867c86f625556f657b9/charset_normalizer-3.5.3-cp314-cp314-win_arm64.whl", hash = "sha256:b8fc4fe56992b089d6177021fe6db641321bb2bc2fc7a1abf815c29a80ca2137", size = 205681, upload-time = "2026-11-23T02:45:07.379Z" }, + { url = "https://files.pythonhosted.org/packages/a8/52/01e5da4f7d4d10195f745c37b0daacd83a0fe112e9b6d959663a775ce489/charset_normalizer-3.5.3-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:6c80b4e83e2fbddd25fe27804cdfc45ef71bb387522caa575af42118d72dc970", size = 413919, upload-time = "2026-11-23T02:45:08.58Z" }, + { url = "https://files.pythonhosted.org/packages/67/49/277767bc060dfcb0788103acd67ec3831cbcc671f5a7b12b4935e733e09a/charset_normalizer-3.5.3-cp314-cp314t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:7a7e5bb8974842ad747d4a2b9fb928f84c3cdbe2c2fd7e405197fc1a1badaeaa", size = 260695, upload-time = "2026-11-23T02:45:10.005Z" }, + { url = "https://files.pythonhosted.org/packages/e1/33/f017126fd88ad2e39d947044af196b28dc91633f23dded8754ae944e2f03/charset_normalizer-3.5.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:28ba8e6361e0f319641707484994096ceb77e05c29eaad2919756218c0c89001", size = 246771, upload-time = "2026-11-23T02:45:11.143Z" }, + { url = "https://files.pythonhosted.org/packages/32/0d/c147965a1989b0e85f5aabf29a309ee7deb34ac7d89442c0fd51c8055981/charset_normalizer-3.5.3-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:e405cce4170de1fe520d9a92de9d7ececc23dfcf6888c62ab608a21be50838eb", size = 235360, upload-time = "2026-11-23T02:45:12.501Z" }, + { url = "https://files.pythonhosted.org/packages/55/f9/48509fa40ce22ce10497dd6689818b6676a482d7b3eaad02a558744d08c6/charset_normalizer-3.5.3-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:81132eaffa984f0a399233df4cd383caad18e8cadc6c24c568cf9324732a9768", size = 273351, upload-time = "2026-11-23T02:45:13.717Z" }, + { url = "https://files.pythonhosted.org/packages/8e/9e/3090f8b88f300b71c5d45bfe214f7a9e156de76cf37d12345338f1b63f5f/charset_normalizer-3.5.3-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:c43d9737c3b85ccd16b1862b1e7aa5c4bf30a6033068403713c0a2bba5bda979", size = 274795, upload-time = "2026-11-23T02:45:14.991Z" }, + { url = "https://files.pythonhosted.org/packages/e1/93/171bf6dd9bfbbc21be219fdab5213bb7ee8a8edff9b4acc982cb905e5687/charset_normalizer-3.5.3-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:94c9d5d91c16554f6397b823d9e47181ba100d830ab16b5d720adc229e17b2e2", size = 254931, upload-time = "2026-11-23T02:45:16.454Z" }, + { url = "https://files.pythonhosted.org/packages/aa/6a/e5a41dbffdc064c635b487debd32944e19777e6d938ebbc88fca1996e231/charset_normalizer-3.5.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:0c0fe07631dce6dae788a59c20ed927adc6feeb2d9ed440747eb367d89822a45", size = 249689, upload-time = "2026-11-23T02:45:18.096Z" }, + { url = "https://files.pythonhosted.org/packages/d5/3c/0b7869da44ab5fbae135df0f9a12a9325c42e37c221353dc194a01b3b3df/charset_normalizer-3.5.3-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:0ca25f1b1167e9fb94d93d3708df0b631de241bf8440947b0cb9f8c4cb66fed0", size = 242935, upload-time = "2026-11-23T02:45:19.215Z" }, + { url = "https://files.pythonhosted.org/packages/4b/59/c6fd64ab23eb58bd42e940be294864b7d197ea2a2bebe572f3e6600c2d34/charset_normalizer-3.5.3-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:fcb17f1d40c38912a2cdb56ea47aadac3527cd0b06fe24f3a0c4896febbea063", size = 275394, upload-time = "2026-11-23T02:45:20.373Z" }, + { url = "https://files.pythonhosted.org/packages/c3/d6/208641f89b848dbe842b37175f9cbd56183dedca850377c5d03ae77a5215/charset_normalizer-3.5.3-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:39e019884c8f857393df954d35f42bf99c5ab85af226fe74d1410188c6fec31f", size = 255552, upload-time = "2026-11-23T02:45:21.529Z" }, + { url = "https://files.pythonhosted.org/packages/f2/a0/04609cb3fe13091be9c8e24c75b55e12cb35882db5d4377c86c58dd09913/charset_normalizer-3.5.3-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:e282983b8def5ada758fa1f18bf9060bb8ce6cdd73be32f62a2de59820d3286d", size = 273420, upload-time = "2026-11-23T02:45:22.736Z" }, + { url = "https://files.pythonhosted.org/packages/2d/45/c8c27b6e00e6a39175a5b7b0df73d787a84d320012a882647f8c81ce915f/charset_normalizer-3.5.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:cbd09b22b340f846671e79e8d832167fac60c1884be4c71fd667211486a3b58e", size = 263761, upload-time = "2026-11-23T02:45:23.812Z" }, + { url = "https://files.pythonhosted.org/packages/d0/c0/51435f05b16daf627d5525de00334f869707aead4e9214e004809b7840f2/charset_normalizer-3.5.3-cp314-cp314t-win32.whl", hash = "sha256:a8f92cc9080bff47555c79b88e7fb8655438ce3bcf29c5f01ed2ed5efdf174a4", size = 200709, upload-time = "2026-11-23T02:45:24.92Z" }, + { url = "https://files.pythonhosted.org/packages/63/14/93634f18a4d3f17b90b0f40852ee9ef45834dde21112f7be5b28c25062ad/charset_normalizer-3.5.3-cp314-cp314t-win_amd64.whl", hash = "sha256:1a34385837db59d5de814c9f1e0f4157b571f9ce0eabdaeace410aa93bf5df62", size = 218684, upload-time = "2026-11-23T02:45:26.194Z" }, + { url = "https://files.pythonhosted.org/packages/57/78/f70f630a2a6af3a09fb82403425576b3c1c366c4e766bdb624b56c4a3d24/charset_normalizer-3.5.3-cp314-cp314t-win_arm64.whl", hash = "sha256:a094178c51530c9ebd1775e72d160af0eac4be244fb06ff1b6f182128c71903c", size = 209276, upload-time = "2026-11-23T02:45:27.794Z" }, + { url = "https://files.pythonhosted.org/packages/7d/63/99fe455c382b9ae254baa0eac2b252d83d174d42ff39557083cc6d1a6e85/charset_normalizer-3.5.3-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:f7fb9a3275f1a1528e542a0f5a3d2c89fcaf68e797fc5c6530434cbd92a852c4", size = 388433, upload-time = "2026-11-23T02:45:29.061Z" }, + { url = "https://files.pythonhosted.org/packages/d3/0b/2cca2599ccb85cb31c60d8d19fcd9f89bc113696b2be2fd774288bc78691/charset_normalizer-3.5.3-cp315-cp315-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:ef8b925f2b331a1f17d6fb32625e09fd571cf41844f578379f934dab0067cf0d", size = 257397, upload-time = "2026-11-23T02:45:30.196Z" }, + { url = "https://files.pythonhosted.org/packages/e2/fc/7f46bdf26bed47cee8f053dda462b9e00dc56cf767f99a88b077ebfdf30b/charset_normalizer-3.5.3-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:390ef7c7e018c0abb8c0ec2d28ee137567ff50c3706facf6d115cac832ac993b", size = 241315, upload-time = "2026-11-23T02:45:31.352Z" }, + { url = "https://files.pythonhosted.org/packages/8e/55/a6be3d284ea45451d700d1fb58fd9db7155dbbfff7799b7c6351e419c528/charset_normalizer-3.5.3-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:106b9d0438e2ff0a0e8ebd869273fcb3640af28323bba8651c714c57efb38e51", size = 249109, upload-time = "2026-11-23T02:45:32.508Z" }, + { url = "https://files.pythonhosted.org/packages/57/5a/5cd92437895d67c77add5adebc512a00fe06b7146dd679cdb8b146b94a9f/charset_normalizer-3.5.3-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:6bfbbb9414dd0f5b81c259deb7e50b4b44e65e05879eee482351bdabed49d7f4", size = 276158, upload-time = "2026-11-23T02:45:33.752Z" }, + { url = "https://files.pythonhosted.org/packages/02/b3/18750413345158ae3223fb083c68b497756f7e5b187e216a2b30e51aab70/charset_normalizer-3.5.3-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:11ad35a0b856ad8bbd0c9e900c069461a4661694714aa17b6e6e2e8621e1c373", size = 273314, upload-time = "2026-11-23T02:45:34.936Z" }, + { url = "https://files.pythonhosted.org/packages/54/b6/d790397b7742c37379942d46816287d90b102aded0f9d48b6418d96403d8/charset_normalizer-3.5.3-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:6118055f4ad0d94e016eadbb86caed9caf2c9033631ed70964ba631c1336984f", size = 261077, upload-time = "2026-11-23T02:45:36.46Z" }, + { url = "https://files.pythonhosted.org/packages/a3/da/fd1e0c83475fe7f8dfbf4c0f9308a122963972a81a5507351f6079a47770/charset_normalizer-3.5.3-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:a09ca76391f6e17b12d55c1068b4b5f8f6c9b44b432d936075372fa12782292d", size = 243097, upload-time = "2026-11-23T02:45:37.891Z" }, + { url = "https://files.pythonhosted.org/packages/9d/00/a8e73fd75e0f6bc5127bb49065a585fcc12b0bb9643b54b25b20375e0782/charset_normalizer-3.5.3-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:acaa0e100f39287dc5d13de96e33ba0786f1cdfb5b4ca28918913ab0eec3af72", size = 252349, upload-time = "2026-11-23T02:45:39.407Z" }, + { url = "https://files.pythonhosted.org/packages/06/96/dc3e6ce15bf01c3e3a98769fb3cd2bda57661521eba22e2b9f3b55e4ee3b/charset_normalizer-3.5.3-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:a3f4044dd5d2f7b958be6b9903cb432e6a0fd944d673707ca5cab68137d0592c", size = 276520, upload-time = "2026-11-23T02:45:40.608Z" }, + { url = "https://files.pythonhosted.org/packages/67/65/437f58102ffd405f05b7e00e6ee1fa9b97536e4fc71b518b917b847cf1db/charset_normalizer-3.5.3-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:d1b7a3fe4cf679eb3870b91b86b8ce12cacd5cf4d74bc114864a5cd65319ddac", size = 260666, upload-time = "2026-11-23T02:45:41.736Z" }, + { url = "https://files.pythonhosted.org/packages/72/06/5113ebc19322267ab243a0cb972cc03af89e31665a6318f711cb410b2906/charset_normalizer-3.5.3-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:323d5cf6df3ea724afcc3bfb07c73be06d2e8200a8b6b37979a300ae1e7836d0", size = 274614, upload-time = "2026-11-23T02:45:43.227Z" }, + { url = "https://files.pythonhosted.org/packages/ca/b1/41062ab95a6b6806ba9b175dfe33496a5e8b3a9b1cf50096fbf53beac472/charset_normalizer-3.5.3-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:67bb767a8de7a2b1164c74fdbe5cdc32b9c15d7142efd9a6dc77ff63da94e846", size = 259557, upload-time = "2026-11-23T02:45:44.491Z" }, + { url = "https://files.pythonhosted.org/packages/6c/4a/9ea96a756aa9884b6bd4bbdcd0293c23cc198b0a986831078593a98d61fc/charset_normalizer-3.5.3-cp315-cp315-win32.whl", hash = "sha256:d93403a13c8f6f2d027185d90ab695e81d95e3ebd000f0078e201a1c3159d4d1", size = 187747, upload-time = "2026-11-23T02:45:45.711Z" }, + { url = "https://files.pythonhosted.org/packages/4b/16/c6cdbdf7f3b92c43fdacc074202db46e4f85af1be7fb2fa3fc015167c8a8/charset_normalizer-3.5.3-cp315-cp315-win_amd64.whl", hash = "sha256:2978c799237eb66619d8951d2ab7efd317414cb6682160e05614ce1c8b5c905f", size = 218469, upload-time = "2026-11-23T02:45:47.225Z" }, + { url = "https://files.pythonhosted.org/packages/73/4e/10d9b92b827dab4e333af2e3bfb4955b5504fa04953e7d83862383ac844b/charset_normalizer-3.5.3-cp315-cp315-win_arm64.whl", hash = "sha256:9a6b95b1737f9b5942c35676c52db0c302d60fa806efde3fc2d9f54247ecf4be", size = 206254, upload-time = "2026-11-23T02:45:48.429Z" }, + { url = "https://files.pythonhosted.org/packages/34/86/e0945f37d12630d50e96ba7d8d6935efceb168fc4a58fe26b2f4b80972f5/charset_normalizer-3.5.3-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:06d07272f70d9880fba32d4876e966ae4dc9961134bc989066a0901509dfd8cf", size = 411657, upload-time = "2026-11-23T02:45:49.713Z" }, + { url = "https://files.pythonhosted.org/packages/49/3e/d4c3e4f3b4a63cbdb1215746d2d9e87d890d36a4967a53e50b04d5e4e261/charset_normalizer-3.5.3-cp315-cp315t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:da606e3015dbd4b9a31c0468898a0c4c998846197ddfda78308821dc8c9e9be3", size = 260078, upload-time = "2026-11-23T02:45:50.953Z" }, + { url = "https://files.pythonhosted.org/packages/3b/43/91b08f37f5561e4e356533f103fb3c60367378871ee730480dbf05571e3e/charset_normalizer-3.5.3-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6423accb6ecd1456bf824bbac98ba919398523a69ee5f1680dd1da88769de866", size = 246616, upload-time = "2026-11-23T02:45:52.141Z" }, + { url = "https://files.pythonhosted.org/packages/5a/25/29ea27a18f5b84baf2c12b9ec5ecd2f44770ba11fa9431f736b641a47c5e/charset_normalizer-3.5.3-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:ad1becd776f5a41a4d91cb9ee51778f4fd687ef15e4919779e00a33c6cff6948", size = 245190, upload-time = "2026-11-23T02:45:53.322Z" }, + { url = "https://files.pythonhosted.org/packages/81/d0/ab1609490f8bf70a2de391abf6897a22410ea6639c5c62e5085b4791ca0c/charset_normalizer-3.5.3-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:7fdd11094a0b07bce306b359fa7311c71d93466d967b3b345f2e9f03d8b2c959", size = 272663, upload-time = "2026-11-23T02:45:54.53Z" }, + { url = "https://files.pythonhosted.org/packages/a9/34/d898562f7733b7479aacb9b1bfa7d3953472a5ac2d7799c5b7cc10b15860/charset_normalizer-3.5.3-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:87d5a237d6531c654e7b9b319be9ba7e368665c466e02a03cfd4d3d77730782e", size = 273912, upload-time = "2026-11-23T02:45:55.697Z" }, + { url = "https://files.pythonhosted.org/packages/34/13/952195e0a1eb774cfacdac376ccbd45ee5f062ff1ebbce13f16a3cd61f56/charset_normalizer-3.5.3-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:e4a0f2adf29a69dd8fe58e42bb191f3c87067b05fcc63279983e8c9ce5092abd", size = 262197, upload-time = "2026-11-23T02:45:56.819Z" }, + { url = "https://files.pythonhosted.org/packages/7f/64/57a0b74ef74e8fbc72eb534074d927b6cfde7c636d7a130c01ea363c38f4/charset_normalizer-3.5.3-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:643724071b01cc0369026e259850791212cc187c6031d0e930abcd253f128e0c", size = 249293, upload-time = "2026-11-23T02:45:58.069Z" }, + { url = "https://files.pythonhosted.org/packages/03/2d/c85f799904ba58873292482777877ad7f8de59432acd19798bcd333dd379/charset_normalizer-3.5.3-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:94b595e64bc2927f679774de50df340b7828dc1c07c99149ba7c2d0828dd8bf3", size = 253017, upload-time = "2026-11-23T02:45:59.293Z" }, + { url = "https://files.pythonhosted.org/packages/3b/b3/094707e46822715358296d9240b5bda6d9c3d22492dc9e90a72b2e32d1cf/charset_normalizer-3.5.3-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:e86a27ab632d2e888c22b79263864eaff8b7dea9e87328a9bb0ea04eff24786f", size = 274884, upload-time = "2026-11-23T02:46:00.405Z" }, + { url = "https://files.pythonhosted.org/packages/29/ea/86c082d940bd103d9c3a55b426c0c63d7042c2d43c1c35afd8cb6470b735/charset_normalizer-3.5.3-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:48f7c7f537246bb3af2b3139f44716a30b21e78c2fd1cff0f3e392fbd55d8044", size = 262028, upload-time = "2026-11-23T02:46:01.547Z" }, + { url = "https://files.pythonhosted.org/packages/96/5d/b41c750bda9b9eb354a802b4c399c0960f33b06555d1dd265bd29eade5cf/charset_normalizer-3.5.3-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:085a5d1f49eaf96596d79494fcab18d9a32db6e345da15d6debfc90110b20679", size = 272487, upload-time = "2026-11-23T02:46:02.747Z" }, + { url = "https://files.pythonhosted.org/packages/cf/08/d1968a27a29aa0338329dcf0462272a4f4335e5255d7a7f5bea9689d5c84/charset_normalizer-3.5.3-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:6c8abe7d59bbc891e5080b8b142c36db93154f840c4baf7c83ad6273a1a15397", size = 263202, upload-time = "2026-11-23T02:46:04.239Z" }, + { url = "https://files.pythonhosted.org/packages/b3/77/5abae54c1eeba13ace198119b514ff66c6b07ba0fe8b56f4fb96a299a651/charset_normalizer-3.5.3-cp315-cp315t-win32.whl", hash = "sha256:02b1abf64742b2d0782172cd2542616e462c201c829c23aff833390babe2967f", size = 199993, upload-time = "2026-11-23T02:46:05.377Z" }, + { url = "https://files.pythonhosted.org/packages/36/04/171d1d5352713792d8eebc14ff461625cb6cb0517bf57e0c4e95c1663480/charset_normalizer-3.5.3-cp315-cp315t-win_amd64.whl", hash = "sha256:dfbde696fb427301ec40cd82b8eec0b528e44c6af8239f33ede2b2552d9a085a", size = 217514, upload-time = "2026-11-23T02:46:06.784Z" }, + { url = "https://files.pythonhosted.org/packages/5f/5f/cb8485f62fec625bebab015874df0eb9d8332015b4462fd1da41d1ab1c54/charset_normalizer-3.5.3-cp315-cp315t-win_arm64.whl", hash = "sha256:aa9390d89822dd06f9920ae3038819cb121643a72f4753b2eee1a79b2f1215f8", size = 208602, upload-time = "2026-11-23T02:46:07.978Z" }, + { url = "https://files.pythonhosted.org/packages/64/57/146cbf75a34eb50a27ca6daf4841a4a13a0726fa05db6f7fe97c8f14f383/charset_normalizer-3.5.3-cp37-abi3-macosx_10_9_universal2.whl", hash = "sha256:84356c7b7ddf090e3e4692cb99fc820e6189b5f6662ca7e8589f41095cc8efca", size = 376114, upload-time = "2026-11-23T02:46:09.155Z" }, + { url = "https://files.pythonhosted.org/packages/5f/02/b01868added37f27a6b0fd29e7fa19d0ae52b3fdbfc6fde6b9c98ef377ec/charset_normalizer-3.5.3-cp37-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:26c6ad87bb79628954b52f8f7b9e18ab5cd9667546712ded9689fb7677e630d6", size = 234407, upload-time = "2026-11-23T02:46:10.528Z" }, + { url = "https://files.pythonhosted.org/packages/9b/9c/a8dddbe4ca722fac44bcbb17c08670bd9f1e9d26a481f7129aa2215eff80/charset_normalizer-3.5.3-cp37-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d4e7ecaa25f0dae672ac783c2e5aa9054a62e011749d64ff47b887af360a3e82", size = 222474, upload-time = "2026-11-23T02:46:11.939Z" }, + { url = "https://files.pythonhosted.org/packages/3f/28/b9d955132ca12845bf4d498cac4cad731d88f7dffcfe9ab26182ba19b9b9/charset_normalizer-3.5.3-cp37-abi3-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:ba26e4d073a4f7f2594676f2ff20ab80a7f03332b81c3f9964e9e53bf2305329", size = 234588, upload-time = "2026-11-23T02:46:13.175Z" }, + { url = "https://files.pythonhosted.org/packages/75/87/5c957d23953540fd53f8bf99f25aca4a73ffaa2621e0c199fa33bea68670/charset_normalizer-3.5.3-cp37-abi3-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:4831fb33e98e92140fa17d4d673a9f49f9c0ddd056115b722858793e4b86b0c5", size = 264230, upload-time = "2026-11-23T02:46:14.634Z" }, + { url = "https://files.pythonhosted.org/packages/2e/33/94e72d80177dfc1c68d4250bcfc0ac81c7fffb6fb7692eaba1050839c822/charset_normalizer-3.5.3-cp37-abi3-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:1714ff1ba001da5241a585fbd17a7742a61ad34efb4be8404aca5679f51e53ea", size = 259027, upload-time = "2026-11-23T02:46:15.803Z" }, + { url = "https://files.pythonhosted.org/packages/22/52/2c903fb577eb4fecd1c6e0f426daa4f0af5ae2e2b453985e1995317deeb6/charset_normalizer-3.5.3-cp37-abi3-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:8c4dfcd3269f13dff7f29f9c332d54a4a21f17be818b49e769e111befd4d39e6", size = 252786, upload-time = "2026-11-23T02:46:17.024Z" }, + { url = "https://files.pythonhosted.org/packages/a9/6b/f8c6680edbaa937982c3f0e9a9cbc7634135bed7a6633cbccbdefd8e64b7/charset_normalizer-3.5.3-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:87f7d6c595465a25d33fa3d5215a571a98c4cad00ead3ad18ebfb62adb3d3e6e", size = 223576, upload-time = "2026-11-23T02:46:18.245Z" }, + { url = "https://files.pythonhosted.org/packages/37/24/5ca15b50e452d0b689c152b27ff525b417dde009f0daea1805767a683a3f/charset_normalizer-3.5.3-cp37-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:7c313b46730b4a68bb31450973467313b2c496fefa42ae316b86c186cba74613", size = 235893, upload-time = "2026-11-23T02:46:19.448Z" }, + { url = "https://files.pythonhosted.org/packages/e1/c7/4857928626613d6991d3cc045de5d101ebf04dad1b5786facd5bd9d843e3/charset_normalizer-3.5.3-cp37-abi3-musllinux_1_2_ppc64le.whl", hash = "sha256:d313494077f849d8199f36166947785da1eeb36335fda15fde2e8f801ef271b6", size = 263887, upload-time = "2026-11-23T02:46:20.811Z" }, + { url = "https://files.pythonhosted.org/packages/4b/25/c6ddeafc6301f7675089d093219f923db0311bd99c7c6e21cd6f10e97884/charset_normalizer-3.5.3-cp37-abi3-musllinux_1_2_riscv64.whl", hash = "sha256:c08e06fc69750827d7ccebba63ebc97a85e479cd5c9dbdb80f5e08a77b774fdb", size = 250628, upload-time = "2026-11-23T02:46:22.044Z" }, + { url = "https://files.pythonhosted.org/packages/f3/1e/2536f55939d911bd638982aba11a2a26d8b5a49926d2d93e3d6cd236e180/charset_normalizer-3.5.3-cp37-abi3-musllinux_1_2_s390x.whl", hash = "sha256:29ac44f5878142128ffe4fa7e041ddc4cc5fafe43983245b9a141908c40b515d", size = 261092, upload-time = "2026-11-23T02:46:23.382Z" }, + { url = "https://files.pythonhosted.org/packages/3a/fe/aa2706988f2e4e46e79a488383dfd2f4d166728e046d8ae29cf8466d38e2/charset_normalizer-3.5.3-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:3e8da696ef1935a019c10ec16555a062183ddf6d5901e296edeca4b2a8f84e1d", size = 236268, upload-time = "2026-11-23T02:46:24.607Z" }, + { url = "https://files.pythonhosted.org/packages/6a/79/9264b6a1411dcaf0daa0d58e6915545ddc8b056b53ece56375bcf9776c88/charset_normalizer-3.5.3-cp37-abi3-win32.whl", hash = "sha256:4ff5e27478681ef1b13b036baaf9beaf9b4c6990e903c752ad3b8764692c6d6c", size = 177808, upload-time = "2026-11-23T02:46:26.059Z" }, + { url = "https://files.pythonhosted.org/packages/a3/a5/cc188879ab8e8a36d295f888335f0a2875e39bcdacc6fe3207427c14036f/charset_normalizer-3.5.3-cp37-abi3-win_amd64.whl", hash = "sha256:a5a7e0326566759f9a7bc44f4b9a179cc40a297e09e759b0bc7c848c06347527", size = 200667, upload-time = "2026-11-23T02:46:27.221Z" }, + { url = "https://files.pythonhosted.org/packages/d5/a3/4a6047c40414f170ad09a6d44c1a0663914924619304817c2e33d19fae75/charset_normalizer-3.5.3-cp37-abi3-win_arm64.whl", hash = "sha256:e4f85c34f9be32ec5568a0668fb8bc029d3e729285fb8fccc38695e185379a9b", size = 290628, upload-time = "2026-11-23T02:46:29.06Z" }, + { url = "https://files.pythonhosted.org/packages/d2/0d/07ab8eb9b7015274353eac2add4067bde1ab1b51912bbae505392905eedd/charset_normalizer-3.5.3-py3-none-any.whl", hash = "sha256:96e268b0cbda016ac519513294fcd17032264085b600abaac58b93049477e132", size = 68878, upload-time = "2026-11-23T02:46:50.665Z" }, ] [[package]] @@ -202,12 +202,11 @@ wheels = [ [[package]] name = "gateway-publish" -version = "0.1.0" -source = { editable = "." } +version = "0.0.0" +source = { virtual = "." } dependencies = [ { name = "httpx" }, { name = "linkml-runtime" }, - { name = "pydantic" }, { name = "pyyaml" }, ] @@ -218,14 +217,13 @@ dev = [ [package.metadata] requires-dist = [ - { name = "httpx", specifier = ">=0.28" }, + { name = "httpx", specifier = ">=0.28.1" }, { name = "linkml-runtime", specifier = ">=1.12.1" }, - { name = "pydantic", specifier = ">=2" }, { name = "pyyaml", specifier = ">=6.0.3" }, ] [package.metadata.requires-dev] -dev = [{ name = "pytest", specifier = ">=8" }] +dev = [{ name = "pytest", specifier = ">=9.2.0" }] [[package]] name = "h11" @@ -416,7 +414,7 @@ wheels = [ [[package]] name = "pydantic" -version = "2.14.3" +version = "2.14.4" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "annotated-types" }, @@ -424,99 +422,99 @@ dependencies = [ { name = "typing-extensions" }, { name = "typing-inspection" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/b4/fc/1203d011145c98ddce3cd2f505bb54375ef8d43223053df6bfcf3c746f46/pydantic-2.14.3.tar.gz", hash = "sha256:1054f237f4d4733e5a30e1e2333bd33a2004ab9ab1510bd053a9a31bb48e232d", size = 925636, upload-time = "2026-11-05T09:17:04.686Z" } +sdist = { url = "https://files.pythonhosted.org/packages/8e/25/3ec212432a6031b65f043eaca9c820ddf87c0d0aa330023e64f79fcb5db6/pydantic-2.14.4.tar.gz", hash = "sha256:7c19f1d46f8accf55a4617a6116e1ade64840870f397b846a2c53fb9019414ba", size = 927354, upload-time = "2026-11-19T12:57:39.767Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/72/b8/b864503789ef5c58597d2a7b4adbee62c26440ab1e682581fc6838df8947/pydantic-2.14.3-py3-none-any.whl", hash = "sha256:3f7b347782ab7e4cf4c798496ae3a82787d9f21ec12676a9c564355eeef8daa8", size = 494071, upload-time = "2026-11-05T09:17:02.426Z" }, + { url = "https://files.pythonhosted.org/packages/8a/8c/824a686c4ba815ddb0722f9e66272088bccd4e1ae1d2f7015375e4a4fc7f/pydantic-2.14.4-py3-none-any.whl", hash = "sha256:653a2ad9f6d8858529c77c72717d0ea991d6c6837fe683246b2f4b2bbfc3fadc", size = 494865, upload-time = "2026-11-19T12:57:37.688Z" }, ] [[package]] name = "pydantic-core" -version = "2.50.4" +version = "2.50.5" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "typing-extensions" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/9c/0f/34f9ce4ba701dd0b815033ef94d99b56f66200e578ee6052aa3ac26f064e/pydantic_core-2.50.4.tar.gz", hash = "sha256:aead3b74b68396bf0feab5d57e050b730ded7df55853c1e048a87e00aaf033c6", size = 522249, upload-time = "2026-11-05T09:15:26.774Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/1b/21/39f8d97e7ea8e3083606ee9bb1d7f3ec70ded780bb6a872aad76c7eb08b2/pydantic_core-2.50.4-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:0f87ae9db5ba8d8de40dcb93982cf8dd544e6552a80d3345af51941cc2146b80", size = 2232841, upload-time = "2026-11-05T09:12:32.617Z" }, - { url = "https://files.pythonhosted.org/packages/90/a9/fc89a632331882c4cb91b949003418e6f5085ddcf2c9b875d499682bca91/pydantic_core-2.50.4-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:1239daaf063e62213ca1f34d96663900bd7510c42a786e843fd328af70e46445", size = 2108326, upload-time = "2026-11-05T09:12:34.419Z" }, - { url = "https://files.pythonhosted.org/packages/5d/6d/4f6d00e9e4ba2a7bfb206ae49cb32a3ea90c4d658e62f8775277d75e8291/pydantic_core-2.50.4-cp313-cp313-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:1afefe44ec042fbabfb4483ea258c04cf75ff4ff328d754f09b321fdaa232aca", size = 2256276, upload-time = "2026-11-05T09:12:36.212Z" }, - { url = "https://files.pythonhosted.org/packages/b3/b8/936cb0d85a4082e902c7397db0f05c4372eac08372c8bd2d0b43088fcf17/pydantic_core-2.50.4-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:a9ee990bf2cfbd81574c5d4f9f6c9d480a14b5b43d2c4f2ca13f4c6f48089394", size = 2125469, upload-time = "2026-11-05T09:12:37.913Z" }, - { url = "https://files.pythonhosted.org/packages/66/a1/f3b551ce233dcac73286b8b2ae45c23232a9f41c68663e2dcce4bb2dbcfa/pydantic_core-2.50.4-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:ab2822bcdcefb54d1e8ca29f5e3ec3afe160fb794bb3a3a73b09d11ed2671104", size = 2196397, upload-time = "2026-11-05T09:12:39.725Z" }, - { url = "https://files.pythonhosted.org/packages/3d/93/a8a6e7e20826567a73e6f52416667698aa3de704804d7a49d25272246af4/pydantic_core-2.50.4-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:0001d6920e3a5d92758cda460d6dc9f918a78ad6d5d092f1c8b5395e6b775356", size = 2380442, upload-time = "2026-11-05T09:12:41.196Z" }, - { url = "https://files.pythonhosted.org/packages/aa/ba/921d90c9d8ddfa653a35a92f2bbdcd650a9493f5c43f39cdfe4c56659cfa/pydantic_core-2.50.4-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:ad92d255a165cde5f9882ff69699eaf5495e0a1f32e97566bbbb80f11e46781f", size = 2457747, upload-time = "2026-11-05T09:12:42.723Z" }, - { url = "https://files.pythonhosted.org/packages/2b/c0/1c8f2c8f1b03d3fe2fdd7962df8f5a744fe48c90b4c49615e4eb77d04141/pydantic_core-2.50.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:fb2bb5b557080da398b866408117d98fe9731a12334afd0cdff221b458cdc5dc", size = 2260946, upload-time = "2026-11-05T09:12:44.185Z" }, - { url = "https://files.pythonhosted.org/packages/07/ab/5b78a78f0c0f11c8b54fac214ed49cbb4795c34881aa5e5a15715917936f/pydantic_core-2.50.4-cp313-cp313-manylinux_2_31_riscv64.whl", hash = "sha256:92f8f63df729061bb14558ed740e7a222f6e2aa6c2e6a5bcfb4e706676562049", size = 2261921, upload-time = "2026-11-05T09:12:45.706Z" }, - { url = "https://files.pythonhosted.org/packages/b3/e8/dd5d154cf3401f836d8754fdc1b82ecadd37944e4355d855e5b54c7d8ae5/pydantic_core-2.50.4-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:2a60ec2a57ac3ef3767e526e9bf706ec75aa3d79c4ea134d9d4fcf7c62a297a7", size = 2298475, upload-time = "2026-11-05T09:12:47.183Z" }, - { url = "https://files.pythonhosted.org/packages/b7/49/af059d9c4483cba168b17e5f84f1090a3e4547a02fc7698ebc231d48298a/pydantic_core-2.50.4-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:a2f8716344bbbd10443391be0b1f2003b34949e3c4e6883005c2bc498ab6b64b", size = 2473226, upload-time = "2026-11-05T09:12:48.785Z" }, - { url = "https://files.pythonhosted.org/packages/71/ba/4e8cc3064e8bc2ea272cf80dfc57fa4e455f6835c1def21609a9b4f94135/pydantic_core-2.50.4-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:b300a30304c4c6aeab03ed06809819d9eceacdd58441d3c7dffe41edfd006091", size = 2498764, upload-time = "2026-11-05T09:12:50.316Z" }, - { url = "https://files.pythonhosted.org/packages/bf/96/0878499cfa88eb0b07762b488d3cc1b64cb156a4905db99a0d12096b2e17/pydantic_core-2.50.4-cp313-cp313-win32.whl", hash = "sha256:ef8a9ddb2e2a4eae4abb72dc0710eca6c2726779b0664bd10c3ce9fcfaed8c4e", size = 2119158, upload-time = "2026-11-05T09:12:51.834Z" }, - { url = "https://files.pythonhosted.org/packages/e7/e0/95b651213e79ffe0cbee855590bf5cfdf8e3a0d90a7fc73a080e63f7cc38/pydantic_core-2.50.4-cp313-cp313-win_amd64.whl", hash = "sha256:4c29b8f2d6417069bb1f257e6b9113f5d64dc2f554cc200ea90b4fe2c5cdb733", size = 2262887, upload-time = "2026-11-05T09:12:53.282Z" }, - { url = "https://files.pythonhosted.org/packages/08/d3/c3801dc75844a0b13d000bd575bf1b3b3a8aca9f63d19e1809f69c9c5121/pydantic_core-2.50.4-cp313-cp313-win_arm64.whl", hash = "sha256:a0c5210d038418a115e7cf8706bfa611bd14add2f5787274dba45aadca3155e0", size = 2167878, upload-time = "2026-11-05T09:12:54.677Z" }, - { url = "https://files.pythonhosted.org/packages/ee/ed/c9a4982ac3bbc78f27498d9efb85b3dabd739a1724db53c35cc4c018e1de/pydantic_core-2.50.4-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:5c074454dc6d4f6f4ba6561a56bf33a14db7651d882a5a5321ba3ae8868e082d", size = 2236841, upload-time = "2026-11-05T09:12:56.111Z" }, - { url = "https://files.pythonhosted.org/packages/56/32/92c174c17bfc5fc52d0c064e6a7969a727731e25829ede752fba8bacce0f/pydantic_core-2.50.4-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:a4bb174bd65f795c39ad6642d9d5bdc43351b306b7d0a654ab0d0abb38be245f", size = 2108348, upload-time = "2026-11-05T09:12:57.638Z" }, - { url = "https://files.pythonhosted.org/packages/cb/cb/9f637d424a04d3edce7dd527da941950cce05a74b025eef3d54427b86c8e/pydantic_core-2.50.4-cp314-cp314-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:0ec20aca2b067369913716847f7dfe5f4dddf16a46965b7a70bbad5defaaba86", size = 2261331, upload-time = "2026-11-05T09:12:59.154Z" }, - { url = "https://files.pythonhosted.org/packages/91/ff/1117a3cccabb67305bd98d992a84eaf275939a9a043b4f14126ed7252e4f/pydantic_core-2.50.4-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:70dbc9f83c41f37a4faa62dae5203853847223a891da446f48ef2efcfd5df806", size = 2128667, upload-time = "2026-11-05T09:13:00.614Z" }, - { url = "https://files.pythonhosted.org/packages/93/45/6de1b4a6e8c415cd547f90d1408a711e7975116423e3eb3046061c62d7c7/pydantic_core-2.50.4-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:3de6c2a4df2af0ac9ab4dc1488746fe8b1a90e27955d870d9edda3187d20092b", size = 2198183, upload-time = "2026-11-05T09:13:02.259Z" }, - { url = "https://files.pythonhosted.org/packages/d0/bd/c6e64c315d35cc0783a0ea033a3dca062bc368905d0217eab6f6f63007de/pydantic_core-2.50.4-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:3a48a5254d15a0ad050318bfc7a9566d4ec740118187e8f303e47a6840287eb7", size = 2386279, upload-time = "2026-11-05T09:13:03.988Z" }, - { url = "https://files.pythonhosted.org/packages/33/ab/0d56280c89d3841381e9c699c3fa80e3dd3288edf5e7fe4d149136835dca/pydantic_core-2.50.4-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:0af56dbf8822ba9f4efcbbfdc15478f8b6fb08f1609860cb50aa2cc8476b3c34", size = 2464343, upload-time = "2026-11-05T09:13:05.98Z" }, - { url = "https://files.pythonhosted.org/packages/56/9c/621ad8f88590a92a086b1168dce09369d9c5e079e2e635e6646d248af55b/pydantic_core-2.50.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:f1d62fb172db35c6478c9323da34ff37d1f3d37d7d44337a9d94ba8c583e5730", size = 2265388, upload-time = "2026-11-05T09:13:07.808Z" }, - { url = "https://files.pythonhosted.org/packages/f3/7b/cef68a667bf29b86e293a80a601d488a84c8f45508915ad6201fcfe1a798/pydantic_core-2.50.4-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:5c1013647be741647895c102831dcf79c34209662dbb683df9efb864417ed7d5", size = 2267012, upload-time = "2026-11-05T09:13:09.273Z" }, - { url = "https://files.pythonhosted.org/packages/4b/9f/3ae4d163d8feda2b52de88b5cd96b1c40f79d11503003b061136d2ece6ab/pydantic_core-2.50.4-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:aeb2e123cbf978a905e9f55155c1b8316fbbfa7cf64d04521fe174bab302d100", size = 2300478, upload-time = "2026-11-05T09:13:10.758Z" }, - { url = "https://files.pythonhosted.org/packages/e8/72/41881d31f6452430ed6792679c5391795910f0a27a6aebd424683e504ed6/pydantic_core-2.50.4-cp314-cp314-musllinux_1_1_armv7l.whl", hash = "sha256:523466eba8ee10f7480f3c2057563145978011c583130d2cc01fb1e7af808e25", size = 2474874, upload-time = "2026-11-05T09:13:12.188Z" }, - { url = "https://files.pythonhosted.org/packages/05/ef/099874dd6d5ca1e49987dea87eecc05610183249450b1fff883d87f1e8eb/pydantic_core-2.50.4-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:c9e70012926e97069cdd09221861aff412aa94e4cac2e019055cdb79485b150c", size = 2502771, upload-time = "2026-11-05T09:13:13.981Z" }, - { url = "https://files.pythonhosted.org/packages/c6/07/a7d8615b8677bf69e24666bbce431299850c95a7b084649342582a1c3210/pydantic_core-2.50.4-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:e6da138a1ecc1341c8b788a5ee822670b03788e1f5decf7af9d461de6e508b8e", size = 1496509, upload-time = "2026-11-05T09:13:15.704Z" }, - { url = "https://files.pythonhosted.org/packages/ab/71/fdf2c25c3a4f89968263c1d896c933809ca8d2fb13443626648a17b2e296/pydantic_core-2.50.4-cp314-cp314-win32.whl", hash = "sha256:13b6dd62b5279f5b9d72f3bf918a35443ee8bd549241d9dc52d79a2c3b6d7016", size = 2122015, upload-time = "2026-11-05T09:13:17.09Z" }, - { url = "https://files.pythonhosted.org/packages/3a/9f/3554f0148b01ddaa5e678bf5fbce4679873534e5c0985cdf6c59c41dc9a9/pydantic_core-2.50.4-cp314-cp314-win_amd64.whl", hash = "sha256:b0cdb655fbd1562c2dfc9986f9103a106f7058cd0915afc6e656d4b1d73f3387", size = 2265109, upload-time = "2026-11-05T09:13:18.702Z" }, - { url = "https://files.pythonhosted.org/packages/ed/3c/196ef237d9ec5cca5ea9b773911dee1a387b9b1d4bfea05625b3e191a338/pydantic_core-2.50.4-cp314-cp314-win_arm64.whl", hash = "sha256:df1c174796cd63eb6b139f7daf783affe1f3ed659605850e843b24764c21bfc5", size = 2165745, upload-time = "2026-11-05T09:13:20.245Z" }, - { url = "https://files.pythonhosted.org/packages/36/12/0ee82a41a3995f0b531cf14e0b823dc2365ba4a22330670fccaa72753f12/pydantic_core-2.50.4-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:edbca8789fd10f0de534b660a6b4c71f1fd18039679c918dad392ab044bb37e4", size = 2223917, upload-time = "2026-11-05T09:13:21.623Z" }, - { url = "https://files.pythonhosted.org/packages/90/2c/592f8404abbcc65a70e6a802d1dc8f11412af44913e5146cf5c345370074/pydantic_core-2.50.4-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:33b21f69540a12c2053cd1d95766d8bd9667a3897f7c712a642de8aa37eb0865", size = 2087372, upload-time = "2026-11-05T09:13:23.16Z" }, - { url = "https://files.pythonhosted.org/packages/ea/1d/c7111757c84b5b8c19b1e39ceb5e131e6e48e14169ec6004e0f8f28f43f3/pydantic_core-2.50.4-cp314-cp314t-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:ffb616d8d55965839670301dc3bae3abacff560a7e137a89056058a8a9da4d96", size = 2275190, upload-time = "2026-11-05T09:13:24.634Z" }, - { url = "https://files.pythonhosted.org/packages/3d/ae/6c49cc9b8e66e61adee782d1763894bf64a357cddae82f725059b85bdc98/pydantic_core-2.50.4-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:6c5687b59b6ba0f663c4f2f15470f68507d6b45ccd3a19ee6d224f95cbee70d8", size = 2110343, upload-time = "2026-11-05T09:13:26.168Z" }, - { url = "https://files.pythonhosted.org/packages/ed/39/0ee5261d1daa9ad526371181c13696add0565251b2823f6e00a9a9af397d/pydantic_core-2.50.4-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:c733087ecf7dde06b1d071679bfd5f3ba03266ba77814c1c7253bc48c9adedd9", size = 2207887, upload-time = "2026-11-05T09:13:27.681Z" }, - { url = "https://files.pythonhosted.org/packages/ac/b5/a0652c0e99590107e111088b6d059044380a787da9ffdd0b458ab4cd9453/pydantic_core-2.50.4-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:94733cb447c37b0ce6f71b39ca1288d5f966a084023a5617b4cc35a852586859", size = 2404171, upload-time = "2026-11-05T09:13:29.864Z" }, - { url = "https://files.pythonhosted.org/packages/a3/85/d49f0b8e09a0ffc40dcefb604f9e6020e0d61b51a5f64a504f382fa84c39/pydantic_core-2.50.4-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:b26f39a5be3cd91a2035818be3d0ffdf5282c3e1f5f53d3b80b7024021acee52", size = 2466049, upload-time = "2026-11-05T09:13:31.658Z" }, - { url = "https://files.pythonhosted.org/packages/e6/76/f2b04d7c53edfd8136053c812ea49914fbf4091196cb7baf9ea326fa2ff8/pydantic_core-2.50.4-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:c856e439a9d54d514e81a7131229ba151cdf81df7c408e0f6c89340e5003dfe2", size = 2262062, upload-time = "2026-11-05T09:13:33.806Z" }, - { url = "https://files.pythonhosted.org/packages/24/60/016f14cea883adc33df90b8df220df934de49ded9640f45c8e92bb298494/pydantic_core-2.50.4-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:cbf0777d54672990b10cb8ca9b0523499e182d7e2ea39f86b138519a902aa601", size = 2263713, upload-time = "2026-11-05T09:13:35.337Z" }, - { url = "https://files.pythonhosted.org/packages/f1/3f/b05828e978512973e7e215bab69e65e70d223d6309a17bf48084a50692f4/pydantic_core-2.50.4-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:edc17549ab592e33cfcaf285f047bb75fcd98f608aa9309af1187fd736ce9641", size = 2305044, upload-time = "2026-11-05T09:13:37.043Z" }, - { url = "https://files.pythonhosted.org/packages/91/c1/fca6c5f623ac45ba284713c614b30173aa0794899a0a457f866fa6f5e886/pydantic_core-2.50.4-cp314-cp314t-musllinux_1_1_armv7l.whl", hash = "sha256:23a9ba564b2db709ff16eca990992ba95a19069972b34bff87c81d4b473cd755", size = 2483506, upload-time = "2026-11-05T09:13:40.524Z" }, - { url = "https://files.pythonhosted.org/packages/94/c2/ec41f68d1208e53e1a73ead940c050c4316bbb555ba42676a5e949fd529e/pydantic_core-2.50.4-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:41f4f8ae714e4fea1d635880f8a1af715ecf080eed4d13c5b04a0f3210f9c61a", size = 2512832, upload-time = "2026-11-05T09:13:43.361Z" }, - { url = "https://files.pythonhosted.org/packages/43/22/58583b86309f70cce854e0e77c412839a56ac6c682d6060f5794afeff315/pydantic_core-2.50.4-cp314-cp314t-win32.whl", hash = "sha256:601fce6cea9ddeaa85329e12e7f351def38d233075f42a3012b9c48071b02941", size = 2101977, upload-time = "2026-11-05T09:13:45.735Z" }, - { url = "https://files.pythonhosted.org/packages/6b/28/193bc0994f7fe15f2874c1dfe2f3bc7872aed8283ffda2cf05fb9a5a06b4/pydantic_core-2.50.4-cp314-cp314t-win_amd64.whl", hash = "sha256:22e874666bdbd96d6bf629d32cd8ab376fedf1fd62585b52a42b9fa9fa6c20b6", size = 2240461, upload-time = "2026-11-05T09:13:48.38Z" }, - { url = "https://files.pythonhosted.org/packages/00/ed/5615cfdd5620a4926440eb1a2b73db0dc895824ba565ccaa8d9eb3a8e974/pydantic_core-2.50.4-cp314-cp314t-win_arm64.whl", hash = "sha256:71395a43da5584bb70556f380387e15f845c0dcf76373c1afbfa0025737576ac", size = 2168505, upload-time = "2026-11-05T09:13:50.762Z" }, - { url = "https://files.pythonhosted.org/packages/6d/9f/e6673535165d965a11c1d5339f53995f90234019827eaecb41a57e6e463d/pydantic_core-2.50.4-cp315-cp315-macosx_10_12_x86_64.whl", hash = "sha256:7ac2769a7ddd661e07e26c12220adc31b17014c48234b2a5a88993b8d4109e09", size = 2241950, upload-time = "2026-11-05T09:13:53.055Z" }, - { url = "https://files.pythonhosted.org/packages/6f/02/65951efadbf7826e6a270843f97e3da2ef726de2b6d9cd7c5dfa4c48807e/pydantic_core-2.50.4-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:930ad463d3fb7a340d323bcc496ec32dae469ec9974c29ff569f19806b6b03b4", size = 2112412, upload-time = "2026-11-05T09:13:55.309Z" }, - { url = "https://files.pythonhosted.org/packages/c9/d3/4fb6e2e4a9e4951f1e05b198366ed5330e0874e83d52077e8b985350fe0e/pydantic_core-2.50.4-cp315-cp315-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:b867f9fd183d76977f810c626d539265183c25b2284762893a31e8d6cacc81c0", size = 2263220, upload-time = "2026-11-05T09:13:57.555Z" }, - { url = "https://files.pythonhosted.org/packages/63/83/42e70436c523357b49393b73f161f2741acf36003c8efd2f941d2be56bae/pydantic_core-2.50.4-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:49eb1241a969a5994db6880c18c012b6cbe2340343d8f529721571806583e500", size = 2134716, upload-time = "2026-11-05T09:13:59.413Z" }, - { url = "https://files.pythonhosted.org/packages/36/66/ed9b87f4751fd07e472c62cfe151f575abdf4c452fab943d35ba8efdc6c4/pydantic_core-2.50.4-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:477af785d1846e4e96bf56983b92ea7553aaeccdeb8acdaa55c7cee9eda0ae32", size = 2201901, upload-time = "2026-11-05T09:14:01.472Z" }, - { url = "https://files.pythonhosted.org/packages/2b/21/ff2e6ac7202b6d326e9f007c6082f6e6f3aaa063790ea2a355bdc985addc/pydantic_core-2.50.4-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:29358a8ca74e7d81158d14e2b10c904bd18773293ae3788716c0626fe0342347", size = 2389670, upload-time = "2026-11-05T09:14:03.431Z" }, - { url = "https://files.pythonhosted.org/packages/b9/34/e9348bc13d549641791a51843ed140fbb311d9066628e27477343412d5ad/pydantic_core-2.50.4-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:300753f71c73302e218124baf995f00058e085cd01869bd9610bcbd0bd4500c1", size = 2468951, upload-time = "2026-11-05T09:14:05.028Z" }, - { url = "https://files.pythonhosted.org/packages/ac/5e/145a02bf2b9f66981108caf6cc9e78917e31e4caca14d1e3ccd3ff2c7293/pydantic_core-2.50.4-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:26cb012c4b8ca9f847bd0ac15978bd3d0f55b050bfbe6c47355edfc7e945029b", size = 2272957, upload-time = "2026-11-05T09:14:06.587Z" }, - { url = "https://files.pythonhosted.org/packages/fd/38/b71c5b245e923f6cf144e948ed2a9d6b7fb97d8905784db8d860f5176b8b/pydantic_core-2.50.4-cp315-cp315-manylinux_2_31_riscv64.whl", hash = "sha256:9be1cfe715ecaa060ffd5d599ef410b94ef2697a0eed4cee562f788a2aa2175b", size = 2275028, upload-time = "2026-11-05T09:14:08.219Z" }, - { url = "https://files.pythonhosted.org/packages/ba/71/2504dacdc5cd3ea3ec5e68c9b6e097c979500bcff220b97046cc8ea3c1ad/pydantic_core-2.50.4-cp315-cp315-musllinux_1_1_aarch64.whl", hash = "sha256:c81e35862aced259177a537ce1a6264c3a97bae1ced184ca9dc10ea754563688", size = 2305447, upload-time = "2026-11-05T09:14:09.795Z" }, - { url = "https://files.pythonhosted.org/packages/2c/90/904233a6c148bcac9f30bb96a2761e5fb52682d0d6de31a40c74a3714ceb/pydantic_core-2.50.4-cp315-cp315-musllinux_1_1_armv7l.whl", hash = "sha256:b2f2d13239487cecaae98c9f4d5904ad0737643cdf8873c88ec6a78b12214f20", size = 2477852, upload-time = "2026-11-05T09:14:11.443Z" }, - { url = "https://files.pythonhosted.org/packages/72/33/1cbdcbf343ca23b507e967b21dddc4c8bf17a74c8b5cad59228c85ba4efc/pydantic_core-2.50.4-cp315-cp315-musllinux_1_1_x86_64.whl", hash = "sha256:e6b4b08d09054310a4dc389fa61ee22a7a5a292cb23ab8a985136ca8828bf924", size = 2506352, upload-time = "2026-11-05T09:14:13.165Z" }, - { url = "https://files.pythonhosted.org/packages/91/24/3ad9ea0876e6624c90967e5f1446e751b275cfdfaaf798a0d8e0b30025bc/pydantic_core-2.50.4-cp315-cp315-win32.whl", hash = "sha256:6619d49a89a15cd04334f76fec530c155923bfc60da74ff5d815a52629e1aa6c", size = 2127780, upload-time = "2026-11-05T09:14:17.52Z" }, - { url = "https://files.pythonhosted.org/packages/c0/3c/0582532b90a12492471977bdbca1317eca5144f6342ea581d2cee73ccd35/pydantic_core-2.50.4-cp315-cp315-win_amd64.whl", hash = "sha256:e5bd109d095aaae989a0463d5ef0fcc43e9ddd5de125e656d3c119a79e466380", size = 2270596, upload-time = "2026-11-05T09:14:20.955Z" }, - { url = "https://files.pythonhosted.org/packages/6c/50/967cfe4f7043a993c0c80cd3563c598b5281d2276aa775d0f6ff7f714271/pydantic_core-2.50.4-cp315-cp315-win_arm64.whl", hash = "sha256:6118e5a5550e36582e19bac1a403711a748f9f18251b054c326d3db02aaa7a18", size = 2170880, upload-time = "2026-11-05T09:14:24.822Z" }, - { url = "https://files.pythonhosted.org/packages/9e/71/3ec5bd8a82f792482f16d79fdbe8ce85aa71bf7147e556c5fc5f8546818d/pydantic_core-2.50.4-cp315-cp315t-macosx_10_12_x86_64.whl", hash = "sha256:d8201c9f9035520cdcc7dcad383b039ec8123969b87e01cf27c3dd883c02313b", size = 2233053, upload-time = "2026-11-05T09:14:27.942Z" }, - { url = "https://files.pythonhosted.org/packages/6e/2e/614dc37aedf8e9f811c1f2eedaf8eb09a7c196e2d137fe82bcc9d5662ca2/pydantic_core-2.50.4-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:1de7be9a66fc8536770481ab64a05aae5067c725f2b29a09543af00e6a417b97", size = 2090776, upload-time = "2026-11-05T09:14:30.281Z" }, - { url = "https://files.pythonhosted.org/packages/f9/14/aefc14e3e05013070ee959fc0b8703f6860a2776ed6e75b9c748f61aced0/pydantic_core-2.50.4-cp315-cp315t-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:789a6453e5ffd18a7ab6b8c3a0dd8403053829197ec258ecb90c604c21ffcc99", size = 2272481, upload-time = "2026-11-05T09:14:32.578Z" }, - { url = "https://files.pythonhosted.org/packages/13/c9/d56999aa7236dc9303091db2b1ef7303f0b022baf25ebf33cd200c0cb933/pydantic_core-2.50.4-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:6348ad12fa741bcc9c2f173e99fbf27cbc038826d8c31a4a7d836eca27878ba2", size = 2113069, upload-time = "2026-11-05T09:14:34.69Z" }, - { url = "https://files.pythonhosted.org/packages/b7/d5/a62da9e72f272f198f6118c5457332bbd4b9fdc4b77858448120569756de/pydantic_core-2.50.4-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:d49127f137f871cde3c5650af33bbbdcee02679dae76e020902fa106f522b8ae", size = 2202754, upload-time = "2026-11-05T09:14:36.49Z" }, - { url = "https://files.pythonhosted.org/packages/37/4a/e7f21577f96e42ac3082cd014df398c1c913d482afac1c8ef17b9e039198/pydantic_core-2.50.4-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:2f5cc5bcb94063fbbdfd285a2b302da34af07491337c10bb35de1d5220fa1583", size = 2411472, upload-time = "2026-11-05T09:14:38.63Z" }, - { url = "https://files.pythonhosted.org/packages/38/ad/c57c5e13bbfd3404ec1af519764aadbc52ee01e39f9f9ae9d28317f982f2/pydantic_core-2.50.4-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:b99bed995ed7c41515c11fe2beb86f8a6cc298e5537cae2f736de2f982f74ef0", size = 2475330, upload-time = "2026-11-05T09:14:40.519Z" }, - { url = "https://files.pythonhosted.org/packages/6e/63/65cf0e1f1fd8cfaafee3c005712b8020e063b0f3e3571493ea68db5ec44f/pydantic_core-2.50.4-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:faa4e96385c820ce9d7f7a623486e23d4134ae3c9ba2071e44e0ab5a5a5002c4", size = 2265718, upload-time = "2026-11-05T09:14:42.379Z" }, - { url = "https://files.pythonhosted.org/packages/72/5d/fd9fdec9b25e2ef1f788970a84f749f0e28f166573c87654fd5387d8e5ce/pydantic_core-2.50.4-cp315-cp315t-manylinux_2_31_riscv64.whl", hash = "sha256:d6a166978f22f10cb91413f70519861605219346decf65bc79008f9257c94afe", size = 2273454, upload-time = "2026-11-05T09:14:44.286Z" }, - { url = "https://files.pythonhosted.org/packages/34/8c/19705c6d5eb72ff8c25006df8a375da7466176a5968781789e5415384f65/pydantic_core-2.50.4-cp315-cp315t-musllinux_1_1_aarch64.whl", hash = "sha256:a70d5effebd81ebd8e15a8aabdc7980832367b2b00c36543bac378977004cc80", size = 2314862, upload-time = "2026-11-05T09:14:45.97Z" }, - { url = "https://files.pythonhosted.org/packages/b8/fb/acefa27031aba2646b0d3026c4a1602e526489d39395ab17bc47f03234e3/pydantic_core-2.50.4-cp315-cp315t-musllinux_1_1_armv7l.whl", hash = "sha256:f8fd23653a252cefabea11cd041efd7b80bdf403e43a36dea53f9cb0aaa21f0f", size = 2479073, upload-time = "2026-11-05T09:14:47.526Z" }, - { url = "https://files.pythonhosted.org/packages/ef/e1/db08fa1e5edf1779fa0612f8d09f9030bdc513f593687c883cb781b86caa/pydantic_core-2.50.4-cp315-cp315t-musllinux_1_1_x86_64.whl", hash = "sha256:7646353a5a7c553c04167aca628e2550b538f492765b03ccf34321a560acc43c", size = 2521328, upload-time = "2026-11-05T09:14:49.042Z" }, - { url = "https://files.pythonhosted.org/packages/0d/51/bf1ec5b96c076d8d514b08f3bcffb3397df7a0fcc729eb960838a8bbe27f/pydantic_core-2.50.4-cp315-cp315t-win32.whl", hash = "sha256:65376dbe1ab4dbc768ca2b72b7c13993562c035f5925fd3bc7ff9c8c585c515d", size = 2107629, upload-time = "2026-11-05T09:14:50.891Z" }, - { url = "https://files.pythonhosted.org/packages/18/32/43d5db1824ec2314f737ff8d9962ff59954a74616d8656a8cc78790e45f1/pydantic_core-2.50.4-cp315-cp315t-win_amd64.whl", hash = "sha256:f08ee8248aad2d054e5bc4c73554d4505464698f6d754f16198dbc5764e9821d", size = 2244906, upload-time = "2026-11-05T09:14:53.056Z" }, - { url = "https://files.pythonhosted.org/packages/3a/c0/38c505004969c4641c3a077a8e72e354f02d5c06d8f51d7a103699704772/pydantic_core-2.50.4-cp315-cp315t-win_arm64.whl", hash = "sha256:da779ae50b46f3f7d1e1b5f362fdc0ad376a49fd55f6f3122dc2b6149936cdf7", size = 2179018, upload-time = "2026-11-05T09:14:54.448Z" }, - { url = "https://files.pythonhosted.org/packages/9e/3a/d405a50e02ea81cd95e93fc97f43d351eeaa1707c28aa6fb58a9f1c1efa9/pydantic_core-2.50.4-graalpy313-graalpy253_313_native-macosx_11_0_arm64.whl", hash = "sha256:71e03d2ea1a221d020cfc5b6cc8bbbedef23a06704c70fcf4d0afb42965b22d1", size = 2049324, upload-time = "2026-11-05T09:15:02.379Z" }, - { url = "https://files.pythonhosted.org/packages/8f/3b/03e7992115e17cae4131ecd71aadb8fd5e4a04cc2aead72c3c27e9b453d1/pydantic_core-2.50.4-graalpy313-graalpy253_313_native-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:09450778e3ab58d3f565899fcfbf6c82926e31af29e28e799d1d50941316e0cb", size = 2119802, upload-time = "2026-11-05T09:15:03.901Z" }, - { url = "https://files.pythonhosted.org/packages/e3/d5/b76fc647e473377ca6e693c21549ee3a4a7677e4962c28ae4659337c5114/pydantic_core-2.50.4-graalpy313-graalpy253_313_native-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:4eb15be588407148ef5937dc8d9256a71f6b115e6cddadb7aa20b6ee384680dc", size = 2280639, upload-time = "2026-11-05T09:15:05.374Z" }, +sdist = { url = "https://files.pythonhosted.org/packages/fb/63/0ceb815a7762576027ce388544c573d440574f95afb1302a2496b96db548/pydantic_core-2.50.5.tar.gz", hash = "sha256:1e740886083ff95530d694e6a3f09ed914bcf92a496d16acd307c6c3484fc36d", size = 523285, upload-time = "2026-11-19T12:56:38.067Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/60/32/1a87aca62759be630ef981b735d732ffa17ec8defac0271fa7894a815f9c/pydantic_core-2.50.5-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:e5d5d77a9446f44688a5ef420d92c9facac0865ef5565215db54be184ab7906f", size = 2235184, upload-time = "2026-11-19T12:54:24.697Z" }, + { url = "https://files.pythonhosted.org/packages/6f/8a/53d7448d3e0c3fd8fb30621ef493e5340d6779f80cba2d515fc81915f96e/pydantic_core-2.50.5-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:639a51931869c0594d8723b2f529c547db1aa33dc9571d001dc205d896170c08", size = 2110593, upload-time = "2026-11-19T12:54:26.231Z" }, + { url = "https://files.pythonhosted.org/packages/ac/66/fa127513da383218051a4e7c76ec63b42eb0b073d010d94215f930fa9a4d/pydantic_core-2.50.5-cp313-cp313-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:c69eb2e09d2830949e6e8f395d4eb8c714ba083213ccff64932ded681fe69a4e", size = 2261527, upload-time = "2026-11-19T12:54:27.79Z" }, + { url = "https://files.pythonhosted.org/packages/e8/35/70928b77f724fa0f4824e0527891df02cf9b34101aab6e2ab348fd127f06/pydantic_core-2.50.5-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:8bbe282e79dc71b24ba7be284eacf27c8ddff8f26911e2030a0dd123c6aed326", size = 2131539, upload-time = "2026-11-19T12:54:29.441Z" }, + { url = "https://files.pythonhosted.org/packages/e3/e0/7d03f6521da1cb43de3fa2c1740e7d0e0d34f971acdd5f6c6462d360f195/pydantic_core-2.50.5-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:43917f090dfda561575a72f75814f76a0680964b70d7b44c84e44d217bdeade7", size = 2197447, upload-time = "2026-11-19T12:54:31.007Z" }, + { url = "https://files.pythonhosted.org/packages/b9/57/bacad2d6251565b1b428383175f0b7edcb841d96e37130a85e87636ecb15/pydantic_core-2.50.5-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:93ee3b4f9c64fb1c39892413c4196d0a84790a7e0e5d72b463882c432c1ffafe", size = 2387397, upload-time = "2026-11-19T12:54:32.779Z" }, + { url = "https://files.pythonhosted.org/packages/fb/f7/95e23d389b7bd796127f783950aeaee408ffea4d77d165cdce2c3f3b5638/pydantic_core-2.50.5-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:57b79401d870c9df395799c596d81875b647ecf3030129d86659a54f6bfcc0db", size = 2463652, upload-time = "2026-11-19T12:54:34.303Z" }, + { url = "https://files.pythonhosted.org/packages/13/c2/62015187d0e986dafc530ea4df390fce3d3379c744959148806668d40ab9/pydantic_core-2.50.5-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:cbfde3ad127786f1dea1a6cd89a5eb824a16203f24743ad2b4e07506f43bc844", size = 2264332, upload-time = "2026-11-19T12:54:35.918Z" }, + { url = "https://files.pythonhosted.org/packages/73/22/e4421a2018ee909a5e0cfd4410ed88d12481e31fe37abe272bc392f74675/pydantic_core-2.50.5-cp313-cp313-manylinux_2_31_riscv64.whl", hash = "sha256:1793ec63c8f247131aa4dfc8c4da645b9c5872cf26b53ce240f143f59ad116e4", size = 2264563, upload-time = "2026-11-19T12:54:37.356Z" }, + { url = "https://files.pythonhosted.org/packages/28/a0/3cd863a51470341405579257cc84d4df2e70ddb5ed17160859687868cc9d/pydantic_core-2.50.5-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:5027c263fbceb821cfb4b385d36d485e19efca1d9adcc4e5bec69c04ca3cdc83", size = 2302938, upload-time = "2026-11-19T12:54:38.777Z" }, + { url = "https://files.pythonhosted.org/packages/c6/50/0b71fafde186b95a7a9fd704ef5dfd7c28b2b9a4645449912267c7457884/pydantic_core-2.50.5-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:dac78f91e263c4c9a4d587b9d97b3b5b2561293b33247452cc3cfe5b500e8cfb", size = 2473911, upload-time = "2026-11-19T12:54:40.3Z" }, + { url = "https://files.pythonhosted.org/packages/6b/8f/0106ea256e51e9b0d21c8aa7b32091d5f8869597282c5c09a7144f2208bc/pydantic_core-2.50.5-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:b9348cfd798b8199d34da5258becf2fc8f5e4e7a3b51da30c34b81b996a07b34", size = 2501611, upload-time = "2026-11-19T12:54:41.758Z" }, + { url = "https://files.pythonhosted.org/packages/da/b8/d3923395ada2e5738eaa985e2d9c623cb00f6687f94565a2abc0ddf573f8/pydantic_core-2.50.5-cp313-cp313-win32.whl", hash = "sha256:22f5f0c37251611191a55e801a5150aa21f348fa10eac8eac9fa43c29937a7b1", size = 2125035, upload-time = "2026-11-19T12:54:43.281Z" }, + { url = "https://files.pythonhosted.org/packages/7b/08/2759efbffc5643787a5a0a6e19b98805d102346a8e52ad2a181a92bd55ea/pydantic_core-2.50.5-cp313-cp313-win_amd64.whl", hash = "sha256:d34c0d4dd4a318f2be788a60a972c3a1ed5da0155a7c06d6dd810dc5d60ad704", size = 2268229, upload-time = "2026-11-19T12:54:44.905Z" }, + { url = "https://files.pythonhosted.org/packages/c7/18/b4491f24c42f6d31b149d30c2b1bb5a062e3a79ee626cc0aa2161e86eb5a/pydantic_core-2.50.5-cp313-cp313-win_arm64.whl", hash = "sha256:cbec4aad328be58961c738b83fc2c7bd993242d2366f949d914e8c09266dee0e", size = 2172693, upload-time = "2026-11-19T12:54:46.368Z" }, + { url = "https://files.pythonhosted.org/packages/91/86/570c4fedb8eeab9062032bc45875490090477fddce932328a20b9cb834ff/pydantic_core-2.50.5-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:00598ae680c6e4a17cda01910e49c0da8ce15610505e6c57cec3f15d83daef88", size = 2239820, upload-time = "2026-11-19T12:54:47.806Z" }, + { url = "https://files.pythonhosted.org/packages/5b/a6/5bc38ad74a5705bcfdf1fd4e2009a62638a45dc246e3b0fc8a86e8c9ff4b/pydantic_core-2.50.5-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:e8fe516a4b3b06e4ff83b9adee4a786d28a617e5fb5fe90bda49fb6f52a5ac19", size = 2111039, upload-time = "2026-11-19T12:54:49.244Z" }, + { url = "https://files.pythonhosted.org/packages/d8/b5/a494d5d4ffd2dc1b06f1572d7651a4d6ada7881c5a527930be8f0171fc34/pydantic_core-2.50.5-cp314-cp314-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:63a0ba0d7ccf37c8c724bb7ed13c3aa0aa4c743f4f5f376c92c47e584844c7b1", size = 2264771, upload-time = "2026-11-19T12:54:50.701Z" }, + { url = "https://files.pythonhosted.org/packages/cc/13/099f19c4be6dbe10e327b17447e137ebd679cc64a3833a87f4597dcffc2a/pydantic_core-2.50.5-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:27bc22dc8d50335bc62296261a7dc4c2572149910ba7c274ef0f945b5be0d570", size = 2133839, upload-time = "2026-11-19T12:54:52.33Z" }, + { url = "https://files.pythonhosted.org/packages/10/4c/9eec8f71877124a093a0fc0033747489ea7e18d364ec562a7d170c483f4f/pydantic_core-2.50.5-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:2f6a8c9b8647378c0dc128805e6b98da39d36019a0e7cac134badeaedb14f849", size = 2200176, upload-time = "2026-11-19T12:54:53.745Z" }, + { url = "https://files.pythonhosted.org/packages/51/45/79ed6028c3e19a5376057da8545977d6f74d37afccdeb684ee7274d05994/pydantic_core-2.50.5-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:feb8c87dbc4684777ddafbf37c922d9e2748272ba61e362ebf85db73ebda6234", size = 2393117, upload-time = "2026-11-19T12:54:55.28Z" }, + { url = "https://files.pythonhosted.org/packages/c6/cc/0b9d5b6652e55cbe6d2eb5c56947bb19c106be388157a410847362b2fd8e/pydantic_core-2.50.5-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:e0a7ae307b4e1eff195cd23a757da07f70a115e45175039caf5f3979a20c7edb", size = 2469324, upload-time = "2026-11-19T12:54:56.758Z" }, + { url = "https://files.pythonhosted.org/packages/79/e3/df03dc4e10c460d37dad8921ec9c6f177bc33d4f2da808d5ae4d8f11acfe/pydantic_core-2.50.5-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:88b543705849d0c59343f97c38296dbf59eb7b3c9565bd4fe1ed638ba38da5ed", size = 2269323, upload-time = "2026-11-19T12:54:58.209Z" }, + { url = "https://files.pythonhosted.org/packages/d5/28/4779dd7ba7f2187222c4ee42f492a451d3425202fdd2b5970b701feab16c/pydantic_core-2.50.5-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:4ae5c9f84dfa43643d10328a212f709c7602c5e70df376d217ae5770d374ccd9", size = 2271462, upload-time = "2026-11-19T12:54:59.719Z" }, + { url = "https://files.pythonhosted.org/packages/0c/48/51f4d0d26e36341330a933c9c5660696023101a0e933552dbc00db49b1cd/pydantic_core-2.50.5-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:922455cc5baddb0f2c82b7ba649e57e89183442b32fe512670db6ebb9b66b251", size = 2305488, upload-time = "2026-11-19T12:55:01.168Z" }, + { url = "https://files.pythonhosted.org/packages/53/53/17892228fd2e66aa2791f97f984bdd34081c1d6ec98997c8e5b8467d04c3/pydantic_core-2.50.5-cp314-cp314-musllinux_1_1_armv7l.whl", hash = "sha256:aa69eaeed433cfe5de809fb84c95536a5aed991b28290d0db059fe6766c69274", size = 2475854, upload-time = "2026-11-19T12:55:02.687Z" }, + { url = "https://files.pythonhosted.org/packages/58/11/c4daab94156b26f779aca920b710138dda04882f295f7e802f237da1082d/pydantic_core-2.50.5-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:9f2bf218dbc93363fe3e31cc53d36db8d6ff4122179406bec05f33bb79c0e2c1", size = 2505669, upload-time = "2026-11-19T12:55:04.137Z" }, + { url = "https://files.pythonhosted.org/packages/83/47/375ab34f3907a0f40cebe2c3cea3e2c25dcf58e0f591991b85604b7258fc/pydantic_core-2.50.5-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:b2910ec0fa5aeb9bef70156f2b79f4783978fdcfaa7b2f1b5d1814458d2e79a1", size = 1496394, upload-time = "2026-11-19T12:55:05.468Z" }, + { url = "https://files.pythonhosted.org/packages/48/e7/e64fa77d1d335ad21d821adbe3d2590b9d7cc05d210ca11fa524a1c6902d/pydantic_core-2.50.5-cp314-cp314-win32.whl", hash = "sha256:1deb966176b1b66be4281c83f10a0b6b1cecedeb25f53ee894bf27b22376facd", size = 2128110, upload-time = "2026-11-19T12:55:06.797Z" }, + { url = "https://files.pythonhosted.org/packages/bd/da/feb489c6252364355d1f314a284a542cd6788cebe83f9507d4af81c95f4a/pydantic_core-2.50.5-cp314-cp314-win_amd64.whl", hash = "sha256:887424ba7c2145e97f131bc2cc73383a8c464d7bcd56eb98bbd941afb6868b95", size = 2278977, upload-time = "2026-11-19T12:55:08.188Z" }, + { url = "https://files.pythonhosted.org/packages/cd/81/a3bc7bee867be70ec58b3ef3d84e88420fc2d6fd52a8830a3f3a75f0891e/pydantic_core-2.50.5-cp314-cp314-win_arm64.whl", hash = "sha256:e7dd59f498ef42077f22db607571249db41997227018cb84644ba0059f8b5719", size = 2169842, upload-time = "2026-11-19T12:55:09.474Z" }, + { url = "https://files.pythonhosted.org/packages/2d/18/24bc9decf37a81ed5ab979a19ac0a23b457633d525e2c71d4b96476b1bf9/pydantic_core-2.50.5-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:372f4ab3e67b2387871950cfa27d94d644c3475e650836ea52e25c2e4fbd7975", size = 2227397, upload-time = "2026-11-19T12:55:11.022Z" }, + { url = "https://files.pythonhosted.org/packages/46/4f/d958789f577f91af3c9639e6c127cd729be7117d6318fcfa4b773e3bb220/pydantic_core-2.50.5-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:0c9f0002e4ec37db931e4ee8b7dafab2c7288ef66354e74fe16484e60eac6616", size = 2091300, upload-time = "2026-11-19T12:55:12.395Z" }, + { url = "https://files.pythonhosted.org/packages/16/86/b2f630ebb50c18df1603a3d2b03b4722005c27dd4a54e3291b302dcaa54a/pydantic_core-2.50.5-cp314-cp314t-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:d16cb794449c2bc0e5cb0ab0022813419bf5283266f2a7ff1fc54e5c6e27dcee", size = 2277674, upload-time = "2026-11-19T12:55:13.728Z" }, + { url = "https://files.pythonhosted.org/packages/91/8e/06b5d2da6c7bd8e817edd1dcce595a904ef295e66f1e243cc768ccfcaa41/pydantic_core-2.50.5-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:71633f82d51d4796a48026bd6eca5ec83e4a0edbe6187d59bbc45ace1111ebae", size = 2116208, upload-time = "2026-11-19T12:55:14.971Z" }, + { url = "https://files.pythonhosted.org/packages/40/0e/b818e7903883e6e51d10fd6ec43d2837cdea3861571d050942ff5d873327/pydantic_core-2.50.5-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:f20c692c599ebac7f04f3a0102b969f3f9d6667ffe1e72629fc7fbf8b6375234", size = 2210100, upload-time = "2026-11-19T12:55:16.308Z" }, + { url = "https://files.pythonhosted.org/packages/d0/aa/8c062145581453ac1b0fb3577ec193926b8973dc4b990283c304a955d80b/pydantic_core-2.50.5-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:2f0a86887c644247eff4cc7b9e609042a49833dcd72f84574e7b8beea89729ab", size = 2410440, upload-time = "2026-11-19T12:55:17.611Z" }, + { url = "https://files.pythonhosted.org/packages/18/08/a4782611257ce1a85d194348a011dea09f0bf6344b28b8f8fee6c501b8a9/pydantic_core-2.50.5-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:655d0cc2ddbc3fb1f4f8a8e3724552ee2ba6b8561289e9e6e06186982b27bceb", size = 2474759, upload-time = "2026-11-19T12:55:18.847Z" }, + { url = "https://files.pythonhosted.org/packages/48/64/6391407d76fdd16b43c0e377998f38142b433e2f28325764bcea37e8b1e5/pydantic_core-2.50.5-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:1d53befcfd415bd9212e685372c825e62f29b83820db78512c9d3659f13d29e9", size = 2264144, upload-time = "2026-11-19T12:55:20.163Z" }, + { url = "https://files.pythonhosted.org/packages/a5/d3/54c432da68129a4e5b9d83f01fc0359b87abb72929fd0ed19f208fb72889/pydantic_core-2.50.5-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:5f33c92da4aa5714fb6fcb086358274598e8ff62b6607afd132a38657aa64f02", size = 2267290, upload-time = "2026-11-19T12:55:21.551Z" }, + { url = "https://files.pythonhosted.org/packages/18/b9/4f1fb301cf4ea6c325da205e82887260e71a780ac21b2f0baf837b82c0cd/pydantic_core-2.50.5-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:3129b52ee2861d0270db8bd140fc9b53ee9821247ca47fda2613a899ce9a1ea3", size = 2308710, upload-time = "2026-11-19T12:55:22.858Z" }, + { url = "https://files.pythonhosted.org/packages/eb/a2/423f7defa257419098f186ad3c4bd5e7e983956d8ff7c3e65582a70a6835/pydantic_core-2.50.5-cp314-cp314t-musllinux_1_1_armv7l.whl", hash = "sha256:041f4730fa7a8bf975e88436d439bdc72f3f16e584a470ffbe47392628d99de6", size = 2485824, upload-time = "2026-11-19T12:55:24.175Z" }, + { url = "https://files.pythonhosted.org/packages/ce/7f/3b9148a4d9df1a8f682b3dc7cd70b8855e0e3b27ce49180aa7dd18f164a3/pydantic_core-2.50.5-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:48b5deaaee4f1b99603173cd291127523e43ee9f51db58c7ff98d16dc5c6fc93", size = 2518300, upload-time = "2026-11-19T12:55:25.422Z" }, + { url = "https://files.pythonhosted.org/packages/52/f4/ff11826851f17477e6e0ac28da74dcabb9d5848db450fd67bfddfc147f89/pydantic_core-2.50.5-cp314-cp314t-win32.whl", hash = "sha256:8c7244134b93ce028e9166c1b5d3e4537349307ccf3e65d746b4c6b1bbed8c89", size = 2107419, upload-time = "2026-11-19T12:55:27.203Z" }, + { url = "https://files.pythonhosted.org/packages/8b/6c/41c3e9f11befcb6fe576e95703d2d8d9dde3f3fa0de5e4c432d60644aeed/pydantic_core-2.50.5-cp314-cp314t-win_amd64.whl", hash = "sha256:159f6bc1b616e0ca0938eb568d87ca03c633d6f06306ac47b9c3e5dd8c14d39a", size = 2246337, upload-time = "2026-11-19T12:55:28.704Z" }, + { url = "https://files.pythonhosted.org/packages/b6/98/ae8e3f2182a0ddf5f868b4e7830032d9b0ff34cbdd64549bb0b57a2e52c4/pydantic_core-2.50.5-cp314-cp314t-win_arm64.whl", hash = "sha256:5274f8314ce3be1df07ae8ebceeb97a73b8409d842fd7677c5d0a85a68793ec1", size = 2174036, upload-time = "2026-11-19T12:55:30.029Z" }, + { url = "https://files.pythonhosted.org/packages/34/7c/7ab4dd1eaad75d20c596a4b2a36961a98f344aa0bad2938edbe644214baa/pydantic_core-2.50.5-cp315-cp315-macosx_10_12_x86_64.whl", hash = "sha256:c4c4313dc66f45822b3d7f39aa74e59e7987cf7572b3309005b26d956a0098a9", size = 2245524, upload-time = "2026-11-19T12:55:31.444Z" }, + { url = "https://files.pythonhosted.org/packages/ac/29/2cc2423f489d4526825d2371d047de505760260462eb72d838fc5e934aca/pydantic_core-2.50.5-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:e93587aaa5660536b9188686e8fe0544b577ec57d896d424b5b2118b151a6845", size = 2116389, upload-time = "2026-11-19T12:55:32.66Z" }, + { url = "https://files.pythonhosted.org/packages/b5/f7/f7fdfbb6ccacf4ef3a4757eab9ecb9d5809b2568bf38e8f41b1872524f23/pydantic_core-2.50.5-cp315-cp315-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:0a7d599d0c5afbab98c0e4441f5b76163c6fcfd2ecf73dd6418e468a7ac452b8", size = 2266368, upload-time = "2026-11-19T12:55:34.366Z" }, + { url = "https://files.pythonhosted.org/packages/91/3f/8d12c17b4a55097c164759b38136bbd2abe3f2668f0d908fd3d0d4a7e0fd/pydantic_core-2.50.5-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:568e928322f0b6b94671fc1a4dbc867627af74695b0c060ac6d4f25b6a7425d8", size = 2138673, upload-time = "2026-11-19T12:55:35.629Z" }, + { url = "https://files.pythonhosted.org/packages/5c/c0/54c3746f13409b9674f812cd37c98da25df970d030d9260e9e904205893c/pydantic_core-2.50.5-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:bdafd6b05bf012772b7d7325a98d26f19b7918e21dabdd5970c885262245aae3", size = 2203145, upload-time = "2026-11-19T12:55:37.366Z" }, + { url = "https://files.pythonhosted.org/packages/79/3a/91f0e7ffc5626a673804fdd33a007186c06352020199653e3df4b5a43ad5/pydantic_core-2.50.5-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:008de9d97f2b0c8e596fb5d93d49b63be158e8be5ac35856903b338cbcfd21f3", size = 2397558, upload-time = "2026-11-19T12:55:38.615Z" }, + { url = "https://files.pythonhosted.org/packages/a6/51/bc916df37f46f77d5159e4a438033702bdbde47814dd407e97fb1aef6fb1/pydantic_core-2.50.5-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:f8fd7e9c44bb4c9214d41c3bef79cba5a513b29c3bcbfdaaf0440ca6f5fb65ea", size = 2478927, upload-time = "2026-11-19T12:55:39.847Z" }, + { url = "https://files.pythonhosted.org/packages/e9/8f/a8f56878763b6fdeca69b73d9b4c44aa4526bfa6a386da21792ed0b766ce/pydantic_core-2.50.5-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:0d6e614776c8c99495dcfc6ce8f826277fb4388a5e5cbee23c199cbe39e6dcb3", size = 2276148, upload-time = "2026-11-19T12:55:41.379Z" }, + { url = "https://files.pythonhosted.org/packages/a5/bf/2c28071bb81fe07595ca8d08011ea1005bae92d2b0cb43ce768a135105e0/pydantic_core-2.50.5-cp315-cp315-manylinux_2_31_riscv64.whl", hash = "sha256:bcd9d9b38e61dfd43e00f621ce00da2ffed35047fad532c4afcadf4f9ca0d672", size = 2279590, upload-time = "2026-11-19T12:55:42.856Z" }, + { url = "https://files.pythonhosted.org/packages/62/d9/905d95bdb65ce24ca27149796fba3869db2bed08e0688c8dbe863d916b56/pydantic_core-2.50.5-cp315-cp315-musllinux_1_1_aarch64.whl", hash = "sha256:4888829471cd8d85c096ef0e1f41a066c7d76e88309a4fbff4069f70d07673be", size = 2310233, upload-time = "2026-11-19T12:55:44.114Z" }, + { url = "https://files.pythonhosted.org/packages/08/d0/6d63888afef31cda359ba122d768ae83c59213afc3cde4a528a67f4e7d80/pydantic_core-2.50.5-cp315-cp315-musllinux_1_1_armv7l.whl", hash = "sha256:ad0e0221deec2a2385300d76b9259da7036c0ed784502c154ae237dafd67605f", size = 2478319, upload-time = "2026-11-19T12:55:45.299Z" }, + { url = "https://files.pythonhosted.org/packages/33/f6/de8de17435f95dd8ad0db86d74beea9195cfbfce5434946a0bb53e025be5/pydantic_core-2.50.5-cp315-cp315-musllinux_1_1_x86_64.whl", hash = "sha256:20337f547d79911457cd4739bb6699213a53089f946af87633a48fad3f74f5e1", size = 2508289, upload-time = "2026-11-19T12:55:46.634Z" }, + { url = "https://files.pythonhosted.org/packages/f4/39/aae7e3187162752675094b970cb6294bf10ba091f33eebc35376d1b3f0aa/pydantic_core-2.50.5-cp315-cp315-win32.whl", hash = "sha256:09c732c097816c89d46ddb70f89d72e853e3a1bbac6475961c60a88aad9fe612", size = 2131982, upload-time = "2026-11-19T12:55:47.819Z" }, + { url = "https://files.pythonhosted.org/packages/c6/81/abd633f5fafcb06991a311293b37783ea3ea0b23c11845282bf24d7ddab8/pydantic_core-2.50.5-cp315-cp315-win_amd64.whl", hash = "sha256:0d4edc3350e21e0ef773ef9395227ca072832f05e484cadcf4d8663b63a231c0", size = 2285739, upload-time = "2026-11-19T12:55:49.198Z" }, + { url = "https://files.pythonhosted.org/packages/69/6c/0b678e369c45edf0e47b4ceefcb9ac86cf81d7440ad780c384dfeddf7eff/pydantic_core-2.50.5-cp315-cp315-win_arm64.whl", hash = "sha256:af453c0c20372ca8acf3c46de2a89b242491853dc61d0171ba24608d33310e09", size = 2176798, upload-time = "2026-11-19T12:55:50.779Z" }, + { url = "https://files.pythonhosted.org/packages/4e/f2/9907ab2bb673ae2f4ccb6b026e201a5d38cbf9a4f109050b681b8aebf7e9/pydantic_core-2.50.5-cp315-cp315t-macosx_10_12_x86_64.whl", hash = "sha256:9e255e7c32d9c2f396d3daa833e7d8d701eec7bf8e13ca092b4b83ce7d9487fd", size = 2235810, upload-time = "2026-11-19T12:55:52.04Z" }, + { url = "https://files.pythonhosted.org/packages/65/c4/caa101ff8599aedb41816c987f44bd7c9d8d5ae42740589da1cf60ce4545/pydantic_core-2.50.5-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:c334b8759496f9e597b68e1309b2fb3d824fd24a29e562afa86b61005eb9d54d", size = 2094628, upload-time = "2026-11-19T12:55:53.353Z" }, + { url = "https://files.pythonhosted.org/packages/91/34/253060ed9f5df44edc3632261b0a457407935b3454dfd40230f5a60f6503/pydantic_core-2.50.5-cp315-cp315t-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:90dabbf4f38f37de1663ce932d37c6f694a005f6470ae2f0d97755d9e3f90ffd", size = 2275436, upload-time = "2026-11-19T12:55:55.061Z" }, + { url = "https://files.pythonhosted.org/packages/9f/bb/2c0b69f1959370f21abb84751c1ef42d73edad84ee6ed67975e6ca6aa194/pydantic_core-2.50.5-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:5ec2e8caf5eadea7be683fc7025d60563e920f1f52fe18ae46c49558e67b8cd0", size = 2118960, upload-time = "2026-11-19T12:55:56.573Z" }, + { url = "https://files.pythonhosted.org/packages/3f/74/f6c32d48da403d63fd8860af73c2edf7f0b05346078fa7d3fa7b9af59492/pydantic_core-2.50.5-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:44e6c35bf3a9b6785db0c083df8a6929343f9c8fc27186991d21653242c77c19", size = 2204816, upload-time = "2026-11-19T12:55:57.807Z" }, + { url = "https://files.pythonhosted.org/packages/fb/10/a2cb0da341bd09c2d102d50f126827fe79d78611526f8d26c55e1d9e13a5/pydantic_core-2.50.5-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:f33be114a0ee27870cffd31057ed60bf5a0cd522dcbdc1dda0bdad70f8302cb0", size = 2420693, upload-time = "2026-11-19T12:55:59.129Z" }, + { url = "https://files.pythonhosted.org/packages/40/31/f8c0ab3f77fb4e348ff818f49f272d2f833aadd3478de4919ccfce10736e/pydantic_core-2.50.5-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:12178e58af383bd4c32b2fe141188bc7e540c5eb33ad550856fa5863b4c31bd5", size = 2482316, upload-time = "2026-11-19T12:56:00.438Z" }, + { url = "https://files.pythonhosted.org/packages/82/fc/134b0a1a06971c84f2a3bc6e1123cac9c3d58e8a67b6ef951a0b97f160d1/pydantic_core-2.50.5-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:679f15dd3bd2a82bde350ec8c94c0f8f05f05dba39fb3464cd4136a724da9844", size = 2268676, upload-time = "2026-11-19T12:56:01.985Z" }, + { url = "https://files.pythonhosted.org/packages/7b/c0/b5f34860606866a918cd934172b24fd6069ffbac13179635f65ca3516aea/pydantic_core-2.50.5-cp315-cp315t-manylinux_2_31_riscv64.whl", hash = "sha256:11806d9b4888f1645d74fc24237f21dad559b42fb8930481b3df414997be6ee5", size = 2276349, upload-time = "2026-11-19T12:56:03.265Z" }, + { url = "https://files.pythonhosted.org/packages/7a/6c/728833b2c94a446f0bfcb5fc82e039aa6da648fdcd925aa8b612e66e142c/pydantic_core-2.50.5-cp315-cp315t-musllinux_1_1_aarch64.whl", hash = "sha256:b43115385de7db83bd2fe7a08dea8580bce3acc3f54200c4f4fe32a4a49688d4", size = 2320015, upload-time = "2026-11-19T12:56:04.519Z" }, + { url = "https://files.pythonhosted.org/packages/4b/c6/c9a9c08eb46517a2028d40cf6cd58674c82ba0912e172ed7a37362e1219c/pydantic_core-2.50.5-cp315-cp315t-musllinux_1_1_armv7l.whl", hash = "sha256:86bd5aad5ccbaced98139d08b4314f253c086897830f4bcf9c1d1f02f740683d", size = 2480855, upload-time = "2026-11-19T12:56:05.809Z" }, + { url = "https://files.pythonhosted.org/packages/4b/e4/7cdac28f4e0b587d66ef34ec5a0e3114ed8a383db958122495d85c03377a/pydantic_core-2.50.5-cp315-cp315t-musllinux_1_1_x86_64.whl", hash = "sha256:90ff55049623eccbfa997332e2b91358dc2c4c30ca6e664b45438723cbe181df", size = 2525363, upload-time = "2026-11-19T12:56:07.301Z" }, + { url = "https://files.pythonhosted.org/packages/82/99/70305ab96334631da7cf3b20de4ea433589a5a022b28b9a3a0cc1c08b435/pydantic_core-2.50.5-cp315-cp315t-win32.whl", hash = "sha256:7c3faea08d44b4a7b57b30f1113e6404e6aa62a4f3489a22359fb27d6003d8b1", size = 2114429, upload-time = "2026-11-19T12:56:08.521Z" }, + { url = "https://files.pythonhosted.org/packages/fc/f2/98c0c74b43877bad2aa16332498626b375ff63d4e5f85c4d09b08d14f861/pydantic_core-2.50.5-cp315-cp315t-win_amd64.whl", hash = "sha256:b2b64d3204f9c33f03ed3111eb754902ea76ca5aa61ab4b2bdf9f767a4a1f279", size = 2251995, upload-time = "2026-11-19T12:56:09.711Z" }, + { url = "https://files.pythonhosted.org/packages/70/17/8ead84e326315b8c99165f3388ccc2b2355a4a2c8bdcba4b9241823dc064/pydantic_core-2.50.5-cp315-cp315t-win_arm64.whl", hash = "sha256:8ba2dcbeea0ab8836e804c54e905075125c702cf78e592d998eecf2764b64144", size = 2185080, upload-time = "2026-11-19T12:56:10.948Z" }, + { url = "https://files.pythonhosted.org/packages/ed/1d/0e2d5bb47dc729ddf21fb846cb1ac85baf6290eca5ef1ee3d871712496f4/pydantic_core-2.50.5-graalpy313-graalpy253_313_native-macosx_11_0_arm64.whl", hash = "sha256:d7826407ed74ff8e6cc6e6df7ffbf180e9b449ab1516f28eb5f6e2a489bc5129", size = 2054207, upload-time = "2026-11-19T12:56:17.916Z" }, + { url = "https://files.pythonhosted.org/packages/59/61/f1b75d2dffa662c4326adc6b16881f98158717cfd461936c2f0c36d9d1c8/pydantic_core-2.50.5-graalpy313-graalpy253_313_native-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:c415a8da7c89a3dd32d988a9117bf0a52371769b77b0943bcfd50b281ecefb8d", size = 2125491, upload-time = "2026-11-19T12:56:19.202Z" }, + { url = "https://files.pythonhosted.org/packages/e5/78/104a8c414f58132acaa6b2ce4cc3441b8cc556df0f7fcc9ca8c07473f17a/pydantic_core-2.50.5-graalpy313-graalpy253_313_native-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:ea7429e3adb2f2fd81e2d6e8942e5c1cd760a6e6be5b7574d2ee5499b5e19e67", size = 2284742, upload-time = "2026-11-19T12:56:20.825Z" }, ] [[package]] @@ -598,38 +596,56 @@ sdist = { url = "https://files.pythonhosted.org/packages/dc/1e/fb11174c9eaebcec2 [[package]] name = "pyyaml" -version = "6.0.3" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/05/8e/961c0007c59b8dd7729d542c61a4d537767a59645b82a0b521206e1e25c2/pyyaml-6.0.3.tar.gz", hash = "sha256:d76623373421df22fb4cf8817020cbb7ef15c725b9d5e45f17e189bfc384190f", size = 130960, upload-time = "2025-09-25T21:33:16.546Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/d1/11/0fd08f8192109f7169db964b5707a2f1e8b745d4e239b784a5a1dd80d1db/pyyaml-6.0.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:8da9669d359f02c0b91ccc01cac4a67f16afec0dac22c2ad09f46bee0697eba8", size = 181669, upload-time = "2025-09-25T21:32:23.673Z" }, - { url = "https://files.pythonhosted.org/packages/b1/16/95309993f1d3748cd644e02e38b75d50cbc0d9561d21f390a76242ce073f/pyyaml-6.0.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:2283a07e2c21a2aa78d9c4442724ec1eb15f5e42a723b99cb3d822d48f5f7ad1", size = 173252, upload-time = "2025-09-25T21:32:25.149Z" }, - { url = "https://files.pythonhosted.org/packages/50/31/b20f376d3f810b9b2371e72ef5adb33879b25edb7a6d072cb7ca0c486398/pyyaml-6.0.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ee2922902c45ae8ccada2c5b501ab86c36525b883eff4255313a253a3160861c", size = 767081, upload-time = "2025-09-25T21:32:26.575Z" }, - { url = "https://files.pythonhosted.org/packages/49/1e/a55ca81e949270d5d4432fbbd19dfea5321eda7c41a849d443dc92fd1ff7/pyyaml-6.0.3-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a33284e20b78bd4a18c8c2282d549d10bc8408a2a7ff57653c0cf0b9be0afce5", size = 841159, upload-time = "2025-09-25T21:32:27.727Z" }, - { url = "https://files.pythonhosted.org/packages/74/27/e5b8f34d02d9995b80abcef563ea1f8b56d20134d8f4e5e81733b1feceb2/pyyaml-6.0.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0f29edc409a6392443abf94b9cf89ce99889a1dd5376d94316ae5145dfedd5d6", size = 801626, upload-time = "2025-09-25T21:32:28.878Z" }, - { url = "https://files.pythonhosted.org/packages/f9/11/ba845c23988798f40e52ba45f34849aa8a1f2d4af4b798588010792ebad6/pyyaml-6.0.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f7057c9a337546edc7973c0d3ba84ddcdf0daa14533c2065749c9075001090e6", size = 753613, upload-time = "2025-09-25T21:32:30.178Z" }, - { url = "https://files.pythonhosted.org/packages/3d/e0/7966e1a7bfc0a45bf0a7fb6b98ea03fc9b8d84fa7f2229e9659680b69ee3/pyyaml-6.0.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:eda16858a3cab07b80edaf74336ece1f986ba330fdb8ee0d6c0d68fe82bc96be", size = 794115, upload-time = "2025-09-25T21:32:31.353Z" }, - { url = "https://files.pythonhosted.org/packages/de/94/980b50a6531b3019e45ddeada0626d45fa85cbe22300844a7983285bed3b/pyyaml-6.0.3-cp313-cp313-win32.whl", hash = "sha256:d0eae10f8159e8fdad514efdc92d74fd8d682c933a6dd088030f3834bc8e6b26", size = 137427, upload-time = "2025-09-25T21:32:32.58Z" }, - { url = "https://files.pythonhosted.org/packages/97/c9/39d5b874e8b28845e4ec2202b5da735d0199dbe5b8fb85f91398814a9a46/pyyaml-6.0.3-cp313-cp313-win_amd64.whl", hash = "sha256:79005a0d97d5ddabfeeea4cf676af11e647e41d81c9a7722a193022accdb6b7c", size = 154090, upload-time = "2025-09-25T21:32:33.659Z" }, - { url = "https://files.pythonhosted.org/packages/73/e8/2bdf3ca2090f68bb3d75b44da7bbc71843b19c9f2b9cb9b0f4ab7a5a4329/pyyaml-6.0.3-cp313-cp313-win_arm64.whl", hash = "sha256:5498cd1645aa724a7c71c8f378eb29ebe23da2fc0d7a08071d89469bf1d2defb", size = 140246, upload-time = "2025-09-25T21:32:34.663Z" }, - { url = "https://files.pythonhosted.org/packages/9d/8c/f4bd7f6465179953d3ac9bc44ac1a8a3e6122cf8ada906b4f96c60172d43/pyyaml-6.0.3-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:8d1fab6bb153a416f9aeb4b8763bc0f22a5586065f86f7664fc23339fc1c1fac", size = 181814, upload-time = "2025-09-25T21:32:35.712Z" }, - { url = "https://files.pythonhosted.org/packages/bd/9c/4d95bb87eb2063d20db7b60faa3840c1b18025517ae857371c4dd55a6b3a/pyyaml-6.0.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:34d5fcd24b8445fadc33f9cf348c1047101756fd760b4dacb5c3e99755703310", size = 173809, upload-time = "2025-09-25T21:32:36.789Z" }, - { url = "https://files.pythonhosted.org/packages/92/b5/47e807c2623074914e29dabd16cbbdd4bf5e9b2db9f8090fa64411fc5382/pyyaml-6.0.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:501a031947e3a9025ed4405a168e6ef5ae3126c59f90ce0cd6f2bfc477be31b7", size = 766454, upload-time = "2025-09-25T21:32:37.966Z" }, - { url = "https://files.pythonhosted.org/packages/02/9e/e5e9b168be58564121efb3de6859c452fccde0ab093d8438905899a3a483/pyyaml-6.0.3-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b3bc83488de33889877a0f2543ade9f70c67d66d9ebb4ac959502e12de895788", size = 836355, upload-time = "2025-09-25T21:32:39.178Z" }, - { url = "https://files.pythonhosted.org/packages/88/f9/16491d7ed2a919954993e48aa941b200f38040928474c9e85ea9e64222c3/pyyaml-6.0.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c458b6d084f9b935061bc36216e8a69a7e293a2f1e68bf956dcd9e6cbcd143f5", size = 794175, upload-time = "2025-09-25T21:32:40.865Z" }, - { url = "https://files.pythonhosted.org/packages/dd/3f/5989debef34dc6397317802b527dbbafb2b4760878a53d4166579111411e/pyyaml-6.0.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7c6610def4f163542a622a73fb39f534f8c101d690126992300bf3207eab9764", size = 755228, upload-time = "2025-09-25T21:32:42.084Z" }, - { url = "https://files.pythonhosted.org/packages/d7/ce/af88a49043cd2e265be63d083fc75b27b6ed062f5f9fd6cdc223ad62f03e/pyyaml-6.0.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:5190d403f121660ce8d1d2c1bb2ef1bd05b5f68533fc5c2ea899bd15f4399b35", size = 789194, upload-time = "2025-09-25T21:32:43.362Z" }, - { url = "https://files.pythonhosted.org/packages/23/20/bb6982b26a40bb43951265ba29d4c246ef0ff59c9fdcdf0ed04e0687de4d/pyyaml-6.0.3-cp314-cp314-win_amd64.whl", hash = "sha256:4a2e8cebe2ff6ab7d1050ecd59c25d4c8bd7e6f400f5f82b96557ac0abafd0ac", size = 156429, upload-time = "2025-09-25T21:32:57.844Z" }, - { url = "https://files.pythonhosted.org/packages/f4/f4/a4541072bb9422c8a883ab55255f918fa378ecf083f5b85e87fc2b4eda1b/pyyaml-6.0.3-cp314-cp314-win_arm64.whl", hash = "sha256:93dda82c9c22deb0a405ea4dc5f2d0cda384168e466364dec6255b293923b2f3", size = 143912, upload-time = "2025-09-25T21:32:59.247Z" }, - { url = "https://files.pythonhosted.org/packages/7c/f9/07dd09ae774e4616edf6cda684ee78f97777bdd15847253637a6f052a62f/pyyaml-6.0.3-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:02893d100e99e03eda1c8fd5c441d8c60103fd175728e23e431db1b589cf5ab3", size = 189108, upload-time = "2025-09-25T21:32:44.377Z" }, - { url = "https://files.pythonhosted.org/packages/4e/78/8d08c9fb7ce09ad8c38ad533c1191cf27f7ae1effe5bb9400a46d9437fcf/pyyaml-6.0.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:c1ff362665ae507275af2853520967820d9124984e0f7466736aea23d8611fba", size = 183641, upload-time = "2025-09-25T21:32:45.407Z" }, - { url = "https://files.pythonhosted.org/packages/7b/5b/3babb19104a46945cf816d047db2788bcaf8c94527a805610b0289a01c6b/pyyaml-6.0.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6adc77889b628398debc7b65c073bcb99c4a0237b248cacaf3fe8a557563ef6c", size = 831901, upload-time = "2025-09-25T21:32:48.83Z" }, - { url = "https://files.pythonhosted.org/packages/8b/cc/dff0684d8dc44da4d22a13f35f073d558c268780ce3c6ba1b87055bb0b87/pyyaml-6.0.3-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a80cb027f6b349846a3bf6d73b5e95e782175e52f22108cfa17876aaeff93702", size = 861132, upload-time = "2025-09-25T21:32:50.149Z" }, - { url = "https://files.pythonhosted.org/packages/b1/5e/f77dc6b9036943e285ba76b49e118d9ea929885becb0a29ba8a7c75e29fe/pyyaml-6.0.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:00c4bdeba853cc34e7dd471f16b4114f4162dc03e6b7afcc2128711f0eca823c", size = 839261, upload-time = "2025-09-25T21:32:51.808Z" }, - { url = "https://files.pythonhosted.org/packages/ce/88/a9db1376aa2a228197c58b37302f284b5617f56a5d959fd1763fb1675ce6/pyyaml-6.0.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:66e1674c3ef6f541c35191caae2d429b967b99e02040f5ba928632d9a7f0f065", size = 805272, upload-time = "2025-09-25T21:32:52.941Z" }, - { url = "https://files.pythonhosted.org/packages/da/92/1446574745d74df0c92e6aa4a7b0b3130706a4142b2d1a5869f2eaa423c6/pyyaml-6.0.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:16249ee61e95f858e83976573de0f5b2893b3677ba71c9dd36b9cf8be9ac6d65", size = 829923, upload-time = "2025-09-25T21:32:54.537Z" }, - { url = "https://files.pythonhosted.org/packages/f0/7a/1c7270340330e575b92f397352af856a8c06f230aa3e76f86b39d01b416a/pyyaml-6.0.3-cp314-cp314t-win_amd64.whl", hash = "sha256:4ad1906908f2f5ae4e5a8ddfce73c320c2a1429ec52eafd27138b7f1cbe341c9", size = 174062, upload-time = "2025-09-25T21:32:55.767Z" }, - { url = "https://files.pythonhosted.org/packages/f1/12/de94a39c2ef588c7e6455cfbe7343d3b2dc9d6b6b2f40c4c6565744c873d/pyyaml-6.0.3-cp314-cp314t-win_arm64.whl", hash = "sha256:ebc55a14a21cb14062aa4162f906cd962b28e2e9ea38f9b4391244cd8de4ae0b", size = 149341, upload-time = "2025-09-25T21:32:56.828Z" }, +version = "6.0.4" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/76/b8/c0b780928e2fb1c87e9e375818c6f121da2398b071012d1747be300b83f4/pyyaml-6.0.4.tar.gz", hash = "sha256:e24bf71af8a432d7808fabff134d38dfe16d3cbb41f2873bb4b1e42422de0a1a", size = 136336, upload-time = "2026-11-20T23:37:05.977Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/95/22/b445c43210fe7f466fcf5a38bcbe850fd3db31b85594db22b5a43e63c482/pyyaml-6.0.4-cp313-cp313-macosx_10_15_x86_64.whl", hash = "sha256:61eef2f08e977b725f37a8d1663f5a222c6f09207ac0794030d5fca062e7c96e", size = 188392, upload-time = "2026-11-20T23:35:11.776Z" }, + { url = "https://files.pythonhosted.org/packages/1f/c3/1536ad41fd962d3915f3f8252ecc7f91192ab15c3120ba72ff45e76b7077/pyyaml-6.0.4-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:9d4211f080920629a90c9e31c51e326fb70cfae38f18d4128b9913c23642bace", size = 179961, upload-time = "2026-11-20T23:35:12.722Z" }, + { url = "https://files.pythonhosted.org/packages/40/fd/c5297cc6370e4ab63d0c44d2e63510cc53354f5e8e74bcff047e2a384698/pyyaml-6.0.4-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:41b4669c3a8fd5750e594dff59d3e62d40e321fec467b50449603710ed0a68f3", size = 804464, upload-time = "2026-11-20T23:35:14.066Z" }, + { url = "https://files.pythonhosted.org/packages/0c/2e/20385f63727a6c08df1adad34a88bde90e2bcc1146d1c8588a83190d53b8/pyyaml-6.0.4-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:efe68ed09903cca9ab4117c2b9ea6ee8d369818808945bb5a7fa8009b5630b45", size = 875357, upload-time = "2026-11-20T23:35:15.537Z" }, + { url = "https://files.pythonhosted.org/packages/70/f2/f280d52f22f6d9853517d02495c02fbf4c80214fae8ca498efa8605013da/pyyaml-6.0.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:50588147ab2c6a59b5f990a4905db80899a6c2bd197e046a6201f1e67587e794", size = 838459, upload-time = "2026-11-20T23:35:16.681Z" }, + { url = "https://files.pythonhosted.org/packages/2a/ee/5f7142110583686e94ab4492e3724ed0869cd9fe26ba8293ec25a47ee223/pyyaml-6.0.4-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:4d1e8d6e345b4b4424a05a11e699e999e65a88f422f73636f8a0b354bf219ffa", size = 789384, upload-time = "2026-11-20T23:35:17.734Z" }, + { url = "https://files.pythonhosted.org/packages/4f/ab/1fd22df5305561cbefb85363182a0af5e81d219e8b8b8dfd73f20eb70859/pyyaml-6.0.4-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:a56491babf0d976625807953bd192dd9de973fccb3270e77b1a795b152a26175", size = 814502, upload-time = "2026-11-20T23:35:19.171Z" }, + { url = "https://files.pythonhosted.org/packages/c1/5a/6b53e1711a78fcc14619a341618c36b862ad8c634e7bc43ae18e6a7376b2/pyyaml-6.0.4-cp313-cp313-win32.whl", hash = "sha256:1631d566655f3af7d6c4a4485267830f6b680d3dc9704b659b3c3f4541b5a3fe", size = 140447, upload-time = "2026-11-20T23:35:20.134Z" }, + { url = "https://files.pythonhosted.org/packages/bd/09/e785d2a9d64de2449cc3aecaa03f1c34670d7a688dc00da7246a858b7e8f/pyyaml-6.0.4-cp313-cp313-win_amd64.whl", hash = "sha256:0a3a351f04dc124f9357512bdb80ac37cd1750cf1371da33e7cbb96d80ac865f", size = 154298, upload-time = "2026-11-20T23:36:22.105Z" }, + { url = "https://files.pythonhosted.org/packages/94/44/0ed649c2c1cc37b342042c3a4609247b74201c23a6f7f01f5dd222eae2bd/pyyaml-6.0.4-cp313-cp313-win_arm64.whl", hash = "sha256:f617e4e5c619fef5284335b24e3af3a77ce08dc5c389ff4b25033bb2749032b7", size = 146938, upload-time = "2026-11-20T23:36:23.305Z" }, + { url = "https://files.pythonhosted.org/packages/70/90/a2d37db959cb771389bb6171eff83905776e5aead12a985a5118a587d6eb/pyyaml-6.0.4-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:4a329472db6c8858ebd94f2214a54c8bff8f035a6cc7af1ab39cc1b33a5f0e56", size = 189727, upload-time = "2026-11-20T23:36:24.518Z" }, + { url = "https://files.pythonhosted.org/packages/71/40/de4380acb2bcc733f502a7c8562b08f741890741dcaa8a7f018c87acc060/pyyaml-6.0.4-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:7335809813ec838d9cd334b1744cda33deb141c9ef23a9c0df371c37980d3851", size = 181969, upload-time = "2026-11-20T23:36:25.675Z" }, + { url = "https://files.pythonhosted.org/packages/7f/a1/88baf9d84981ea723fc1dd5cb534548caebff3071939f899509ab7c62d2f/pyyaml-6.0.4-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ed9b957abb12f6ffcd92d5db32fa3ffd4e4a8423d80ddd51b4efa63b42f6a76b", size = 804091, upload-time = "2026-11-20T23:36:26.979Z" }, + { url = "https://files.pythonhosted.org/packages/b8/d4/ce94fe5b0e3cc04834d4a30237c1b5388a13ff5a383b919e857898834857/pyyaml-6.0.4-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b525488d5addf5d59ff4610cd8b1deab9dc97fe0fb3fb74533d7f65e9792bd92", size = 869794, upload-time = "2026-11-20T23:36:28.069Z" }, + { url = "https://files.pythonhosted.org/packages/ef/1b/54ce11b40c8fa1883f14eef46525c3c329509dcc268164074fbe60add8ed/pyyaml-6.0.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c604dc2613c417130479cdd6e55c2faa691b6365aa82b3dafddfcecc2eaf1ac7", size = 819491, upload-time = "2026-11-20T23:36:29.189Z" }, + { url = "https://files.pythonhosted.org/packages/8a/d2/6202ffb5d61667c993211a9231836b5d9be5e34165efd1714ac68ea76029/pyyaml-6.0.4-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:f1a4a85b419f5cb6470dd4be5f766bc59532f11b9c22c076b58a0348f05dca5f", size = 790345, upload-time = "2026-11-20T23:36:30.597Z" }, + { url = "https://files.pythonhosted.org/packages/d4/39/d62587fae4a9a32197ea43182c38f221f3f173a09c6f4380254533bdd89e/pyyaml-6.0.4-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:132c3c7c37a8e6f334921b05cfea5d26e241d792dcbb4db0462129d25ca53b43", size = 824626, upload-time = "2026-11-20T23:36:31.9Z" }, + { url = "https://files.pythonhosted.org/packages/b4/b5/e5cf6ca786f8a5b9bd91e01fe8f2113300bc5628fcfdd3ca02d271970824/pyyaml-6.0.4-cp314-cp314-win_amd64.whl", hash = "sha256:1d2f08c122727c86f8303bb1dd45159ca1de1f2d68798e671ec46974e321008e", size = 157525, upload-time = "2026-11-20T23:36:44.254Z" }, + { url = "https://files.pythonhosted.org/packages/75/9c/d78ce9adda3f7db933f73bb2b17ede76f5786fff747a2b73f6e8a6b7bab5/pyyaml-6.0.4-cp314-cp314-win_arm64.whl", hash = "sha256:33506a2620f0e7c49858f09cb44e99f144878d03af3d9c10aa136e9a1d103bcd", size = 151175, upload-time = "2026-11-20T23:36:45.191Z" }, + { url = "https://files.pythonhosted.org/packages/83/f0/e48b8e9736380a039a17506200c4c3080ef181ee86b0e8e2cd6c345ae78a/pyyaml-6.0.4-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:1db4d51d3c2c9545dd44c614febc4594240754f74b30d8e501415b118347f0d1", size = 193903, upload-time = "2026-11-20T23:36:33.086Z" }, + { url = "https://files.pythonhosted.org/packages/98/ba/682030d1e08f2e4bbd57f164b9085d37560386cf54f6299825e754b32d1a/pyyaml-6.0.4-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:93da48af92c84c4236578e330a514ca324362c0bb62894d8d2343363ed57ff03", size = 188971, upload-time = "2026-11-20T23:36:34.034Z" }, + { url = "https://files.pythonhosted.org/packages/e9/2b/4b29107aae981b4d4575945a73d6c73ebd407d27934dcf35a7daa8fbeb43/pyyaml-6.0.4-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3c7129bcee5c88c1450802cc6a95b690ee7c51bfcc7a9b60bbd9549a7a4fcbe6", size = 851356, upload-time = "2026-11-20T23:36:35.21Z" }, + { url = "https://files.pythonhosted.org/packages/12/d4/2b05dddc8f59c3762e67c8d5ac01c1759767ee6ea4aba183a01950644668/pyyaml-6.0.4-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:2018fda285d1289527a389e1b4ace1e2d3af410930f949136b55ecb0747744d1", size = 887294, upload-time = "2026-11-20T23:36:36.484Z" }, + { url = "https://files.pythonhosted.org/packages/3e/2a/ce3e0ff674c67b9e1706912aae61063581b3dba22142e60ccdaa64b25c75/pyyaml-6.0.4-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:15c52bb238a15bb4fd7e6342a5ac71d594507667c7fe0e5a5abbc0f6875d1e91", size = 850982, upload-time = "2026-11-20T23:36:38.247Z" }, + { url = "https://files.pythonhosted.org/packages/7e/ad/701d83221865b2512067a9ab2b8e062145af2d362cc2451e72c146ef34cf/pyyaml-6.0.4-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:ab874ebcc5c12c31c859a9e9fe159d688df1f7a099818ef8a35906264a8f5d6b", size = 822547, upload-time = "2026-11-20T23:36:39.852Z" }, + { url = "https://files.pythonhosted.org/packages/61/d1/d88b389313be382ddabd1bca86dbf5da31ac02ecbf29c893588aafb6e11f/pyyaml-6.0.4-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:62c5b5669b05dabf991a705f3a3601f57b65e95121a1d3e3a4ae4446c8632865", size = 845538, upload-time = "2026-11-20T23:36:41.285Z" }, + { url = "https://files.pythonhosted.org/packages/1a/a6/c25ff1b5ebc8bfb11a783a5fde40435f0459629af6f56f9487479bca9766/pyyaml-6.0.4-cp314-cp314t-win_amd64.whl", hash = "sha256:609e8efaffa5662da16b7d53eef76fc4eedbbe56fce5829b67ba808a6e35d399", size = 164060, upload-time = "2026-11-20T23:36:42.238Z" }, + { url = "https://files.pythonhosted.org/packages/08/ad/25d2ac566f0e2f4eb822c9c5e8d9a053406cbfff142273a072b194856823/pyyaml-6.0.4-cp314-cp314t-win_arm64.whl", hash = "sha256:a266cf55ee5cf63c1803432a61c6386e750e0012ca49d12d26ccb0ffd80b343a", size = 157379, upload-time = "2026-11-20T23:36:43.181Z" }, + { url = "https://files.pythonhosted.org/packages/e5/29/fb680bd299c2c6e004c1cc1914f8bad276c6014fe8debd5d6d61ea4c4ff4/pyyaml-6.0.4-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:12a155bc41509d71a2eb73e2191d9e400c1345ea99ac3d9946c31f40a4c840f8", size = 189560, upload-time = "2026-11-20T23:36:46.145Z" }, + { url = "https://files.pythonhosted.org/packages/af/6c/2ffdab56d7afeb039d957479a305516ddbaa08d0162d1e9165fb928e3aeb/pyyaml-6.0.4-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:070c22b6f490d6cc30912be9fb9ab1af9c752769b39b53616f6510c3f038ee6a", size = 181949, upload-time = "2026-11-20T23:36:47.065Z" }, + { url = "https://files.pythonhosted.org/packages/b3/07/3a20ed31a60084206ac20449583b0d1a42116b3c530d6857918e4ddbe4b6/pyyaml-6.0.4-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:872d2a592289061c1b987e335b3568a2616b474be02bd0608d8f551a385441cd", size = 803806, upload-time = "2026-11-20T23:36:48.145Z" }, + { url = "https://files.pythonhosted.org/packages/26/5b/3dd56027457b96e7e5ea2f4f5976e530d699884b4fd4e360e99e57fa6cca/pyyaml-6.0.4-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:914b19e17814315fbcca52031bf79b68237f3d87a948c584a667b18b468e4df7", size = 876808, upload-time = "2026-11-20T23:36:49.294Z" }, + { url = "https://files.pythonhosted.org/packages/b0/51/096a5495b33ff2da32f0c84f5bf8e042cf76f72641cba06ee9618ad01f4d/pyyaml-6.0.4-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c57e40928738c4a202852759f9e1ee2c7063429a9469ee1ac15651bbf7d69963", size = 833052, upload-time = "2026-11-20T23:36:50.505Z" }, + { url = "https://files.pythonhosted.org/packages/da/75/b4e86b5a27fcb9a9cf88e3b81d1b0c12cae2734311e508af18b93ff56286/pyyaml-6.0.4-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:8e0cd755ce5e9009fd95f9c553e5942478feb8f7dffa19435641fcdc3c20e8ca", size = 788983, upload-time = "2026-11-20T23:36:51.821Z" }, + { url = "https://files.pythonhosted.org/packages/2c/00/2a2cdad68237bcd416bd01688ecfb0e3fa1e68a841b74193db97ffd1c716/pyyaml-6.0.4-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:2c11be5ab4d9f603a598b5ce93a2064ae38087bdf1b384c5397170054cda4e36", size = 828806, upload-time = "2026-11-20T23:36:52.959Z" }, + { url = "https://files.pythonhosted.org/packages/a8/15/39efefc88dd6fbc3be23cef08a819f5e8bf9a6c0bcf003fc09d38dd0010e/pyyaml-6.0.4-cp315-cp315-win_amd64.whl", hash = "sha256:67da066ca12eb60114ea87f2ecbcca622fff0c205c743cc900437127564fabf6", size = 157467, upload-time = "2026-11-20T23:37:04.171Z" }, + { url = "https://files.pythonhosted.org/packages/40/1d/fddc53420d9c12e7d27c36a59fabf186ba1f6117314da4927dc40b2da19b/pyyaml-6.0.4-cp315-cp315-win_arm64.whl", hash = "sha256:573debb9fe3075423d4f823795a678580e597218c25baef178d532b124a25a25", size = 151203, upload-time = "2026-11-20T23:37:05.079Z" }, + { url = "https://files.pythonhosted.org/packages/fa/ea/48e62a25084fc4b317f8bcc5c9823ddaaa73a0c7769ca451dda6919ff491/pyyaml-6.0.4-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:c680622f85979f2ff59b4ae44c1ecb5566b2f0f0ffe5d0dc8b4bb6a0e916dabb", size = 193500, upload-time = "2026-11-20T23:36:54.416Z" }, + { url = "https://files.pythonhosted.org/packages/49/dd/8c4df6becc936125261607073fbcd55e1d902a8d53ae4e4893d53b9df0ef/pyyaml-6.0.4-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:18ea9bda247857fc0de05181675dc116b54c1b04ca3db71de5d2108c882823b7", size = 188474, upload-time = "2026-11-20T23:36:55.651Z" }, + { url = "https://files.pythonhosted.org/packages/d0/63/b60236ef09cbab7c5ce174aff59d49a3425b9a8e9bbe4690bd3b9b7d4fba/pyyaml-6.0.4-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6ac167ebebc0c387290406a337b9b5c8c343fa5f7928d5941e45a94b8ba3aa39", size = 848311, upload-time = "2026-11-20T23:36:56.961Z" }, + { url = "https://files.pythonhosted.org/packages/f6/3b/4b14f064ae5d6f69638a86bb7bf1a46d02bb4de083798e693a4a83b1418a/pyyaml-6.0.4-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:4a2a8f27d24d4cdc05aa11df5f4c08e13f30d9e6674809b6a5ddcfcba49a653a", size = 891181, upload-time = "2026-11-20T23:36:58.077Z" }, + { url = "https://files.pythonhosted.org/packages/01/36/4e0b01e380bf3695d34a4bf6b9272c529f4c8d3195c733687d64fb9f8f06/pyyaml-6.0.4-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e956541cc7a3fff2bb5b17aeb6c5bb42c86c8e6dafb5ebdd41a05e72e702076b", size = 855715, upload-time = "2026-11-20T23:36:59.165Z" }, + { url = "https://files.pythonhosted.org/packages/6d/a8/2784a29e687fa7a5882d47c925a98d1dbdd60ead521be14a9342c6a74ff9/pyyaml-6.0.4-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:8708f6ab9c2581ffa05f66dae3206bb0385949650537d7295fc7ab0d6454dd70", size = 818754, upload-time = "2026-11-20T23:37:00.248Z" }, + { url = "https://files.pythonhosted.org/packages/bb/85/62d54e223b4bc89ff85f087a5ce2648e5d929d3214d64613dbae17d5e045/pyyaml-6.0.4-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:a65339c24f2fb8d4419e06ceec1bda98bdcff727b3b533a81d5af6bb2dd34520", size = 845763, upload-time = "2026-11-20T23:37:01.331Z" }, + { url = "https://files.pythonhosted.org/packages/eb/40/6bd9090368664be984a83fd7fe64f8e044b067a52449679c309706e3199d/pyyaml-6.0.4-cp315-cp315t-win_amd64.whl", hash = "sha256:a3cc63af3d639d1609143711837b926183418260aae89ed95193c07b25b99d33", size = 163170, upload-time = "2026-11-20T23:37:02.3Z" }, + { url = "https://files.pythonhosted.org/packages/0d/22/468d36762a0c650cf2295052998eb1d419053335ea9ff48a043f5ae4d578/pyyaml-6.0.4-cp315-cp315t-win_arm64.whl", hash = "sha256:d276f23e2371deb5ee68dd252cc9c2402b806b54d8d2cc7efbb6c34c3a78d886", size = 156942, upload-time = "2026-11-20T23:37:03.209Z" }, ] [[package]] diff --git a/.github/workflows/action-tests.yml b/.github/workflows/action-tests.yml index 137fe2f..9aee6cf 100644 --- a/.github/workflows/action-tests.yml +++ b/.github/workflows/action-tests.yml @@ -43,9 +43,6 @@ jobs: - name: Set up uv uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2 - with: - python-version: "3.13" - enable-cache: false - name: Run the gateway-publish action tests working-directory: .github/actions/gateway-publish diff --git a/.github/workflows/gateway-publish.yml b/.github/workflows/gateway-publish.yml deleted file mode 100644 index a44894d..0000000 --- a/.github/workflows/gateway-publish.yml +++ /dev/null @@ -1,135 +0,0 @@ -# Publishes a dataset repo's metadata to the HDR UK Health Data Research Gateway as a new -# version of an existing dataset. Call it after semantic-release creates a release (see -# samples/release.gateway.yaml). Each call adds a Gateway version, even if nothing changed. -# -# The dataset must already exist on the Gateway, with its ID in gateway/gateway.yaml. -# Creating it is a one-off manual step (docs/workflows/gateway-publish.md), so this -# workflow never creates datasets and never writes to the repository. -# -# The validate job needs no secrets, so a broken release fails before anyone is asked to -# approve. The publish job runs in a GitHub environment (default `gateway`): give it -# required reviewers, and keep the credentials there as environment secrets. -name: HDR UK Gateway Publish - -on: - workflow_call: - inputs: - version: - description: Metadata version, major.minor.patch (a leading v is removed). Usually the release tag. - type: string - required: true - ref: - description: Git ref to publish from. Default the version input, which is the release tag. - type: string - default: "" - dataset-dir: - description: Directory holding gateway/ (default the repository root). - type: string - default: "." - schema: - description: LinkML schema. Default the only *.yaml in dataset-dir, else in dataset-dir/schemas. - type: string - default: "" - status: - description: DRAFT or ACTIVE. Default the status in gateway.yaml, else DRAFT. - type: string - default: "" - dry-run: - description: Print the request instead of sending it. - type: boolean - default: false - environment: - description: GitHub environment for the publish job. Create it, with required reviewers, before the first release. - type: string - default: gateway - base-url: - description: Gateway API base URL. - type: string - default: https://api.healthdatagateway.org/api - team-id: - description: Gateway team ID. Default team_id in gateway.yaml; if set, it must match. - type: string - default: "" - traser: - description: Validate with TRASER, as the Gateway does. false skips validation. - type: boolean - default: true - traser-url: - description: TRASER base URL. Default HDR UK's dev instance. - type: string - default: "" - secrets: - # Not required, so that dry runs work without them, and so that environment secrets - # can be used: a caller with `secrets: inherit` gets the publish job's environment - # secrets of the same name. - GATEWAY_APP_ID: - description: The Gateway Private App's App ID. - required: false - GATEWAY_CLIENT_ID: - description: The Gateway Private App's Client ID. - required: false - -permissions: {} - -jobs: - validate: - runs-on: ubuntu-latest - timeout-minutes: 10 - permissions: - contents: read - steps: - - name: Check out the release - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - ref: ${{ inputs.ref || inputs.version }} - persist-credentials: false - - # $/ is the repository of this workflow, at the commit that runs, so the action is - # the same version as the workflow that the caller pinned. - - name: Validate Gateway metadata - uses: $/.github/actions/gateway-publish - with: - command: validate - dataset-dir: ${{ inputs.dataset-dir }} - schema: ${{ inputs.schema }} - version: ${{ inputs.version }} - traser: ${{ inputs.traser }} - traser-url: ${{ inputs.traser-url }} - - publish: - needs: validate - runs-on: ubuntu-latest - timeout-minutes: 15 - environment: ${{ inputs.environment }} - permissions: - contents: read - # One publish at a time per repository. A queued run waits rather than being - # cancelled, so every release is published, in order. - concurrency: - group: gateway-publish-${{ github.repository }} - cancel-in-progress: false - steps: - - name: Check out the release - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - ref: ${{ inputs.ref || inputs.version }} - persist-credentials: false - - # Validates again (the same checks), sends the new version, then reads the dataset - # back and fails unless the version went up and the title matches. A failed update - # is not retried, because a retry could add a second version. - - name: Publish to the Gateway - uses: $/.github/actions/gateway-publish - with: - command: push - dataset-dir: ${{ inputs.dataset-dir }} - schema: ${{ inputs.schema }} - version: ${{ inputs.version }} - status: ${{ inputs.status }} - dry-run: ${{ inputs.dry-run }} - base-url: ${{ inputs.base-url }} - team-id: ${{ inputs.team-id }} - traser: ${{ inputs.traser }} - traser-url: ${{ inputs.traser-url }} - app-id: ${{ secrets.GATEWAY_APP_ID }} - client-id: ${{ secrets.GATEWAY_CLIENT_ID }} diff --git a/.github/workflows/gateway-validate.yml b/.github/workflows/gateway-validate.yml deleted file mode 100644 index de269e9..0000000 --- a/.github/workflows/gateway-validate.yml +++ /dev/null @@ -1,53 +0,0 @@ -# Checks a dataset repo's HDR UK Gateway metadata without publishing anything. Call it on -# pull requests (see samples/check.gateway.yaml). It needs no secrets, so it is safe for -# PRs from forks and Dependabot. -# -# It builds the metadata from the LinkML schema and gateway/metadata.yaml, then validates it -# with HDR UK's TRASER service, the way the Gateway does: against HDRUK 4.1.0, then -# translated to GWDM. -name: HDR UK Gateway Validate - -on: - workflow_call: - inputs: - dataset-dir: - description: Directory holding gateway/ (default the repository root). - type: string - default: "." - schema: - description: LinkML schema. Default the only *.yaml in dataset-dir, else in dataset-dir/schemas. - type: string - default: "" - traser: - description: Validate with TRASER, as the Gateway does. false skips validation. - type: boolean - default: true - traser-url: - description: TRASER base URL. Default HDR UK's dev instance. - type: string - default: "" - -permissions: {} - -jobs: - validate: - runs-on: ubuntu-latest - timeout-minutes: 10 - permissions: - contents: read - steps: - - name: Check out the repo - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - persist-credentials: false - - # $/ is the repository of this workflow, at the commit that runs, so the action is - # the same version as the workflow that the caller pinned. - - name: Validate Gateway metadata - uses: $/.github/actions/gateway-publish - with: - command: validate - dataset-dir: ${{ inputs.dataset-dir }} - schema: ${{ inputs.schema }} - traser: ${{ inputs.traser }} - traser-url: ${{ inputs.traser-url }} diff --git a/.github/workflows/gateway.yml b/.github/workflows/gateway.yml new file mode 100644 index 0000000..cae71f1 --- /dev/null +++ b/.github/workflows/gateway.yml @@ -0,0 +1,115 @@ +# Validates a dataset repo's HDR UK Gateway metadata and, with `publish: true`, publishes +# it as a new version of the dataset. Call it without inputs on pull requests (no secrets +# needed), and with `publish: true` after semantic-release creates a release. See +# docs/workflows/gateway.md. +name: HDR UK Gateway + +on: + workflow_call: + inputs: + publish: + description: Publish after validating. Needs the secrets and an existing dataset_id in gateway.yaml. + type: boolean + default: false + version: + description: Metadata version, major.minor.patch (a leading v is removed). Pass the release tag. + type: string + default: "0.0.0" + dataset-dir: + description: Directory holding gateway/. + type: string + default: "." + schema: + description: LinkML schema. Default the only *.yaml in dataset-dir, else in dataset-dir/schemas. + type: string + default: "" + status: + description: DRAFT or ACTIVE. Default the status in gateway.yaml. + type: string + default: "" + dry-run: + description: Print the publish request instead of sending it. + type: boolean + default: false + environment: + description: GitHub environment for the publish job; give it required reviewers. + type: string + default: gateway + base-url: + description: Gateway API base URL. + type: string + default: https://api.healthdatagateway.org/api + team-id: + description: Gateway team ID. Default team_id in gateway.yaml; if set, it must match. + type: string + default: "" + traser: + description: Validate with TRASER. false skips validation. + type: boolean + default: true + traser-url: + description: TRASER base URL. Default HDR UK's dev instance. + type: string + default: "" + secrets: + # Optional so PR checks and dry runs work without them. With `secrets: inherit` the + # publish job uses the environment's secrets of these names. + GATEWAY_APP_ID: + required: false + GATEWAY_CLIENT_ID: + required: false + +permissions: {} + +jobs: + validate: + runs-on: ubuntu-latest + timeout-minutes: 10 + permissions: + contents: read + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + # $/ is this workflow's repository at the commit that runs, so the action matches + # the version of the workflow the caller pinned. + - uses: $/.github/actions/gateway-publish + with: + command: validate + dataset-dir: ${{ inputs.dataset-dir }} + schema: ${{ inputs.schema }} + version: ${{ inputs.version }} + traser: ${{ inputs.traser }} + traser-url: ${{ inputs.traser-url }} + + publish: + if: inputs.publish + needs: validate + runs-on: ubuntu-latest + timeout-minutes: 15 + environment: ${{ inputs.environment }} + permissions: + contents: read + concurrency: + group: gateway-publish-${{ github.repository }} + cancel-in-progress: false + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + - uses: $/.github/actions/gateway-publish + with: + command: push + dataset-dir: ${{ inputs.dataset-dir }} + schema: ${{ inputs.schema }} + version: ${{ inputs.version }} + status: ${{ inputs.status }} + dry-run: ${{ inputs.dry-run }} + base-url: ${{ inputs.base-url }} + team-id: ${{ inputs.team-id }} + traser: ${{ inputs.traser }} + traser-url: ${{ inputs.traser-url }} + app-id: ${{ secrets.GATEWAY_APP_ID }} + client-id: ${{ secrets.GATEWAY_CLIENT_ID }} diff --git a/docs/workflows/gateway-publish.md b/docs/workflows/gateway-publish.md deleted file mode 100644 index 6bef102..0000000 --- a/docs/workflows/gateway-publish.md +++ /dev/null @@ -1,83 +0,0 @@ -# HDR UK Gateway Publish and Validate - -Two reusable workflows that publish a dataset's metadata to the [HDR UK Health Data Research Gateway](https://healthdatagateway.org) from a LinkML repo: - -- `gateway-validate.yml` builds the metadata and validates it with HDR UK's TRASER service, as the Gateway does. Run it on pull requests. It needs no secrets. -- `gateway-publish.yml` validates, then sends the metadata to the Gateway as a new version of an existing dataset. Run it after `semantic-release` creates a release. - -Both run the [gateway-publish action](../../.github/actions/gateway-publish/README.md). It combines: - -- the **LinkML schema**, which gives the tables, columns and permitted values; and -- **`gateway/metadata.yaml`**, the catalogue fields (title, abstract, coverage, access and so on), written by hand in the [HDRUK 4.1.0 schema](https://github.com/HDRUK/schemata-2/tree/master/hdr_schemata/models/HDRUK/4.1.0)'s shape. - -## Set up a dataset repo - -1. **Add `gateway/metadata.yaml`.** Use field names and nesting from the HDRUK 4.1.0 schema. Don't set `identifier`, `version`, `issued`, `modified`, `revisions`, `structuralMetadata` or `summary.dataCustodian`: the tool fills them, and the Gateway overwrites most of them. Leave out `provenance.temporal.endDate` for an ongoing dataset: the Gateway rejects `CONTINUOUS`. Any value starting `TODO` stops the build. -2. **Add `gateway/gateway.yaml`:** - - ```yaml - team_id: 74 # the Gateway team that owns the Private App - team_name: Nottingham University Hospitals - NHS Trust - status: DRAFT # or ACTIVE; every release publishes with this status - dataset_id: null # written by the one-off create (step 5) - pid: null - ``` - -3. **Add the PR check** ([sample](../../samples/check.gateway.yaml)), and check that it passes. -4. **Create the `gateway` environment** (Settings → Environments). Add required reviewers, and limit deployments to protected branches or tags. Add the Private App's credentials as environment secrets `GATEWAY_APP_ID` and `GATEWAY_CLIENT_ID` (from the app's Authentication tab on the Gateway). Create the environment before the first release: GitHub creates a missing environment automatically, without any protection. -5. **Create the dataset on the Gateway, once,** from a local checkout. This writes `dataset_id` and `pid` into `gateway/gateway.yaml`. Commit that change. - - ```sh - export GATEWAY_APP_ID=... GATEWAY_CLIENT_ID=... # don't put these in shell history or files in the repo - uv run --project /.github/actions/gateway-publish \ - gateway-publish create . --version 0.0.0 - ``` - -6. **Add the publish job** to the release workflow ([sample](../../samples/release.gateway.yaml)). - -The workflows never create datasets and never write to the repository. If `gateway.yaml` has no `dataset_id`, publishing fails with instructions. - -## `gateway-validate.yml` - -| Input | Required | Default | Description | -|---|---|---|---| -| `dataset-dir` | No | `.` | Directory holding `gateway/`. | -| `schema` | No | the only `*.yaml` in `dataset-dir`, else in `dataset-dir/schemas` | LinkML schema. | -| `traser` | No | `true` | Validate with HDR UK's TRASER service, as the Gateway does: against HDRUK 4.1.0, then translated to GWDM. This is the only validation. | -| `traser-url` | No | HDR UK's dev TRASER | TRASER base URL. | - -## `gateway-publish.yml` - -| Input | Required | Default | Description | -|---|---|---|---| -| `version` | Yes | — | Metadata version, `major.minor.patch` (a leading `v` is removed). Pass `release-tag` from `semantic-release`. | -| `ref` | No | `version` | Git ref to publish from. | -| `dataset-dir` | No | `.` | Directory holding `gateway/`. | -| `schema` | No | as above | LinkML schema. | -| `status` | No | `status` in `gateway.yaml`, else `DRAFT` | `DRAFT` or `ACTIVE`. | -| `dry-run` | No | `false` | Print the request instead of sending it. Needs no credentials. | -| `environment` | No | `gateway` | GitHub environment for the publish job. | -| `base-url` | No | `https://api.healthdatagateway.org/api` | Gateway API base URL. Credentials are only sent to known Gateway hosts. | -| `team-id` | No | `team_id` in `gateway.yaml` | Gateway team. If set, it must match `gateway.yaml`. | -| `traser` | No | `true` | As above. | -| `traser-url` | No | HDR UK's dev TRASER | As above. | - -| Secret | Required | Description | -|---|---|---| -| `GATEWAY_APP_ID` | For a real publish | The Private App's App ID. | -| `GATEWAY_CLIENT_ID` | For a real publish | The Private App's Client ID. | - -With `secrets: inherit`, the publish job uses the `gateway` environment's secrets of these names. To use repository secrets instead, pass them by name. - -The workflow has two jobs: - -1. **validate**: builds and validates the release, without secrets. A broken release fails here, before anyone is asked to approve. -2. **publish**: waits for the environment's reviewers, then validates again, sends a new version (`PUT /v3/teams/{team}/datasets/{id}`), reads the dataset back, and fails unless the version went up and the title matches. One publish runs at a time per repository. Reads are retried on server errors; the update is not, because a retry could add a second version. The output is in the job summary. - -## Things to know - -- **The repository is the source of truth.** Each release replaces the whole record and sets its status from `gateway.yaml`, so edits made in the Gateway's web UI are lost, and a dataset archived there becomes active again at the next release. -- **Every release adds a Gateway version**, even if the metadata didn't change. The Gateway labels them `1.0.0`, `2.0.0`, ...; our release version is kept in the metadata's `version` field. -- **Drafts skip the Gateway's validation.** The workflows always check with TRASER, so a draft that publishes should also pass when switched to `ACTIVE`. -- **To make a dataset public**, change `status` in `gateway.yaml` to `ACTIVE` in a PR. The next release publishes it. -- The Gateway API this uses is not in HDR UK's published documentation. If a publish fails unexpectedly, see the action's README. diff --git a/docs/workflows/gateway.md b/docs/workflows/gateway.md new file mode 100644 index 0000000..01d69d6 --- /dev/null +++ b/docs/workflows/gateway.md @@ -0,0 +1,77 @@ +# HDR UK Gateway + +Reusable workflow that publishes a dataset's metadata to the [HDR UK Health Data Research Gateway](https://healthdatagateway.org) from a LinkML repo. It always validates; with `publish: true` it also sends the metadata as a new version of the dataset. + +The metadata combines the LinkML schema (tables, columns and permitted values) with `gateway/metadata.yaml`, the catalogue fields written by hand in the [HDRUK 4.1.0 schema](https://github.com/HDRUK/schemata-2/tree/master/hdr_schemata/models/HDRUK/4.1.0)'s shape. Validation is done by HDR UK's TRASER service, the way the Gateway does it. + +## Set up a dataset repo + +1. **`gateway/metadata.yaml`:** HDRUK 4.1.0 field names and nesting. Don't set `identifier`, `version`, `issued`, `modified`, `revisions`, `structuralMetadata` or `summary.dataCustodian`; they're generated. Leave out `provenance.temporal.endDate` for an ongoing dataset (the Gateway rejects `CONTINUOUS`). Values starting `TODO` fail the build. +2. **`gateway/gateway.yaml`:** + + ```yaml + team_id: 74 + team_name: Nottingham University Hospitals - NHS Trust + status: DRAFT # or ACTIVE; every release publishes with this status + dataset_id: null # written by create (step 4) + pid: null + ``` + +3. **A `gateway` environment** (Settings → Environments) with required reviewers, and the Private App's credentials as environment secrets `GATEWAY_APP_ID` and `GATEWAY_CLIENT_ID`. Create it before the first release: GitHub creates a missing environment without protection. +4. **Create the dataset once**, from a local checkout, then commit `gateway/gateway.yaml`: + + ```sh + A=/.github/actions/gateway-publish + GATEWAY_APP_ID=... GATEWAY_CLIENT_ID=... \ + uv run --frozen --project "$A" python "$A/gateway_publish.py" create . --version 0.0.0 + ``` + +5. **Call the workflow** on PRs and after releases: + + ```yaml + # .github/workflows/check.gateway.yml + on: pull_request + jobs: + gateway: + uses: health-informatics-uon/workflows/.github/workflows/gateway.yml@ + permissions: + contents: read + ``` + + ```yaml + # in the release workflow, after semantic-release + gateway: + needs: release + if: needs.release.outputs.release-created == 'true' + uses: health-informatics-uon/workflows/.github/workflows/gateway.yml@ + permissions: + contents: read + with: + publish: true + version: ${{ needs.release.outputs.release-tag }} + secrets: inherit + ``` + +## Inputs + +| Input | Default | Description | +|---|---|---| +| `publish` | `false` | Publish after validating. | +| `version` | `0.0.0` | Metadata version, `major.minor.patch`; a leading `v` is removed. Pass the release tag. | +| `dataset-dir` | `.` | Directory holding `gateway/`. | +| `schema` | the only `*.yaml` in `dataset-dir`, else in `dataset-dir/schemas` | LinkML schema. | +| `status` | `status` in `gateway.yaml` | `DRAFT` or `ACTIVE`. | +| `dry-run` | `false` | Print the publish request instead of sending it. | +| `environment` | `gateway` | GitHub environment for the publish job. | +| `base-url` | `https://api.healthdatagateway.org/api` | Gateway API base URL. | +| `team-id` | `team_id` in `gateway.yaml` | Gateway team; if set, it must match `gateway.yaml`. | +| `traser` | `true` | Validate with TRASER; `false` skips validation. | +| `traser-url` | HDR UK's dev TRASER | TRASER base URL. | + +Secrets `GATEWAY_APP_ID` and `GATEWAY_CLIENT_ID` are needed only to publish. With `secrets: inherit`, the publish job uses the environment's secrets; you can pass repository secrets by name instead. + +## Things to know + +- **The repository is the source of truth.** Each release replaces the whole record and sets its status from `gateway.yaml`, so edits made in the Gateway's web UI are lost. +- **Every release adds a Gateway version**, even if nothing changed. After publishing, the job reads the dataset back and fails unless the version went up and the title matches. A failed update isn't retried, because a retry could add a second version. +- **To make a dataset public**, set `status: ACTIVE` in `gateway.yaml` in a PR; the next release publishes it. diff --git a/docs/workflows/readme.md b/docs/workflows/readme.md index 2d96586..129999f 100644 --- a/docs/workflows/readme.md +++ b/docs/workflows/readme.md @@ -15,5 +15,5 @@ If you're starting from scratch and want a complete working pipeline, see the [s | [dependency-review.md](dependency-review.md) | Scans dependency changes in pull requests for known vulnerabilities and licence issues. | | [pr-title.md](pr-title.md) | Validates that pull request titles follow conventional commit format — required if you're using semantic-release to drive versioning. | | [publish-pypi.md](publish-pypi.md) | Builds and publishes a Python package to PyPI using OIDC trusted publishing. **Currently broken** — reusable workflows cannot obtain the OIDC token PyPI requires. Inline the publish step instead (see the [PyPI sample](../samples/release.pypi.md)). | -| [gateway-publish.md](gateway-publish.md) | Builds HDR UK Gateway metadata from a LinkML schema plus hand-written catalogue fields, validates it on PRs (`gateway-validate.yml`, no secrets), and publishes it as a new Gateway version after a release (`gateway-publish.yml`, behind an approval environment). | +| [gateway.md](gateway.md) | Builds HDR UK Gateway metadata from a LinkML schema plus hand-written catalogue fields and validates it (on PRs, no secrets); with `publish: true`, publishes it as a new Gateway version after an environment approval. | | [dependabot.md](dependabot.md) | How to configure Dependabot in your repo so workflow version references are kept up to date automatically when this library releases a new version. | diff --git a/samples/check.gateway.yaml b/samples/check.gateway.yaml deleted file mode 100644 index bc702d0..0000000 --- a/samples/check.gateway.yaml +++ /dev/null @@ -1,13 +0,0 @@ -# Sample PR check for a dataset repo that publishes to the HDR UK Gateway: builds and -# validates the metadata on every PR, without secrets and without publishing. - -name: "Check Gateway metadata" - -on: - pull_request: - -jobs: - gateway: - uses: health-informatics-uon/workflows/.github/workflows/gateway-validate.yml@main - permissions: - contents: read diff --git a/samples/release.gateway.yaml b/samples/release.gateway.yaml deleted file mode 100644 index 3439a2d..0000000 --- a/samples/release.gateway.yaml +++ /dev/null @@ -1,40 +0,0 @@ -# Sample release workflow for a dataset repo that publishes to the HDR UK Gateway. -# semantic-release decides the version; if it created a release, the metadata is -# published as a new Gateway version after a reviewer approves the `gateway` environment. -# See docs/workflows/gateway-publish.md for the one-off setup (environment, secrets, -# gateway/ files, creating the dataset). -# Pin both workflows to the same release of health-informatics-uon/workflows. - -name: Release -permissions: - contents: write - pull-requests: write - issues: write - -on: - push: - branches: - - main - -jobs: - release: - uses: health-informatics-uon/workflows/.github/workflows/semantic-release.yml@main - with: - node-version: "24" - secrets: inherit - - gateway: - needs: release - if: needs.release.outputs.release-created == 'true' - uses: health-informatics-uon/workflows/.github/workflows/gateway-publish.yml@main - permissions: - contents: read - with: - # Release tag from semantic-release (do not change) - version: ${{ needs.release.outputs.release-tag }} - # Gives the publish job the `gateway` environment's GATEWAY_APP_ID and - # GATEWAY_CLIENT_ID secrets. To use repository secrets instead, pass them by name: - # secrets: - # GATEWAY_APP_ID: ${{ secrets.GATEWAY_APP_ID }} - # GATEWAY_CLIENT_ID: ${{ secrets.GATEWAY_CLIENT_ID }} - secrets: inherit From 4eb07827ae1a949cb21da0b71a8637b0046a7098 Mon Sep 17 00:00:00 2001 From: Andy Rae <1127507+AndyRae@users.noreply.github.com> Date: Mon, 23 Nov 2026 10:29:44 +0000 Subject: [PATCH 04/10] docs: datasets managed by an integration can only change via the repo The Gateway blocks web UI edits, including status changes, for datasets managed by an integration, so every change goes through a PR and a release. Co-Authored-By: Claude Opus 5.5 --- docs/workflows/gateway.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/workflows/gateway.md b/docs/workflows/gateway.md index 01d69d6..2cdf300 100644 --- a/docs/workflows/gateway.md +++ b/docs/workflows/gateway.md @@ -72,6 +72,6 @@ Secrets `GATEWAY_APP_ID` and `GATEWAY_CLIENT_ID` are needed only to publish. Wit ## Things to know -- **The repository is the source of truth.** Each release replaces the whole record and sets its status from `gateway.yaml`, so edits made in the Gateway's web UI are lost. +- **The repository is the only way to change the dataset.** The Gateway doesn't allow editing a dataset managed by an integration in its web UI, including its status. Every change to the metadata or the status goes through a PR and a release. - **Every release adds a Gateway version**, even if nothing changed. After publishing, the job reads the dataset back and fails unless the version went up and the title matches. A failed update isn't retried, because a retry could add a second version. -- **To make a dataset public**, set `status: ACTIVE` in `gateway.yaml` in a PR; the next release publishes it. +- **To make a dataset public, or take it back to draft**, change `status` in `gateway.yaml` in a PR; the next release applies it. From 0c1ae964cae6e29c072d043132ace8f999090fc3 Mon Sep 17 00:00:00 2001 From: Andy Rae <1127507+AndyRae@users.noreply.github.com> Date: Mon, 23 Nov 2026 15:59:49 +0000 Subject: [PATCH 05/10] refactor: pass the Gateway and TRASER URLs to the script explicitly The script takes --gateway-url and --traser-url instead of falling back to built-in defaults; the defaults live only in the workflow inputs. The team comes only from gateway.yaml. Co-Authored-By: Claude Opus 5.5 --- .github/actions/gateway-publish/action.yml | 14 ++++------- .../gateway-publish/gateway_publish.py | 24 +++++++++---------- .../gateway-publish/test_gateway_publish.py | 19 ++++++++------- .github/workflows/gateway.yml | 10 +++----- docs/workflows/gateway.md | 7 +++--- 5 files changed, 33 insertions(+), 41 deletions(-) diff --git a/.github/actions/gateway-publish/action.yml b/.github/actions/gateway-publish/action.yml index c8b902e..00fca35 100644 --- a/.github/actions/gateway-publish/action.yml +++ b/.github/actions/gateway-publish/action.yml @@ -27,14 +27,11 @@ inputs: description: Validate with TRASER. false skips validation. default: "true" traser-url: - description: TRASER base URL. Default HDR UK's dev instance. - default: "" + description: TRASER base URL. + required: true base-url: description: Gateway API base URL. - default: https://api.healthdatagateway.org/api - team-id: - description: Gateway team ID. Default team_id in gateway.yaml; if set, it must match. - default: "" + required: true app-id: description: The Private App's App ID (push only). default: "" @@ -61,12 +58,11 @@ runs: DRY_RUN: ${{ inputs.dry-run }} TRASER: ${{ inputs.traser }} TRASER_URL: ${{ inputs.traser-url }} - GATEWAY_BASE_URL: ${{ inputs.base-url }} - GATEWAY_TEAM_ID: ${{ inputs.team-id }} + GATEWAY_URL: ${{ inputs.base-url }} GATEWAY_APP_ID: ${{ inputs.app-id }} GATEWAY_CLIENT_ID: ${{ inputs.client-id }} run: | - args=("$COMMAND" "$DATASET_DIR" --version "$VERSION") + args=("$COMMAND" "$DATASET_DIR" --version "$VERSION" --gateway-url "$GATEWAY_URL" --traser-url "$TRASER_URL") if [ -n "$SCHEMA" ]; then args+=(--schema "$SCHEMA"); fi if [ -n "$STATUS" ]; then args+=(--status "$STATUS"); fi if [ "$DRY_RUN" = "true" ]; then args+=(--dry-run); fi diff --git a/.github/actions/gateway-publish/gateway_publish.py b/.github/actions/gateway-publish/gateway_publish.py index ede9dc7..013ce52 100644 --- a/.github/actions/gateway-publish/gateway_publish.py +++ b/.github/actions/gateway-publish/gateway_publish.py @@ -37,8 +37,6 @@ SCHEMA = ("HDRUK", "4.1.0") GWDM_VERSION = "2.2" # what the live Gateway stores -GATEWAY_URL = "https://api.healthdatagateway.org/api" -TRASER_URL = "https://hdr-gateway-traser-dev-qmnkcg5qjq-ew.a.run.app" STATUSES = ("DRAFT", "ACTIVE") # Filled by build; metadata.yaml must not set them. GENERATED = ("identifier", "version", "issued", "modified", "revisions", "structuralMetadata") @@ -147,9 +145,9 @@ def build(root: Path, schema: Path | None, version: str, now: datetime | None = }, gateway -def traser_check(payload: dict) -> None: +def traser_check(payload: dict, traser_url: str) -> None: """Make the call the Gateway makes for ACTIVE datasets; raise with TRASER's errors.""" - with httpx.Client(base_url=os.environ.get("TRASER_URL") or TRASER_URL, timeout=120, transport=transport) as client: + with httpx.Client(base_url=traser_url, timeout=120, transport=transport) as client: response = client.post("/translate", params={ "input_schema": SCHEMA[0], "input_version": SCHEMA[1], "output_schema": "GWDM", "output_version": GWDM_VERSION, "validate_input": "1", "validate_output": "1", @@ -170,12 +168,12 @@ def traser_check(payload: dict) -> None: raise Error("\n".join([f"TRASER rejected the metadata (HTTP {response.status_code}): {body.get('message')}", *lines])) -def gateway_client() -> httpx.Client: +def gateway_client(gateway_url: str) -> httpx.Client: missing = [n for n in ("GATEWAY_APP_ID", "GATEWAY_CLIENT_ID") if not os.environ.get(n)] if missing: raise Error(f"Missing environment variable(s): {', '.join(missing)}") return httpx.Client( - base_url=(os.environ.get("GATEWAY_BASE_URL") or GATEWAY_URL).rstrip("/"), + base_url=gateway_url, headers={"x-application-id": os.environ["GATEWAY_APP_ID"], "x-client-id": os.environ["GATEWAY_CLIENT_ID"]}, timeout=TIMEOUT, transport=transport, @@ -224,6 +222,8 @@ def main(argv: list[str] | None = None) -> None: parser.add_argument("--version", default="0.0.0", help="metadata version, major.minor.patch") parser.add_argument("--status", choices=STATUSES, help="default: gateway.yaml's status, else DRAFT") parser.add_argument("--dry-run", action="store_true", help="push: print the request instead of sending it") + parser.add_argument("--gateway-url", required=True, help="Gateway API base URL, e.g. https://api.healthdatagateway.org/api") + parser.add_argument("--traser-url", required=True, help="TRASER base URL") parser.add_argument("--skip-traser", action="store_true") args = parser.parse_args(argv) @@ -232,21 +232,19 @@ def main(argv: list[str] | None = None) -> None: if args.skip_traser: print("Built; TRASER check skipped") else: - traser_check(payload) + traser_check(payload, args.traser_url) print(f"Valid {SCHEMA[0]} {SCHEMA[1]}; translates to GWDM {GWDM_VERSION} (TRASER)") if args.command == "validate": return status = args.status or gateway.get("status") or "DRAFT" - team = int(os.environ.get("GATEWAY_TEAM_ID") or gateway["team_id"]) - if team != gateway["team_id"]: - raise Error(f"gateway.yaml is for team {gateway['team_id']}, but GATEWAY_TEAM_ID is {team}") + team = gateway["team_id"] datasets = f"/v2/teams/{team}/datasets" if args.command == "create": if gateway.get("dataset_id"): raise Error(f"gateway.yaml already has dataset_id {gateway['dataset_id']}; use push") - with gateway_client() as client: + with gateway_client(args.gateway_url) as client: dataset_id = call(client, "POST", datasets, json=body(payload, status), params={"input_schema": SCHEMA[0], "input_version": SCHEMA[1]})["data"] record_created(args.dataset / "gateway" / "gateway.yaml", dataset_id, None) # never lose the ID @@ -259,10 +257,10 @@ def main(argv: list[str] | None = None) -> None: if not dataset_id: raise Error("gateway.yaml has no dataset_id: run `create` once and commit gateway.yaml") if args.dry_run: - print(f"DRY RUN: PUT /v3/teams/{team}/datasets/{dataset_id}") + print(f"DRY RUN: PUT {args.gateway_url}/v3/teams/{team}/datasets/{dataset_id}") print(json.dumps(body(payload, status), indent=2, ensure_ascii=False)) return - with gateway_client() as client: + with gateway_client(args.gateway_url) as client: before, _ = latest(client, team, dataset_id) # Not retried: a retry could add a second version. call(client, "PUT", f"/v3/teams/{team}/datasets/{dataset_id}", json=body(payload, status)) diff --git a/.github/actions/gateway-publish/test_gateway_publish.py b/.github/actions/gateway-publish/test_gateway_publish.py index 6cac484..4f62567 100644 --- a/.github/actions/gateway-publish/test_gateway_publish.py +++ b/.github/actions/gateway-publish/test_gateway_publish.py @@ -40,6 +40,8 @@ startDate: 2009-01-01 """ +URLS = ["--gateway-url", "https://gateway.test/api", "--traser-url", "https://traser.test"] + GATEWAY = """# comment kept team_id: 74 team_name: NUH @@ -58,7 +60,6 @@ def dataset(tmp_path, monkeypatch): (tmp_path / "gateway" / "gateway.yaml").write_text(GATEWAY) monkeypatch.setenv("GATEWAY_APP_ID", "app-secret") monkeypatch.setenv("GATEWAY_CLIENT_ID", "client-secret") - monkeypatch.delenv("GATEWAY_TEAM_ID", raising=False) return tmp_path @@ -116,15 +117,15 @@ def test_build_errors(dataset, metadata, version, error): def test_create_then_push(dataset, gateway, capsys): - gp.main(["create", str(dataset), "--version", "1.0.0"]) + gp.main(["create", str(dataset), "--version", "1.0.0", *URLS]) gateway_yaml = (dataset / "gateway" / "gateway.yaml").read_text() assert "# comment kept" in gateway_yaml and "dataset_id: 2080" in gateway_yaml and "pid: pid-1" in gateway_yaml post = next(r for r in gateway.requests if r.method == "POST" and r.url.path != "/translate") - assert post.url.path == "/api/v2/teams/74/datasets" + assert str(post.url).startswith("https://gateway.test/api/v2/teams/74/datasets") assert post.headers["x-application-id"] == "app-secret" assert json.loads(post.content)["status"] == "DRAFT" - gp.main(["push", str(dataset), "--version", "1.1.0", "--status", "ACTIVE"]) + gp.main(["push", str(dataset), "--version", "1.1.0", "--status", "ACTIVE", *URLS]) put = next(r for r in gateway.requests if r.method == "PUT") assert put.url.path == "/api/v3/teams/74/datasets/2080" body = json.loads(put.content) @@ -138,20 +139,20 @@ def test_create_then_push(dataset, gateway, capsys): def test_traser_rejection_stops_push(dataset, gateway, capsys): gateway.traser_status = 400 with pytest.raises(SystemExit): - gp.main(["create", str(dataset), "--version", "1.0.0"]) + gp.main(["create", str(dataset), "--version", "1.0.0", *URLS]) assert "/summary: bad" in capsys.readouterr().err - assert all(r.url.path == "/translate" for r in gateway.requests) + assert all(r.url.host == "traser.test" for r in gateway.requests) def test_push_needs_dataset_id(dataset, gateway, capsys): with pytest.raises(SystemExit): - gp.main(["push", str(dataset), "--version", "1.0.0"]) + gp.main(["push", str(dataset), "--version", "1.0.0", *URLS]) assert "run `create` once" in capsys.readouterr().err def test_dry_run_sends_nothing(dataset, gateway, monkeypatch, capsys): monkeypatch.delenv("GATEWAY_APP_ID") (dataset / "gateway" / "gateway.yaml").write_text(GATEWAY.replace("dataset_id: null", "dataset_id: 5")) - gp.main(["push", str(dataset), "--version", "2.0.0", "--dry-run", "--skip-traser"]) - assert "PUT /v3/teams/74/datasets/5" in capsys.readouterr().out + gp.main(["push", str(dataset), "--version", "2.0.0", "--dry-run", "--skip-traser", *URLS]) + assert "PUT https://gateway.test/api/v3/teams/74/datasets/5" in capsys.readouterr().out assert gateway.requests == [] diff --git a/.github/workflows/gateway.yml b/.github/workflows/gateway.yml index cae71f1..c9eb12d 100644 --- a/.github/workflows/gateway.yml +++ b/.github/workflows/gateway.yml @@ -39,18 +39,14 @@ on: description: Gateway API base URL. type: string default: https://api.healthdatagateway.org/api - team-id: - description: Gateway team ID. Default team_id in gateway.yaml; if set, it must match. - type: string - default: "" traser: description: Validate with TRASER. false skips validation. type: boolean default: true traser-url: - description: TRASER base URL. Default HDR UK's dev instance. + description: TRASER base URL. type: string - default: "" + default: https://hdr-gateway-traser-dev-qmnkcg5qjq-ew.a.run.app secrets: # Optional so PR checks and dry runs work without them. With `secrets: inherit` the # publish job uses the environment's secrets of these names. @@ -80,6 +76,7 @@ jobs: dataset-dir: ${{ inputs.dataset-dir }} schema: ${{ inputs.schema }} version: ${{ inputs.version }} + base-url: ${{ inputs.base-url }} traser: ${{ inputs.traser }} traser-url: ${{ inputs.traser-url }} @@ -108,7 +105,6 @@ jobs: status: ${{ inputs.status }} dry-run: ${{ inputs.dry-run }} base-url: ${{ inputs.base-url }} - team-id: ${{ inputs.team-id }} traser: ${{ inputs.traser }} traser-url: ${{ inputs.traser-url }} app-id: ${{ secrets.GATEWAY_APP_ID }} diff --git a/docs/workflows/gateway.md b/docs/workflows/gateway.md index 2cdf300..3d7f2de 100644 --- a/docs/workflows/gateway.md +++ b/docs/workflows/gateway.md @@ -23,7 +23,9 @@ The metadata combines the LinkML schema (tables, columns and permitted values) w ```sh A=/.github/actions/gateway-publish GATEWAY_APP_ID=... GATEWAY_CLIENT_ID=... \ - uv run --frozen --project "$A" python "$A/gateway_publish.py" create . --version 0.0.0 + uv run --frozen --project "$A" python "$A/gateway_publish.py" create . --version 0.0.0 \ + --gateway-url https://api.healthdatagateway.org/api \ + --traser-url https://hdr-gateway-traser-dev-qmnkcg5qjq-ew.a.run.app ``` 5. **Call the workflow** on PRs and after releases: @@ -64,9 +66,8 @@ The metadata combines the LinkML schema (tables, columns and permitted values) w | `dry-run` | `false` | Print the publish request instead of sending it. | | `environment` | `gateway` | GitHub environment for the publish job. | | `base-url` | `https://api.healthdatagateway.org/api` | Gateway API base URL. | -| `team-id` | `team_id` in `gateway.yaml` | Gateway team; if set, it must match `gateway.yaml`. | | `traser` | `true` | Validate with TRASER; `false` skips validation. | -| `traser-url` | HDR UK's dev TRASER | TRASER base URL. | +| `traser-url` | `https://hdr-gateway-traser-dev-qmnkcg5qjq-ew.a.run.app` (HDR UK's dev instance) | TRASER base URL. | Secrets `GATEWAY_APP_ID` and `GATEWAY_CLIENT_ID` are needed only to publish. With `secrets: inherit`, the publish job uses the environment's secrets; you can pass repository secrets by name instead. From adaf13365d8761ff2b4aa43413422273a5bc8d5d Mon Sep 17 00:00:00 2001 From: Andy Rae <1127507+AndyRae@users.noreply.github.com> Date: Mon, 23 Nov 2026 16:11:05 +0000 Subject: [PATCH 06/10] refactor: make gateway_publish.py easier to review Split main() into validate, create and push functions. Require --version for create and push, so publishing without a version fails instead of publishing 0.0.0. Turn network errors into clear messages, warning that a failed write may still have been applied. Comment the conventions a reader can't infer. Co-Authored-By: Claude Opus 5.5 --- .github/actions/gateway-publish/action.yml | 7 +- .../gateway-publish/gateway_publish.py | 126 +++++++++++------- .github/workflows/gateway.yml | 4 +- docs/workflows/gateway.md | 2 +- 4 files changed, 83 insertions(+), 56 deletions(-) diff --git a/.github/actions/gateway-publish/action.yml b/.github/actions/gateway-publish/action.yml index 00fca35..770b654 100644 --- a/.github/actions/gateway-publish/action.yml +++ b/.github/actions/gateway-publish/action.yml @@ -15,8 +15,8 @@ inputs: description: LinkML schema. Default the only *.yaml in dataset-dir, else in dataset-dir/schemas. default: "" version: - description: Metadata version, major.minor.patch (a leading v is removed). - default: "0.0.0" + description: Metadata version, major.minor.patch (a leading v is removed). Required for push. + default: "" status: description: DRAFT or ACTIVE. Default the status in gateway.yaml. default: "" @@ -62,7 +62,8 @@ runs: GATEWAY_APP_ID: ${{ inputs.app-id }} GATEWAY_CLIENT_ID: ${{ inputs.client-id }} run: | - args=("$COMMAND" "$DATASET_DIR" --version "$VERSION" --gateway-url "$GATEWAY_URL" --traser-url "$TRASER_URL") + args=("$COMMAND" "$DATASET_DIR" --gateway-url "$GATEWAY_URL" --traser-url "$TRASER_URL") + if [ -n "$VERSION" ]; then args+=(--version "$VERSION"); fi if [ -n "$SCHEMA" ]; then args+=(--schema "$SCHEMA"); fi if [ -n "$STATUS" ]; then args+=(--status "$STATUS"); fi if [ "$DRY_RUN" = "true" ]; then args+=(--dry-run); fi diff --git a/.github/actions/gateway-publish/gateway_publish.py b/.github/actions/gateway-publish/gateway_publish.py index 013ce52..3b0b862 100644 --- a/.github/actions/gateway-publish/gateway_publish.py +++ b/.github/actions/gateway-publish/gateway_publish.py @@ -87,6 +87,7 @@ def structural_metadata(schema: Path) -> dict: "name": slot.name, "dataType": "string" if enum else slot.range or "string", "description": (slot.description or "").strip() or None, # HDRUK rejects "" + # Our LinkML schemas mark sensitive slots with a `sensitivity` annotation. "sensitive": "sensitivity" in slot.annotations, } if enum: @@ -132,6 +133,7 @@ def build(root: Path, schema: Path | None, version: str, now: datetime | None = stamp = (now or datetime.now(UTC)).strftime("%Y-%m-%dT%H:%M:%S.000Z") summary = metadata.get("summary", {}) return { + # The Gateway sets its own pid as the identifier; null is valid before create. "identifier": gateway.get("pid"), "version": version, "revisions": [], @@ -147,14 +149,19 @@ def build(root: Path, schema: Path | None, version: str, now: datetime | None = def traser_check(payload: dict, traser_url: str) -> None: """Make the call the Gateway makes for ACTIVE datasets; raise with TRASER's errors.""" - with httpx.Client(base_url=traser_url, timeout=120, transport=transport) as client: - response = client.post("/translate", params={ - "input_schema": SCHEMA[0], "input_version": SCHEMA[1], "output_schema": "GWDM", - "output_version": GWDM_VERSION, "validate_input": "1", "validate_output": "1", - }, json={"metadata": payload, "extra": { - "id": "placeholder", "pid": "placeholder", "datasetType": "Health and disease", - "publisherId": "placeholder", "publisherName": "placeholder", - }}) + try: + with httpx.Client(base_url=traser_url, timeout=120, transport=transport) as client: + response = client.post("/translate", params={ + "input_schema": SCHEMA[0], "input_version": SCHEMA[1], "output_schema": "GWDM", + "output_version": GWDM_VERSION, "validate_input": "1", "validate_output": "1", + }, json={"metadata": payload, "extra": { + # The Gateway adds this block for GWDM's required fields; the values don't + # affect validation. + "id": "placeholder", "pid": "placeholder", "datasetType": "Health and disease", + "publisherId": "placeholder", "publisherName": "placeholder", + }}) + except httpx.HTTPError as e: + raise Error(f"Could not reach TRASER at {traser_url}: {e}") from None if response.is_success: return try: @@ -181,7 +188,13 @@ def gateway_client(gateway_url: str) -> httpx.Client: def call(client: httpx.Client, method: str, path: str, **kwargs) -> dict: - response = client.request(method, path, **kwargs) + try: + response = client.request(method, path, **kwargs) + except httpx.HTTPError as e: + message = f"Gateway {method} {path} failed: {e}" + if method != "GET": + message += ". The change may still have been applied: check the dataset on the Gateway before re-running." + raise Error(message) from None if not response.is_success: try: message = response.json().get("message") @@ -214,60 +227,73 @@ def record_created(path: Path, dataset_id: int, pid: str | None) -> None: path.write_text(text) +def validate(args: argparse.Namespace) -> tuple[dict, dict]: + """Build the payload and check it with TRASER. Returns (payload, gateway.yaml).""" + payload, gateway = build(args.dataset, args.schema, args.version or "0.0.0") + if args.skip_traser: + print("Built; TRASER check skipped") + else: + traser_check(payload, args.traser_url) + print(f"Valid {SCHEMA[0]} {SCHEMA[1]}; translates to GWDM {GWDM_VERSION} (TRASER)") + return payload, gateway + + +def create(args: argparse.Namespace) -> None: + """Create the dataset on the Gateway, once, and record its ID in gateway.yaml.""" + payload, gateway = validate(args) + if gateway.get("dataset_id"): + raise Error(f"gateway.yaml already has dataset_id {gateway['dataset_id']}; use push") + status = args.status or gateway.get("status") or "DRAFT" + datasets = f"/v2/teams/{gateway['team_id']}/datasets" + gateway_yaml = args.dataset / "gateway" / "gateway.yaml" + with gateway_client(args.gateway_url) as client: + dataset_id = call(client, "POST", datasets, json=body(payload, status), + params={"input_schema": SCHEMA[0], "input_version": SCHEMA[1]})["data"] + record_created(gateway_yaml, dataset_id, None) # save the ID first, so it is never lost + pid = call(client, "GET", f"{datasets}/{dataset_id}")["data"].get("pid") + record_created(gateway_yaml, dataset_id, pid) + print(f"Created {status} dataset {dataset_id}; commit gateway/gateway.yaml") + + +def push(args: argparse.Namespace) -> None: + """Send the payload as a new version of the dataset, then check it arrived.""" + payload, gateway = validate(args) + dataset_id = gateway.get("dataset_id") + if not dataset_id: + raise Error("gateway.yaml has no dataset_id: run `create` once and commit gateway.yaml") + status = args.status or gateway.get("status") or "DRAFT" + team = gateway["team_id"] + if args.dry_run: + print(f"DRY RUN: PUT {args.gateway_url}/v3/teams/{team}/datasets/{dataset_id}") + print(json.dumps(body(payload, status), indent=2, ensure_ascii=False)) + return + with gateway_client(args.gateway_url) as client: + before, _ = latest(client, team, dataset_id) + # Not retried: a retry could add a second version. + call(client, "PUT", f"/v3/teams/{team}/datasets/{dataset_id}", json=body(payload, status)) + after, title = latest(client, team, dataset_id) + print(f"Dataset {dataset_id}: version {before} -> {after}, status {status}") + if after <= before or title != payload["summary"]["title"]: + raise Error(f"Read-back check failed: version {after}, title {title!r}") + + def main(argv: list[str] | None = None) -> None: parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter) parser.add_argument("command", choices=("validate", "create", "push")) parser.add_argument("dataset", type=Path, help="dataset directory (holds gateway/)") parser.add_argument("--schema", type=Path, help="LinkML schema (default: the only *.yaml in DIR, else DIR/schemas)") - parser.add_argument("--version", default="0.0.0", help="metadata version, major.minor.patch") + parser.add_argument("--version", help="metadata version, major.minor.patch; required for create and push") parser.add_argument("--status", choices=STATUSES, help="default: gateway.yaml's status, else DRAFT") parser.add_argument("--dry-run", action="store_true", help="push: print the request instead of sending it") parser.add_argument("--gateway-url", required=True, help="Gateway API base URL, e.g. https://api.healthdatagateway.org/api") parser.add_argument("--traser-url", required=True, help="TRASER base URL") parser.add_argument("--skip-traser", action="store_true") args = parser.parse_args(argv) + if args.command != "validate" and not args.version: + parser.error(f"--version is required for {args.command}") try: - payload, gateway = build(args.dataset, args.schema, args.version) - if args.skip_traser: - print("Built; TRASER check skipped") - else: - traser_check(payload, args.traser_url) - print(f"Valid {SCHEMA[0]} {SCHEMA[1]}; translates to GWDM {GWDM_VERSION} (TRASER)") - if args.command == "validate": - return - - status = args.status or gateway.get("status") or "DRAFT" - team = gateway["team_id"] - datasets = f"/v2/teams/{team}/datasets" - - if args.command == "create": - if gateway.get("dataset_id"): - raise Error(f"gateway.yaml already has dataset_id {gateway['dataset_id']}; use push") - with gateway_client(args.gateway_url) as client: - dataset_id = call(client, "POST", datasets, json=body(payload, status), - params={"input_schema": SCHEMA[0], "input_version": SCHEMA[1]})["data"] - record_created(args.dataset / "gateway" / "gateway.yaml", dataset_id, None) # never lose the ID - pid = call(client, "GET", f"{datasets}/{dataset_id}")["data"].get("pid") - record_created(args.dataset / "gateway" / "gateway.yaml", dataset_id, pid) - print(f"Created {status} dataset {dataset_id}; commit gateway/gateway.yaml") - return - - dataset_id = gateway.get("dataset_id") - if not dataset_id: - raise Error("gateway.yaml has no dataset_id: run `create` once and commit gateway.yaml") - if args.dry_run: - print(f"DRY RUN: PUT {args.gateway_url}/v3/teams/{team}/datasets/{dataset_id}") - print(json.dumps(body(payload, status), indent=2, ensure_ascii=False)) - return - with gateway_client(args.gateway_url) as client: - before, _ = latest(client, team, dataset_id) - # Not retried: a retry could add a second version. - call(client, "PUT", f"/v3/teams/{team}/datasets/{dataset_id}", json=body(payload, status)) - after, title = latest(client, team, dataset_id) - print(f"Dataset {dataset_id}: version {before} -> {after}, status {status}") - if after <= before or title != payload["summary"]["title"]: - raise Error(f"Read-back check failed: version {after}, title {title!r}") + {"validate": validate, "create": create, "push": push}[args.command](args) except Error as e: print(f"error: {e}", file=sys.stderr) sys.exit(1) diff --git a/.github/workflows/gateway.yml b/.github/workflows/gateway.yml index c9eb12d..85c5230 100644 --- a/.github/workflows/gateway.yml +++ b/.github/workflows/gateway.yml @@ -12,9 +12,9 @@ on: type: boolean default: false version: - description: Metadata version, major.minor.patch (a leading v is removed). Pass the release tag. + description: Metadata version, major.minor.patch (a leading v is removed). Pass the release tag; required to publish. type: string - default: "0.0.0" + default: "" dataset-dir: description: Directory holding gateway/. type: string diff --git a/docs/workflows/gateway.md b/docs/workflows/gateway.md index 3d7f2de..c382f9f 100644 --- a/docs/workflows/gateway.md +++ b/docs/workflows/gateway.md @@ -59,7 +59,7 @@ The metadata combines the LinkML schema (tables, columns and permitted values) w | Input | Default | Description | |---|---|---| | `publish` | `false` | Publish after validating. | -| `version` | `0.0.0` | Metadata version, `major.minor.patch`; a leading `v` is removed. Pass the release tag. | +| `version` | — | Metadata version, `major.minor.patch`; a leading `v` is removed. Pass the release tag; required to publish. | | `dataset-dir` | `.` | Directory holding `gateway/`. | | `schema` | the only `*.yaml` in `dataset-dir`, else in `dataset-dir/schemas` | LinkML schema. | | `status` | `status` in `gateway.yaml` | `DRAFT` or `ACTIVE`. | From 371cfe0f4423307022278f307746d2505c93e883 Mon Sep 17 00:00:00 2001 From: Andy Rae <1127507+AndyRae@users.noreply.github.com> Date: Tue, 24 Nov 2026 12:47:08 +0000 Subject: [PATCH 07/10] refactor: create prints the dataset ID instead of writing gateway.yaml The script never writes to the dataset repo. create prints the new dataset_id (as soon as the Gateway returns it) and pid, and a person adds them to gateway/gateway.yaml and commits. Co-Authored-By: Claude Opus 5.5 --- .../gateway-publish/gateway_publish.py | 22 +++++-------------- .../gateway-publish/test_gateway_publish.py | 8 ++++--- docs/workflows/gateway.md | 4 ++-- 3 files changed, 12 insertions(+), 22 deletions(-) diff --git a/.github/actions/gateway-publish/gateway_publish.py b/.github/actions/gateway-publish/gateway_publish.py index 3b0b862..b503c46 100644 --- a/.github/actions/gateway-publish/gateway_publish.py +++ b/.github/actions/gateway-publish/gateway_publish.py @@ -7,7 +7,7 @@ Commands: validate DIR build, then check with TRASER - create DIR --version V once per dataset; writes dataset_id and pid to gateway.yaml + create DIR --version V once per dataset; prints the dataset_id and pid to add to gateway.yaml push DIR --version V validate, PUT a new version, read it back Gateway API notes (HDR UK's integration docs describe a retired API): @@ -216,17 +216,6 @@ def body(payload: dict, status: str) -> dict: return {"metadata": envelope, "create_origin": "API", "status": status} -def record_created(path: Path, dataset_id: int, pid: str | None) -> None: - """Write dataset_id and pid into gateway.yaml, keeping its comments.""" - text = path.read_text() - for key, value in (("dataset_id", dataset_id), ("pid", pid)): - line = f"{key}: {'null' if value is None else value}" - text, n = re.subn(rf"^{key}:.*$", line, text, count=1, flags=re.MULTILINE) - if not n: - text = text.rstrip("\n") + f"\n{line}\n" - path.write_text(text) - - def validate(args: argparse.Namespace) -> tuple[dict, dict]: """Build the payload and check it with TRASER. Returns (payload, gateway.yaml).""" payload, gateway = build(args.dataset, args.schema, args.version or "0.0.0") @@ -239,20 +228,19 @@ def validate(args: argparse.Namespace) -> tuple[dict, dict]: def create(args: argparse.Namespace) -> None: - """Create the dataset on the Gateway, once, and record its ID in gateway.yaml.""" + """Create the dataset on the Gateway, once. A person adds the printed ID to gateway.yaml.""" payload, gateway = validate(args) if gateway.get("dataset_id"): raise Error(f"gateway.yaml already has dataset_id {gateway['dataset_id']}; use push") status = args.status or gateway.get("status") or "DRAFT" datasets = f"/v2/teams/{gateway['team_id']}/datasets" - gateway_yaml = args.dataset / "gateway" / "gateway.yaml" with gateway_client(args.gateway_url) as client: dataset_id = call(client, "POST", datasets, json=body(payload, status), params={"input_schema": SCHEMA[0], "input_version": SCHEMA[1]})["data"] - record_created(gateway_yaml, dataset_id, None) # save the ID first, so it is never lost + # Print the ID before anything else can fail, so it is never lost. + print(f"Created {status} dataset {dataset_id}", flush=True) pid = call(client, "GET", f"{datasets}/{dataset_id}")["data"].get("pid") - record_created(gateway_yaml, dataset_id, pid) - print(f"Created {status} dataset {dataset_id}; commit gateway/gateway.yaml") + print(f"Add these to gateway/gateway.yaml and commit:\n dataset_id: {dataset_id}\n pid: {pid}") def push(args: argparse.Namespace) -> None: diff --git a/.github/actions/gateway-publish/test_gateway_publish.py b/.github/actions/gateway-publish/test_gateway_publish.py index 4f62567..14a6353 100644 --- a/.github/actions/gateway-publish/test_gateway_publish.py +++ b/.github/actions/gateway-publish/test_gateway_publish.py @@ -42,7 +42,7 @@ URLS = ["--gateway-url", "https://gateway.test/api", "--traser-url", "https://traser.test"] -GATEWAY = """# comment kept +GATEWAY = """ team_id: 74 team_name: NUH status: DRAFT @@ -118,8 +118,10 @@ def test_build_errors(dataset, metadata, version, error): def test_create_then_push(dataset, gateway, capsys): gp.main(["create", str(dataset), "--version", "1.0.0", *URLS]) - gateway_yaml = (dataset / "gateway" / "gateway.yaml").read_text() - assert "# comment kept" in gateway_yaml and "dataset_id: 2080" in gateway_yaml and "pid: pid-1" in gateway_yaml + assert "dataset_id: 2080\n pid: pid-1" in capsys.readouterr().out + gateway_yaml = dataset / "gateway" / "gateway.yaml" + assert gateway_yaml.read_text() == GATEWAY # create doesn't write to the repo + gateway_yaml.write_text(GATEWAY.replace("dataset_id: null", "dataset_id: 2080").replace("pid: null", "pid: pid-1")) post = next(r for r in gateway.requests if r.method == "POST" and r.url.path != "/translate") assert str(post.url).startswith("https://gateway.test/api/v2/teams/74/datasets") assert post.headers["x-application-id"] == "app-secret" diff --git a/docs/workflows/gateway.md b/docs/workflows/gateway.md index c382f9f..116e621 100644 --- a/docs/workflows/gateway.md +++ b/docs/workflows/gateway.md @@ -13,12 +13,12 @@ The metadata combines the LinkML schema (tables, columns and permitted values) w team_id: 74 team_name: Nottingham University Hospitals - NHS Trust status: DRAFT # or ACTIVE; every release publishes with this status - dataset_id: null # written by create (step 4) + dataset_id: null # from create (step 4) pid: null ``` 3. **A `gateway` environment** (Settings → Environments) with required reviewers, and the Private App's credentials as environment secrets `GATEWAY_APP_ID` and `GATEWAY_CLIENT_ID`. Create it before the first release: GitHub creates a missing environment without protection. -4. **Create the dataset once**, from a local checkout, then commit `gateway/gateway.yaml`: +4. **Create the dataset once**, from a local checkout. It prints the new `dataset_id` and `pid`: add them to `gateway/gateway.yaml` and commit. ```sh A=/.github/actions/gateway-publish From 2c0eccf181963bcf0eef0acafb8cc484e54253ec Mon Sep 17 00:00:00 2001 From: Andy Rae <1127507+AndyRae@users.noreply.github.com> Date: Tue, 24 Nov 2026 13:42:49 +0000 Subject: [PATCH 08/10] feat: create the Gateway dataset from a manual workflow Add a `create` input to gateway.yml. A dataset repo runs it once from a workflow_dispatch workflow, behind the same environment approval as publishing, so nobody needs the Gateway credentials locally. The job log prints the dataset_id and pid for a person to commit to gateway.yaml. Co-Authored-By: Claude Opus 5.5 --- .github/actions/gateway-publish/action.yml | 4 ++-- .github/workflows/gateway.yml | 22 ++++++++++++----- docs/workflows/gateway.md | 28 ++++++++++++++++++---- 3 files changed, 41 insertions(+), 13 deletions(-) diff --git a/.github/actions/gateway-publish/action.yml b/.github/actions/gateway-publish/action.yml index 770b654..e0e0e76 100644 --- a/.github/actions/gateway-publish/action.yml +++ b/.github/actions/gateway-publish/action.yml @@ -6,7 +6,7 @@ description: >- inputs: command: - description: validate or push. + description: validate, create or push. required: true dataset-dir: description: Directory holding gateway/. @@ -15,7 +15,7 @@ inputs: description: LinkML schema. Default the only *.yaml in dataset-dir, else in dataset-dir/schemas. default: "" version: - description: Metadata version, major.minor.patch (a leading v is removed). Required for push. + description: Metadata version, major.minor.patch (a leading v is removed). Required for create and push. default: "" status: description: DRAFT or ACTIVE. Default the status in gateway.yaml. diff --git a/.github/workflows/gateway.yml b/.github/workflows/gateway.yml index 85c5230..c32ce2d 100644 --- a/.github/workflows/gateway.yml +++ b/.github/workflows/gateway.yml @@ -1,7 +1,7 @@ # Validates a dataset repo's HDR UK Gateway metadata and, with `publish: true`, publishes # it as a new version of the dataset. Call it without inputs on pull requests (no secrets -# needed), and with `publish: true` after semantic-release creates a release. See -# docs/workflows/gateway.md. +# needed), with `publish: true` after semantic-release creates a release, and once with +# `create: true` from a manual workflow to create the dataset. See docs/workflows/gateway.md. name: HDR UK Gateway on: @@ -11,8 +11,12 @@ on: description: Publish after validating. Needs the secrets and an existing dataset_id in gateway.yaml. type: boolean default: false + create: + description: Create the dataset on the Gateway instead of publishing, once per dataset. Prints the dataset_id and pid to add to gateway.yaml. + type: boolean + default: false version: - description: Metadata version, major.minor.patch (a leading v is removed). Pass the release tag; required to publish. + description: Metadata version, major.minor.patch (a leading v is removed). Pass the release tag; required to publish or create. type: string default: "" dataset-dir: @@ -32,7 +36,7 @@ on: type: boolean default: false environment: - description: GitHub environment for the publish job; give it required reviewers. + description: GitHub environment for the publish and create job; give it required reviewers. type: string default: gateway base-url: @@ -81,7 +85,7 @@ jobs: traser-url: ${{ inputs.traser-url }} publish: - if: inputs.publish + if: inputs.publish || inputs.create needs: validate runs-on: ubuntu-latest timeout-minutes: 15 @@ -92,13 +96,19 @@ jobs: group: gateway-publish-${{ github.repository }} cancel-in-progress: false steps: + - name: Check inputs + if: inputs.publish && inputs.create + run: | + echo "::error::Set publish or create, not both" + exit 1 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - uses: $/.github/actions/gateway-publish with: - command: push + command: ${{ inputs.create && 'create' || 'push' }} dataset-dir: ${{ inputs.dataset-dir }} schema: ${{ inputs.schema }} version: ${{ inputs.version }} diff --git a/docs/workflows/gateway.md b/docs/workflows/gateway.md index 116e621..6ed2f35 100644 --- a/docs/workflows/gateway.md +++ b/docs/workflows/gateway.md @@ -1,6 +1,6 @@ # HDR UK Gateway -Reusable workflow that publishes a dataset's metadata to the [HDR UK Health Data Research Gateway](https://healthdatagateway.org) from a LinkML repo. It always validates; with `publish: true` it also sends the metadata as a new version of the dataset. +Reusable workflow that publishes a dataset's metadata to the [HDR UK Health Data Research Gateway](https://healthdatagateway.org) from a LinkML repo. It always validates; with `publish: true` it also sends the metadata as a new version of the dataset, and with `create: true` it creates the dataset in the first place. The metadata combines the LinkML schema (tables, columns and permitted values) with `gateway/metadata.yaml`, the catalogue fields written by hand in the [HDRUK 4.1.0 schema](https://github.com/HDRUK/schemata-2/tree/master/hdr_schemata/models/HDRUK/4.1.0)'s shape. Validation is done by HDR UK's TRASER service, the way the Gateway does it. @@ -18,7 +18,24 @@ The metadata combines the LinkML schema (tables, columns and permitted values) w ``` 3. **A `gateway` environment** (Settings → Environments) with required reviewers, and the Private App's credentials as environment secrets `GATEWAY_APP_ID` and `GATEWAY_CLIENT_ID`. Create it before the first release: GitHub creates a missing environment without protection. -4. **Create the dataset once**, from a local checkout. It prints the new `dataset_id` and `pid`: add them to `gateway/gateway.yaml` and commit. +4. **Create the dataset once.** Add this workflow, run it from the Actions tab ("Run workflow"), and approve the `gateway` environment. The job log prints the new `dataset_id` and `pid`: add them to `gateway/gateway.yaml` and commit. It refuses to run once `gateway.yaml` has a `dataset_id`, so it's safe to keep. + + ```yaml + # .github/workflows/gateway-create.yml + name: Create Gateway dataset + on: workflow_dispatch + jobs: + gateway: + uses: health-informatics-uon/workflows/.github/workflows/gateway.yml@ + permissions: + contents: read + with: + create: true + version: 0.0.0 # the first release publishes the real version + secrets: inherit + ``` + + To create it from your machine instead, with the credentials in your shell: ```sh A=/.github/actions/gateway-publish @@ -59,17 +76,18 @@ The metadata combines the LinkML schema (tables, columns and permitted values) w | Input | Default | Description | |---|---|---| | `publish` | `false` | Publish after validating. | -| `version` | — | Metadata version, `major.minor.patch`; a leading `v` is removed. Pass the release tag; required to publish. | +| `create` | `false` | Create the dataset instead of publishing (once per dataset). | +| `version` | — | Metadata version, `major.minor.patch`; a leading `v` is removed. Pass the release tag; required to publish or create. | | `dataset-dir` | `.` | Directory holding `gateway/`. | | `schema` | the only `*.yaml` in `dataset-dir`, else in `dataset-dir/schemas` | LinkML schema. | | `status` | `status` in `gateway.yaml` | `DRAFT` or `ACTIVE`. | | `dry-run` | `false` | Print the publish request instead of sending it. | -| `environment` | `gateway` | GitHub environment for the publish job. | +| `environment` | `gateway` | GitHub environment for the publish and create job. | | `base-url` | `https://api.healthdatagateway.org/api` | Gateway API base URL. | | `traser` | `true` | Validate with TRASER; `false` skips validation. | | `traser-url` | `https://hdr-gateway-traser-dev-qmnkcg5qjq-ew.a.run.app` (HDR UK's dev instance) | TRASER base URL. | -Secrets `GATEWAY_APP_ID` and `GATEWAY_CLIENT_ID` are needed only to publish. With `secrets: inherit`, the publish job uses the environment's secrets; you can pass repository secrets by name instead. +Secrets `GATEWAY_APP_ID` and `GATEWAY_CLIENT_ID` are needed only to publish or create. With `secrets: inherit`, the publish job uses the environment's secrets; you can pass repository secrets by name instead. ## Things to know From 139793db0d4ba1cd7c3aeef4a0bd1b59755aeffe Mon Sep 17 00:00:00 2001 From: Andy Rae <1127507+AndyRae@users.noreply.github.com> Date: Wed, 25 Nov 2026 17:21:32 +0000 Subject: [PATCH 09/10] feat: report Gateway publish errors as workflow annotations Print errors as ::error:: so they show on the run summary and PR checks, like the repo's other actions. The script is only run through the workflow, so drop the local create instructions. Co-Authored-By: Claude Opus 5.5 --- .github/actions/gateway-publish/gateway_publish.py | 6 +++++- .../actions/gateway-publish/test_gateway_publish.py | 4 ++-- docs/workflows/gateway.md | 11 +---------- 3 files changed, 8 insertions(+), 13 deletions(-) diff --git a/.github/actions/gateway-publish/gateway_publish.py b/.github/actions/gateway-publish/gateway_publish.py index b503c46..5b97be4 100644 --- a/.github/actions/gateway-publish/gateway_publish.py +++ b/.github/actions/gateway-publish/gateway_publish.py @@ -1,5 +1,8 @@ """Publish a dataset's metadata to the HDR UK Health Data Research Gateway. +Run by the gateway-publish action in GitHub Actions, behind an environment approval; it +isn't meant to be run locally. Errors are printed as ::error:: workflow commands. + The payload (HDRUK 4.1.0) is built from a dataset directory: .yaml or schemas/.yaml LinkML schema -> structuralMetadata gateway/metadata.yaml hand-written catalogue fields, in HDRUK 4.1.0 shape @@ -283,7 +286,8 @@ def main(argv: list[str] | None = None) -> None: try: {"validate": validate, "create": create, "push": push}[args.command](args) except Error as e: - print(f"error: {e}", file=sys.stderr) + # %0A keeps multi-line errors (e.g. TRASER's list) in one annotation. + print("::error::" + str(e).replace("%", "%25").replace("\r", "%0D").replace("\n", "%0A"), flush=True) sys.exit(1) diff --git a/.github/actions/gateway-publish/test_gateway_publish.py b/.github/actions/gateway-publish/test_gateway_publish.py index 14a6353..76e5d77 100644 --- a/.github/actions/gateway-publish/test_gateway_publish.py +++ b/.github/actions/gateway-publish/test_gateway_publish.py @@ -142,14 +142,14 @@ def test_traser_rejection_stops_push(dataset, gateway, capsys): gateway.traser_status = 400 with pytest.raises(SystemExit): gp.main(["create", str(dataset), "--version", "1.0.0", *URLS]) - assert "/summary: bad" in capsys.readouterr().err + assert "%0A /summary: bad" in capsys.readouterr().out # one ::error:: annotation assert all(r.url.host == "traser.test" for r in gateway.requests) def test_push_needs_dataset_id(dataset, gateway, capsys): with pytest.raises(SystemExit): gp.main(["push", str(dataset), "--version", "1.0.0", *URLS]) - assert "run `create` once" in capsys.readouterr().err + assert "::error::gateway.yaml has no dataset_id" in capsys.readouterr().out def test_dry_run_sends_nothing(dataset, gateway, monkeypatch, capsys): diff --git a/docs/workflows/gateway.md b/docs/workflows/gateway.md index 6ed2f35..eaee987 100644 --- a/docs/workflows/gateway.md +++ b/docs/workflows/gateway.md @@ -35,16 +35,6 @@ The metadata combines the LinkML schema (tables, columns and permitted values) w secrets: inherit ``` - To create it from your machine instead, with the credentials in your shell: - - ```sh - A=/.github/actions/gateway-publish - GATEWAY_APP_ID=... GATEWAY_CLIENT_ID=... \ - uv run --frozen --project "$A" python "$A/gateway_publish.py" create . --version 0.0.0 \ - --gateway-url https://api.healthdatagateway.org/api \ - --traser-url https://hdr-gateway-traser-dev-qmnkcg5qjq-ew.a.run.app - ``` - 5. **Call the workflow** on PRs and after releases: ```yaml @@ -91,6 +81,7 @@ Secrets `GATEWAY_APP_ID` and `GATEWAY_CLIENT_ID` are needed only to publish or c ## Things to know +- **Run it only through this workflow**, not from your machine: the `gateway` environment's approval is the check before anything reaches the Gateway. - **The repository is the only way to change the dataset.** The Gateway doesn't allow editing a dataset managed by an integration in its web UI, including its status. Every change to the metadata or the status goes through a PR and a release. - **Every release adds a Gateway version**, even if nothing changed. After publishing, the job reads the dataset back and fails unless the version went up and the title matches. A failed update isn't retried, because a retry could add a second version. - **To make a dataset public, or take it back to draft**, change `status` in `gateway.yaml` in a PR; the next release applies it. From 15984109786514a718927caaf84a4a63f8d5b5ee Mon Sep 17 00:00:00 2001 From: Andy Rae <1127507+AndyRae@users.noreply.github.com> Date: Wed, 25 Nov 2026 17:23:21 +0000 Subject: [PATCH 10/10] docs: drop the local-run note from the Gateway publish docstring Co-Authored-By: Claude Opus 5.5 --- .github/actions/gateway-publish/gateway_publish.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/actions/gateway-publish/gateway_publish.py b/.github/actions/gateway-publish/gateway_publish.py index 5b97be4..5311da5 100644 --- a/.github/actions/gateway-publish/gateway_publish.py +++ b/.github/actions/gateway-publish/gateway_publish.py @@ -1,8 +1,5 @@ """Publish a dataset's metadata to the HDR UK Health Data Research Gateway. -Run by the gateway-publish action in GitHub Actions, behind an environment approval; it -isn't meant to be run locally. Errors are printed as ::error:: workflow commands. - The payload (HDRUK 4.1.0) is built from a dataset directory: .yaml or schemas/.yaml LinkML schema -> structuralMetadata gateway/metadata.yaml hand-written catalogue fields, in HDRUK 4.1.0 shape