Write a function to calculate the TF-IDF (Term Frequency-Inverse Document Frequency) score for a set of clinical documents.
Implement tfidf_scores(documents), where documents is a list of clinical-document strings. Normalize terms by converting to lowercase and extracting contiguous alphanumeric sequences with the pattern [a-z0-9]+. Return a list of dictionaries, one per document, containing every term occurring in that document and its TF-IDF score rounded to 6 decimal places.
Use normalized term frequency, count(term) / number_of_terms_in_document, and unsmoothed inverse document frequency, ln(number_of_documents / documents_containing_term). Empty documents return empty dictionaries.
def tfidf_scores(documents):