Skip to content

dhis2/fhir-ig-generator-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

DHIS2 Implementation Guide Generator App

The IG Generator app enables users to create FHIR Implementation Guides (IGs) based on DHIS2 tracker program metadata. The app allows users to set the configuration of an IG, select tracker programs, and transform the DHIS2 tracker metadata into FHIR artifacts. The app generates a local IG bundle, ready to be built with external tools like SUSHI. A DHIS2 instance with tracker metadata is required, and the app is designed as a tool to simplify IG authoring.

Tracker Program Selector

Building the Generated Implementation Guide (IG)

After using the IG Generator app, you will have a downloaded, zipped IG bundle. Follow the steps below to build the IG and view its contents:

1. Unzip the Generated IG Bundle

  • Extract the downloaded ZIP file into a directory of your choice.

2. Set Up Required Tools

Ensure the following tools are installed and available in your environment:

  • SUSHI: For compiling FHIR Shorthand into FHIR definitions.
    npm install -g fsh-sushi
  • Java JDK (version 17 or higher): Required for running the IG Publisher.
  • Ruby and Jekyll: Required for the IG Publisher.

3. Run the IG Publisher

The IG Publisher will generate the IG content, validate it, and create a browsable website.

Steps:

  1. Open a terminal and navigate to the extracted IG directory.
    cd path/to/ig
  2. Run the _updatePublisher script to download the latest version of the IG Publisher:
    • Linux/macOS:
      ./_updatePublisher.sh
    • Windows:
      _updatePublisher.bat
  3. Run the _genonce script to generate the IG content:
    • Linux/macOS:
      ./_genonce.sh
    • Windows:
      _genonce.bat

4. View the Generated IG

  1. Navigate to the output folder in the extracted IG directory.
  2. Open the index.html file in a web browser.
  3. Explore the IG, including the Artifacts tab, to view all generated FHIR artifacts.

This project was bootstrapped with DHIS2 Application Platform.

Available Scripts

In the project directory, you can run:

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

Launches the test runner and runs all available tests found in /src.

See the section about running tests for more information.

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
A deployable .zip file can be found in build/bundle!

See the section about building for more information.

yarn deploy

Deploys the built app in the build folder to a running DHIS2 instance.
This command will prompt you to enter a server URL as well as the username and password of a DHIS2 user with the App Management authority.
You must run yarn build before running yarn deploy.

See the section about deploying for more information.

Learn More

You can learn more about the platform in the DHIS2 Application Platform Documentation.

You can learn more about the runtime in the DHIS2 Application Runtime Documentation.

To learn React, check out the React documentation.

About

No description or website provided.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •