Hi Diego, I am not sure that I understand your point. A couple of these archetypes fail the Archetype Workbench parser but this is nothing to do with the constraint references, which only some of these archetypes contain.
The problem that Athanasios has identified is simply that the Ocean Archetype Editor does not support Demographic archetypes - nice piece of work for someone to do during a long rainy weekend ;-). The 'constraint reference' you mentioned is completely legal ADL and is agnostic of the underlying RM. I agree that the way to go is separate the model and parser and this is exactly how the new ADL1.5 parser is working but the current Eifell and Java parsers do support the Demographics model correctly. It is the Archetype Editor itself that does not support Demographics, not the underlying parser. Ian On 13 September 2012 11:06, Diego Bosc? <yampeku at gmail.com> wrote: > Hello Athanasios, > > Those archetypes have parts that do not follow openEHR model. All > share the same issue, they have a 'constraint reference' inside a > defining code attribute. The correct is a 'CODE_PHRASE' class. > I think this is a clear example of why we should keep the model > outside the parser: This archetype is syntactically valid, but not > semantically. > > Regards > > 2012/9/13 Athanasios Anastasiou <athanasios.anastasiou at plymouth.ac.uk>: >> Hello everyone >> >> Is there a known problem with the following archetypes? >> openEHR-DEMOGRAPHIC-CLUSTER.individual_credentials_iso.v1 >> openEHR-DEMOGRAPHIC-CLUSTER.person_additional_data_br.v1 >> openEHR-DEMOGRAPHIC-CLUSTER.person_birth_data.v1 >> >> If not, could there be something with the Archetype Editor? It refuses to >> load these archetypes properly whether it's from the "Open from web" option >> or by trying to open an ADL downloaded straight from the CKM. >> >> Additional information attached. >> >> Looking forward to hearing from you >> Athanasios Anastasiou >> >> >> ARCHETYPE EDITOR: >> I wanted to have a look at the Demographic/Address/Address/"Healthcare >> provider address" archetype and i chose to do it through the Archetype >> Editor (AE) version 2.2.735 beta to be able to save any modifications i >> might have wanted to apply. >> >> Two versions of the AE gave me the same error: 2.2.3[something] and the >> latest 2.2.735 beta >> >> PROBLEM: >> *) The AE partially opens a Demographics archetype through the "Open From >> Web" option >> *) The AE fails to load a Demographics archetype in ADL format coming from a >> fresh checkout from the CKM >> >> REPLICATING THE PROBLEM: >> "Open From Web" >> 1) File -> Open From Web >> 2) Search: Demographics >> 3) Select: one of >> Cluster/[individual_credentials_iso.v1,person_additional_data_br.v1, >> person_birth_data.v1] >> 4) OK >> >> ERRORS: >> Incorrect format does not conform to reference model (x7) >> INFO - Archetype [archetypeID] Semantics VALIDATED >> (ADL_INTERFACE.parse_archetype) >> INFO - Archetype [archetypeID] Syntax VALIDATED >> (ADL_INTERFACE.parse_archetype) >> >> "Open from downloaded ADL" >> 1) Download "individual_credentials_iso.v1" from CKM >> 1) File-> Open >> 2) Select: individual_credentials_iso.v1 >> 3) OK >> >> ERRORS: >> 1) Error loading: ITEM_STRUCTURE = ADDRESS->ITEM_TREE (x2) >> 2) Loads everything EXCEPT the archetype's definition >> >> _______________________________________________ >> openEHR-technical mailing list >> openEHR-technical at lists.openehr.org >> http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org > > _______________________________________________ > openEHR-technical mailing list > openEHR-technical at lists.openehr.org > http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org -- Dr Ian McNicoll office +44 (0)1536 414 994 fax +44 (0)1536 516317 mobile +44 (0)775 209 7859 skype ianmcnicoll ian.mcnicoll at oceaninformatics.com Clinical Modelling Consultant, Ocean Informatics, UK Director openEHR Foundation www.openehr.org/knowledge Honorary Senior Research Associate, CHIME, UCL SCIMP Working Group, NHS Scotland BCS Primary Health Care www.phcsg.org

