Search in sources :

Example 21 with TrackedEntityAttributeValue

use of org.hisp.dhis.trackedentityattributevalue.TrackedEntityAttributeValue in project dhis2-core by dhis2.

the class DhisConvenienceTest method createTrackedEntityAttributeValue.

public static TrackedEntityAttributeValue createTrackedEntityAttributeValue(char uniqueChar, TrackedEntityInstance entityInstance, TrackedEntityAttribute attribute) {
    TrackedEntityAttributeValue attributeValue = new TrackedEntityAttributeValue();
    attributeValue.setEntityInstance(entityInstance);
    attributeValue.setAttribute(attribute);
    attributeValue.setValue("Attribute" + uniqueChar);
    return attributeValue;
}
Also used : TrackedEntityAttributeValue(org.hisp.dhis.trackedentityattributevalue.TrackedEntityAttributeValue)

Aggregations

TrackedEntityAttributeValue (org.hisp.dhis.trackedentityattributevalue.TrackedEntityAttributeValue)21 HashSet (java.util.HashSet)9 TrackedEntityAttribute (org.hisp.dhis.trackedentity.TrackedEntityAttribute)9 Date (java.util.Date)8 TrackedEntityInstance (org.hisp.dhis.trackedentity.TrackedEntityInstance)8 ArrayList (java.util.ArrayList)7 PatientAttribute (org.hisp.dhis.api.mobile.model.PatientAttribute)5 NotAllowedException (org.hisp.dhis.api.mobile.NotAllowedException)4 Program (org.hisp.dhis.program.Program)4 DhisSpringTest (org.hisp.dhis.DhisSpringTest)3 OrganisationUnit (org.hisp.dhis.organisationunit.OrganisationUnit)3 ProgramInstance (org.hisp.dhis.program.ProgramInstance)3 Relationship (org.hisp.dhis.relationship.Relationship)3 RelationshipType (org.hisp.dhis.relationship.RelationshipType)3 Test (org.junit.Test)3 List (java.util.List)2 QueryItem (org.hisp.dhis.common.QueryItem)2 ProgramInstanceQueryParams (org.hisp.dhis.program.ProgramInstanceQueryParams)2 TypeReference (com.fasterxml.jackson.core.type.TypeReference)1 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1