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] Support Global profiles from IGs #135

Open
ewoutkramer opened this issue Oct 27, 2017 · 10 comments
Open

[Validator] Support Global profiles from IGs #135

ewoutkramer opened this issue Oct 27, 2017 · 10 comments

Comments

@ewoutkramer
Copy link
Member

If you validate instances in the context of an IG, that IG (formally by means of ImplementationGuide.global) may specify a set of IG specific profiles that a kind of resource must conform to. I.e. although Observation.subject and many other core resources refers to Patient, in the context of a Dutch IG, all these references must be interpreted (or replaced by) references to a dutch constrained version of Patient.

Add a feature to the validator to support "profile substitution", where any reference to a core profile X, would be translated to a reference to a more specific profile from such an IG.

@wmrutten
Copy link

An IG resource can define dependencies to other IG resources:
https://www.hl7.org/fhir/implementationguide-definitions.html#ImplementationGuide.dependency

Should this logic also try to resolve the parent IG's and verify any inherited global profiles?

@ewoutkramer
Copy link
Member Author

I've almost assumed these references are "informal", but I am not sure....

@wmrutten
Copy link

I think this is intended for validation purposes...

@LouisBernath
Copy link

Any plans to support IGs in the near future? :)

@wmrutten
Copy link

wmrutten commented Sep 3, 2019

Just thinking out loud, we could implement a new ResourceResolver that indexes all dependencies referenced by an IG. The resolver could also build a closure of all external dependencies to other IGs. This ResourceResolver could then be consumed by the SnapshotGenerator & Validator classes.

@ewoutkramer
Copy link
Member Author

Yes, if we combine that with package support (which @mharthoorn has already built) we basically have all the tools in place we need, based on the existing framework.

@wmrutten
Copy link

wmrutten commented Sep 3, 2019

Sounds like a plan! Shouldn't be too complicated.

@marcovisserFurore
Copy link
Member

Duplicate of FirelyTeam/firely-net-sdk#1863

@ewoutkramer
Copy link
Member Author

Why is this marked as a duplicate of FirelyTeam/firely-net-sdk#1863? This issue is about the "global" feature in the IG resource, and has nothing to do with NPM packages...

@marcovisserFurore marcovisserFurore transferred this issue from FirelyTeam/firely-net-sdk Jul 20, 2023
@mmsmits
Copy link
Member

mmsmits commented Sep 12, 2024

Add a substitute resource resolver based on the IG to solve this to the SDK.
This should live in Base, however, ImplementationGuide is not in base, we should think about the design here (maybe a partial class?).

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

No branches or pull requests

5 participants