To create a new extension, click the 'new extension' button in the tool bar. The following modal is displayed.
The first thing to do is to enter a name for the extension. clinFHIR will use this to create a 'connonical' name - actually a url that is globally unique. it does this by appending the name you enter (without spaces) to the string 'clinfhirext'- you can see the id being created as you type. The Extension is assumed to be craeted on the registry that is supporting the tool - the Health Intersections server by default.
When you leave the name field, the app will make a query to the server to see if the extension name has already been used. If it has, then you will get a warning. It won't stop you from creating the extension, but the existing one will be overwritten if you continue and save this one.
This workflow would not be suitable in a production setting of course. FHIR does support more complex workflow to safely create extenson definitions than a production tool should follow. Once published, an extension should not be altered, as resources can start using it so its meaning should not alter.
Add Comment