Skip to content

fix(grz-pydantic-models): handle datetime, FHIR extensions and verification in consent model (#610)Fix/consent field dtypes#627

Merged
tedil merged 4 commits into
mainfrom
fix/consent-field-dtypes
Jul 7, 2026
Merged

fix(grz-pydantic-models): handle datetime, FHIR extensions and verification in consent model (#610)Fix/consent field dtypes#627
tedil merged 4 commits into
mainfrom
fix/consent-field-dtypes

Conversation

@beoinformatics

Copy link
Copy Markdown
Collaborator

Follow-up to #610. The original bug there (non-zero time in dateTime) was already fixed, but the issue also asked whether other fields were handled correctly. Two things came out of it:

FHIR extensions. Real consent resources from LEs can carry id and extension on pretty much any element, but our Coding, CodeableConcept, and Period models used extra="forbid", so they'd reject an otherwise-valid resource just because it had an extension on a coding. Added a small FHIRElement base (optional id + extension) and had those three inherit from it. Unknown fields are still rejected.

Verification. The verification element (and its verificationDate) wasn't modeled at all. Added a Verification model and an optional verification list on Consent.

@beoinformatics beoinformatics requested review from Hoeze and tedil July 6, 2026 11:40

@tedil tedil left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@tedil tedil marked this pull request as ready for review July 7, 2026 09:10
@tedil tedil added this pull request to the merge queue Jul 7, 2026
Merged via the queue into main with commit 11bddd9 Jul 7, 2026
4 checks passed
@tedil tedil deleted the fix/consent-field-dtypes branch July 7, 2026 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants