# Problem with RM-builder/DV\_CODED\_TEXT

**URL:** <https://discourse.openehr.org/t/problem-with-rm-builder-dv-coded-text/13198>\
**Category:** Reference Implementation: Java (archive)\
**Created:** [23 May 2007 15:14 UTC](https://discourse.openehr.org/t/problem-with-rm-builder-dv-coded-text/13198 "2007-05-23T15:14:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://discourse.openehr.org/uploads/default/original/2X/f/f0a1dedb20c42747bddcafd6c7df9db5f34f003c.svg) [@system](https://discourse.openehr.org/u/system)\
**Post date:** [23 May 2007 15:14 UTC](https://discourse.openehr.org/t/problem-with-rm-builder-dv-coded-text/13198/1 "2007-05-23T15:14:41Z")

</div>

I have a problem, I have following ADL-snippet

ELEMENT[at1.1.1.4] matches { -- last name suffix  
&nbsp;&nbsp;&nbsp;&nbsp;value matches {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DV\_CODED\_TEXT matches {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;defining\_code matches {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[local::  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at1.1.1.4.1, -- Jr  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at1.1.1.4.2, -- Sr  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at1.1.1.4.3, -- II  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at1.1.1.4.4] -- III  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}  
&nbsp;&nbsp;&nbsp;&nbsp;}  
}

breaking this up to attributes en cobjects, we come to the attribute of  
DV\_CODED\_TEXT.  
In this ADL snippet it is called defining\_code

In the RM builder, which uses annotated constructor, it runs agains the  
property in DvCodedText which is: definingCode.

Because only classnames are tested in more ways (uppercase, real case,  
removing lowercase), this is not the case with attributes, and I get the  
error that the attribute definingCode is not in the valueMap

Please Help

thanks  
Bert

---

<div class="post-metadata">

**Author:** ![system](https://discourse.openehr.org/uploads/default/original/2X/f/f0a1dedb20c42747bddcafd6c7df9db5f34f003c.svg) [@system](https://discourse.openehr.org/u/system)\
**Post date:** [23 May 2007 17:11 UTC](https://discourse.openehr.org/t/problem-with-rm-builder-dv-coded-text/13198/2 "2007-05-23T17:11:38Z")

</div>

I think the problem is a culture conflict.  
In ADL the attributes are Eiffelish (when combined words, with underscores,  
small case: defining\_code)  
And in the RM of the Java-ref, they are Javaish, in case of combined words,  
first Word lowercase, second word glued to the first, uppercase  
(definingCode).

Concerning the class names this conflict is solved by creating a lookup- map  
to find them, I think we must do that also for attributes, so we can keep the  
attributes in RM Javaish, and the attributes in ADL Eiffelish

I see, if someone answers to this, In the meantime I must carry on, and this  
seems the best solution.

Thanks  
Bert

---

<div class="post-metadata">

**Author:** ![system](https://discourse.openehr.org/uploads/default/original/2X/f/f0a1dedb20c42747bddcafd6c7df9db5f34f003c.svg) [@system](https://discourse.openehr.org/u/system)\
**Post date:** [24 May 2007 07:50 UTC](https://discourse.openehr.org/t/problem-with-rm-builder-dv-coded-text/13198/3 "2007-05-24T07:50:19Z")

</div>

Hi Bert,

I think it should be possible to do automatic conversion between Eiffelish names (attribute or class) and Javaish. Before this is implemented, feel free to add a mapping for the attributes.

Regards,  
Rong
