io.github.linuxforhealth.api.Specification 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;
/**
* Defines Data source specific data extraction String Example: for HL7 data, specification defines
* segment, field, component and subcomponent names/identifiers that can be used for extracting
* data.
*
*
* @author pbhallam
*/
public interface Specification {
/**
* Extract the single value for the specifications.
*
*
* @param dataSource {@link InputDataExtractor}
* @param contextValues {@link Map} of String and value {@link EvaluationResult }
* @return {@link EvaluationResult}
*/
EvaluationResult extractValueForSpec(InputDataExtractor dataSource,
Map contextValues);
/**
* Extract the multiple values for the specifications.
*
*
* @param dataSource {@link InputDataExtractor}
* @param contextValues {@link Map} of String and value {@link EvaluationResult }
* @return {@link EvaluationResult}
*/
EvaluationResult extractMultipleValuesForSpec(InputDataExtractor dataSource,
Map contextValues);
}