Data element
A DataElement can be represented as follows:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
The fields are as follows:
- id (UUID): The unique identifier of this data element
- domainType (Type): The domain type of this catalogue object. This is always
DataElement
in this case. - label (String): The human-readable identifier of this element.
- description (String): A long description of the data element, and any important characteristics of the data. This field may include HTML, or MarkDown.
- lastUpdated (DateTime): The date/time when this DataElement was last modified
- model (UUID): The unique identifier of the parent data model
- dataClass (UUID): The unique identifier of the parent data class
- dataType (Object): The type definition of this data element. The object returned matches the JSON defined in Data type
As well as the endpoints listed below, a DataElement is also a CatalogueItem, and so a DataElement identifier can also be used as the parameter to any of those endpoints
Getting information¶
The following endpoint returns a paginated list of all the DataElements within a particular DataClass.
This endpoint provides the detailed information about a particular DataElement under a DataClass.
Create / Update / Delete¶
To create a new DataElement from scratch, use the following post endpoint.
To edit the properties of a DataElement, use the following endpoint, with a body similar to the JSON described at the top of this page:
To delete a DataElement, use the following endpoint.
Copying¶
Instead of creating a new DataElement from scratch, it is also possible to copy an existing DataElement from another DataClass. Use the following endpoint to accomplish this. The dataModelId and dataClassId refers to the target DataClass to copy to; otherDataModelId, otherDataClassId and dataElementId refer to the source DataModel/Class/Element to copy from.