Skip to content

Comments

Document $validate operation execution path for Bundle resources#7489

Draft
Copilot wants to merge 1 commit intomasterfrom
copilot/check-validate-bundle-resource
Draft

Document $validate operation execution path for Bundle resources#7489
Copilot wants to merge 1 commit intomasterfrom
copilot/check-validate-bundle-resource

Conversation

Copy link

Copilot AI commented Jan 20, 2026

The problem statement asked what source file gets called when an external service calls $validate on a Bundle resource. This is an investigative question, not a bug fix.

Investigation Results

No code changes required. The $validate operation for Bundle resources follows this execution path:

  1. ValidateMethodBindingDstu2Plus - REST layer method binding
  2. BaseJpaResourceProvider.validate() - Provider layer with @Validate annotation
  3. BaseHapiFhirResourceDao.validate() - DAO layer performing actual validation

Key Files

  • hapi-fhir-server/src/main/java/ca/uhn/fhir/rest/server/method/ValidateMethodBindingDstu2Plus.java
  • hapi-fhir-storage/src/main/java/ca/uhn/fhir/jpa/provider/BaseJpaResourceProvider.java (lines ~362-373)
  • hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirResourceDao.java

The functionality is already implemented and working as designed.

Original prompt

what source file gets called when an external service with a hapi depdendency calls $validate on a Bundle resource?


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Identify source file for validate call on Bundle resource Document $validate operation execution path for Bundle resources Jan 20, 2026
Copilot AI requested a review from rosie-elphick January 20, 2026 19:01
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