dhis2-devs-core team mailing list archive
-
dhis2-devs-core team
-
Mailing list archive
-
Message #00014
Re: person attributes, model change
On Mon, Nov 18, 2013 at 8:02 AM, Tran Chau <tran.hispvietnam@xxxxxxxxx>wrote:
> Hi Lars,
>
> Before removing all fixed attributes of persons, we should create a new
> attribute type called for phone number, we need it for sending sms message.
> How do you think about it ?
>
Yes Tran you are right. We need to create a type property on attribute, and
then have types for everything that is needed to support the current
behavior.
We of course retain the properties which Patient inherit from
BaseIdentifiableObject, and the associations to identifiers, program
instances, org unit. We could keep the "healthWorker" association if
necessary but lets rename to "associate" to make it more generic and
reusable. So we have:
---
Patient
extends BaseIdentifiableObject
Set<PatientIdentifier> identifiers;
Set<ProgramInstance> programInstances;
OrganisationUnit organisationUnit;
Patient representative;
User associate;
---
The "patient" name is getting pretty obsolete now but lets keep this
realistic in terms of 2.14 timeline.
> Besides, we need to find out a way to display dynamic attribute params
> when defining template messages in Add program...
>
>
Yup.
References