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

io.github.linuxforhealth.api.Specification 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.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);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy