# hl7dk/dk-core architecture

> Architecture diagram of the GitHub repository hl7dk/dk-core, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hl7dk/dk-core
- Repository: https://github.com/hl7dk/dk-core

## Overview

This repository is a Danish, vendor-neutral collection of FHIR profiles and supporting terminology, intended for review and use in Denmark. Its product workflow is the definition and publication of an Implementation Guide (IG) for FHIR implementers; the README describes the IG build and its published locations. The tree identifies resource profiles, identifiers, terminology, extensions, and guidance, but no source excerpts were supplied, so internal dependencies among those artifacts are not asserted.

Main entry points: [`input/fsh`](https://github.com/hl7dk/dk-core/tree/master/input/fsh) (Resource Profiles), [`input/pagecontent`](https://github.com/hl7dk/dk-core/tree/master/input/pagecontent) (Guide Content), [`sushi-config.yaml`](https://github.com/hl7dk/dk-core/blob/master/sushi-config.yaml) (Guide Configuration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_profiles["FHIR Profiles"]
  node_resource_profiles["Resource Profiles"]
  node_ipa_profiles["IPA Profiles<br/>[IPAProfiles.fsh]"]
  node_identifier_profiles["Identifier Profiles"]
  node_test_patients["Test Patients<br/>[TestPatienter.fsh]"]
end

subgraph group_support["FHIR Definitions"]
  node_code_systems["Code Systems<br/>[codeSystems.fsh]"]
  node_value_sets["Value Sets<br/>[valueSets.fsh]"]
  node_extensions["Extensions<br/>[extensions.fsh]"]
  node_instances["FHIR Instances<br/>[instances.fsh]"]
end

subgraph group_guide["Implementation Guide"]
  node_guide_content["Guide Content"]
  node_guide_config["Guide Configuration<br/>[sushi-config.yaml]"]
  node_published_guide["Published IG"]
end

node_implementer(("FHIR Implementer"))

node_implementer -->|"uses profiles"| node_resource_profiles
node_resource_profiles -->|"published as"| node_published_guide
node_guide_content -.->|"included in"| node_published_guide
node_guide_config -.->|"configures"| node_published_guide

click node_resource_profiles "https://github.com/hl7dk/dk-core/tree/master/input/fsh"
click node_ipa_profiles "https://github.com/hl7dk/dk-core/blob/master/input/fsh/IPAProfiles.fsh"
click node_identifier_profiles "https://github.com/hl7dk/dk-core/tree/master/input/fsh"
click node_test_patients "https://github.com/hl7dk/dk-core/blob/master/input/fsh/TestPatienter.fsh"
click node_code_systems "https://github.com/hl7dk/dk-core/blob/master/input/fsh/codeSystems.fsh"
click node_value_sets "https://github.com/hl7dk/dk-core/blob/master/input/fsh/valueSets.fsh"
click node_extensions "https://github.com/hl7dk/dk-core/blob/master/input/fsh/extensions.fsh"
click node_instances "https://github.com/hl7dk/dk-core/blob/master/input/fsh/instances.fsh"
click node_guide_content "https://github.com/hl7dk/dk-core/tree/master/input/pagecontent"
click node_guide_config "https://github.com/hl7dk/dk-core/blob/master/sushi-config.yaml"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_resource_profiles,node_ipa_profiles,node_identifier_profiles,node_test_patients toneBlue
class node_code_systems,node_value_sets,node_extensions,node_instances toneAmber
class node_guide_content,node_guide_config,node_published_guide toneMint
class node_implementer toneIndigo
```

## Components

### FHIR Profiles

- [Resource Profiles](https://github.com/hl7dk/dk-core/tree/master/input/fsh): `input/fsh`
- [IPA Profiles](https://github.com/hl7dk/dk-core/blob/master/input/fsh/IPAProfiles.fsh): `input/fsh/IPAProfiles.fsh`
- [Identifier Profiles](https://github.com/hl7dk/dk-core/tree/master/input/fsh): `input/fsh`
- [Test Patients](https://github.com/hl7dk/dk-core/blob/master/input/fsh/TestPatienter.fsh): `input/fsh/TestPatienter.fsh`

### FHIR Definitions

- [Code Systems](https://github.com/hl7dk/dk-core/blob/master/input/fsh/codeSystems.fsh): `input/fsh/codeSystems.fsh`
- [Value Sets](https://github.com/hl7dk/dk-core/blob/master/input/fsh/valueSets.fsh): `input/fsh/valueSets.fsh`
- [Extensions](https://github.com/hl7dk/dk-core/blob/master/input/fsh/extensions.fsh): `input/fsh/extensions.fsh`
- [FHIR Instances](https://github.com/hl7dk/dk-core/blob/master/input/fsh/instances.fsh): `input/fsh/instances.fsh`

### Implementation Guide

- [Guide Content](https://github.com/hl7dk/dk-core/tree/master/input/pagecontent): `input/pagecontent`
- [Guide Configuration](https://github.com/hl7dk/dk-core/blob/master/sushi-config.yaml): `sushi-config.yaml`
- **Published IG**

### Other components

- **FHIR Implementer**

## Connections

- FHIR Implementer → Resource Profiles: uses profiles (evidence: `README.md`)
- Resource Profiles → Published IG: published as (evidence: `README.md`)
- Guide Content → Published IG: included in
- Guide Configuration → Published IG: configures
