Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validator circular dependency issue #1670

Open
patrick-werner opened this issue Jun 27, 2024 · 0 comments
Open

Validator circular dependency issue #1670

patrick-werner opened this issue Jun 27, 2024 · 0 comments
Labels

Comments

@patrick-werner
Copy link
Member

If you have a profile A with .contained restricted to a child profile B of profle A the validator can't create the snapshot:

Error @ StructureDefinition: Error generating Snapshot: Circular snapshot references detected; cannot generate snapshot (stack = [http://example.org/StructureDefinition/MyPatient]) (this usually arises from a problem in the differential)

Resources to reproduce this issues are can be found here:
https://github.com/echinos-eu/circular-profile-dependency-issue/tree/main

fsh-generated/resources/StructureDefinition-MyPatient.json
fsh-generated/resources/StructureDefinition-MyPatientChild.json

zulip thread:
https://chat.fhir.org/#narrow/stream/179167-hapi/topic/5.2E1.20Validation.20Detected.20circular.20dependency.20-.20StackOverflow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants