Data integration of structured and unstructured sources for assigning clinical codes to patient stays