github BfArM-MVH/grz-tools grz-pydantic-models-v3.0.0
grz-pydantic-models: v3.0.0

latest releases: grzctl-v4.0.0, grz-cli-v2.0.0, grz-check-v0.4.0...
6 hours ago

3.0.0 (2026-08-13)

⚠ BREAKING CHANGES

  • grz-pydantic-models: a consent dateTime stating a time must spell out seconds and separate date from time by T, and a date must be a dashed calendar date, as the FHIR dateTime regex requires. Metadata stating a bound in any other form is now rejected rather than parsed. The four fields hold a FhirDateTime rather than a datetime, keeping the value as submitted and resolving to a moment through .first_moment or .last_moment. A naive datetime handed to one of them in code is refused rather than read as UTC.
  • grz-pydantic-models: ResearchConsent.consents_to_research, and with it the consented flag grz-db records for a submission, now returns False for every consent whose status is not active. Metadata that declares a 2025 researchConsent schemaVersion and leaves any provision period open-ended is now rejected rather than accepted.

Features

  • grz-common: report a consent dateTime without a timezone when (c6c4f2f)
  • grz-db: let a submission diff withhold overwrites outside an (c6c4f2f)
  • grz-db: ship reusable database fixtures for downstream tests (#647) (a72caba)
  • grz-pydantic-models-testing: vendor MII consent artefacts and add (1390ab8)
  • grz-pydantic-models: accept every released MII consent package (#640) (1390ab8), closes #639
  • grzctl: overwrite selected fields during db backfill (c6c4f2f)

Bug Fixes

  • grz-common,grz-db: require grz-pydantic-models 3 (0d17b7e)
  • grz-pydantic-models-testing: require grz-pydantic-models 3 (0d17b7e)
  • grz-pydantic-models: Change dateTime field type from date to datetime in Consent model (#611) (2c69f9e)
  • grz-pydantic-models: compare metadata schema versions correctly (1390ab8)
  • grz-pydantic-models: follow the MII consent profile more closely (1390ab8)
  • grz-pydantic-models: grant research consent only while in force (#642) (0d17b7e)
  • grz-pydantic-models: handle datetime, FHIR extensions and verification in consent model (#610)Fix/consent field dtypes (#627) (11bddd9)
  • grz-pydantic-models: read consent dateTimes as FHIR defines them (#646) (c6c4f2f), closes #645
  • grz-pydantic-models: warn instead of error on tumor+germline labData check before 2025-12-04 (#638) (88b46bf)
  • grzctl: require grz-db 2.2 (c6c4f2f)

Don't miss a new grz-tools release

NewReleases is sending notifications on new releases.