Stream: implementers
Topic: Forge implementation guide bug
Brian Reinhold (Jul 14 2017 at 09:09):
When I create an implementation guide, place a profile in it, and save it, on re-opening the guide I get this error message:
2017-07-14T05:04:12
Forge Forge 15.7 for HL7 FHIR STU3
Madrid 2017 Edition
Version: Version 15.7.0.0
FHIR Version: FHIR .NET API library for 3.0.0
ArgumentException in Forge.ViewModels:
[StorageHandler] Invalid property type 'Markdown', expecting 'FhirString'.
Parameter name: propertyInfo
at Forge.ViewModels.StorageHandler.VerifyPropertyType(PropertyInfo propertyInfo, Type type)
at Forge.ViewModels.StringStorageHandler`1..ctor(IViewModel property, Base instance, PropertyInfo propertyInfo, Base baseInstance, Boolean isForced)
at Forge.ViewModels.StringStorageHandler..ctor(IViewModel property, Base instance, PropertyInfo propertyInfo, Base baseInstance, Boolean isForced)
at Forge.ViewModels.ImplementationGuideVM.set_ModelElement(Base value)
at Forge.ViewModels.ImplementationGuideVM..ctor(ISessionItem owner, ImplementationGuide model)
at Forge.ViewModels.SessionItemVM.CreateResourceVM(SessionItemVM owner, Resource model, String contentDirectory)
at Forge.ViewModels.SessionItemVM..ctor(ISessionItem owner, IDocument document, Resource model)
at Forge.ViewModels.SessionItemVM.Open(IDocument document, Boolean dontLoad, Boolean asCopy)
at Forge.ViewModels.SessionItemVM.Open(Uri url, Boolean dontLoad, Boolean asCopy)
at Forge.ViewModels.SessionItemVM.Open(Boolean asCopy)
at Forge.ViewModels.SessionItemVM.Open()
at Forge.ViewModels.SessionVM.<>c.<onOpen>b__178_0(ISessionItem item)
at Forge.ViewModels.SessionVM.<>c__DisplayClass162_0.<executeItemCollectionCommand>b__0()
at Forge.Common.UIServices.ExecuteOnUIThread(Action action)
at Forge.ViewModels.SessionVM.executeCommand(Action action)
The bold text is what you see in a popup dialog. The problem is, looking at the xml there is no mention of a 'property type' or any reference to such. Does anyone know what this bug means and how to work around it (editing the xml)?
Michel Rutten (Jul 14 2017 at 09:21):
@Brian Reinhold this bug has been fixed in the latest Forge release (16.1), available for download from https://simplifier.net.
Brian Reinhold (Jul 14 2017 at 09:40):
@Michel Rutten Cool, it worked. Has the 'type' bug been fixed with respect to 'choice' elements yet?
Last updated: Apr 12 2022 at 19:14 UTC