Stream: implementers
Topic: How to create a new profile in existing resource
Fan Lin (Sep 26 2017 at 13:51):
How to add new profile in the exist resource? I think maybe download the sourcode and add some new xml
file to describe the profile detail ,but howto do it and how to add the profile to the list of rescource.
Ewout Kramer (Sep 26 2017 at 13:58):
How to add new profile in the exist resource? I think maybe download the sourcode and add some new xml
file to describe the profile detail ,but howto do it and how to add the profile to the list of rescource.
Well, yes, you could do it by hand, or use a visual editor like Forge (https://forge.simplifier.net/Forge).
When you want to share your new profile, you can upload it to simplifier.net and it will become available for others on both registry.fhir.org and simplifier.net. It will not, however, appear "automatically" in the specification (http://hl7.org/fhir) - this only contains profiles published by HL7.
Fan Lin (Sep 26 2017 at 14:03):
Thanks for your help. I am downloading the forges ,and are there any documents about the step by step of create profile
Fan Lin (Sep 26 2017 at 14:04):
Or can I do it in the forge directly?
Stefan Lang (Sep 26 2017 at 14:05):
Forge is a tool dedicated to profile creation, so: yes, directly in Forge
Fan Lin (Sep 26 2017 at 14:05):
oh it's the best way for it, with a GUI tools
Stefan Lang (Sep 26 2017 at 14:06):
True, writing profiles in an editor is the hard way to do it ;-)
Ewout Kramer (Sep 26 2017 at 14:06):
Thanks for your help. I am downloading the forges ,and are there any documents about the step by step of create profile
http://docs.simplifier.net/forge/index.html
Fan Lin (Sep 26 2017 at 14:20):
If I create new profile in forge, where it should be published ? I means it just a test but I want to view the result
Stefan Lang (Sep 26 2017 at 14:22):
You can create a free account on SImplifier: https://simplifier.net/
Fan Lin (Sep 26 2017 at 14:23):
and bind my account to the forge ,publishing should be view in my account webpage?
Stefan Lang (Sep 26 2017 at 14:24):
If you want to see the full resulting profile and not only the differential to the base resource, make sure to have "Options" => "Save snapshot component" checked in Forge when saving your profile.
Stefan Lang (Sep 26 2017 at 14:25):
Yes, you can push directly to Simplifier oder save the file and upload it on the Simplifier site
Fan Lin (Sep 26 2017 at 15:09):
It's a excellent tools! Can I download all xml source files after my creating new profile and add into sourcecode Repository in my local computer?
Stefan Lang (Sep 26 2017 at 15:13):
You're free to do so ;-)
You also can save your profles locally from Forge, which might be more convenient.
Fan Lin (Sep 26 2017 at 19:32):
if we should add more Components in new profile,like oberservation(BP) have two components, how to do it in the forge? I just can add slicecomponent, but it is not same as component . right?
Fan Lin (Sep 26 2017 at 19:34):
Fan Lin (Sep 26 2017 at 20:51):
I cannot add more components in the new profile of observation
Lloyd McKenzie (Sep 27 2017 at 03:41):
"sliceComponent" just means you've defined a constraint (a 'slice') on one of the component repetitions. In the instance, what you'll see is <component>.
Michel Rutten (Sep 27 2017 at 11:25):
Hi @Fan Lin, According to the FHIR spec, all slices in a common slice group should have a unique slice name. When you add a new slice in Forge, the application initializes the slice name using the format "slice{elementName}{index}", e.g. "sliceComponent3". You are encouraged to manually update the default values to proper, descriptive names.
Last updated: Apr 12 2022 at 19:14 UTC