io.github.linuxforhealth.api.FHIRResourceTemplate 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;
/**
* Represents a template to generate a FHIR resource.
* Each template defines the following attributes:
*
* - Name
* - {@link ResourceModel}
* - If the resource is a list - multiple values needs to be generated
* - If the resource is referenced
*
*
*
* @author pbhallam
*/
public interface FHIRResourceTemplate {
/**
* Resource Name
*
* @return String
*/
String getResourceName();
/**
* ResourceModel
*
* @return {@link ResourceModel}
*/
ResourceModel getResource();
/**
* If multiple resources of this type needs to be generated
*
* @return True/False
*/
boolean isGenerateMultiple();
/**
* If this resource is referenced by other resources
*
* @return True/False
*/
boolean isReferenced();
}