While working on the conversion of ADL1.4 to ADL2 at-coded a bug was encountered regarding the allow_archetype elements.
Example from the tests:
-
In the ADL1.4 version of the specialised archetype, the allow_archetype is specialised.
|
allow_archetype CLUSTER[at0004.1] occurrences matches {0..*} matches { -- Examination findings |
-
In the converted ADL2 archetypes (id & at coded), the specialised element is not present in the definition, the nodeId however is still present in the terminology.
|
definition |
|
CLUSTER[at0000.1] matches { -- Examination of the abdomen |
|
items matches { |
|
ELEMENT[at0001.1] -- System or structure examined |
|
} |
|
} |
|
|
|
terminology |
|
term_definitions = < |
|
["de"] = < |
|
["at0000.1"] = < |
|
text = <"Ergebnisse der körperlichen Untersuchung"> |
|
description = <"Während der körperlichen Untersuchung eines Körpersystems oder einer anatomischen Struktur beobachtete Befunde."> |
|
> |
|
["at0001.1"] = < |
|
text = <"Untersuchtes System oder untersuchte Struktur"> |
|
description = <"Identifizierung des untersuchten Körpersystems oder der anatomischen Struktur."> |
|
comment = <"Wenn möglich wird die Kodierung des untersuchten Systems oder der untersuchten Struktur mit einer Terminologie bevorzugt."> |
|
> |
|
["at0004.1"] = < |
|
text = <"Untersuchungsergebnisse"> |
|
description = <"Strukturierte Angaben zu den Ergebnissen der körperlichen Untersuchung."> |
|
> |
|
> |
|
definition |
|
CLUSTER[id1.1] matches { -- Examination of the abdomen |
|
items matches { |
|
ELEMENT[id2.1] -- System or structure examined |
|
} |
|
} |
|
|
|
terminology |
|
term_definitions = < |
|
["de"] = < |
|
["id1.1"] = < |
|
text = <"Ergebnisse der körperlichen Untersuchung"> |
|
description = <"Während der körperlichen Untersuchung eines Körpersystems oder einer anatomischen Struktur beobachtete Befunde."> |
|
> |
|
["id2.1"] = < |
|
text = <"Untersuchtes System oder untersuchte Struktur"> |
|
description = <"Identifizierung des untersuchten Körpersystems oder der anatomischen Struktur."> |
|
comment = <"Wenn möglich wird die Kodierung des untersuchten Systems oder der untersuchten Struktur mit einer Terminologie bevorzugt."> |
|
> |
|
["id5.1"] = < |
|
text = <"Untersuchungsergebnisse"> |
|
description = <"Strukturierte Angaben zu den Ergebnissen der körperlichen Untersuchung."> |
|
> |
|
> |
Suspicions
- We suspect that this has maybe something to do with the Differentiator, but we're not sure.
While working on the conversion of ADL1.4 to ADL2 at-coded a bug was encountered regarding the allow_archetype elements.
Example from the tests:
In the ADL1.4 version of the specialised archetype, the allow_archetype is specialised.
archie/tools/src/test/resources/com/nedap/archie/adl14/openEHR-EHR-CLUSTER.exam-abdomen_adl14.v0.adl
Line 231 in 5eba815
In the converted ADL2 archetypes (id & at coded), the specialised element is not present in the definition, the nodeId however is still present in the terminology.
archie/tools/src/test/resources/com/nedap/archie/adl14/openEHR-EHR-CLUSTER.exam-abdomen_adl2_at.v0.0.1-alpha.adls
Lines 209 to 232 in 5eba815
archie/tools/src/test/resources/com/nedap/archie/adl14/openEHR-EHR-CLUSTER.exam-abdomen_adl2_id.v0.0.1-alpha.adls
Lines 209 to 232 in 5eba815
Suspicions