Skip to content
This repository was archived by the owner on Mar 5, 2026. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,17 @@ spec:
fhirConfig:
structureDefinition: http://hl7.org/fhir/StructureDefinition/Patient

preprocessor:
fhirCondition:
targetRoot: "$resource"
targetAttribute: "active" # exclude non-active patients
operator: "one of"
criteria: "false"
#preprocessor: Logic not supported yet
# fhirCondition:
# - targetRoot: "$resource"
# targetAttribute: "active" # exclude non-active patients
# operator: "not empty"
# if yes:
# fhirCondition:
# targetRoot: "$resource"
# targetAttribute: "active" # exclude non-active patients
# operator: "one of"
# criteria: "true"

mappings:
- name: "personData"
Expand All @@ -30,7 +35,7 @@ mappings:
with:
fhir: "$resource.deceased.as(Boolean)"
openehr: "$archetype/data[at0001]/items[at0024]/items[at0025]"


- name: "deathDateTime"
with:
Expand All @@ -39,7 +44,7 @@ mappings:
manual:
- name: "deathboolean"
openehr:
- path: "items[at0025]/value"
- path: "items[at0025]"
value: "True"
fhirCondition:
targetRoot: "$resource"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
grammar: FHIRConnect/v0.9.0
type: model
metadata:
name: ADMIN_ENTRY.versicherungsinformationen.v0
version: 0.0.1-alpha
spec:
name: ADMIN_ENTRY.versicherungsinformationen.v0
version: 0.0.1-alpha
spec:
system: FHIR
version: R4
openEhrConfig:
archetype: openEHR-EHR-ADMIN_ENTRY.versicherungsinformationen.v0
revision: 0.0.1-alpha
fhirConfig:
structureDefinition: http://hl7.org/fhir/StructureDefinition/BackboneElement
structureDefinition: http://hl7.org/fhir/StructureDefinition/Identifier

mappings:
- name: "versicherungsId"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,22 @@ grammar: FHIRConnect/v0.9.0
type: model
metadata:
name: EVALUATION.gender.v1
version: 0.0.1-alpha
spec:
version: 0.0.1-alpha
spec:
system: FHIR
version: R4
openEhrConfig:
archetype: openEHR-EHR-EVALUATION.gender.v1
revision: 1.1.1
fhirConfig:
structureDefinition: "http://hl7.org/fhir/StructureDefinition/Code"

mappings:

- name: "gender"
with:
fhir: "$fhirRoot"
fhir: "$resource.gender"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can not be a $resource if structureDefiniton is code. Can only be fhirRoot as before, in my opinion.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Well i want to access the resource it comes from, fhirRoot is basically also adressing the resource. So why shouldnt it work.

openehr: "$archetype/data[at0002]/items[at0022]"

#
# - name: "sex"
# with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ mappings:
# with:
# fhir: "$fhirRoot"
# openehr: "$openEHRRoot" # reference to party_identified NOT SUPPORTED since 1..1 whole mapping is commented out
-

- name: "effective"
with:
fhir: "$resource.effective"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ grammar: FHIRConnect/v0.9.0
type: context
metadata:
name: KDS_medikationseintrag.context
version: 0.0.1a
spec:
version: 0.0.1a
spec:
system: FHIR
version: R4

context:
profile:
url: "https://www.medizininformatik-initiative.de/fhir/core/modul-labor/StructureDefinition/MedicationStatement"
url: "https://www.medizininformatik-initiative.de/fhir/core/modul-medikation/StructureDefinition/MedicationStatement"
version: "2025.0.0"
template:
id: "KDS_Medikationseintrag"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,34 @@ spec:
extends: OBSERVATION.medication_statement.v0

mappings:
#todo: where is this supposed to be mapped to? No encounter on MedicationStatement
# Dokumentationsdatum
- name: "fallIdentifikationIdentifier"
extension: "add"
with:
fhir: "$resource.context.as(Reference).identifier"
openehr: "$composition/context/other_context[at0005]/items[openEHR-EHR-CLUSTER.case_identification.v0]"
fhir: "$resource.context.identifier"
openehr: "$composition/context/other_context[at0001]/items[openEHR-EHR-CLUSTER.case_identification.v0]"
slotArchetype: "CLUSTER.case_identification.v0"

- name: "fallIdentifikationReference" # if reference is accessible overwrite fallIdentifikationIdentifier
extension: "add"
with:
fhir: "$resource.context.as(Encounter)"
fhir: "$resource.context"
openehr: "$reference"
reference:
resourceType: "Encounter"
mappings:
- name: "identifierInReference"
with:
fhir: "$fhirRoot.identifier"
openehr: "$composition/context/other_context[at0005]/items[openEHR-EHR-CLUSTER.case_identification.v0]"
openehr: "$composition/context/other_context[at0001]/items[openEHR-EHR-CLUSTER.case_identification.v0]"
slotArchetype: "CLUSTER.case_identification.v0"
# - name: "encounterMapping"
# with:
# fhir: "$fhirRoot"
# openehr: "$composition/context/other_context[at0005]/items[openEHR-EHR-CLUSTER.case_identification.v0]/links" # will use link
# openehrLink:
# meaning: "the case this composition relates to"
# type: "case"
# - name: "encounterMapping"
# with:
# fhir: "$fhirRoot"
# openehr: "$composition/context/other_context[at0001]/items[openEHR-EHR-CLUSTER.case_identification.v0]/links" # will use link
# openehrLink:
# meaning: "the case this composition relates to"
# type: "case"

- name: "protocol0004Parent"
extension: "add"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,33 +23,35 @@ mappings:
openehr: "$composition/context/other_context[at0001]/items[at0005]" # this status is mandatory, because it's 1...1 in the template


# Dokumentationsdatum
- name: "fallIdentifikationIdentifier"
extension: "add"
with:
fhir: "$resource.context.as(Reference).identifier"
fhir: "$resource.context.identifier"
openehr: "$composition/context/other_context[at0001]/items[openEHR-EHR-CLUSTER.case_identification.v0]"
slotArchetype: "CLUSTER.case_identification.v0"

- name: "fallIdentifikationReference" # if reference is accessible overwrite fallIdentifikationIdentifier
extension: "add"
with:
fhir: "$resource.encounter"
fhir: "$resource.context"
openehr: "$reference"
reference: #type None
reference:
resourceType: "Encounter"
mappings:
- name: "identifierInReference"
with:
fhir: "$fhirRoot.identifier"
openehr: "$archetype/context/other_context[at0001]/items[openEHR-EHR-CLUSTER.case_identification.v0]"
openehr: "$composition/context/other_context[at0001]/items[openEHR-EHR-CLUSTER.case_identification.v0]"
slotArchetype: "CLUSTER.case_identification.v0"
# - name: "encounterMapping"
# with:
# fhir: "$fhirRoot"
# openehr: "$archetype/context/other_context[at0001]/items[openEHR-EHR-CLUSTER.case_identification.v0]/links" # will use link
# openehrLink:
# meaning: "the case this composition relates to"
# type: "case"
# - name: "encounterMapping"
# with:
# fhir: "$fhirRoot"
# openehr: "$composition/context/other_context[at0001]/items[openEHR-EHR-CLUSTER.case_identification.v0]/links" # will use link
# openehrLink:
# meaning: "the case this composition relates to"
# type: "case"


- name: "medicationCode"
extension: "overwrite"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
grammar: FHIRConnect/v0.9.0
type: extension
metadata:
name: KDS_address
version: 0.0.1-alpha
spec:
system: FHIR
version: R4
extends: CLUSTER.address.v1

mappings:
- name: "streetaddress"
extension: "overwrite"
with:
fhir: "$fhirRoot"
openehr: "$archetype"
followedBy:
mappings:
- name: "city"
with:
fhir: "city"
openehr: "items[at0002]"

- name: "postalCode"
with:
fhir: "postalCode"
openehr: "items[at0005]"

- name: "line"
with:
fhir: "line"
openehr: "items[at0001]"

- name: "type"
with:
fhir: "type"
openehr: "items[at0010]"
manual:
- name: "physical"
openehr:
- path: "defining_code/terminology_id"
value: "local"
- path: "defining_code/code_string"
value: "at0011"
- path: "value"
value: "Physical"
fhirCondition:
targetRoot: "$fhirRoot"
targetAttribute: "code"
operator: "one of"
criteria: "physical"

fhir:
- path: "code"
value: "physical"
openehrCondition:
targetRoot: "$openehrRoot"
targetAttribute: "defining_code/code_string"
operator: "one of"
criteria: "at0011"

- name: "postal"
openehr:
- path: "defining_code/terminology_id"
value: "local"
- path: "defining_code/code_string"
value: "at0012"
- path: "value"
value: "Postal"
fhirCondition:
targetRoot: "$fhirRoot"
targetAttribute: "code"
operator: "one of"
criteria: "postal"
fhir:
- path: "code"
value: "postal"
openehrCondition:
targetRoot: "$openehrRoot"
targetAttribute: "defining_code/code_string"
operator: "one of"
criteria: "at0012"

- name: "both"
openehr:
- path: "defining_code/terminology_id"
value: "local"
- path: "defining_code/code_string"
value: "at0013"
- path: "value"
value: "Both"
fhirCondition:
targetRoot: "$fhirRoot"
targetAttribute: "code"
operator: "one of"
criteria: "both"
fhir:
- path: "code"
value: "both"
openehrCondition:
targetRoot: "$openehrRoot"
targetAttribute: "defining_code/code_string"
operator: "one of"
criteria: "at0013"
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ mappings:
with:
fhir: "$resource.identifier"
openehr: "$composition/context/other_context[at0003]/items[at0004]"

fhirCondition:
targetRoot: "$resource.identifier"
targetAttribute: "type.coding.code"
Expand All @@ -34,6 +34,7 @@ mappings:
value: "MR"

- name: "versicherungsInformationen"
extension: "add"
with:
fhir: "$resource.identifier"
openehr: "$composition/content[openEHR-EHR-ADMIN_ENTRY.versicherungsinformationen.v0]"
Expand All @@ -42,7 +43,7 @@ mappings:
- name: "gender"
extension: "add"
with:
fhir: "$resource.gender"
fhir: "$resource"
openehr: "$composition/content[openEHR-EHR-EVALUATION.gender.v1]"
slotArchetype: "EVALUATION.gender.v1"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ grammar: FHIRConnect/v0.9.0
type: context
metadata:
name: KDS_Person.context
version: 0.0.1a
spec:
version: 0.0.1a
spec:
system: FHIR
version: R4

Expand All @@ -20,13 +20,15 @@ context:
- "CLUSTER.person.v1"
- "CLUSTER.structured_name.v1"
- "CLUSTER.address.v1"
- "CLUSTER.organisation.v1"
- "CLUSTER.person_birth_data_iso.v0"
- "CLUSTER.death_details.v1"
- "CLUSTER.observation_status_fhir.v1"
- "ADMIN_ENTRY.versicherungsinformationen.v0"
extensions:
- "KDS_person_data.v0"
- "KDS_gender.v1"
- "KDS_cluster_person.v1"
- "KDS_address"
- "KDS_structured_name.v1.person_name-structured_name"
- "KDS_admin_entry_person.v0"
start: "ADMIN_ENTRY.person_data.v0"
Loading
Loading