# User defined code lists for TSVAL

**URL:** <https://forum.certara.com/t/user-defined-code-lists-for-tsval/180>\
**Category:** Define.xml\
**Created:** [November 23, 2010, 10:54am UTC](https://forum.certara.com/t/user-defined-code-lists-for-tsval/180 "2010-11-23T10:54:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mkanevsky](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@mkanevsky](https://forum.certara.com/u/mkanevsky)\
**Post date:** [November 29, 2010, 7:55pm UTC](https://forum.certara.com/t/user-defined-code-lists-for-tsval/180/1 "2010-11-29T19:55:17Z")

</div>

Hi Martin,

You are correct, there is no way to specify a user-defined codelist that only applies to a subset of rows, at least not with define.xml v1.0. I believe the upcoming define.xml v2.0 will address this problem. In the meantime, we have 2 choices: keep CT0042 warning in place or temporarily remove the rule until define.xml v2.0 is available. Let me know your preference. I’ll also ask around the community.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![martinc](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@martinc](https://forum.certara.com/u/martinc)\
**Post date:** [December 2, 2010, 1:22pm UTC](https://forum.certara.com/t/user-defined-code-lists-for-tsval/180/2 "2010-12-02T13:22:27Z")

</div>

I’d probably say keep the warning for now, or possibly downgrade it to INFO?

---

<div class="post-metadata">

**Author:** ![martinc](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@martinc](https://forum.certara.com/u/martinc)\
**Post date:** [November 23, 2010, 10:54am UTC](https://forum.certara.com/t/user-defined-code-lists-for-tsval/180/3 "2010-11-23T10:54:49Z")

</div>

Hi, I’m getting warning CT0042 (Value for TSVAL not found in TDIGRP controlled terminology codelist). This rule is only applied to rows where TSPARMCD=‘TDIGRP’. However it doesn’t seem possible to supply a user-defined code list which only applies to a subset of rows.

Is there any way to extend the TDIGRP code list (C66787) in this case?

Thanks for any help,

Martin
