Skip to content

SDK5: Restore caching for ModelInfo.ModelInspector while fixing type conflicts #3375

@andrzejskowronski

Description

@andrzejskowronski

Re-revert the #3260 from #3374 changes, but to do that we need to make sure at the very least we notify the user when the ModelInspector will attempt to import a type from another satellite assembly.
We don't have a solid reproduction sample yet, but it can easily happen if stu3::Patient gets ToTypedElement with PocoElementNode, while it gets passed r4::ModelInfo.ModelInspector.
Likewise it can probably happen with poco serialization somewhere.
So we should make it a general safety change in the ModelInspector.ImportType logic.

We should also consider that sometimes this might be a valid case in Simplifier context, where the resource in r4 might refer to a STU3 resource.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions