Use a repeating element in a variable-length entity instead of two separate entity types when:
Note: Each entity can have only one variably repeating data element.
If you intend to use SQL to retrieve information from the database, you may not want to create variable repeating data elements because you will not be able to access the variable portion through SQL.
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:
Copyright © 2014 CA.
All rights reserved.
|
|