-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support open references (no version on archetype id) from use_archety…
…pe statements.
- Loading branch information
1 parent
e99208b
commit a208a3f
Showing
4 changed files
with
64 additions
and
2 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
56 changes: 56 additions & 0 deletions
56
combined/src/test/resources/adl3/pass/openEHR-EHR-COMPOSITION.ext_open_ref.v1.0.0.adls
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,56 @@ | ||
archetype (adl_version=2.0.5; rm_release=1.0.2) | ||
openEHR-EHR-COMPOSITION.ext_ref.v1.0.0 | ||
|
||
language | ||
original_language = <[ISO_639-1::en]> | ||
|
||
description | ||
custodian_namespace = <"org.openehr"> | ||
custodian_organisation = <"openEHR Foundation <http://www.openEHR.org>"> | ||
|
||
original_author = < | ||
["name"] = <"Thomas Beale"> | ||
["email"] = <"[email protected]"> | ||
["organisation"] = <"openEHR Foundation <http://www.openEHR.org>"> | ||
["date"] = <"2011-06-01"> | ||
> | ||
details = < | ||
["en"] = < | ||
language = <[ISO_639-1::en]> | ||
purpose = <"Example of an external reference, expressed using the 'use_archetype' keyword. This defines a direct association between the archetypes, without the need for a slot, and a corresponding association (which may be an aggregation or composition) of Reference Model structures. The constraint below says concretely that the COMPOSITION object contains SECTION and OBSERVATION objects under its content attribute."> | ||
keywords = <"ADL", "test", "external reference"> | ||
> | ||
> | ||
|
||
lifecycle_state = <"published"> | ||
other_details = < | ||
["regression"] = <"PASS"> | ||
> | ||
copyright = <"Copyright © 2011 openEHR Foundation <http://www.openEHR.org>"> | ||
licence = <"Creative Commons CC-BY-SA <https://creativecommons.org/licenses/by-sa/3.0/>"> | ||
|
||
definition | ||
COMPOSITION[id1] matches { -- Composition | ||
content matches { | ||
use_archetype SECTION[id2, openEHR-EHR-SECTION.section_parent] occurrences matches {0..1} | ||
use_archetype OBSERVATION[id3, openEHR-EHR-OBSERVATION.spec_test_obs.v1] occurrences matches {1} | ||
} | ||
} | ||
|
||
terminology | ||
term_definitions = < | ||
["en"] = < | ||
["id1"] = < | ||
text = <"Composition"> | ||
description = <"Composition"> | ||
> | ||
["id2"] = < | ||
text = <"Section"> | ||
description = <"Section"> | ||
> | ||
["id3"] = < | ||
text = <"Observation"> | ||
description = <"Observation"> | ||
> | ||
> | ||
> |
6 changes: 6 additions & 0 deletions
6
combined/src/test/resources/cadl3/pass/openEHR-EHR-COMPOSITION.ext_open_ref.v1.0.0.cadl
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,6 @@ | ||
COMPOSITION[id1] matches { -- Composition | ||
content matches { | ||
use_archetype SECTION[id2, openEHR-EHR-SECTION.section_parent] occurrences matches {0..1} | ||
use_archetype OBSERVATION[id3, openEHR-EHR-OBSERVATION.spec_test_obs.v1] occurrences matches {1} | ||
} | ||
} |