CMSgov/dpc-app

View on GitHub
dpc-common/src/main/java/gov/cms/dpc/fhir/annotations/BundleReturnProperties.java

Summary

Maintainability
A
0 mins
Test Coverage
package gov.cms.dpc.fhir.annotations;

import org.hl7.fhir.dstu3.model.Bundle;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Annotation for specifying custom properties for {@link Bundle} resources generated from returning collections.
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface BundleReturnProperties {

    Bundle.BundleType bundleType() default Bundle.BundleType.SEARCHSET;
}