Identifying entities, patterns and relationships
You can use four types of evidence relationships: parent-child, pre-associated, multiple mandatory parents, and related relationships.
Identifying entities
- Any entity that implements the standard evidence interface AND
- Maintained by the evidence solution.
Identifying patterns
- Features within a maintenance screen
- Extra code that is specific to an entity
- A button on a client page.
- A callout class stub where you can then implement business logic.
Identifying relationships
In evidence, relationships describe how evidence entities interact and exist in relation to each other. Use a function in the generator to specify the relationships between evidence entities. Then, the generator produces the associated server-side code and client page functions to facilitate the maintenance of the relationships. You can use four types of evidence relationships: parent-child, pre-associated, multiple mandatory parents, and related relationships.
- Parent-Child relationships
-
Parent-Child is one of the most common logical relationships between evidence entities. Typically, a parent-child relationship is a one-to-many relationship where:
- The parent can have many children AND
- Each child must belong to a parent.
- The child entity cannot live without the parent entity AND
- The details on the child are logically related to the details captured on the parent.
- Student details are stored in a student entity AND
- Student expenses are stored in a student expenses entity.
- Pre-Associated relationships
-
Pre-Associated relationships are non-hierarchical relationships between evidence entities that can exist independently of each other. Before you create the evidence, you must know the association between evidence entities so that you can access data from the associated entity as you create the evidence.
- Multiple mandatory parents relationships
-
Use the multiple mandatory parents relationship pattern where an entity must simultaneously be the child of more than one parent entity.
- Related relationships
-
Related relationships are non-hierarchical. Use related relationships to associate an evidence record to a non-evidence record. A primary example is the relation of evidence-based employment records to the core employment record. That relationship is found in all evidence-based modules that are built by the application.
Examples of evidence-based employment entities are:- Self-employment
- Paid employment