Having a look at the openEHR-EHR-OBSERVATION.waterlow_score.v0.0.1-alpha (random choice), in its ADL1.4 form as shown on CKM, there is a term (again, random) at0116, which is the code of an ELEMENT node.
Here is the ADL1.4 form:
CLUSTER[at0066] occurrences matches {0..1} matches { -- Skin type visual risk areas
items cardinality matches {1..*; unordered} matches {
ELEMENT[at0116] occurrences matches {0..1} matches { -- Healthy
value matches {
0|[local::at0116]
}
}
...
terminology
...
["at0116"] = <
text = <"Healthy">
description = <"The skin appears healthy.">
>
Here is the ADL2.4 form:
CLUSTER[at0066] occurrences matches {0..1} matches { -- Skin type visual risk areas
items cardinality matches {1..*; unordered} matches {
ELEMENT[at0116] occurrences matches {0..1} matches {
value matches {
DV_ORDINAL[at9033] matches {
[value, symbol] matches {
[{0}, {[at117]}]
}
}
}
}
...
terminology
...
["at117"] = <
text = <"Healthy">
description = <"The skin appears healthy.">
>
In the ADL 1.4 form, an at code is reused both as a node identifier and as a value. This is bad design for many reasons (and one of the things id-coded archetypes fixed), but the real problem is that i the ADL2 generated form, there is no at0116 code definition at all, but there is a new at117 value code. It looks like the converter is synthesising the at117 from the original at0116, for use as a value code, but forgetting to keep the at0116 term definition in the terminology. Maybe @sebastian.garde could take a look, also the Archie maintainers?
I hate to note (but feel compelled): but the new ADL2.4 coding idea, applied to the above archetype, with the generator fixed, will result in both an at117 value code, for the at0116 node, and an at0117 node (here at0117 is an id code), for the next node. I.e. both at117 and at0117. That’s going to be pretty confusing.
I have run a recent ADL2 format dump of CKM through some new tools, and there are too many problems for me to count at the moment, the above is just a randomly chosen one. I would imagine there are some simple code changes possible to fix most problems.