Stream: clinFHIR
Topic: Error when selecting a resource, with a non-present profile
Dimitar (Nov 26 2017 at 16:43):
Hello,
I am getting this error, in the Scenario builder, whenever I click on a resource, that has a profile, which is not present on the server, which is ok and all, but it seems to cause issues selecting other resources, after that error comes up. It selects the resource, however it does not update the Structure and Reference tab, where the resources are modified. It just stays on the resource, where that error occured
pasted image
David Hay (Nov 27 2017 at 20:08):
OK - so after getting this error you need to reload the page for things to work correctly? A bit icky indeed, I'll take a look at that...
Dimitar (Nov 28 2017 at 09:58):
@David Hay Yes, either I need to reload or click on a resource, that doesn't have a profile.
David Hay (Nov 28 2017 at 19:35):
When you say 'Click on a resource' - are you trying to add a new resource based on a profile that doesn't exist? Can you give the steps to reproduce? thanks...
Dimitar (Nov 28 2017 at 21:13):
Basically, whenever I click on a resource from the scenario builder, which was already imported with a profile, that doesn't exist on the server.
David Hay (Nov 28 2017 at 21:44):
So you have a resource that was created from a profile. The profile pointed to an extension that isn't on the server, so you would get an error when the resource was originally created. That doesn't cause issues, but when you select the resource subsequently, you get the dialog above, and the app is subsequently confused - right? Which profile are you using? (and it's the hapi-3 server - right?)
Dimitar (Nov 28 2017 at 23:11):
@David Hay Correct it happened on the HAPI STU3 server. What I did was, I loaded a bunch of test data on the Hapi server, with the https://projectcrucible.org/ tool. And after I did that I picked one of the generated patients and I found the patient in the patient viewer and copied all of the resources in the bundle for that patient. After that, I just imported all of his resources in the scenario builder, and since most of them had the http://standardhealthrecord.org/fhir/StructureDefinition/shr-demographics-PersonOfRecord or whatever profile, it kept on giving me that warning and whenever I would switch to see a different resource, the pane was not updating.
David Hay (Nov 29 2017 at 00:39):
OK - so you imported the resources through the import option. Can you send me (email or attach here) one of the resources causing the problem? Then I can duplicate what you did and hopefully solve the issue... cheers
Dimitar (Nov 29 2017 at 08:25):
@David Hay https://paste.ofcode.org/gMLs8qG4DfDLw4XZ2EhZhm This is one of the resources that brings the issues
David Hay (Nov 29 2017 at 16:28):
OK, now I get what's happening. CF can't locate the profile, and so can't construct a tree of the structure to allow editing of the resource (do note that editing of profiled resources is a bit - quirky - at the moment anyway :) ). I've tidied it up a bit so it becomes clearer that that is what is happening - not sure what else can be done....
Last updated: Apr 12 2022 at 19:14 UTC