Description
EmrApiProperties.getConceptSourcesForDiagnosisSearch() only returns the hardcoded "ICD-10-WHO":
public List<ConceptSource> getConceptSourcesForDiagnosisSearch() { ConceptSource icd10 = conceptService.getConceptSourceByName("ICD-10-WHO"); if (icd10 != null) { return Arrays.asList(icd10); } else { return null; } }
Let's enable EMR API to be configurable so that the list of sources can be provided as a global property or via Metadata Mapping.
The default for EMR API when it is not yet configured should remain the single item list "ICD-10-WHO".