io.github.linuxforhealth.hl7.parsing.result.Hl7ParsingStringResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hl7v2-fhir-converter Show documentation
Show all versions of hl7v2-fhir-converter Show documentation
FHIR converter is a Java based library that enables converting Hl7v2 messages to FHIR resources
/*
* (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);
}
}