Skip to content

feat: Adding FMK Medication to DK Core#216

Draft
jkiddo wants to merge 9 commits into
masterfrom
feature-medication-addons
Draft

feat: Adding FMK Medication to DK Core#216
jkiddo wants to merge 9 commits into
masterfrom
feature-medication-addons

Conversation

@jkiddo

@jkiddo jkiddo commented Apr 21, 2026

Copy link
Copy Markdown
Collaborator

This pull request introduces three new Danish Core FHIR profiles for medication data, aligning them with the Danish Shared Medication Record (FMK) and HL7 Europe Base profiles. It also adds supporting aliases and comprehensive documentation to facilitate mapping and usage. The main focus is on enabling structured, interoperable medication data exchange in Denmark.

Key changes:

New Danish Core Medication Profiles

  • Added DkCoreMedication, DkCoreMedicationRequest, and DkCoreMedicationStatement profiles, each tailored to FMK data structures and requirements, including detailed slicing on codes and identifiers, FMK-specific extensions, and multiple example instances. [1] [2] [3]

FMK and HL7 Europe Compatibility

  • Profiles are designed to be compatible with HL7 Europe Base profiles (e.g., via imposeProfile extensions) and provide explicit mappings from FMK fields to FHIR elements, ensuring easy transformation and EU-wide interoperability. [1] [2] [3] [4]

New Aliases for Danish and EU Medication Concepts

  • Introduced multiple FSH aliases for FMK and EU-specific systems, identifiers, and extensions (e.g., $atc, $FmkOrdinationId, $eu-medicationRequest, etc.), simplifying profile authoring and maintenance.

Documentation and Implementation Guidance

  • Added detailed introductory markdown pages for DkCoreMedication and DkCoreMedicationRequest, explaining scope, FMK mapping, relationship to HL7 Europe Base, and implementation advice for Danish systems. [1] [2]

Example Instances

  • Included comprehensive example resources for each profile, demonstrating both inline and referenced medication representations, as well as handling of stopped medications using FMK conventions and extensions. [1] [2] [3]

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds DK Core medication artifacts to support Danish Shared Medication Record (FMK) mappings while aiming for compatibility with HL7 Europe Base (EU Core) medication profiles.

Changes:

  • Introduces new DK Core profiles + examples for Medication, MedicationRequest, and MedicationStatement aligned to FMK identifiers/codes and R5 backport extensions.
  • Adds new FSH aliases for FMK identifiers, R5 backport extensions, and EU Core profile canonicals.
  • Adds introductory documentation pages describing scope, FMK mapping, and EU Core relationship.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
input/pagecontent/StructureDefinition-dk-core-medication-intro.md New intro documentation for DkCoreMedication and FMK mapping guidance
input/pagecontent/StructureDefinition-dk-core-medicationrequest-intro.md New intro documentation for DkCoreMedicationRequest incl. FMK mapping + extension guidance
input/pagecontent/StructureDefinition-dk-core-medicationstatement-intro.md New intro documentation for DkCoreMedicationStatement incl. FMK mapping + adherence guidance
input/fsh/aliases.fsh Adds aliases for ATC, FMK identifiers, R5 backport extensions, and EU Core profile canonicals
input/fsh/DkCoreMedication.fsh New DkCoreMedication profile + example instance
input/fsh/DkCoreMedicationRequest.fsh New DkCoreMedicationRequest profile + multiple example instances
input/fsh/DkCoreMedicationStatement.fsh New DkCoreMedicationStatement profile + multiple example instances

Comment thread input/fsh/DkCoreMedicationRequest.fsh Outdated
Comment thread input/fsh/DkCoreMedicationStatement.fsh Outdated
Comment thread input/fsh/aliases.fsh
Comment on lines +43 to +45
Alias: $eu-medicationRequest = http://hl7.eu/fhir/base/StructureDefinition/medicationRequest-eu-core
Alias: $eu-medicationStatement = http://hl7.eu/fhir/base/StructureDefinition/medicationStatement-eu-core
Alias: $eu-medication = http://hl7.eu/fhir/base/StructureDefinition/medication-eu-core
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants