All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.linuxforhealth.hl7.parsing.result.Hl7ParsingStringResult Maven / Gradle / Ivy

Go to download

FHIR converter is a Java based library that enables converting Hl7v2 messages to FHIR resources

There is a newer version: 1.0.19
Show newest version
/*
 * (C) Copyright IBM Corp. 2020
 *
 * SPDX-License-Identifier: Apache-2.0
 */
package io.github.linuxforhealth.hl7.parsing.result;

import java.util.List;
import org.apache.commons.lang3.StringUtils;
import com.google.common.collect.Lists;


/**
 * Represents the String value of result of parsing HL7 message.
 * 
 *
 * @author {user}
 */
public class Hl7ParsingStringResult implements ParsingResult {


  private String textValue;

  public Hl7ParsingStringResult(String textValue) {
    this.textValue = textValue;
  }




  public boolean isEmpty() {
    return StringUtils.isBlank(this.textValue);
  }

  @Override
  public String getValue() {
    return textValue;
  }

  @Override
  public List getValues() {
    return Lists.newArrayList(textValue);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy