Specialization depth

2015-12-16 Thread Bert Verhees
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 th

Re: Specialization depth

2015-12-16 Thread Diego Boscá
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 : > Hi all, > > I am looking at this error message from > http://www.openehr.org/releases/AM/latest/docs/AOM2/AOM2.html#_validity_rules > > VARCN: ar

Re: Specialization depth

2015-12-16 Thread Bert Verhees
On 16-12-15 09:50, Diego Boscá wrote: Parsing current archetype identifiers you can know the specialization depth and compare it with root node_id. Hi Diego, Thanks for your answer, and I hope you will answer my follow up question I thought the the versionId's in the archetype_hrid denote the

Re: Specialization depth

2015-12-16 Thread Diego Boscá
The concept_id part from the archetype_hrid shows all the parents of a given node (or at least did in 1.4) 2015-12-16 10:42 GMT+01:00 Bert Verhees : > On 16-12-15 09:50, Diego Boscá wrote: >> >> Parsing current archetype identifiers you can know the specialization >> depth and compare it with root

Re: Specialization depth

2015-12-16 Thread Bert Verhees
On 16-12-15 10:52, Diego Boscá wrote: The concept_id part from the archetype_hrid shows all the parents of a given node (or at least did in 1.4) According to the Grammar for Adl this seems not the case. There can only be one archetypeRef in an specialization-section archetype: SYM_ARCHETYP

Re: Specialization depth

2015-12-16 Thread David Moner
In AOM/ADL 2 this is not true anymore, so I fear we have lost the only way to know the specialization depth of an archetype (without navigating through all its parents). 2015-12-16 10:52 GMT+01:00 Diego Boscá : > The concept_id part from the archetype_hrid shows all the parents of a > given node

Re: Specialization depth

2015-12-16 Thread Bert Verhees
On 16-12-15 10:56, David Moner wrote: In AOM/ADL 2 this is not true anymore, so I fear we have lost the only way to know the specialization depth of an archetype (without navigating through all its parents). Thanks, David, I am afraid then we must say that there is a not very effective error

Re: Specialization depth

2015-12-16 Thread Diego Boscá
but there is an example of an specialized identifier in that same document e.g. "uk.nhs.clinical::openEHR-EHR-SECTION.t_encounter_report-vital_signs_headings-0001.v1" in http://www.openehr.org/releases/AM/latest/docs/AOM2/AOM2.html#_an_example 2015-12-16 10:56 GMT+01:00 David Moner : > In AOM/ADL

Re: Specialization depth

2015-12-16 Thread Bert Verhees
On 16-12-15 11:37, Diego Boscá wrote: but there is an example of an specialized identifier in that same document e.g. "uk.nhs.clinical::openEHR-EHR-SECTION.t_encounter_report-vital_signs_headings-0001.v1" in http://www.openehr.org/releases/AM/latest/docs/AOM2/AOM2.html#_an_example Thanks Diego

Re: Specialization depth

2015-12-16 Thread Bert Verhees
On 16-12-15 11:54, Bert Verhees wrote: I think it is best to wait for an official reaction of the openehr chief architect. No offending intended, just joking ;-) ___ openEHR-technical mailing list openEHR-technical@lists.openehr.org http://lists.opene

Re: Specialization depth

2015-12-16 Thread Thomas Beale
That is gone in ADL2. in ADL2 you can know the specialisation depth of the archetype by looking at the root node code, e.g. id1 -> depth = 0 id1.1 -> depth = 1 etc For US/international English spelling, we tend to use International English for all natural language, and where we can, accommo

Re: Specialization depth

2015-12-16 Thread Thomas Beale
This is not a specialised identifier, it's just an identifier that has '-' characters in it, which in ADL2 are not special. Just look at the id1.x code of the root node to get the specialisation depth of any ADL2 archetype. - thomas On 16/12/2015 10:37, Diego Boscá wrote: but there is an

Re: Specialization depth

2015-12-16 Thread Thomas Beale
On 16/12/2015 10:54, Bert Verhees wrote: On 16-12-15 11:37, Diego Boscá wrote: but there is an example of an specialized identifier in that same document e.g. "uk.nhs.clinical::openEHR-EHR-SECTION.t_encounter_report-vital_signs_headings-0001.v1" in http://www.openehr.org/releases/AM/latest/d

Re: Specialization depth

2015-12-16 Thread Diego Boscá
Must put AOM2 glasses on! 8-) 2015-12-16 14:03 GMT+01:00 Thomas Beale : > > This is not a specialised identifier, it's just an identifier that has '-' > characters in it, which in ADL2 are not special. > > Just look at the id1.x code of the root node to get the specialisation depth > of any ADL2 a

Re: Specialization depth

2015-12-16 Thread Bert Verhees
Thanks Thomas for your answers, I will study them tomorrow Best regards Bert On 16-12-15 14:12, Diego Boscá wrote: Must put AOM2 glasses on! 8-) 2015-12-16 14:03 GMT+01:00 Thomas Beale : This is not a specialised identifier, it's just an identifier that has '-' characters in it, which in ADL2

Re: Specialization depth

2015-12-16 Thread Bert Verhees
On 16-12-15 14:01, Thomas Beale wrote: That is gone in ADL2. in ADL2 you can know the specialisation depth of the archetype by looking at the root node code, e.g. id1 -> depth = 0 id1.1 -> depth = 1 etc I write, as you suggest, from now on the errors/remarks in the PR tracker, I had not u

Re: Specialization depth

2015-12-16 Thread Bert Verhees
On 16-12-15 14:05, Thomas Beale wrote: that's why it is gone in ADL2/AOM2. The new ARCHETYPE_HRID class is the one that matters, and it does not know about specialisation depth. Please allow me a question, maybe it is explained somewhere. What is the meaning of the class Archetype_Id in the