Skip to content

Commit f37ba3a

Browse files
author
alex-omophub
committed
v1.3.0 preparation
1 parent 52d6f51 commit f37ba3a

21 files changed

Lines changed: 1441 additions & 782 deletions

CHANGELOG.md

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,41 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.3.0] - 2026-01-06
9+
10+
### Changes
11+
12+
**Parameter Renames (for API consistency):**
13+
- `search.autocomplete()`: `max_suggestions``page_size`
14+
- `concepts.suggest()`: `vocabulary``vocabulary_ids`, `domain``domain_ids`, `limit``page_size`
15+
- `concepts.related()`: `relatedness_types``relationship_types`
16+
- `concepts.relationships()`: `relationship_type``relationship_ids`
17+
- `relationships.get()`: `relationship_type``relationship_ids`, `target_vocabulary``vocabulary_ids`
18+
- `hierarchy.ancestors()`: `vocabulary_id``vocabulary_ids`, `include_deprecated``include_invalid`
19+
- `hierarchy.descendants()`: `vocabulary_id``vocabulary_ids`, `include_deprecated``include_invalid`
20+
21+
**Simplified APIs (removed parameters):**
22+
- `vocabularies.get()`: Removed `include_stats`, `include_domains` (use `stats()` method instead)
23+
- `vocabularies.domains()`: Removed pagination parameters, now returns all domains
24+
- `domains.list()`: Simplified to single `include_stats` parameter
25+
- `domains.concepts()`: Removed `concept_class_ids`, added `include_invalid`
26+
- `mappings.get()`: Simplified to `target_vocabulary`, `include_invalid`, `vocab_release`
27+
- `relationships.types()`: Removed all filtering parameters
28+
29+
**Default Changes:**
30+
- `vocabularies.list()`: Default `page_size` changed from 100 to 20
31+
- `concepts.batch()`: Default `standard_only` changed from `False` to `True`
32+
33+
### Added
34+
35+
- `vocabularies.domain_stats(vocabulary_id, domain_id)` - Get statistics for a specific domain within a vocabulary
36+
- `vocabularies.concept_classes()` - Get all concept classes
37+
- `hierarchy.get(concept_id)` - Get complete hierarchy (ancestors and descendants) in one call
38+
- `vocab_release` parameter to `concepts.get()`, `concepts.get_by_code()`, `mappings.get()`, `mappings.map()`
39+
- `include_hierarchy` parameter to `concepts.get()` and `concepts.get_by_code()`
40+
- Pagination support to `concepts.suggest()`
41+
- `domain_ids`, `standard_only`, `include_reverse` parameters to `relationships.get()`
42+
843
## [1.2.0] - 2025-12-09
944

1045
### Added
@@ -37,6 +72,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3772
- Full type hints and PEP 561 compliance
3873
- HTTP/2 support via httpx
3974

40-
[Unreleased]: https://github.com/omopHub/omophub-python/compare/v0.2.0...HEAD
41-
[0.2.0]: https://github.com/omopHub/omophub-python/compare/v0.1.0...v0.2.0
75+
[Unreleased]: https://github.com/omopHub/omophub-python/compare/v1.3.0...HEAD
76+
[1.3.0]: https://github.com/omopHub/omophub-python/compare/v1.2.0...v1.3.0
77+
[1.2.0]: https://github.com/omopHub/omophub-python/compare/v0.1.0...v1.2.0
4278
[0.1.0]: https://github.com/omopHub/omophub-python/releases/tag/v0.1.0

examples/navigate_hierarchy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def get_descendants() -> None:
4040
result = client.hierarchy.descendants(
4141
concept_id,
4242
max_levels=2,
43-
standard_only=True,
43+
include_invalid=False,
4444
)
4545

4646
concept = result.get("concept", {})

0 commit comments

Comments
 (0)