Skip to content

Commit

Permalink
Merge pull request #174 from openEHR/fix_metadata
Browse files Browse the repository at this point in the history
Fix parsing of controlled and generated tags, test build_uid
  • Loading branch information
pieterbos authored Apr 24, 2020
2 parents 616683a + 02d3800 commit 7a35408
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions grammars/src/main/antlr/Adl.g4
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@ meta_data_tag_adl_version : 'adl_version' ;
meta_data_tag_uid : 'uid' ;
meta_data_tag_build_uid : 'build_uid' ;
meta_data_tag_rm_release : 'rm_release' ;
meta_data_tag_is_controlled : 'is_controlled' ;
meta_data_tag_is_generated : 'is_generated' ;
meta_data_tag_is_controlled : 'controlled' ;
meta_data_tag_is_generated : 'generated' ;
4 changes: 2 additions & 2 deletions grammars/src/main/antlr/Adl14.g4
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ meta_data_tag_adl_version : 'adl_version' ;
meta_data_tag_uid : 'uid' ;
meta_data_tag_build_uid : 'build_uid' ;
meta_data_tag_rm_release : 'rm_release' ;
meta_data_tag_is_controlled : 'is_controlled' ;
meta_data_tag_is_generated : 'is_generated' ;
meta_data_tag_is_controlled : 'controlled' ;
meta_data_tag_is_generated : 'generated' ;
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ public void metadataTest() throws Exception {
//(adl_version=2.0.5; rm_release=1.0.2)
assertEquals("2.0.5", archetype.getAdlVersion());
assertEquals("1.0.2", archetype.getRmRelease());
assertTrue(archetype.getGenerated());
assertTrue(archetype.getControlled());
assertEquals("B430138C-1DD2-42EF-B54C-633909437054", archetype.getBuildUid());
}

}
2 changes: 1 addition & 1 deletion tools/src/test/resources/basic.adl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
archetype (adl_version=2.0.5; rm_release=1.0.2)
archetype (adl_version=2.0.5; rm_release=1.0.2; generated; controlled; build_uid=B430138C-1DD2-42EF-B54C-633909437054)
openEHR-EHR-COMPOSITION.annotations_rm_path.v1.0.0

language
Expand Down

0 comments on commit 7a35408

Please sign in to comment.