entity_first
entity_first (entity[, doc])
This function returns the OID of the first element within the text or file entity specified by entity (for the specified doc or the current document if doc is not specified). entity_first the null OID if entity is not a file or text entity, or if there are no elements within the entity.