au.csiro.pathling.config.EncodingConfiguration Maven / Gradle / Ivy
/*
* This is a modified version of the Bunsen library, originally published at
* https://github.com/cerner/bunsen.
*
* Bunsen is copyright 2017 Cerner Innovation, Inc., and is licensed under
* the Apache License, version 2.0 (http://www.apache.org/licenses/LICENSE-2.0).
*
* These modifications are copyright 2023 Commonwealth Scientific and Industrial Research
* Organisation (CSIRO) ABN 41 687 119 230.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package au.csiro.pathling.config;
import java.util.Set;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import lombok.Builder;
import lombok.Data;
/**
* Represents configuration specific to FHIR encoding.
*/
@Data
@Builder
public class EncodingConfiguration {
/**
* Controls the maximum depth of nested element data that is encoded upon import.
*/
@NotNull
@Min(0)
@Builder.Default
private Integer maxNestingLevel = 3;
/**
* Enables support for FHIR extensions.
*/
@NotNull
@Builder.Default
private boolean enableExtensions = true;
/**
* The list of types that are encoded within open types, such as extensions. This default list was
* taken from the data types that are common to extensions found in widely-used IGs, such as the
* US and AU base profiles. In general, you will get the best query performance by encoding your
* data with the shortest possible list.
*/
@NotNull
@Builder.Default
private Set openTypes = Set.of(
"boolean",
"code",
"date",
"dateTime",
"decimal",
"integer",
"string",
"Coding",
"CodeableConcept",
"Address",
"Identifier",
"Reference"
);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy