Previous Topic: Direct Location ModeNext Topic: Database Procedures


Variable-Length Entities

Use a repeating element in a variable-length entity instead of two separate entity types when:

You must include a counter element in the entity to indicate the current number of occurrences of the repeating data element in each entity occurrence.

If you decide to create a repeating data element in a variable-length entity, be sure to change the length of the entity on the data structure diagram. Additionally, change the storage mode of the entity to V (variable).

Several entities in the Commonweather database can be converted to repeating elements in variable-length entities. The NON-HOSPITAL PROCEDURE and DENTAL PROCEDURE entities should be made repeating elements because they each participate in only one relationship and occur a limited number of times: