Stream: implementers
Topic: Type of Extension in snapshot
Jakob Lindblad (Oct 17 2018 at 12:42):
Hi,
My question is a bit diffuse but i will try to keep it simple.
Lets say i make a profile on "Device" in Forge and then then make an extension and add it to the "Device". The type of my extension is "Coding" (valueCoding). So my profile Device is a basic Device with one extension of the type Coding.
When i generate a snapshot of my profile on Device, is there any way i can determine what the type of my extension is based on the snapshot? As far is i can see there is nothing in the Device snapshot that tells me that my extension is of the type Coding? It pretty much only holds the url to my extension which means i have to go to the specific extension defintion to be able to know what the type of my extension is?
Is this the way it should be or have i missed some settings on my Device profile in Forge that can enable me to get that information in the profile snapshot?
Vadim Peretokin (Oct 17 2018 at 13:38):
@Michel Rutten
Lloyd McKenzie (Oct 17 2018 at 13:40):
That's the way it should be. The extension is just a profile on the extension data type. When we render profiles in the IG publisher we have to look up the extension definitions in order to expose the type.
Michel Rutten (Oct 17 2018 at 13:49):
As @Lloyd McKenzie explains, works as designed. A snapshot usually does not include the full snapshot of any referenced types (depending on actual diff constraints). A consumer will need to resolve these separately.
Jakob Lindblad (Oct 18 2018 at 08:09):
Ok thanks for the answers.
But there is no way to be able to work around this? In my case it would help alot if i could just add something in the snapshot indicating the type of my extension.
Lloyd McKenzie (Oct 18 2018 at 13:35):
A snapshot is algorithmicaly generated based on what's in the snapshot of the base and what's in the differential of the derived profile. None of the tools will do what you're looking for and if you manually tweak the snapshot, you're likely to confuse or even break some of the tools. Pointing to an extension profile is no different than pointing to a profile on Address or HumanName. And the Extension.value[x] element can't be treated as any more important than the Extension.url or Extension.extension element. (Plus, if you drill down into the profile on an Extension, do you then drill down into the profiles on the Extension.extension? We have discussed fully blowing out profile references in a "special" snapshot mode, but it gets messy when you have recursive references.
Last updated: Apr 12 2022 at 19:14 UTC