FHIR Chat · SIMPIFIER rendering · implementers

Stream: implementers

Topic: SIMPIFIER rendering


view this post on Zulip Thomas Tveit Rosenlund (Feb 24 2017 at 12:56):

I created a profile where I try to reference another profile, but this will not render on SIMPLIFIER (it did earlier toght). No other server or validation report any errors so I am amiss about what is causing the problem. Any input would be apreciated.
This is the resource in question:
https://simplifier.net/Velferdsteknologi2/FlagVFT/rendered

view this post on Zulip Michel Rutten (Feb 24 2017 at 13:16):

@Thomas Tveit Rosenlund you've mapped the profile extension element "geopositions" to the GeoPosition StructureDef. However that is not an Extension Definition, but a profile on Location. So the geopositions profile element is invalid. I notice that Forge happily expands the invalid extension element nonetheless; I'll try to add some validation warnings for this situation.

view this post on Zulip Michel Rutten (Feb 24 2017 at 13:17):

Apparently the Simplifier rendering is less forgiving.

view this post on Zulip Thomas Tveit Rosenlund (Feb 24 2017 at 13:19):

Thanks @Michel Rutten Is it illegal to reference another profile from a profile or is it just not recommended? I could go with an extention for the GeoPosition of course, but a profile of the Location resource seemed to me to be the better way to go.

view this post on Zulip Michel Rutten (Feb 24 2017 at 13:22):

You can certainly create references between profiles, but only using elements of type Reference. For example, Patient.careProvider can hold a reference to a Practitioner profile.

view this post on Zulip Thomas Tveit Rosenlund (Feb 24 2017 at 13:23):

OK, seems logical. I might try that. Thanks @Michel Rutten

view this post on Zulip Michel Rutten (Feb 24 2017 at 13:24):

In this case, you could define a simple extension and constrain value[x] to be a Reference(Location) with profile constrained to your Geolocation.

view this post on Zulip Thomas Tveit Rosenlund (Feb 24 2017 at 14:00):

OK, uploaded the changes, and now it renders OK.

view this post on Zulip Michel Rutten (Feb 24 2017 at 14:40):

Great!

view this post on Zulip Brian Postlethwaite (Feb 26 2017 at 01:05):

That GeoPosition profile removes all components of the location, seems a little restrictive to deny the presence of the other parts.


Last updated: Apr 12 2022 at 19:14 UTC