Skip to content
This repository was archived by the owner on Dec 17, 2021. It is now read-only.

Commit 6fd2b8a

Browse files
committed
Update README
1 parent 114312e commit 6fd2b8a

File tree

2 files changed

+40
-21
lines changed

2 files changed

+40
-21
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,14 @@ on:
22
push:
33
branches:
44
- main
5-
- feature/*
6-
# pull_request:
7-
# types: [ assigned, opened, synchronize, reopened, labeled ]
5+
pull_request:
6+
87
name: ci
98
jobs:
109
test:
1110
runs-on: ubuntu-latest
12-
# strategy:
13-
# matrix:
14-
# node: [10, 12, 14]
1511
steps:
1612
- uses: actions/checkout@v2
17-
# - run: git config --global user.name 'CI'
18-
# - run: git config --global user.email '[email protected]'
19-
# - uses: actions/setup-node@v2
20-
# with:
21-
# node-version: ${{ matrix.node }}
2213

2314
# Builds the .fsh files into FHIR .json resources.
2415
# Doc: https://fshschool.org/docs/sushi/running
@@ -42,12 +33,3 @@ jobs:
4233
with:
4334
commit: ${{ github.event.workflow_run.head_sha }}
4435
files: "test-results/TEST-*.xml"
45-
46-
# - run: node --version
47-
# - run: npm install --engine-strict
48-
# - run: npm test
49-
# - name: coverage
50-
# uses: codecov/codecov-action@v2
51-
# with:
52-
# name: actions ${{ matrix.node }}
53-
# fail_ci_if_error: true

README.md

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,38 @@
1-
# fhir-questionnaires
1+
# FHIR-Questionnaires
2+
3+
This repository contains the FHIR Questionnaires supported by [NAV](https://nav.no).
4+
5+
## Development
6+
7+
The Questionnaires are developed using [FSH](https://build.fhir.org/ig/HL7/fhir-shorthand/overview.html) ([Tutorial](https://fshschool.org/docs/tutorials/basic/)).
8+
9+
Each Questionnaire is located in a folder within the `input/fsh` folder. Typical content of a Questionnaire folder:
10+
11+
```
12+
input/fsh/NAV-06-03-04/
13+
├── CHANGELOG.md # Maintained by the release process
14+
├── package.json # Configure package name, version is managed by the release process
15+
└── questionnaire.fsh # Source code for the Questionnaire
16+
```
17+
18+
To build the FHIR resources just run the following at the root of the project:
19+
```
20+
npm install -g fsh-sushi
21+
sushi .
22+
```
23+
24+
## Release management
25+
26+
The release process is managed by [release-please](https://github.com/googleapis/release-please). The release workflow relies on the following convention:
27+
28+
- Workflow name, Questionnaire id (`Instance` field in the .fsh file) and Questionnaire's folder name in the `input/fsh` folder **must match**.
29+
30+
Commits following the [Conventional Commit messages](https://www.conventionalcommits.org/en/v1.0.0/) and affecting the Questionnaire folder, will trigger the creation of a PR. While open, this PR will keep track of additional commits satisfying the aforementioned mentioned rules and update the Changelog and version ([see](https://github.com/google-github-actions/release-please-action#how-should-i-write-my-commits) for more details).
31+
32+
Upon merge of this PR a Github Release will be created containing the json resource for the Questionnaire, as well as a npm package will be published containing the same resource. The version in the Questionnaire resource will be inferred from the `package.json` file.
33+
34+
## Creating new Questionnaire
35+
36+
To create a new Questionnaire just create a folder in the `input/fsh` folder. Here create a `package.json` and a `.fsh` file describing your Questionnaire. Make sure you also create a workflow file for the release process.
37+
38+
**NOTE**: Make sure you follow the convention mentioned in the `Release management` section.

0 commit comments

Comments
 (0)