Skip to content

Latest commit

 

History

261 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

mii-kds-module-template

A GitHub template repository for building an MII Kerndatensatz (KDS) module Implementation Guide. Click Use this template and you get a working IG project — FHIR tooling, CI, bilingual previews and the MII release process already wired up — so you can start with profiles and content instead of setup.

The MII look comes from the separate IG template ig-template-mii-kds, which this scaffold references (and keeps up to date automatically).

See what it renders as before you start: https://medizininformatik-initiative.github.io/mii-kds-module-template/ — the demo module of the current release, plus two real MII KDS modules migrated onto this template.

Status: prototype. Usable and released, but pending discussion in the MII Taskforce Kerndatensatz — see docs/org-move.md.

⚠️ When you click Use this template, tick “Include all branches”. Otherwise you get main only, without the dev branch this scaffold works with. The first-run bootstrap in step 2 creates dev for you if you forgot.

Quickstart

  1. Create your repoUse this template, tick Include all branches.
  2. Run the first-run bootstrapbash scripts/first-run-bootstrap.sh (dry run), then --apply. It protects both branches and removes the template's own SemVer release automation, which a CalVer module must not carry. Run it even if you ticked Include all branches.
  3. Open it in the dev container (VS Code → Reopen in Container). It brings Java, Node, SUSHI, Jekyll and Graphviz. → details
  4. Fill in your module's values — start in sushi-config.yaml, whose header lists all 19 placeholders and the files each one occurs in, then work through ig.ini, publication-request.json, .github/workflows/go-publish.yml, qc/custom.rules.yaml, tests/, the pages and the FSH sources. Also rename the three placeholder-NAMED files to your IG's id — the IG-level catalogue input/translations/de/ImplementationGuide-mii-ig-{{MODULE_SLUG}}.po (the publisher ignores it silently if it does not match) and the ImplementationGuide intro page ImplementationGuide-mii-ig-{{MODULE_SLUG}}.md in input/pagecontent/ and its German mirror (the build fails on the pages: entry if they do not match). Create a new module step 5 has the two sweeps that prove you missed none.
  5. Write a profile in input/fsh/ (an example is included to copy) and replace the English starter pages in input/pagecontent/ (and their German counterparts in input/translations/de/pagecontent/). → add a profile
  6. Build it: sushi ., then run the IG Publisher, then read output/qa.html. Or push a branch — CI builds it and comments the preview URL on your PR (one-time: enable GitHub Pages and set PAGES_ACTIONS_ENABLED to match the Pages mode you chose — first-run setup, checklist item 2 — else every preview URL 404s).
  7. Release with CalVer via the MII Module Release Workflow. → cut a release

The full walkthrough is create a new module. Unfamiliar terms are in the glossary.

Where things live

Path What it is
sushi-config.yaml Your module's metadata — the file you edit first
input/fsh/ Profiles, extensions, value sets (FHIR Shorthand)
input/pagecontent/ The narrative pages — English, the IG's default language
input/translations/de/ German translations of pages, menu and resources
input/includes/menu.xml The navigation menu (one file per language)
qc/custom.rules.yaml, advisor.json What the MII reusable validation reads: naming-convention rules and tolerated validator messages
ig-template/ The MII IG template, mirrored automatically as the offline/reproducibility fallback (builds default to the template repository URL in ig.ini) — don't edit
docs/ Guides and step-by-step recipes
tests/ FHIR validation test cases the build runs — see tests/README.md
scripts/ Helper scripts (first-run bootstrap, template sync, convention check, …) — see scripts/README.md
skills/ Reusable instructions for recurring maintenance tasks — see AGENTS.md
.github/workflows/ CI: build, preview, validation, release — see docs/workflows.md

Documentation

docs/ is the index — every guide, with a reading order for newcomers. The three you are most likely to want first:

Contributing and policies: CONTRIBUTING.md · CODE_OF_CONDUCT.md · SECURITY.md

Getting help

Licence

CC-BY-4.0, matching MII IG content.

About

Template repository to start an MII KDS module Implementation Guide

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages