/** * Modify this function to add more version types. * * @return Map of all the version types. Each entry becomes an object in the patient record. */ public Map<String, String> getOntologiesVersions() { Map<String, String> result = new HashMap<>(); for (Entry<String, OntologyService> ontology : this.ontologies.entrySet()) { String version = ontology.getValue().getVersion(); if (StringUtils.isNotBlank(version)) { result.put(ontology.getKey(), version); } } return result; } }