Attributes for Program

Hi Mahendra,

no it is not at the moment. However the attribute solution we have for data elements, org units, etc is easily extensible and it is a good idea to add it to programs.

I have written a blueprint here: https://blueprints.launchpad.net/dhis2/+spec/dynamic-attributes-for-programs

If you feel like taking it on it should be pretty straightforward. Basically you need to add a:

Set attributeValues to Program, and then add the corresponding hibernate mapping for the join table:

<set name=“attributeValues” table=programattributevalues">

Then add to the UI in data admin module.

If not, then we can do it early in the 2.18 iteration.

best regards,

Lars

···

On Tue, Nov 18, 2014 at 8:04 AM, Mahendra Kariya mahendra.kariya@thoughtworks.com wrote:

Hi,

We have a requirement to capture custom metadata field for programs. For org units, datasets etc. we create a new custom attribute. Is there anything similar for programs?

Hi Lars,

It would be great if you could pick this up in 2.18.

Thanks,
Shantala

···

On Tue, Nov 18, 2014 at 4:01 PM, Lars Helge Øverland larshelge@gmail.com wrote:

Hi Mahendra,

no it is not at the moment. However the attribute solution we have for data elements, org units, etc is easily extensible and it is a good idea to add it to programs.

I have written a blueprint here: https://blueprints.launchpad.net/dhis2/+spec/dynamic-attributes-for-programs

If you feel like taking it on it should be pretty straightforward. Basically you need to add a:

Set attributeValues to Program, and then add the corresponding hibernate mapping for the join table:

<set name=“attributeValues” table=programattributevalues">

Then add to the UI in data admin module.

If not, then we can do it early in the 2.18 iteration.

best regards,

Lars

On Tue, Nov 18, 2014 at 8:04 AM, Mahendra Kariya mahendra.kariya@thoughtworks.com wrote:

Hi,

We have a requirement to capture custom metadata field for programs. For org units, datasets etc. we create a new custom attribute. Is there anything similar for programs?

Okay. Blueprint here:

https://blueprints.launchpad.net/dhis2/+spec/program-tracked-entity-dynamic-attributes

Lars

···

On Tue, Nov 25, 2014 at 8:17 AM, Shantala Raman sraman@thoughtworks.com wrote:

Hi Lars,

It would be great if you could pick this up in 2.18.

Thanks,
Shantala

On Tue, Nov 18, 2014 at 4:01 PM, Lars Helge Øverland larshelge@gmail.com wrote:

Hi Mahendra,

no it is not at the moment. However the attribute solution we have for data elements, org units, etc is easily extensible and it is a good idea to add it to programs.

I have written a blueprint here: https://blueprints.launchpad.net/dhis2/+spec/dynamic-attributes-for-programs

If you feel like taking it on it should be pretty straightforward. Basically you need to add a:

Set attributeValues to Program, and then add the corresponding hibernate mapping for the join table:

<set name=“attributeValues” table=programattributevalues">

Then add to the UI in data admin module.

If not, then we can do it early in the 2.18 iteration.

best regards,

Lars

On Tue, Nov 18, 2014 at 8:04 AM, Mahendra Kariya mahendra.kariya@thoughtworks.com wrote:

Hi,

We have a requirement to capture custom metadata field for programs. For org units, datasets etc. we create a new custom attribute. Is there anything similar for programs?