001package org.hl7.fhir.r5.terminologies.providers;
002
003import org.hl7.fhir.r5.model.CodeSystem.ConceptDefinitionComponent;
004import org.hl7.fhir.r5.model.Coding;
005import org.hl7.fhir.utilities.Utilities;
006
007public class URICodeSystem extends SpecialCodeSystem {
008
009  @Override
010  public ConceptDefinitionComponent findConcept(Coding code) {
011    if (Utilities.isAbsoluteUrl(code.getCode())) {
012      return new ConceptDefinitionComponent(code.getCode()).setDisplay(code.hasDisplay() ? code.getDisplay() : code.getCode());
013    } else {
014      return null;
015    }
016  }
017
018}