diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/MetadataResourceManager.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/MetadataResourceManager.java index 66bf277f4..306f269a2 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/MetadataResourceManager.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/MetadataResourceManager.java @@ -187,7 +187,13 @@ public class MetadataResourceManager { } public List getList() { - return list; + List res = new ArrayList<>(); + for (T t : list) { + if (!res.contains(t)) { + res.add(t); + } + } + return res; } public Set keys() {