001package org.hl7.fhir.convertors.misc.searchparam;
002
003import lombok.Data;
004
005@Data
006public class SPRelationship {
007  private final String r4;
008  private final String r3;
009  private final String r2b;
010  private final String r2;
011
012  public String getByCode(String code) {
013    if ("R4".equals(code))
014      return r4;
015    if ("R3".equals(code))
016      return r3;
017    if ("R2b".equals(code))
018      return r2b;
019    if ("R2".equals(code))
020      return getR2();
021    return null;
022  }
023
024}