4.2.2 Details
Details can be non time valid (i.e. each detail record does not have start and end dates) such as provider titles. Details can also be time valid (i.e. each item of the list has a start and an end date), such as provider group affiliations. Both types of details are handled as follows:
When the OHI application creates new records (for an entity with a detail list):
- If the detail list element is not included, no details are added
- If a detail list element is included, one detail record for each included detail item is created
When the OHI application is updating an existing record (for an entity with a detail list):
- If the list element is not included, no changes to current details are made
- If a list element is included, included detail items completely replace current detail records (in effect, all current detail records that have not been resent (i.e. for which there is no detail item with exactly matching values) are removed and one detail record for each included detail item (that is not a 'resend') is created)
- Note that completely replacing an existing list can have a different meaning depending on the root element. Provider group affiliations can for example be specified for root element organization provider or for root element provider group. If specified for an organization provider, it means that all provider group affiliations of that provider (in all provider groups) are replaced by the new list. If specified for a provider group, it means that all provider group affiliations of that provider group are replaced by the new list.
- If an empty list element is included, all current detail records are removed.