
Package org.hl7.fhir.dstu3.model
Class DataRequirement
- java.lang.Object
-
- org.hl7.fhir.dstu3.model.Base
-
- org.hl7.fhir.dstu3.model.Element
-
- org.hl7.fhir.dstu3.model.Type
-
- org.hl7.fhir.dstu3.model.DataRequirement
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement
,Serializable
,org.hl7.fhir.instance.model.api.IBase
,org.hl7.fhir.instance.model.api.IBaseDatatype
,org.hl7.fhir.instance.model.api.IBaseElement
,org.hl7.fhir.instance.model.api.IBaseHasExtensions
,org.hl7.fhir.instance.model.api.ICompositeType
public class DataRequirement extends Type implements org.hl7.fhir.instance.model.api.ICompositeType
Describes a required data item for evaluation in terms of the type of data, and optional code or date-based filters of the data.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DataRequirement.DataRequirementCodeFilterComponent
static class
DataRequirement.DataRequirementDateFilterComponent
-
Field Summary
Fields Modifier and Type Field Description protected List<DataRequirement.DataRequirementCodeFilterComponent>
codeFilter
Code filters specify additional constraints on the data, specifying the value set of interest for a particular element of the data.protected List<DataRequirement.DataRequirementDateFilterComponent>
dateFilter
Date filters specify additional constraints on the data in terms of the applicable date range for specific elements.protected List<StringType>
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.protected List<UriType>
profile
The profile of the required data, specified as the uri of the profile definition.protected CodeType
type
The type of the required data, specified as the type name of a resource.
-
Constructor Summary
Constructors Constructor Description DataRequirement()
ConstructorDataRequirement(CodeType type)
Constructor
-
Method Summary
-
Methods inherited from class org.hl7.fhir.dstu3.model.Element
addExtension, addExtension, addExtension, copyValues, getExtension, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, setExtension, setId, setIdBase, setIdElement
-
Methods inherited from class org.hl7.fhir.dstu3.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isMetadataBased, isPrimitive, isResource, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINN
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
type
protected CodeType 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.
-
profile
protected List<UriType> profile
The profile of the required data, specified as the uri of the profile definition.
-
mustSupport
protected List<StringType> 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. Note that the value for this element can be a path to allow references to nested elements. In that case, all the elements along the path must be supported.
-
codeFilter
protected List<DataRequirement.DataRequirementCodeFilterComponent> codeFilter
Code filters specify additional constraints on the data, specifying the value set of interest for a particular element of the data.
-
dateFilter
protected List<DataRequirement.DataRequirementDateFilterComponent> dateFilter
Date filters specify additional constraints on the data in terms of the applicable date range for specific elements.
-
-
Constructor Detail
-
DataRequirement
public DataRequirement()
Constructor
-
DataRequirement
public DataRequirement(CodeType type)
Constructor
-
-
Method Detail
-
getTypeElement
public CodeType getTypeElement()
- Returns:
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 is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
-
hasTypeElement
public boolean hasTypeElement()
-
hasType
public boolean hasType()
-
setTypeElement
public DataRequirement setTypeElement(CodeType value)
- Parameters:
value
-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 is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
-
getType
public String getType()
- Returns:
- 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.
-
setType
public DataRequirement setType(String value)
- Parameters:
value
- 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.
-
getProfile
public List<UriType> getProfile()
- Returns:
profile
(The profile of the required data, specified as the uri of the profile definition.)
-
setProfile
public DataRequirement setProfile(List<UriType> theProfile)
- Returns:
- Returns a reference to
this
for easy method chaining
-
hasProfile
public boolean hasProfile()
-
addProfileElement
public UriType addProfileElement()
- Returns:
profile
(The profile of the required data, specified as the uri of the profile definition.)
-
addProfile
public DataRequirement addProfile(String value)
- Parameters:
value
-profile
(The profile of the required data, specified as the uri of the profile definition.)
-
hasProfile
public boolean hasProfile(String value)
- Parameters:
value
-profile
(The profile of the required data, specified as the uri of the profile definition.)
-
getMustSupport
public List<StringType> getMustSupport()
- Returns:
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. Note that the value for this element can be a path to allow references to nested elements. In that case, all the elements along the path must be supported.)
-
setMustSupport
public DataRequirement setMustSupport(List<StringType> theMustSupport)
- Returns:
- Returns a reference to
this
for easy method chaining
-
hasMustSupport
public boolean hasMustSupport()
-
addMustSupportElement
public StringType addMustSupportElement()
- Returns:
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. Note that the value for this element can be a path to allow references to nested elements. In that case, all the elements along the path must be supported.)
-
addMustSupport
public DataRequirement addMustSupport(String value)
- Parameters:
value
-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. Note that the value for this element can be a path to allow references to nested elements. In that case, all the elements along the path must be supported.)
-
hasMustSupport
public boolean hasMustSupport(String value)
- Parameters:
value
-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. Note that the value for this element can be a path to allow references to nested elements. In that case, all the elements along the path must be supported.)
-
getCodeFilter
public List<DataRequirement.DataRequirementCodeFilterComponent> getCodeFilter()
- Returns:
codeFilter
(Code filters specify additional constraints on the data, specifying the value set of interest for a particular element of the data.)
-
setCodeFilter
public DataRequirement setCodeFilter(List<DataRequirement.DataRequirementCodeFilterComponent> theCodeFilter)
- Returns:
- Returns a reference to
this
for easy method chaining
-
hasCodeFilter
public boolean hasCodeFilter()
-
addCodeFilter
public DataRequirement.DataRequirementCodeFilterComponent addCodeFilter()
-
addCodeFilter
public DataRequirement addCodeFilter(DataRequirement.DataRequirementCodeFilterComponent t)
-
getCodeFilterFirstRep
public DataRequirement.DataRequirementCodeFilterComponent getCodeFilterFirstRep()
- Returns:
- The first repetition of repeating field
codeFilter
, creating it if it does not already exist
-
getDateFilter
public List<DataRequirement.DataRequirementDateFilterComponent> getDateFilter()
- Returns:
dateFilter
(Date filters specify additional constraints on the data in terms of the applicable date range for specific elements.)
-
setDateFilter
public DataRequirement setDateFilter(List<DataRequirement.DataRequirementDateFilterComponent> theDateFilter)
- Returns:
- Returns a reference to
this
for easy method chaining
-
hasDateFilter
public boolean hasDateFilter()
-
addDateFilter
public DataRequirement.DataRequirementDateFilterComponent addDateFilter()
-
addDateFilter
public DataRequirement addDateFilter(DataRequirement.DataRequirementDateFilterComponent t)
-
getDateFilterFirstRep
public DataRequirement.DataRequirementDateFilterComponent getDateFilterFirstRep()
- Returns:
- The first repetition of repeating field
dateFilter
, creating it if it does not already exist
-
listChildren
protected void listChildren(List<Property> children)
- Overrides:
listChildren
in classElement
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getNamedProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
makeProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getTypesForProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
copy
public DataRequirement copy()
-
typedCopy
protected DataRequirement typedCopy()
-
equalsDeep
public boolean equalsDeep(Base other_)
- Overrides:
equalsDeep
in classElement
-
equalsShallow
public boolean equalsShallow(Base other_)
- Overrides:
equalsShallow
in classElement
-
-