Modified data sankey endpoint. Uses dataset_type rather than data_types. Various conversions and mappings no longer required. Also fixed a previous inefficiency which would cause the function to take minutes to run. Now it only takes seconds. This was caused by unecessary calls to ontology. This was done by modifying validate_organ_code to take an optional argument that includes the organ dictionary.
Modified data sankey endpoint. Uses dataset_type rather than data_types. Various conversions and mappings no longer required. Also fixed a previous inefficiency which would cause the function to take minutes to run. Now it only takes seconds. This was caused by unecessary calls to ontology. This was done by modifying validate_organ_code to take an optional argument that includes the organ dictionary.