io.github.linuxforhealth.api.ResourceValue 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.api;
import java.util.Map;
/**
* Resource value holds the result of Resource evaluation.
*
*
* @author pbhallam
*/
public interface ResourceValue {
/**
* Represents the Resource - Map
*
* @return Map where key is the field name and value is result of that field generated by
* evaluating the expression for that field.
*/
Map getResource();
/**
* FHIR Resource Type Example: Observation/Patient
*
* @return String
*/
String getFHIRResourceType();
/**
* If the resource map is empty or null, this method should return True.
*
* @return - True if resource map is empty or null.
*/
boolean isEmpty();
}