-
Notifications
You must be signed in to change notification settings - Fork 80
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
Trigger updates to downstream domains for related data #233
Comments
Thanks @mseaton for outlining your use cases so clearly. So you mean to resolve the issue of implicit domain dependencies by making them explicit through a declaration in a config file? How configurable does this really need to be? Isn't it that those implicit dependencies can be identified one and for all through some business analysis and should be taken care of anyway? As in for example that Iniz will always reload MDS packages when changes are made to the concepts or the concept sets? |
Thanks @mks-d . It's a good point. Certainly if we can all agree on a set of behaviors then it doesn't need to be configurable. I do think the use cases should be pretty well fixed to those known by iniz upfront. MDS is potentially one that is less so, because any type of metadata can theoretically be packaged in an MDS file, not just concepts. But if we can agree that MDS is, for all practical terms, just there for legacy support of Concepts (and linked data like Concept Sets, Answers, Sources, Mappings, Concept Classes and Datatypes), then I'd be perfectly happy just covering the use cases laid out with reloading the Concept domains if the MDS domain has any changes, doing the same for the OCL domain, and reloading the locationtagmap domain any time the location domain changes. |
If that makes development for you easier, then that sounds like a reasonable approach. Also it will require less documentation ;-) |
I think there are fewer headaches if it's not configurable and the dependencies between domains are generally known at the time the domain is added, i.e., when the OCL domain was added, we set it up to run before the concept domain so the concept domain could tweak the OCL data if required. Making the resets configurable adds some headaches like: The one thing it might be worth thinking through is how this feature interacts with implementations ability to, in essence, customise the order in which dependencies are run. |
An alternative and/or complement to this feature would be if Initializer were able to expose an API that could be called before loading, to determine which, if any, domains have changes in them. This would enable distributions that invoke Iniz programmatically to check which files (in which domains) will be loaded due to change of checksums, take steps to then clear out checksums as needed in other domains based on this, and then invoke iniz. |
As Initializer has evolved, various domains have emerged that have overlapping responsibilities. For example, the
metadatasharing
,ocl
andconcepts
domains are all commonly used to load Concepts into a system, and some implementations choose to make use of more than one of these at at time. Similarly, thelocation
andlocationtagmaps
domain both take responsibilities over assigning location tags to locations.In these scenarios, unexpected results can arise when an
upstream
domain has new changes but adownstream
domain does not. As an example, a distribution may bring in most of it's Concepts viaocl
ormetadatasharing
, but also allows for some concepts to be managed via theconcepts
domain (eg. diagnosis lists, drug lists, etc). In the typical way this is set up, theocl
ormetadatasharing
domain is expected to be installed first, and then theconcepts
domain is expected to be installed second, and this knowledge may be leveraged in order for the concepts domain to make some country-specific tweaks to a shared, global concept package (eg. some custom mappings, or custom name translations).However, in this scenario, if an update is later made to the
ocl
ormetadatasharing
domain but not in theconcepts
domain, then the upstream concept definitions will be applied to the server, and the downstream customizations will not re-run, leaving metadata in an unexpected and likely problematic state.It would be helpful if Initializer could provide a solution to this problem. This could potentially be something in the runtime configuration, where an implementation could define a list of domains that should reload if a given domain changes. For example:
The result is that any time the
metadatasharing
orocl
domains change, Initializer will also force an update (eg. delete existing checksums) of the specified domains in the list, even if there are no changes to the files in those domains.@mogoodrich / @mks-d / @ibacher / @Ruhanga interested in feedback.
The text was updated successfully, but these errors were encountered: