Getting Started
IG Design Overview
- Create/Open an ImplementationGuide (Project).
- Create ValueSets and CodeSystems in the UI.
- Create profiles (StructureDefinition resources) in UI. Create elements and constrain them to value sets created in step #2.
- Import images into the IG to insert into narrative.
- Create narrative pages for the IG.
- Mark example resources as “example” with optional subject/context.
- Publish the IG.
- Review the published IG.
- Review the QA results and resolve errors.
- Export as HTML package and store in GitHub.
Create Implementation Guide
- Open and log into Trifolia-on-FHIR.
- Select File > New Project.
- Specify an ID that is unique to your IG (e.g., test-ig).
- Specify a URL unique to your IG (e.g., http://test.com/fhir/implementationguide/test-ig). The last leaf/level of the URL should match the ID to prevent errors during publishing.
- Specify a name for your IG. This is the computable format of the name, used similarly (but not the same) as the ID.
- Specify a title for your IG. This is what is displayed to readers of the IG.
- Specify a Package ID. If developing an HL7 IG, you will receive this information pending PSS approval.
- Define permissions using the “Permissions” tab.
- Save the IG. It is now set as the project you are working on.
Create Narrative Pages
- Click Browse/Edit > Edit Implementation Guide.
- Select the “Narrative/Pages” tab.
- Provide a high-level description of the implementation guide, if desired. If no narrative pages are specified (see Step 4), then the IG’s home page will use this description.
- Scroll to the bottom and click the “Add Narrative Page” button. This will create an index page that represents the home page for your IG. When you edit this page, ToF can automatically generate the content for the home page (index) based on the description of the IG. You can also specify custom content displayed on the home page.
- Click the “+” on the index/home page to create child pages.
- The “Downloads” template is available to add to your IG and customize, which will provide default content for a “Downloads” page.
- Select “Show on top navigation bar” and specify a navigation menu name for the pages you want to appear on the top menu of the published IG.
- When editing a page, you can click the icon that represents multiple images to insert imports.
Import Images
- Click the “Import” menu from the top navigation menu.
- Drag-and-drop image files from your computer to the import window.
- Click “Import.”
Identify Examples
- Click Browse/Edit > Edit Implementation Guide.
- Select the “Resources” tab.
- Click “Edit” next to an example resource.
- Select “Example = Yes” or select a profile to set an example.
- Click “Done.”
- “Save” the IG after updating resources.
Publish
- Click the “Publish” menu from the top navigation menu.
- Select the options for your publication.
- HL7 requires the latest IG publisher for ballots. The IG publisher updates occasionally include bugs, which leads to errors. You can select “No” pending resolution.
- Selecting “No” for “Use terminology server” can quicken the publish execution, assuming you’re not worried about terminology.
- Indicating “Yes” for “Download?” will offer the entire published package as a download to your computer when complete.
- Click “Publish.” This process can be time-consuming, depending on the size of your IG. Please be patient. Once published, you can view the IG with the link on the status screen. Alternatively, you can select Browse/Edit > View Implementation Guide.
Create Terminology
Create a new value set or code system:
- Select Browse/Edit > Value Sets and/or Code Systems.
- Select the blue “+” button in the top-right to create a new value set or code system.
- Specify the details of the value set and/or code system.
- Save the value set or code system. The value set or code system is automatically associated with your IG.
Locate existing value sets or code systems:
- Select Browse/Edit > Edit Implementation Guide.
- Select the “Resources” tab.
- Select the “hand/pointer” icon in the top-right to add an existing resource.
- Un-check “Showing resources for the “Test IG” implementation guide.”
- Filter/Find then select the value set or code system.
Import a ValueSet from VSAC:
- Select “Import” on the top navigation bar
- Select the “VSAC” tab
- Specify your VSAC credentials
Your credentials are never sent to ToF servers, they are used only by your browser to communicate with VSAC; they do not leave your computer, aside from being sent to VSAC for authentication. - Specify the OID for the value set you would like to import.
- Click “Import”.
- Assuming the value set is found, it will be imported and automatically associated with your IG.
Create Profiles
- Select Browse/Edit > Profiles/Extensions.
- Click the blue “+” icon in the top-right of the screen.
- Indicate the URL for the profile. The beginning of the URL should match the IG’s URL (e.g., http://test.com/fhir/structuredefinition/my-profile if the IG is http://test.com/fhir/implementationguide/test-ig).
- Verify the ID matches the end of the URL. This should auto-populate when you enter the URL
(e.g., “my-profile” for the above URL example) - Specify a name and title, which the published IG will display.
- Indicate the “type” of resource this profile constrains (e.g., “Patient”).
- You may want to build your profile based on another profile. Specify a “Base Profile” that exists in the system.
- Click “Save.”
- Click the “Elements” tab.
- Select an element to constrain.
- Click “Constrain Element” in the right panel.
- Re-define the element in the right panel to specify the difference between the element and the base definition.
- Repeat for all constraints.
- Define a description for the profile, which the published IG will display to the reader.
- Save the profile.
Reverting to a previous version of a resource in Trifolia on FHIR
- In the resource(IG, Profile, Value Set, etc) Editor, navigate to the History tab
- Find the version of the resource you wish to restore
- Select the “Revert” option to the right of the "Save" button to undo any unsaved changes
- Select the "Restore" option by clicking the up arrow to the right of "Comparing version E to version #" to review the history of a resource and restore a previously saved version.
- Save the IG in order for the restored version to persist