-
Notifications
You must be signed in to change notification settings - Fork 157
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
Customers need to be able to set the default
IG for the multiple IGs in the projects.
#2832
Comments
I wonder if its worth advertising which version is the default in the CapabilityStatement as well...maybe an extension on either https://www.hl7.org/fhir/capabilitystatement-definitions.html#CapabilityStatement.rest.resource or If so, we might want to expose some of our other metadata as well (such as the |
I consider two main options for this one: I think A would be significantly simpler and addresses the description of this issue, so I'm thinking we should just start there. Here is an example of what a
The thought is to add a new
Now suppose we have this config and the server registry contains version 1.0.0 and 1.1.1 of profile A. Here is how that would translate to validate a resource (e.g. on resource creation or on a call to $validate with no profile version argument):
So versioned references will work the same irregardless of this new setting...it will only affect which version we validate against if a versionless reference comes in. In the case of the last row in this table, that version isn't in the registry and so we'd check I think the main downside of focusing on just the profiles for now is that it might also be useful to be able to designate a default for other resource types. For example, for CodeSystem or ValueSet resources where the user invokes a $lookup without specifying a version. |
There is one additional property that I was debating whether to introduce to this section or not and that is |
This makes sense to me. (even with the limitations on CodeSystems and ValueSets) |
I think option A makes sense for specifying at the profile level. Wondering if we want to allow for specifying at the IG level as well (which could address the limitation on CodeSystems, ValueSets, SearchParameters) . For example, add an
|
One challenge with this is where / how to apply this config. Additionally, we don't lookup these resources in the context of their ImplementationGuide resources at this time. Most of the time, its just a lookup by resourceType + url + version. So what you'd really be configuring there is the individual "PackageRegistryResourceProvider" implementations I think. These are some of the complications that led me to propose that we just focus on part A for now. Are there other important use cases that you think we need to cover in round 1 of this stuff? |
No, I'm comfortable with just addressing the profile stuff for now with option A. |
Signed-off-by: Mike Schroeder <mschroed@us.ibm.com>
Signed-off-by: Mike Schroeder <mschroed@us.ibm.com>
Issue #2832 - enable default profile version configuration
with a config like:
I then added:
and finally I updated the default version to 4.0.0:
The one thing from above that might be a tad confusing is when a versionless profile is sent in but then the error message comes back with a versioned url (e.g. in the first two rows of the first table above). |
Is your feature request related to a problem? Please describe.
Customers need to be able to set the
default
IG for the multiple IGs in the projects.It must answer which profile/version is correct for this server/implementation.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Acceptance Criteria
LATEST is used
GIVEN an IG with multiple versions
AND a system default
WHEN an IG is used
AND an StructureDefinition in LATEST is referenced
THEN the latest is used
AND the latest-1 is NOT used
LATEST-1 is used
GIVEN an IG with multiple versions
AND a system default
WHEN an IG is used
AND an StructureDefinition in LATEST-1 is referenced
THEN the latest-1 is used
AND the latest is NOT used
Additional context
n/a
The text was updated successfully, but these errors were encountered: