src/__fixtures__/json/api/schemas/dataElement.json

Summary

Maintainability
Test Coverage
{
    "klass": "org.hisp.dhis.dataelement.DataElement",
    "shareable": true,
    "translatable": true,
    "metadata": true,
    "identifiableObject": true,
    "apiEndpoint": "https://play.dhis2.org/demo/api/dataElements",
    "plural": "dataElements",
    "name": "dataElement",
    "singular": "dataElement",
    "authorities": [
        {
            "type": "CREATE_PUBLIC",
            "authorities": ["F_DATAELEMENT_PUBLIC_ADD"]
        },
        {
            "type": "CREATE_PRIVATE",
            "authorities": ["F_DATAELEMENT_PRIVATE_ADD"]
        },
        { "type": "DELETE", "authorities": ["F_DATAELEMENT_DELETE"] }
    ],
    "properties": [
        {
            "owner": true,
            "ordered": false,
            "collection": false,
            "required": true,
            "writable": true,
            "propertyType": "CONSTANT",
            "unique": false,
            "name": "aggregationType",
            "persisted": true,
            "constants": [
                "SUM",
                "AVERAGE",
                "AVERAGE_SUM_ORG_UNIT",
                "COUNT",
                "STDDEV",
                "VARIANCE",
                "MIN",
                "MAX",
                "NONE",
                "CUSTOM",
                "DEFAULT",
                "AVERAGE_SUM_INT",
                "AVERAGE_SUM_INT_DISAGGREGATION",
                "AVERAGE_INT",
                "AVERAGE_INT_DISAGGREGATION",
                "AVERAGE_BOOL"
            ]
        },
        {
            "owner": true,
            "ordered": false,
            "max": 50.0,
            "collection": false,
            "required": false,
            "writable": true,
            "min": 0.0,
            "propertyType": "IDENTIFIER",
            "unique": true,
            "name": "code",
            "persisted": true,
            "constants": []
        },
        {
            "owner": false,
            "ordered": false,
            "max": 1.7976931348623157e308,
            "collection": false,
            "required": false,
            "writable": true,
            "min": 0.0,
            "propertyType": "COMPLEX",
            "unique": false,
            "name": "access",
            "persisted": false,
            "constants": []
        },
        {
            "owner": true,
            "ordered": false,
            "collection": false,
            "required": true,
            "writable": true,
            "propertyType": "CONSTANT",
            "unique": false,
            "name": "domainType",
            "persisted": true,
            "constants": ["AGGREGATE", "TRACKER"]
        },
        {
            "owner": false,
            "ordered": false,
            "max": 1.7976931348623157e308,
            "collection": true,
            "itemPropertyType": "REFERENCE",
            "required": false,
            "writable": true,
            "collectionName": "dataSetElements",
            "min": 0.0,
            "propertyType": "COLLECTION",
            "unique": false,
            "name": "dataSetElements",
            "href": "https://play.dhis2.org/demo/api/schemas/dataSetElement",
            "persisted": true,
            "constants": []
        },
        {
            "owner": false,
            "ordered": false,
            "max": 2.147483647e9,
            "collection": false,
            "required": false,
            "writable": true,
            "min": 0.0,
            "propertyType": "TEXT",
            "unique": false,
            "name": "displayName",
            "persisted": false,
            "constants": []
        },
        {
            "owner": true,
            "ordered": false,
            "max": 8.0,
            "collection": false,
            "required": false,
            "writable": true,
            "min": 8.0,
            "propertyType": "TEXT",
            "unique": false,
            "name": "publicAccess",
            "persisted": true,
            "constants": []
        },
        {
            "owner": true,
            "ordered": false,
            "translationKey": "DESCRIPTION",
            "max": 2.147483647e9,
            "collection": false,
            "required": false,
            "writable": true,
            "min": 1.0,
            "propertyType": "TEXT",
            "unique": false,
            "name": "description",
            "persisted": true,
            "constants": []
        },
        {
            "owner": false,
            "ordered": false,
            "max": 2.147483647e9,
            "collection": false,
            "required": false,
            "writable": true,
            "min": 0.0,
            "propertyType": "TEXT",
            "unique": false,
            "name": "displayShortName",
            "persisted": false,
            "constants": []
        },
        {
            "owner": false,
            "ordered": false,
            "collection": false,
            "required": false,
            "writable": true,
            "propertyType": "BOOLEAN",
            "unique": false,
            "name": "externalAccess",
            "persisted": false,
            "constants": []
        },
        {
            "owner": true,
            "ordered": false,
            "collection": false,
            "required": false,
            "writable": true,
            "propertyType": "DATE",
            "unique": false,
            "name": "lastUpdated",
            "persisted": true,
            "constants": []
        },
        {
            "owner": true,
            "ordered": false,
            "collection": false,
            "required": false,
            "writable": true,
            "propertyType": "REFERENCE",
            "unique": false,
            "name": "optionSet",
            "href": "https://play.dhis2.org/demo/api/schemas/optionSet",
            "persisted": true,
            "constants": []
        },
        {
            "owner": true,
            "ordered": false,
            "collection": false,
            "required": true,
            "writable": true,
            "propertyType": "REFERENCE",
            "unique": false,
            "name": "categoryCombo",
            "href": "https://play.dhis2.org/demo/api/schemas/categoryCombo",
            "persisted": true,
            "constants": []
        },
        {
            "owner": true,
            "ordered": false,
            "max": 1.7976931348623157e308,
            "collection": true,
            "itemPropertyType": "COMPLEX",
            "required": false,
            "writable": true,
            "collectionName": "translations",
            "min": 0.0,
            "propertyType": "COLLECTION",
            "unique": false,
            "name": "translation",
            "persisted": true,
            "constants": []
        },
        {
            "owner": true,
            "ordered": false,
            "collection": false,
            "required": true,
            "writable": true,
            "propertyType": "CONSTANT",
            "unique": false,
            "name": "valueType",
            "persisted": true,
            "constants": [
                "TEXT",
                "LONG_TEXT",
                "LETTER",
                "PHONE_NUMBER",
                "EMAIL",
                "BOOLEAN",
                "TRUE_ONLY",
                "DATE",
                "DATETIME",
                "TIME",
                "NUMBER",
                "UNIT_INTERVAL",
                "PERCENTAGE",
                "INTEGER",
                "INTEGER_POSITIVE",
                "INTEGER_NEGATIVE",
                "INTEGER_ZERO_OR_POSITIVE",
                "TRACKER_ASSOCIATE",
                "USERNAME",
                "FILE_RESOURCE",
                "COORDINATE",
                "ORGANISATION_UNIT"
            ]
        },
        {
            "owner": true,
            "ordered": false,
            "translationKey": "FORM_NAME",
            "max": 2.147483647e9,
            "collection": false,
            "required": false,
            "writable": true,
            "min": 2.0,
            "propertyType": "TEXT",
            "unique": false,
            "name": "formName",
            "persisted": true,
            "constants": []
        },
        {
            "owner": true,
            "ordered": false,
            "collection": false,
            "required": false,
            "writable": true,
            "propertyType": "REFERENCE",
            "unique": false,
            "name": "commentOptionSet",
            "href": "https://play.dhis2.org/demo/api/schemas/optionSet",
            "persisted": true,
            "constants": []
        },
        {
            "owner": true,
            "ordered": false,
            "max": 11.0,
            "collection": false,
            "required": false,
            "writable": true,
            "min": 11.0,
            "propertyType": "IDENTIFIER",
            "unique": true,
            "name": "id",
            "persisted": true,
            "constants": []
        },
        {
            "owner": false,
            "ordered": false,
            "max": 1.7976931348623157e308,
            "collection": false,
            "required": false,
            "writable": true,
            "min": 0.0,
            "propertyType": "URL",
            "unique": false,
            "name": "href",
            "persisted": false,
            "constants": []
        },
        {
            "owner": false,
            "ordered": false,
            "max": 2.147483647e9,
            "collection": false,
            "required": false,
            "writable": true,
            "min": 0.0,
            "propertyType": "TEXT",
            "unique": false,
            "name": "displayDescription",
            "persisted": false,
            "constants": []
        },
        {
            "owner": true,
            "ordered": false,
            "max": 1.7976931348623157e308,
            "collection": true,
            "itemPropertyType": "COMPLEX",
            "required": false,
            "writable": true,
            "collectionName": "userGroupAccesses",
            "min": 0.0,
            "propertyType": "COLLECTION",
            "unique": false,
            "name": "userGroupAccess",
            "persisted": true,
            "constants": []
        },
        {
            "owner": false,
            "ordered": false,
            "collection": false,
            "required": false,
            "writable": false,
            "propertyType": "TEXT",
            "unique": false,
            "name": "dimensionItem",
            "persisted": false,
            "constants": []
        },
        {
            "owner": true,
            "ordered": false,
            "collection": false,
            "required": false,
            "writable": true,
            "propertyType": "DATE",
            "unique": false,
            "name": "created",
            "persisted": true,
            "constants": []
        },
        {
            "owner": false,
            "ordered": false,
            "max": 1.7976931348623157e308,
            "collection": true,
            "itemPropertyType": "REFERENCE",
            "required": false,
            "writable": true,
            "collectionName": "dataElementGroups",
            "min": 0.0,
            "propertyType": "COLLECTION",
            "unique": false,
            "name": "dataElementGroup",
            "href": "https://play.dhis2.org/demo/api/schemas/dataElementGroup",
            "persisted": true,
            "constants": []
        },
        {
            "owner": true,
            "ordered": false,
            "max": 1.7976931348623157e308,
            "collection": true,
            "itemPropertyType": "COMPLEX",
            "required": false,
            "writable": true,
            "collectionName": "attributeValues",
            "min": 0.0,
            "propertyType": "COLLECTION",
            "unique": false,
            "name": "attributeValue",
            "persisted": true,
            "constants": []
        },
        {
            "owner": false,
            "ordered": false,
            "max": 2.147483647e9,
            "collection": false,
            "required": false,
            "writable": true,
            "min": 0.0,
            "propertyType": "TEXT",
            "unique": false,
            "name": "displayFormName",
            "persisted": false,
            "constants": []
        },
        {
            "owner": true,
            "ordered": false,
            "collection": false,
            "required": true,
            "writable": true,
            "propertyType": "BOOLEAN",
            "unique": false,
            "name": "zeroIsSignificant",
            "persisted": true,
            "constants": []
        },
        {
            "owner": true,
            "ordered": false,
            "max": 255.0,
            "collection": false,
            "required": false,
            "writable": true,
            "min": 0.0,
            "propertyType": "URL",
            "unique": false,
            "name": "url",
            "persisted": true,
            "constants": []
        },
        {
            "owner": true,
            "ordered": false,
            "max": 1.7976931348623157e308,
            "collection": true,
            "itemPropertyType": "COMPLEX",
            "required": false,
            "writable": true,
            "collectionName": "userAccesses",
            "min": 0.0,
            "propertyType": "COLLECTION",
            "unique": false,
            "name": "userAccess",
            "persisted": true,
            "constants": []
        },
        {
            "owner": true,
            "ordered": false,
            "translationKey": "NAME",
            "max": 2.147483647e9,
            "collection": false,
            "required": true,
            "writable": true,
            "min": 1.0,
            "propertyType": "TEXT",
            "unique": true,
            "name": "name",
            "persisted": true,
            "constants": []
        },
        {
            "owner": false,
            "ordered": false,
            "collection": false,
            "required": false,
            "writable": false,
            "propertyType": "REFERENCE",
            "unique": false,
            "name": "legendSet",
            "href": "https://play.dhis2.org/demo/api/schemas/legendSet",
            "persisted": false,
            "constants": []
        },
        {
            "owner": true,
            "ordered": true,
            "max": 1.7976931348623157e308,
            "collection": true,
            "itemPropertyType": "REFERENCE",
            "required": false,
            "writable": true,
            "collectionName": "legendSets",
            "min": 0.0,
            "propertyType": "COLLECTION",
            "unique": false,
            "name": "legendSets",
            "href": "https://play.dhis2.org/demo/api/schemas/legendSet",
            "persisted": true,
            "constants": []
        },
        {
            "owner": true,
            "ordered": true,
            "max": 1.7976931348623157e308,
            "collection": true,
            "itemPropertyType": "INTEGER",
            "required": false,
            "writable": true,
            "collectionName": "aggregationLevels",
            "min": 0.0,
            "propertyType": "COLLECTION",
            "unique": false,
            "name": "aggregationLevels",
            "persisted": true,
            "constants": []
        },
        {
            "owner": true,
            "ordered": false,
            "translationKey": "SHORT_NAME",
            "max": 2.147483647e9,
            "collection": false,
            "required": true,
            "writable": true,
            "min": 1.0,
            "propertyType": "TEXT",
            "unique": true,
            "name": "shortName",
            "persisted": true,
            "constants": []
        },
        {
            "owner": true,
            "ordered": false,
            "collection": false,
            "required": false,
            "writable": true,
            "propertyType": "REFERENCE",
            "unique": false,
            "name": "user",
            "href": "https://play.dhis2.org/demo/api/schemas/user",
            "persisted": true,
            "constants": []
        },
        {
            "owner": false,
            "ordered": false,
            "collection": false,
            "required": false,
            "writable": false,
            "propertyType": "BOOLEAN",
            "unique": false,
            "name": "optionSetValue",
            "persisted": false,
            "constants": []
        },
        {
            "owner": false,
            "ordered": false,
            "collection": false,
            "required": false,
            "writable": true,
            "propertyType": "CONSTANT",
            "unique": false,
            "name": "dimensionItemType",
            "persisted": false,
            "constants": [
                "DATA_ELEMENT",
                "DATA_ELEMENT_OPERAND",
                "INDICATOR",
                "REPORTING_RATE",
                "PROGRAM_DATA_ELEMENT",
                "PROGRAM_ATTRIBUTE",
                "PROGRAM_INDICATOR",
                "PERIOD",
                "ORGANISATION_UNIT",
                "CATEGORY_OPTION",
                "OPTION_GROUP",
                "DATA_ELEMENT_GROUP",
                "ORGANISATION_UNIT_GROUP",
                "CATEGORY_OPTION_GROUP"
            ]
        }
    ]
}