Package com.ibm.fhir.model.type
Class DataRequirement
- java.lang.Object
-
- com.ibm.fhir.model.visitor.AbstractVisitable
-
- com.ibm.fhir.model.type.Element
-
- com.ibm.fhir.model.type.DataRequirement
-
- All Implemented Interfaces:
Visitable
@Generated("com.ibm.fhir.tools.CodeGenerator") public class DataRequirement extends Element
Describes a required data item for evaluation in terms of the type of data, and optional code or date-based filters of the data.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDataRequirement.Builderstatic classDataRequirement.CodeFilterCode filters specify additional constraints on the data, specifying the value set of interest for a particular element of the data.static classDataRequirement.DateFilterDate filters specify additional constraints on the data in terms of the applicable date range for specific elements.static classDataRequirement.SortSpecifies the order of the results to be returned.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(String elementName, int elementIndex, Visitor visitor)Accept a Visitor and invoke the appropriate visit methods.static DataRequirement.Builderbuilder()booleanequals(Object obj)List<DataRequirement.CodeFilter>getCodeFilter()Code filters specify additional constraints on the data, specifying the value set of interest for a particular element of the data.List<DataRequirement.DateFilter>getDateFilter()Date filters specify additional constraints on the data in terms of the applicable date range for specific elements.PositiveIntgetLimit()Specifies a maximum number of results that are required (uses the _count search parameter).List<String>getMustSupport()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.List<Canonical>getProfile()The profile of the required data, specified as the uri of the profile definition.List<DataRequirement.Sort>getSort()Specifies the order of the results to be returned.ElementgetSubject()The intended subjects of the data requirement.FHIRAllTypesgetType()The type of the required data, specified as the type name of a resource.booleanhasChildren()inthashCode()DataRequirement.BuildertoBuilder()Create a new Builder from the contents of this Element
-
-
-
Method Detail
-
getType
public FHIRAllTypes getType()
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.- Returns:
- An immutable object of type
FHIRAllTypesthat is non-null.
-
getProfile
public List<Canonical> getProfile()
The profile of the required data, specified as the uri of the profile definition.- Returns:
- An unmodifiable list containing immutable objects of type
Canonicalthat may be empty.
-
getSubject
public Element getSubject()
The intended subjects of the data requirement. If this element is not provided, a Patient subject is assumed.- Returns:
- An immutable object of type
Elementthat may be null.
-
getMustSupport
public List<String> getMustSupport()
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).
- Returns:
- An unmodifiable list containing immutable objects of type
Stringthat may be empty.
-
getCodeFilter
public List<DataRequirement.CodeFilter> getCodeFilter()
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.- Returns:
- An unmodifiable list containing immutable objects of type
DataRequirement.CodeFilterthat may be empty.
-
getDateFilter
public List<DataRequirement.DateFilter> getDateFilter()
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.- Returns:
- An unmodifiable list containing immutable objects of type
DataRequirement.DateFilterthat may be empty.
-
getLimit
public PositiveInt getLimit()
Specifies a maximum number of results that are required (uses the _count search parameter).- Returns:
- An immutable object of type
PositiveIntthat may be null.
-
getSort
public List<DataRequirement.Sort> getSort()
Specifies the order of the results to be returned.- Returns:
- An unmodifiable list containing immutable objects of type
DataRequirement.Sortthat may be empty.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildrenin classElement
-
accept
public void accept(String elementName, int elementIndex, Visitor visitor)
Description copied from interface:VisitableAccept a Visitor and invoke the appropriate visit methods. A typical implementation would look like this:if (visitor.preVisit(this)) { visitor.visitStart(elementName, elementIndex, this); if (visitor.visit(elementName, elementIndex, this)) { // visit children } visitor.visitEnd(elementName, elementIndex, this); visitor.postVisit(this); }- Specified by:
acceptin interfaceVisitable- Specified by:
acceptin classAbstractVisitable- Parameters:
elementName- the name of the element in the context of this visitelementIndex- the index of the element in a list or -1 if it is not contained within a Listvisitor- the visitor to use
-
toBuilder
public DataRequirement.Builder toBuilder()
Description copied from class:ElementCreate a new Builder from the contents of this Element
-
builder
public static DataRequirement.Builder builder()
-
-