Skip to content

Latest commit

 

History

History
98 lines (67 loc) · 6.86 KB

setup-guide.md

File metadata and controls

98 lines (67 loc) · 6.86 KB

Setup Guide

This guide will help you set up the repository in your organisation, create a fork, set up deployment pipelines, add Liquid templates for your data-type, and integrate with the Healthcare Data Exchange.

Create a fork of the repository

You will have to create a fork of this repository for your organisation. Below are the steps to do so depending on whether you use Github or Azure DevOps.

Please note that the below guidance is for deploying the Healthcare Data Exchange in your organisation. If you are looking to contribute to the original repository, please refer to the contribution guidelines.

Github

  1. Navigate to the Healthcare Data Exchange repository
  2. Click on the Fork button on the top right corner of the page.
  3. Select your organisation as the destination for the fork. More detailed instructions at the fork a repo guide.
  4. Once the fork is complete, you will be redirected to your forked repository.
  5. Clone the repository to your local machine.
  6. Please ensure that you create a separate branch for your changes. We recommend using the development branch for your changes (or any branch name of your preference). We use main branch only to sync back the changes from the upstream repository.
  7. You can now start making changes to the codebase.
  8. To keep your fork up to date with the original repository, you can follow the steps at syncing a fork guide.
  9. To contribute back to the original repository, please refer to the contribution guidelines.

Azure DevOps

  1. Navigate to the Healthcare Data Exchange repository
  2. Click on the Fork button on the top right corner of the page.
  3. Select your organisation as the destination for the fork. More detailed instructions are available at setting a fork in Azure DevOps.
  4. Once the fork is complete, you will be redirected to your forked repository in Azure DevOps.
  5. Clone the repository to your local machine.
  6. Please ensure that you create a separate branch for your changes. We recommend using the development branch for your changes (or any branch name of your preference). We use main only to sync back the changes from the upstream repository.
  7. You can now start making changes to the codebase.
  8. To keep your fork up to date with the original repository on Github, you can follow the guide for syncing fork in Azure DevOps.
  9. To contribute back to the original repository, please refer to the contribution guidelines.

Diagram for forking and syncing

graph LR;
    healthcare-data-exchange-main-branch[healthcare-data-exchange main branch]-->|create a fork|YourFork-main-branch[YourFork main branch];
    YourFork-main-branch[YourFork main branch]-->YourFork-development-branch[YourFork development branch];
    healthcare-data-exchange-main-branch-->|sync the repository|YourFork-main-branch;
    YourFork-feature1[YourFork feature-branch-1]-->YourFork-development-branch[YourFork development branch];
    YourFork-feature2[YourFork feature-branch-2]-->YourFork-development-branch[YourFork development branch];
    YourFork-feature3[YourFork feature-branch-3]-->YourFork-development-branch[YourFork development branch];
Loading

Set up keys and service principals for running pipelines

Github

TBD

Azure DevOps

  1. The first step in Azure DevOps to run pipeline would be to create a Azure Service Principal for your Azure DevOps pipeline. Here are the steps to create the Azure Service Principal.
  2. The next step would be to create a Service Connection in Azure DevOps. This Service Connection will be used to authenticate the pipeline execution.
  3. The detailed steps are present on the Azure documentation for managing service connections in Azure DevOps.

Set up BVT (build verification testing) pipelines

Github Actions Pipeline

  1. As part of the forked repository, you will get the .github/workflows folder in the repository.
  2. bvt.yaml defines the bvt steps. You can modify the steps as per your requirements.
  3. The pipeline uses Azure Container Registry to store the liquid templates against which the template tests are run.
  4. You can modify acr_name as per your configurations.

Azure DevOps Pipelines

  1. As part of the forked repository, you will get the Pipelines section in Azure DevOps under the .pipelines folder.
  2. templates/bvt.yaml defines the bvt steps. You can modify the steps as per your requirements.
  3. The pipeline uses Azure Container Registry to store the liquid templates against which the template tests are run.
  4. You can modify ACR_NAME as per your configurations.

Set up CI/CD pipelines

Github Actions Pipeline

  1. Navigate to the .github/workflows folder in the repository.
  2. Refer to the existing workflows to create a new workflow for your organisation.

Azure DevOps Pipeline

  1. Navigate to the Pipelines section in Azure DevOps.
  2. Create a new pipeline or reuse existing one, and select the repository you forked. Refer to Azure DevOps Pipelines for more information.
  3. Save and run the pipeline.

Integrate with Data Source

You will have to integrate with the source of the data you want to ingest into the Healthcare Data Exchange. A detailed guide is available at source integration guide.

Add Liquid templates for your data-type

Healthcare Data Exchange repository uses Liquid templates to transform data from the source system to the FHIR format. You will need to create a Liquid template for your data-type. Please refer to the existing templates in the templates folder for existing liquid templates.

Set up the Integration with Healthcare Data Exchange

Once your repository is setup within your organisation, you can start integrating with the Healthcare Data Exchange. Here is the detailed integration guide for integrating with the Healthcare Data Exchange.