# Attributes for concepts

**URL:** <https://talk.openmrs.org/t/attributes-for-concepts/4112>\
**Category:** Development\
**Created:** [December 30, 2015, 6:45am UTC](https://talk.openmrs.org/t/attributes-for-concepts/4112 "2015-12-30T06:45:21Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![angshuonline](https://talk.openmrs.org/user_avatar/talk.openmrs.org/angshuonline/32/4925_2.png) [@angshuonline](https://talk.openmrs.org/u/angshuonline)\
**Post date:** [December 30, 2015, 6:45am UTC](https://talk.openmrs.org/t/attributes-for-concepts/4112/1 "2015-12-30T06:45:21Z")

</div>

Dear All, Can OpenMRS concepts support attributes something like attributes for person or provider or visit? I believe it will for better definition of concepts.

- think of defining concept for a test. With attributes we can define important aspects like scale, method, components, body sites etc.
- it would be great if we can specify what attr apply to what classes of concept. In BD SHR project we use OpenMRS concept dictionary for terminology mgmt. While in many cases it suffices, but with custom attributes we can make this so much better.

Would like to know what you guys think?

---

<div class="post-metadata">

**Author:** ![akanter](https://talk.openmrs.org/user_avatar/talk.openmrs.org/akanter/32/331_2.png) [@akanter](https://talk.openmrs.org/u/akanter)\
**Post date:** [December 30, 2015, 2:38pm UTC](https://talk.openmrs.org/t/attributes-for-concepts/4112/2 "2015-12-30T14:38:20Z")

</div>

We did have a discussion about this recently. I think you are right since it is necessary, for example, to have a concept participate in more than one class. We discussed a concept\_tag table. Perhaps @burke can weigh in.

---

<div class="post-metadata">

**Author:** ![darius](https://talk.openmrs.org/user_avatar/talk.openmrs.org/darius/32/8082_2.png) [@darius](https://talk.openmrs.org/u/darius)\
**Post date:** [January 4, 2016, 10:37pm UTC](https://talk.openmrs.org/t/attributes-for-concepts/4112/3 "2016-01-04T22:37:26Z")

</div>

I support the idea of implementation-configurable Concept Attributes. (And broadly we approve of any addition of XyzAttribute to openmrs-core that someone has a legitimate use case for, and wants to do the work to implement.)

I would think the next step is for you to propose a design call about this (fyi @jthomas) to work through any details (e.g. what impact will this have on CIEL, various concept-sharing tools, etc).

(I also like the idea of Concept Tags, though it’s not obvious that “tags” provide any additional functionality beyond just using Concept Sets for that purpose. Besides that one could distribute a dictionary like CIEL without tags, and let people locally add tags.)

---

<div class="post-metadata">

**Author:** ![jthomas](https://talk.openmrs.org/user_avatar/talk.openmrs.org/jthomas/32/21_2.png) [@jthomas](https://talk.openmrs.org/u/jthomas)\
**Post date:** [January 5, 2016, 2:13pm UTC](https://talk.openmrs.org/t/attributes-for-concepts/4112/4 "2016-01-05T14:13:29Z")

</div>

We have some open times this month. Let me know when your ready for a design call. Could get you on as early as Wednesday, January 13th.

---

<div class="post-metadata">

**Author:** ![angshuonline](https://talk.openmrs.org/user_avatar/talk.openmrs.org/angshuonline/32/4925_2.png) [@angshuonline](https://talk.openmrs.org/u/angshuonline)\
**Post date:** [January 8, 2016, 7:11am UTC](https://talk.openmrs.org/t/attributes-for-concepts/4112/5 "2016-01-08T07:11:30Z")

</div>

Jan 13th seems great. Thank you

---

<div class="post-metadata">

**Author:** ![jthomas](https://talk.openmrs.org/user_avatar/talk.openmrs.org/jthomas/32/21_2.png) [@jthomas](https://talk.openmrs.org/u/jthomas)\
**Post date:** [January 8, 2016, 1:49pm UTC](https://talk.openmrs.org/t/attributes-for-concepts/4112/6 "2016-01-08T13:49:13Z")

</div>

Sure. You are now on the schedule.

---

<div class="post-metadata">

**Author:** ![darius](https://talk.openmrs.org/user_avatar/talk.openmrs.org/darius/32/8082_2.png) [@darius](https://talk.openmrs.org/u/darius)\
**Post date:** [January 8, 2016, 3:35pm UTC](https://talk.openmrs.org/t/attributes-for-concepts/4112/7 "2016-01-08T15:35:27Z")

</div>

@akanter hopefully you can join us on the Jan 13 design call (2pm EST) to talk about attributes for concepts.

@angshu, this is 12:30am IST (after midnight); are you sure that time works for you?

---

<div class="post-metadata">

**Author:** ![jthomas](https://talk.openmrs.org/user_avatar/talk.openmrs.org/jthomas/32/21_2.png) [@jthomas](https://talk.openmrs.org/u/jthomas)\
**Post date:** [January 8, 2016, 3:44pm UTC](https://talk.openmrs.org/t/attributes-for-concepts/4112/8 "2016-01-08T15:44:55Z")

</div>

We can move it to Monday, January 25 @4pm UTC if that would work better @angshuonline?

---

<div class="post-metadata">

**Author:** ![akanter](https://talk.openmrs.org/user_avatar/talk.openmrs.org/akanter/32/331_2.png) [@akanter](https://talk.openmrs.org/u/akanter)\
**Post date:** [January 8, 2016, 5:00pm UTC](https://talk.openmrs.org/t/attributes-for-concepts/4112/9 "2016-01-08T17:00:41Z")

</div>

## I will plan to attend!

Andrew S. Kanter, MD MPH FACMI

Asst. Prof. of Clinical Biomedical Informatics and Clinical Epidemiology Columbia University Email: andrew.kanter@■■■■■■■■■■■■■■■■■ Mobile: +1 (646) ■■■■■■■■ Office: +1 (212) ■■■■■■■■ Skype: akanter-ippnw Yahoo: andy\_kanter

---

<div class="post-metadata">

**Author:** ![darius](https://talk.openmrs.org/user_avatar/talk.openmrs.org/darius/32/8082_2.png) [@darius](https://talk.openmrs.org/u/darius)\
**Post date:** [January 14, 2016, 6:34pm UTC](https://talk.openmrs.org/t/attributes-for-concepts/4112/10 "2016-01-14T18:34:53Z")

</div>

@angshuonline, we discussed this on yesterday’s Design Forum. [Full notes here](http://notes.openmrs.org/Design-Forum-2016-01-13).

The summary is that:

- Adding Concept.attributes makes sense. Do go ahead and implement this in openmrs-core.
- It should follow the implementation of AttributeType/Attribute as implemented for Location and Provider
- Andy and Burke recommend against putting data in attributes that really belong in a referenced data source that your concept is mapped to (e.g. LOINC, SNOMED)
- but of course the point of attributes is that you don’t need there permission to do it that way.

---

<div class="post-metadata">

**Author:** ![akanter](https://talk.openmrs.org/user_avatar/talk.openmrs.org/akanter/32/331_2.png) [@akanter](https://talk.openmrs.org/u/akanter)\
**Post date:** [January 15, 2016, 9:15pm UTC](https://talk.openmrs.org/t/attributes-for-concepts/4112/11 "2016-01-15T21:15:43Z")

</div>

Just to be super clear… we want concept\_attributes to have attributes which are required for business logic and use cases within the EHR and don’t necessarily duplicate what is available in the reference source. For example, if a SNOMED code has an associated body location and a method, then the SNOMED code which is a mapped reference term, would have these secondary SNOMED codes available in the REFERENCE\_REFERENCE\_MAP table. If you want to break down a lab test by its specimen, units, etc… then the LOINC map would carry this information to a separate table where the LOINC code is exploded out to its axes. If the OpenMRS concept is not mapped SAME-AS to the reference term, then it is not always possible to leverage the reference term modeling or attributes and these then WOULD be in the concept\_attribute table.

---

<div class="post-metadata">

**Author:** ![angshuonline](https://talk.openmrs.org/user_avatar/talk.openmrs.org/angshuonline/32/4925_2.png) [@angshuonline](https://talk.openmrs.org/u/angshuonline)\
**Post date:** [March 9, 2016, 9:15am UTC](https://talk.openmrs.org/t/attributes-for-concepts/4112/12 "2016-03-09T09:15:29Z")

</div>

Sorry, i have been super busy for the last month. I will check with the team and figure out how we can take up development for this feature.@akanter, I agree. Will check with you for more details.

---

<div class="post-metadata">

**Author:** ![akhilmalhotra](https://talk.openmrs.org/user_avatar/talk.openmrs.org/akhilmalhotra/32/20128_2.png) [@akhilmalhotra](https://talk.openmrs.org/u/akhilmalhotra)\
**Post date:** [April 5, 2016, 12:48pm UTC](https://talk.openmrs.org/t/attributes-for-concepts/4112/13 "2016-04-05T12:48:24Z")

</div>

We are planning on implementing attributes for concepts. It would be similar to the implementation of Person/Provider Attributes. An implementer would be able to configure attributes for concepts, make them searchable and they will be able to select the values for attributes while adding/editing a concept.

We want to discuss this in a design call. @jthomas Please allot a time slot.

---

<div class="post-metadata">

**Author:** ![jthomas](https://talk.openmrs.org/user_avatar/talk.openmrs.org/jthomas/32/21_2.png) [@jthomas](https://talk.openmrs.org/u/jthomas)\
**Post date:** [April 6, 2016, 1:07am UTC](https://talk.openmrs.org/t/attributes-for-concepts/4112/14 "2016-04-06T01:07:28Z")

</div>

Hi @akhilmalhotra we have immediate availability on Wednesday, April 6th and 13th from 6-7pm UTC. Our first Monday opening is looking like April 25th. Is this too far out?

---

<div class="post-metadata">

**Author:** ![akhilmalhotra](https://talk.openmrs.org/user_avatar/talk.openmrs.org/akhilmalhotra/32/20128_2.png) [@akhilmalhotra](https://talk.openmrs.org/u/akhilmalhotra)\
**Post date:** [April 6, 2016, 6:05am UTC](https://talk.openmrs.org/t/attributes-for-concepts/4112/15 "2016-04-06T06:05:02Z")

</div>

Hi @jthomas, Wednesday April 6th, 6-7pm UTC works fine for us. Thanks.

---

<div class="post-metadata">

**Author:** ![darius](https://talk.openmrs.org/user_avatar/talk.openmrs.org/darius/32/8082_2.png) [@darius](https://talk.openmrs.org/u/darius)\
**Post date:** [April 6, 2016, 1:28pm UTC](https://talk.openmrs.org/t/attributes-for-concepts/4112/16 "2016-04-06T13:28:54Z")

</div>

(Akhil, btw, this call is 11:30pm IST today.)

For what it’s worth, you have “automatic” permission to start adding concept attributes, following the same pattern that’s already in the codebase for location attributes and provider attributes, and to do this in the master branch of the openmrs-core codebase.

I had a sidebar conversation with Angshuman about whether this can actually be added to the 1.12.x and 2.0.x code branches. I think we’ll need @burke on the call to actually decide this (and maybe @maany), but I think that Burke is on service at the hospital today so I don’t know if he’ll be able to join.

Beyond that I don’t know the specifics you intend to discuss on today’s design call, but I’ll be there. 🙂

---

<div class="post-metadata">

**Author:** ![jthomas](https://talk.openmrs.org/user_avatar/talk.openmrs.org/jthomas/32/21_2.png) [@jthomas](https://talk.openmrs.org/u/jthomas)\
**Post date:** [April 6, 2016, 5:54pm UTC](https://talk.openmrs.org/t/attributes-for-concepts/4112/17 "2016-04-06T17:54:04Z")

</div>

It appears from the [wiki design page from today](https://wiki.openmrs.org/display/RES/2016-04-06+Design+Forum) that there was not a design call. @akhilmalhotra do we still need to get something on the design call schedule or is this moving forward with out a call?

---

<div class="post-metadata">

**Author:** ![akhilmalhotra](https://talk.openmrs.org/user_avatar/talk.openmrs.org/akhilmalhotra/32/20128_2.png) [@akhilmalhotra](https://talk.openmrs.org/u/akhilmalhotra)\
**Post date:** [April 6, 2016, 6:01pm UTC](https://talk.openmrs.org/t/attributes-for-concepts/4112/18 "2016-04-06T18:01:18Z")

</div>

@jthomas, we have a few questions around the implementation. @angshuonline and myself were planning on joining the call. So it would be great if we can have the call today, if possible but if we can’t then we can reschedule to next available slot.

---

<div class="post-metadata">

**Author:** ![darius](https://talk.openmrs.org/user_avatar/talk.openmrs.org/darius/32/8082_2.png) [@darius](https://talk.openmrs.org/u/darius)\
**Post date:** [April 6, 2016, 6:08pm UTC](https://talk.openmrs.org/t/attributes-for-concepts/4112/19 "2016-04-06T18:08:12Z")

</div>

Actually this is the hour of the call (right now).

Angshuman and I were on, but nobody else, so we dropped. But if someone pings us soon on irc/skype, we can rejoin.

---

<div class="post-metadata">

**Author:** ![akhilmalhotra](https://talk.openmrs.org/user_avatar/talk.openmrs.org/akhilmalhotra/32/20128_2.png) [@akhilmalhotra](https://talk.openmrs.org/u/akhilmalhotra)\
**Post date:** [April 15, 2016, 11:10am UTC](https://talk.openmrs.org/t/attributes-for-concepts/4112/20 "2016-04-15T11:10:07Z")

</div>

Hi @jthomas, can we schedule a design call on Monday or Thursday (preferably Monday)? We have a few questions/clarifications before we can start work on it.

[Next page](https://talk.openmrs.org/t/attributes-for-concepts/4112.md?page=2)
