# SD0005

**URL:** <https://forum.certara.com/t/sd0005/1199>\
**Category:** SDTM\
**Created:** [March 19, 2018, 1:20am UTC](https://forum.certara.com/t/sd0005/1199 "2018-03-19T01:20:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergiy](https://sea1.discourse-cdn.com/certara/user_avatar/forum.certara.com/sergiy/32/2553_2.png) [@Sergiy](https://forum.certara.com/u/Sergiy)\
**Post date:** [March 19, 2018, 7:52pm UTC](https://forum.certara.com/t/sd0005/1199/1 "2018-03-19T19:52:30Z")

</div>

Hi Rie,

It’s a bug in the check algorithm.

To be applied for as many cases possible, SD0005 looks for uniqueness of --SEQ value within a combination of USUBJID, POOLID and SPDEVID variables value, if any of these 3 variables is present.

USUBJID and POOLID are mutually exclusive variables. So, the check works correctly for them.

SPDEVID may be utilized in addition to USUBJID. This case is not covered.

A bug will be fix in the next release of the validator.

Thank you for your finding!

Kind Regards,

Sergiy

---

<div class="post-metadata">

**Author:** ![Rie](https://avatars.discourse-cdn.com/v4/letter/r/a6a055/32.png) [@Rie](https://forum.certara.com/u/Rie)\
**Post date:** [March 20, 2018, 7:52am UTC](https://forum.certara.com/t/sd0005/1199/2 "2018-03-20T07:52:40Z")

</div>

Hi Sergiy,

Thank you so much for your prompt response!

Best regards,

Rie

---

<div class="post-metadata">

**Author:** ![Rie](https://avatars.discourse-cdn.com/v4/letter/r/a6a055/32.png) [@Rie](https://forum.certara.com/u/Rie)\
**Post date:** [March 19, 2018, 1:20am UTC](https://forum.certara.com/t/sd0005/1199/3 "2018-03-19T01:20:44Z")

</div>

According to the SDTM IG for Medical Devises V1.0, DISEQ should be unique within a parameter within a device (SPDEVID) within dataset for DI domain, but for other domains, --SEQ should be unique within every subject/device combination within dataset.

Why does SD0005 always fire when SPDEVID is not unique wuithin a device, but unique within every subject/device combination?

Thsnks for your help.
