001package org.hl7.fhir.convertors.conv10_40.datatypes10_40;
002
003import org.hl7.fhir.dstu2.model.Parameters;
004import org.hl7.fhir.r4.model.TerminologyCapabilities;
005
006public class TerminologyCapabilities10_40 {
007  public static TerminologyCapabilities convertTerminologyCapabilities(Parameters src) {
008    TerminologyCapabilities res = new TerminologyCapabilities();
009    for (Parameters.ParametersParameterComponent p : src.getParameter()) {
010      if (p.getName().equals("system")) res.addCodeSystem().setUri(p.getValue().primitiveValue());
011    }
012    return res;
013  }
014}