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

Include validation of local files #1647

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

bvdh
Copy link

@bvdh bvdh commented Jun 3, 2024

I've added support for validation of local files.
For this I've updated IGloader to return the loaded resource type and id.
This ValidationEngine will use that information to create a R5EvaluationContext class which is passed to the InstanceValidator. This class holds the files as Elements. When a resource is retrieved using FHIRpath, this element is returned and validated.

To test this I've added a test that loads files and validates them.

Is this an approach that would work?

Updated the load local files approach to include resourceType and id.
Added R5EvaluationContext class that stores all local files as Elements  (src: ValidatedFragments).
Pass R5EvaluationContext  as externalHostServices in ValidatorInstance.
Changes the order in InstanceValidator.resolveReference to check externalHostServices before context.
Added the option localFile as refType.
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.

1 participant