-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b4e063a
commit 1852b4e
Showing
63 changed files
with
2,440 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
src/test/resources/mapping-files-spec/v0-2-0/contextual-mapping.schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "http://schema.better.care/fhirconnect/contextual/0.2.0/contextual-mapping-schema", | ||
"description": "Contextual Mapping schema for file format v0.2.0", | ||
"title": "Contextual Mapping", | ||
"type": "object", | ||
"properties": { | ||
"format": { | ||
"type": "string" | ||
}, | ||
"openEHR": { | ||
"$ref": "#/$defs/openEHR" | ||
}, | ||
"fhir": { | ||
"$ref": "#/$defs/fhir" | ||
} | ||
}, | ||
"required": [ | ||
"fhir", | ||
"format", | ||
"openEHR" | ||
], | ||
"additionalProperties": false, | ||
"$defs": { | ||
"fhir": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"resourceType": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"resourceType" | ||
], | ||
"title": "FHIR" | ||
}, | ||
"openEHR": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"templateId": { | ||
"type": "string" | ||
}, | ||
"archetypes": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"archetypes", | ||
"templateId" | ||
], | ||
"title": "openEHR" | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...ources/mapping-files-spec/v0-2-0/contextual-mappings/example-002-growth-chart.context.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
format: "0.2.0" | ||
|
||
openEHR: | ||
templateId: "CATTEDRA JDM Growth chart" | ||
archetypes: | ||
- "openEHR-EHR-OBSERVATION.body_weight.v2" | ||
- "openEHR-EHR-OBSERVATION.height.v2" | ||
- "openEHR-EHR-OBSERVATION.body_mass_index.v2" | ||
- "openEHR-EHR-OBSERVATION.head_circumference.v1" | ||
|
||
fhir: | ||
resourceType: "Bundle" |
9 changes: 9 additions & 0 deletions
9
...esources/mapping-files-spec/v0-2-0/contextual-mappings/inpatient-prescription.context.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
format: "0.2.0" | ||
|
||
openEHR: | ||
templateId: "OPENeP - Inpatient Prescription" | ||
archetypes: | ||
- "openEHR-EHR-INSTRUCTION.medication_order.v2" | ||
|
||
fhir: | ||
resourceType: "Bundle" |
15 changes: 15 additions & 0 deletions
15
...resources/mapping-files-spec/v0-2-0/contextual-mappings/simple-blood-pressure.context.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Context related mapping of concepts. | ||
# In this case, a simple example mapping a wrapper template to a FHIR resource. | ||
|
||
format: "0.2.0" # Version of format | ||
|
||
openEHR: | ||
templateId: "simple-encounter-blood-pressure.v0" | ||
# List of archetypes contained in that template. A unique set of Archetypes must have only one unique instance mapping at max. | ||
# This could be calculated at runtime, but only with major implications on performance. In contrast, calculating at design time is a one-time single effort. | ||
archetypes: | ||
# This list could be computed by the (GUI) tooling, which will help to create these mappings. | ||
- "openEHR-EHR-OBSERVATION.blood_pressure.v2" | ||
|
||
fhir: | ||
resourceType: "Observation" |
Oops, something went wrong.