001package org.hl7.fhir.convertors.conv30_50.resources30_50; 002 003import org.hl7.fhir.dstu3.model.Parameters; 004import org.hl7.fhir.r5.model.TerminologyCapabilities; 005 006public class TerminologyCapabilities30_50 { 007 public static TerminologyCapabilities convertTerminologyCapabilities(Parameters src, boolean b) { 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 if (p.getName().equals("expansion.parameter")) 012 res.getExpansion().addParameter().setName(p.getValue().primitiveValue()); 013 } 014 return res; 015 } 016}