Using clinFHIR logical models in the graph builder
The graph builder can also build 'pseudo' resource instances from logical models that have been created using the clinFHIR Logical Modeller. These are useful if you create the models from core resource types and add elements to the models to represent extensions. You can then 'test' out the models in the Graph Builder, and subsequently create the real profiles.
These pseudo resources cannot be saved on the data server
Using logical models in this way requires specific setup of the scenario.
- Select the track, and note the conformance server.
- Open clinfhir and set the conformance server to the same server
- Load the clinFHIR Logical modeller and create the model, giving it a name that you will recognize later. You can model it on a core resource type or just use an ad hoc model. Make a note of the Model Url (found in the Model tab on the right.
- In conMan, create a new scenario in the track (or select an existing one) and select the 'types' tab. The logical model can be added at the bottom of the dialog - click the + icon to display a dialog that will allow you to select the logical model you created.
- Save the scenario.
After this, the logical model will be available to select from the Logical Models tab in the palette of the graph builder. You can either select from the dropdown (which can be quite difficult if there are a lot of models) or just enter the url to the model that you noted in step 3 above.
You can use a logical model from another server if you wish.
- In the clinFHIR logical modeler make a note of the full url to the modelas described in step3 above.
- Then, just add to the scenario as described in step 4.