Class DataRequirement.Builder
- java.lang.Object
-
- com.ibm.fhir.model.builder.AbstractBuilder<Element>
-
- com.ibm.fhir.model.type.Element.Builder
-
- com.ibm.fhir.model.type.DataRequirement.Builder
-
- Enclosing class:
- DataRequirement
public static class DataRequirement.Builder extends Element.Builder
-
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.type.Element.Builder
extension, id
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataRequirementbuild()Build theDataRequirementDataRequirement.BuildercodeFilter(DataRequirement.CodeFilter... codeFilter)Code filters specify additional constraints on the data, specifying the value set of interest for a particular element of the data.DataRequirement.BuildercodeFilter(Collection<DataRequirement.CodeFilter> codeFilter)Code filters specify additional constraints on the data, specifying the value set of interest for a particular element of the data.DataRequirement.BuilderdateFilter(DataRequirement.DateFilter... dateFilter)Date filters specify additional constraints on the data in terms of the applicable date range for specific elements.DataRequirement.BuilderdateFilter(Collection<DataRequirement.DateFilter> dateFilter)Date filters specify additional constraints on the data in terms of the applicable date range for specific elements.DataRequirement.Builderextension(Extension... extension)May be used to represent additional information that is not part of the basic definition of the element.DataRequirement.Builderextension(Collection<Extension> extension)May be used to represent additional information that is not part of the basic definition of the element.protected DataRequirement.Builderfrom(DataRequirement dataRequirement)DataRequirement.Builderid(String id)Unique id for the element within a resource (for internal references).DataRequirement.Builderlimit(PositiveInt limit)Specifies a maximum number of results that are required (uses the _count search parameter).DataRequirement.BuildermustSupport(String... mustSupport)Indicates that specific elements of the type are referenced by the knowledge module and must be supported by the consumer in order to obtain an effective evaluation.DataRequirement.BuildermustSupport(Collection<String> mustSupport)Indicates that specific elements of the type are referenced by the knowledge module and must be supported by the consumer in order to obtain an effective evaluation.DataRequirement.Builderprofile(Canonical... profile)The profile of the required data, specified as the uri of the profile definition.DataRequirement.Builderprofile(Collection<Canonical> profile)The profile of the required data, specified as the uri of the profile definition.DataRequirement.Buildersort(DataRequirement.Sort... sort)Specifies the order of the results to be returned.DataRequirement.Buildersort(Collection<DataRequirement.Sort> sort)Specifies the order of the results to be returned.DataRequirement.Buildersubject(Element subject)The intended subjects of the data requirement.DataRequirement.Buildertype(FHIRAllTypes type)The type of the required data, specified as the type name of a resource.-
Methods inherited from class com.ibm.fhir.model.type.Element.Builder
from
-
-
-
-
Method Detail
-
id
public DataRequirement.Builder id(String id)
Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.- Overrides:
idin classElement.Builder- Parameters:
id- Unique id for inter-element referencing- Returns:
- A reference to this Builder instance
-
extension
public DataRequirement.Builder extension(Extension... extension)
May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.Adds new element(s) to the existing list
- Overrides:
extensionin classElement.Builder- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
extension
public DataRequirement.Builder extension(Collection<Extension> extension)
May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.Replaces the existing list with a new one containing elements from the Collection
- Overrides:
extensionin classElement.Builder- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
type
public DataRequirement.Builder type(FHIRAllTypes type)
The type of the required data, specified as the type name of a resource. For profiles, this value is set to the type of the base resource of the profile.This element is required.
- Parameters:
type- The type of the required data- Returns:
- A reference to this Builder instance
-
profile
public DataRequirement.Builder profile(Canonical... profile)
The profile of the required data, specified as the uri of the profile definition.Adds new element(s) to the existing list
- Parameters:
profile- The profile of the required data- Returns:
- A reference to this Builder instance
-
profile
public DataRequirement.Builder profile(Collection<Canonical> profile)
The profile of the required data, specified as the uri of the profile definition.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
profile- The profile of the required data- Returns:
- A reference to this Builder instance
-
subject
public DataRequirement.Builder subject(Element subject)
The intended subjects of the data requirement. If this element is not provided, a Patient subject is assumed.This is a choice element with the following allowed types:
When of typeReference, the allowed resource types for this reference are:Group
- Parameters:
subject- E.g. Patient, Practitioner, RelatedPerson, Organization, Location, Device- Returns:
- A reference to this Builder instance
-
mustSupport
public DataRequirement.Builder mustSupport(String... mustSupport)
Indicates that specific elements of the type are referenced by the knowledge module and must be supported by the consumer in order to obtain an effective evaluation. This does not mean that a value is required for this element, only that the consuming system must understand the element and be able to provide values for it if they are available.The value of mustSupport SHALL be a FHIRPath resolveable on the type of the DataRequirement. The path SHALL consist only of identifiers, constant indexers, and .resolve() (see the [Simple FHIRPath Profile](fhirpath.html#simple) for full details).
Adds new element(s) to the existing list
- Parameters:
mustSupport- Indicates specific structure elements that are referenced by the knowledge module- Returns:
- A reference to this Builder instance
-
mustSupport
public DataRequirement.Builder mustSupport(Collection<String> mustSupport)
Indicates that specific elements of the type are referenced by the knowledge module and must be supported by the consumer in order to obtain an effective evaluation. This does not mean that a value is required for this element, only that the consuming system must understand the element and be able to provide values for it if they are available.The value of mustSupport SHALL be a FHIRPath resolveable on the type of the DataRequirement. The path SHALL consist only of identifiers, constant indexers, and .resolve() (see the [Simple FHIRPath Profile](fhirpath.html#simple) for full details).
Replaces the existing list with a new one containing elements from the Collection
- Parameters:
mustSupport- Indicates specific structure elements that are referenced by the knowledge module- Returns:
- A reference to this Builder instance
-
codeFilter
public DataRequirement.Builder codeFilter(DataRequirement.CodeFilter... codeFilter)
Code filters specify additional constraints on the data, specifying the value set of interest for a particular element of the data. Each code filter defines an additional constraint on the data, i.e. code filters are AND'ed, not OR'ed.Adds new element(s) to the existing list
- Parameters:
codeFilter- What codes are expected- Returns:
- A reference to this Builder instance
-
codeFilter
public DataRequirement.Builder codeFilter(Collection<DataRequirement.CodeFilter> codeFilter)
Code filters specify additional constraints on the data, specifying the value set of interest for a particular element of the data. Each code filter defines an additional constraint on the data, i.e. code filters are AND'ed, not OR'ed.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
codeFilter- What codes are expected- Returns:
- A reference to this Builder instance
-
dateFilter
public DataRequirement.Builder dateFilter(DataRequirement.DateFilter... dateFilter)
Date filters specify additional constraints on the data in terms of the applicable date range for specific elements. Each date filter specifies an additional constraint on the data, i.e. date filters are AND'ed, not OR'ed.Adds new element(s) to the existing list
- Parameters:
dateFilter- What dates/date ranges are expected- Returns:
- A reference to this Builder instance
-
dateFilter
public DataRequirement.Builder dateFilter(Collection<DataRequirement.DateFilter> dateFilter)
Date filters specify additional constraints on the data in terms of the applicable date range for specific elements. Each date filter specifies an additional constraint on the data, i.e. date filters are AND'ed, not OR'ed.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
dateFilter- What dates/date ranges are expected- Returns:
- A reference to this Builder instance
-
limit
public DataRequirement.Builder limit(PositiveInt limit)
Specifies a maximum number of results that are required (uses the _count search parameter).- Parameters:
limit- Number of results- Returns:
- A reference to this Builder instance
-
sort
public DataRequirement.Builder sort(DataRequirement.Sort... sort)
Specifies the order of the results to be returned.Adds new element(s) to the existing list
- Parameters:
sort- Order of the results- Returns:
- A reference to this Builder instance
-
sort
public DataRequirement.Builder sort(Collection<DataRequirement.Sort> sort)
Specifies the order of the results to be returned.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
sort- Order of the results- Returns:
- A reference to this Builder instance
-
build
public DataRequirement build()
- Specified by:
buildin interfaceBuilder<Element>- Specified by:
buildin classElement.Builder- Returns:
- An immutable object of type
DataRequirement - Throws:
IllegalStateException- if the current state cannot be built into a valid DataRequirement per the base specification
-
from
protected DataRequirement.Builder from(DataRequirement dataRequirement)
-
-