Parsing current archetype identifiers you can know the specialization depth and compare it with root node_id.
2015-12-16 9:42 GMT+01:00 Bert Verhees <[email protected]>: > Hi all, > > I am looking at this error message from > http://www.openehr.org/releases/AM/latest/docs/AOM2/AOM2.html#_validity_rules > > VARCN: archetype concept validity. The node_id of the root object of the > archetype must be of the form id1{.1}*, where the number of .1 components > equals the specalisation depth, and must be defined in the terminology. > (which has a spelling-error in "specalisation", it should be > "specialisation") > > My first question: > How can the parser know the specialization-depth? > When I look at the grammar, it seems not possible to layer the > specializationSection > So it can only check that it is a specialization. > > Or am I overseeing something > > My second question: > There is another thing, only small, thing, not very important, but I > thought, I mention it anyway. > In the grammar specialization is spelled in the US way ( in > specialization_section : SYM_SPECIALIZE archetype_ref ;), while in the > error-messages specialisation is spelled in the UK-way (in VASID). > > Is there a preferred spelling for when handling texts which belong to > software-definitions? > > Thanks > Bert > > _______________________________________________ > openEHR-technical mailing list > [email protected] > http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org _______________________________________________ openEHR-technical mailing list [email protected] http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org

