The FHIR Profiling tool is a development utility that can be used to generate FHIR Resource JSON schemasTemplates according to any FHIR version specification. The FHIR Profiling tool performs two key activities:
First creates a FHIR Profiling SQLite database (fhir_profiles.db) by parsing and storing JSON specification files uploaded to the project. By default, the tool generates resources according to FHIR v4.0.1, however this is configurable.
Using this database, the FHIR Profiling tool generates the desired FHIR Resource JSON schema, which you can then use in other projects to create and map FHIR resources.
How to use
...
Expand | ||
---|---|---|
| ||
Using +COMPONENT, import the FHIR Profiling Tool |
Expand | ||
---|---|---|
| ||
By default, the FHIR Profiling Tool is pre-loaded with the FHIR v4.0.1 resources. The component contains specifications for FHIR v4.0.0 and v4.0.1, so you can change the default configuration to use v4.0.0 by changing the custom field FhirVersion in the component card to “4.0.0”. | ||
Expand | ||
| ||
If needed, you can expand the versions available in Need another FHIR Version? This can be adapted by manually uploading the new FHIR specification to the component:
|
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
If any custom or extension profiles are needed, you can add the <custom_profiles>.json files to the Specifications/Custom folder. If no extensions are needed, the folder should be left empty. Note that if the custom profile’s specification exists as a standalone resource, it will need to be nested within a larger bundle resource definition. For example, this custom patient profile’s specification would go under the resource table: Code Block | Let’s walk through this process using an example custom profile - De-Identified UDS Plus Patient.
|
Expand | ||
---|---|---|
| ||
This component processes and stores specification data in a SQLite database (Specifications/fhir_profiles.db) for easy access. If you wish to update the FHIR version and/or load any custom profiles into that database, set the custom field Refresh in the component card to “true” before starting the component. This flag tells the component to reference the specified FHIR version and any files in the Specifications/Custom folder and refresh the database on startup. |
Expand | ||
---|---|---|
| ||
Now that the component card has been configured to the correct FhirVersion and Refresh details, you can start the component! If the component was set with Refresh as true, it will take some time to initialize and load the database. It will reset the Refresh flag to false when done. Once ready, the component will provide a URL in the component status: |
Expand | ||
---|---|---|
| ||
Clicking on the provided URL will take you to the FHIR Profiling Tool’s menu which contains a list of all the FHIR resources and types available in the SQLite database. Clicking on any of the links will trigger the tool to generate a template JSON for the specified FHIR resource or type: You can now copy the template JSON and bring it over to your FHIR component to use in your interface. See <link confluence page on creating FHIR resources> https://interfaceware.atlassian.net/wiki/x/AgBbrg for an example of how to use a FHIR JSON template to generate and map FHIR resources. |