Class Retrieve
- java.lang.Object
-
- org.opencds.cqf.cql.engine.elm.execution.Executable
-
- org.cqframework.cql.elm.execution.Element
-
- org.cqframework.cql.elm.execution.Expression
-
- org.cqframework.cql.elm.execution.Retrieve
-
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
- Direct Known Subclasses:
RetrieveEvaluator
public class Retrieve extends Expression implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
The retrieve expression defines clinical data that will be used by the artifact. This expression allows clinically relevant filtering criteria to be provided in a well-defined and computable way. This operation defines the integration boundary for artifacts. The result of a retrieve is defined to return the same data for subsequent invocations within the same evaluation request. This means in particular that patient data updates made during the evaluation request are not visible to the artifact. In effect, the patient data is a snapshot of the data as of the start of the evaluation. This ensures strict deterministic and functional behavior of the artifact, and allows the implementation engine freedom to cache intermediate results in order to improve performance.Java class for Retrieve complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Retrieve"> <complexContent> <extension base="{urn:hl7-org:elm:r1}Expression"> <sequence> <element name="id" type="{urn:hl7-org:elm:r1}Expression" minOccurs="0"/> <element name="codes" type="{urn:hl7-org:elm:r1}Expression" minOccurs="0"/> <element name="dateRange" type="{urn:hl7-org:elm:r1}Expression" minOccurs="0"/> <element name="context" type="{urn:hl7-org:elm:r1}Expression" minOccurs="0"/> <element name="include" type="{urn:hl7-org:elm:r1}IncludeElement" maxOccurs="unbounded" minOccurs="0"/> <element name="codeFilter" type="{urn:hl7-org:elm:r1}CodeFilterElement" maxOccurs="unbounded" minOccurs="0"/> <element name="dateFilter" type="{urn:hl7-org:elm:r1}DateFilterElement" maxOccurs="unbounded" minOccurs="0"/> <element name="otherFilter" type="{urn:hl7-org:elm:r1}OtherFilterElement" maxOccurs="unbounded" minOccurs="0"/> </sequence> <attribute name="dataType" use="required" type="{http://www.w3.org/2001/XMLSchema}QName" /> <attribute name="templateId" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="idProperty" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="idSearch" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="contextProperty" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="contextSearch" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="codeProperty" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="codeSearch" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="codeComparator" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="valueSetProperty" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="dateProperty" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="dateLowProperty" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="dateHighProperty" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="dateSearch" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="includedIn" type="{http://www.w3.org/2001/XMLSchema}string" /> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringcodeComparatorprotected java.util.List<CodeFilterElement>codeFilterprotected java.lang.StringcodePropertyprotected Expressioncodesprotected java.lang.StringcodeSearchprotected Expressioncontextprotected java.lang.StringcontextPropertyprotected java.lang.StringcontextSearchprotected javax.xml.namespace.QNamedataTypeprotected java.util.List<DateFilterElement>dateFilterprotected java.lang.StringdateHighPropertyprotected java.lang.StringdateLowPropertyprotected java.lang.StringdatePropertyprotected ExpressiondateRangeprotected java.lang.StringdateSearchprotected Expressionidprotected java.lang.StringidPropertyprotected java.lang.StringidSearchprotected java.util.List<IncludeElement>includeprotected java.lang.StringincludedInprotected java.util.List<OtherFilterElement>otherFilterprotected java.lang.StringtemplateIdprotected java.lang.StringvalueSetProperty-
Fields inherited from class org.cqframework.cql.elm.execution.Element
annotation, localId, locator, resultTypeName, resultTypeSpecifier
-
-
Constructor Summary
Constructors Constructor Description Retrieve()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringBuilderappend(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)java.lang.StringBuilderappendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)booleanequals(java.lang.Object object)booleanequals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)java.lang.StringgetCodeComparator()Gets the value of the codeComparator property.java.util.List<CodeFilterElement>getCodeFilter()Gets the value of the codeFilter property.java.lang.StringgetCodeProperty()Gets the value of the codeProperty property.ExpressiongetCodes()Gets the value of the codes property.java.lang.StringgetCodeSearch()Gets the value of the codeSearch property.ExpressiongetContext()Gets the value of the context property.java.lang.StringgetContextProperty()Gets the value of the contextProperty property.java.lang.StringgetContextSearch()Gets the value of the contextSearch property.javax.xml.namespace.QNamegetDataType()Gets the value of the dataType property.java.util.List<DateFilterElement>getDateFilter()Gets the value of the dateFilter property.java.lang.StringgetDateHighProperty()Gets the value of the dateHighProperty property.java.lang.StringgetDateLowProperty()Gets the value of the dateLowProperty property.java.lang.StringgetDateProperty()Gets the value of the dateProperty property.ExpressiongetDateRange()Gets the value of the dateRange property.java.lang.StringgetDateSearch()Gets the value of the dateSearch property.ExpressiongetId()Gets the value of the id property.java.lang.StringgetIdProperty()Gets the value of the idProperty property.java.lang.StringgetIdSearch()Gets the value of the idSearch property.java.util.List<IncludeElement>getInclude()Gets the value of the include property.java.lang.StringgetIncludedIn()Gets the value of the includedIn property.java.util.List<OtherFilterElement>getOtherFilter()Gets the value of the otherFilter property.java.lang.StringgetTemplateId()Gets the value of the templateId property.java.lang.StringgetValueSetProperty()Gets the value of the valueSetProperty property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetCodeComparator(java.lang.String value)Sets the value of the codeComparator property.voidsetCodeProperty(java.lang.String value)Sets the value of the codeProperty property.voidsetCodes(Expression value)Sets the value of the codes property.voidsetCodeSearch(java.lang.String value)Sets the value of the codeSearch property.voidsetContext(Expression value)Sets the value of the context property.voidsetContextProperty(java.lang.String value)Sets the value of the contextProperty property.voidsetContextSearch(java.lang.String value)Sets the value of the contextSearch property.voidsetDataType(javax.xml.namespace.QName value)Sets the value of the dataType property.voidsetDateHighProperty(java.lang.String value)Sets the value of the dateHighProperty property.voidsetDateLowProperty(java.lang.String value)Sets the value of the dateLowProperty property.voidsetDateProperty(java.lang.String value)Sets the value of the dateProperty property.voidsetDateRange(Expression value)Sets the value of the dateRange property.voidsetDateSearch(java.lang.String value)Sets the value of the dateSearch property.voidsetId(Expression value)Sets the value of the id property.voidsetIdProperty(java.lang.String value)Sets the value of the idProperty property.voidsetIdSearch(java.lang.String value)Sets the value of the idSearch property.voidsetIncludedIn(java.lang.String value)Sets the value of the includedIn property.voidsetTemplateId(java.lang.String value)Sets the value of the templateId property.voidsetValueSetProperty(java.lang.String value)Sets the value of the valueSetProperty property.java.lang.StringtoString()RetrievewithAnnotation(java.util.Collection<CqlToElmBase> values)RetrievewithAnnotation(CqlToElmBase... values)RetrievewithCodeComparator(java.lang.String value)RetrievewithCodeFilter(java.util.Collection<CodeFilterElement> values)RetrievewithCodeFilter(CodeFilterElement... values)RetrievewithCodeProperty(java.lang.String value)RetrievewithCodes(Expression value)RetrievewithCodeSearch(java.lang.String value)RetrievewithContext(Expression value)RetrievewithContextProperty(java.lang.String value)RetrievewithContextSearch(java.lang.String value)RetrievewithDataType(javax.xml.namespace.QName value)RetrievewithDateFilter(java.util.Collection<DateFilterElement> values)RetrievewithDateFilter(DateFilterElement... values)RetrievewithDateHighProperty(java.lang.String value)RetrievewithDateLowProperty(java.lang.String value)RetrievewithDateProperty(java.lang.String value)RetrievewithDateRange(Expression value)RetrievewithDateSearch(java.lang.String value)RetrievewithId(Expression value)RetrievewithIdProperty(java.lang.String value)RetrievewithIdSearch(java.lang.String value)RetrievewithInclude(java.util.Collection<IncludeElement> values)RetrievewithInclude(IncludeElement... values)RetrievewithIncludedIn(java.lang.String value)RetrievewithLocalId(java.lang.String value)RetrievewithLocator(java.lang.String value)RetrievewithOtherFilter(java.util.Collection<OtherFilterElement> values)RetrievewithOtherFilter(OtherFilterElement... values)RetrievewithResultTypeName(javax.xml.namespace.QName value)RetrievewithResultTypeSpecifier(TypeSpecifier value)RetrievewithTemplateId(java.lang.String value)RetrievewithValueSetProperty(java.lang.String value)-
Methods inherited from class org.cqframework.cql.elm.execution.Element
getAnnotation, getLocalId, getLocator, getResultTypeName, getResultTypeSpecifier, setLocalId, setLocator, setResultTypeName, setResultTypeSpecifier
-
Methods inherited from class org.opencds.cqf.cql.engine.elm.execution.Executable
evaluate, internalEvaluate
-
-
-
-
Field Detail
-
id
protected Expression id
-
codes
protected Expression codes
-
dateRange
protected Expression dateRange
-
context
protected Expression context
-
include
protected java.util.List<IncludeElement> include
-
codeFilter
protected java.util.List<CodeFilterElement> codeFilter
-
dateFilter
protected java.util.List<DateFilterElement> dateFilter
-
otherFilter
protected java.util.List<OtherFilterElement> otherFilter
-
dataType
protected javax.xml.namespace.QName dataType
-
templateId
protected java.lang.String templateId
-
idProperty
protected java.lang.String idProperty
-
idSearch
protected java.lang.String idSearch
-
contextProperty
protected java.lang.String contextProperty
-
contextSearch
protected java.lang.String contextSearch
-
codeProperty
protected java.lang.String codeProperty
-
codeSearch
protected java.lang.String codeSearch
-
codeComparator
protected java.lang.String codeComparator
-
valueSetProperty
protected java.lang.String valueSetProperty
-
dateProperty
protected java.lang.String dateProperty
-
dateLowProperty
protected java.lang.String dateLowProperty
-
dateHighProperty
protected java.lang.String dateHighProperty
-
dateSearch
protected java.lang.String dateSearch
-
includedIn
protected java.lang.String includedIn
-
-
Method Detail
-
getId
public Expression getId()
Gets the value of the id property.- Returns:
- possible object is
Expression
-
setId
public void setId(Expression value)
Sets the value of the id property.- Parameters:
value- allowed object isExpression
-
getCodes
public Expression getCodes()
Gets the value of the codes property.- Returns:
- possible object is
Expression
-
setCodes
public void setCodes(Expression value)
Sets the value of the codes property.- Parameters:
value- allowed object isExpression
-
getDateRange
public Expression getDateRange()
Gets the value of the dateRange property.- Returns:
- possible object is
Expression
-
setDateRange
public void setDateRange(Expression value)
Sets the value of the dateRange property.- Parameters:
value- allowed object isExpression
-
getContext
public Expression getContext()
Gets the value of the context property.- Returns:
- possible object is
Expression
-
setContext
public void setContext(Expression value)
Sets the value of the context property.- Parameters:
value- allowed object isExpression
-
getInclude
public java.util.List<IncludeElement> getInclude()
Gets the value of the include property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the include property.For example, to add a new item, do as follows:
getInclude().add(newItem);Objects of the following type(s) are allowed in the list
IncludeElement
-
getCodeFilter
public java.util.List<CodeFilterElement> getCodeFilter()
Gets the value of the codeFilter property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the codeFilter property.For example, to add a new item, do as follows:
getCodeFilter().add(newItem);Objects of the following type(s) are allowed in the list
CodeFilterElement
-
getDateFilter
public java.util.List<DateFilterElement> getDateFilter()
Gets the value of the dateFilter property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the dateFilter property.For example, to add a new item, do as follows:
getDateFilter().add(newItem);Objects of the following type(s) are allowed in the list
DateFilterElement
-
getOtherFilter
public java.util.List<OtherFilterElement> getOtherFilter()
Gets the value of the otherFilter property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the otherFilter property.For example, to add a new item, do as follows:
getOtherFilter().add(newItem);Objects of the following type(s) are allowed in the list
OtherFilterElement
-
getDataType
public javax.xml.namespace.QName getDataType()
Gets the value of the dataType property.- Returns:
- possible object is
QName
-
setDataType
public void setDataType(javax.xml.namespace.QName value)
Sets the value of the dataType property.- Parameters:
value- allowed object isQName
-
getTemplateId
public java.lang.String getTemplateId()
Gets the value of the templateId property.- Returns:
- possible object is
String
-
setTemplateId
public void setTemplateId(java.lang.String value)
Sets the value of the templateId property.- Parameters:
value- allowed object isString
-
getIdProperty
public java.lang.String getIdProperty()
Gets the value of the idProperty property.- Returns:
- possible object is
String
-
setIdProperty
public void setIdProperty(java.lang.String value)
Sets the value of the idProperty property.- Parameters:
value- allowed object isString
-
getIdSearch
public java.lang.String getIdSearch()
Gets the value of the idSearch property.- Returns:
- possible object is
String
-
setIdSearch
public void setIdSearch(java.lang.String value)
Sets the value of the idSearch property.- Parameters:
value- allowed object isString
-
getContextProperty
public java.lang.String getContextProperty()
Gets the value of the contextProperty property.- Returns:
- possible object is
String
-
setContextProperty
public void setContextProperty(java.lang.String value)
Sets the value of the contextProperty property.- Parameters:
value- allowed object isString
-
getContextSearch
public java.lang.String getContextSearch()
Gets the value of the contextSearch property.- Returns:
- possible object is
String
-
setContextSearch
public void setContextSearch(java.lang.String value)
Sets the value of the contextSearch property.- Parameters:
value- allowed object isString
-
getCodeProperty
public java.lang.String getCodeProperty()
Gets the value of the codeProperty property.- Returns:
- possible object is
String
-
setCodeProperty
public void setCodeProperty(java.lang.String value)
Sets the value of the codeProperty property.- Parameters:
value- allowed object isString
-
getCodeSearch
public java.lang.String getCodeSearch()
Gets the value of the codeSearch property.- Returns:
- possible object is
String
-
setCodeSearch
public void setCodeSearch(java.lang.String value)
Sets the value of the codeSearch property.- Parameters:
value- allowed object isString
-
getCodeComparator
public java.lang.String getCodeComparator()
Gets the value of the codeComparator property.- Returns:
- possible object is
String
-
setCodeComparator
public void setCodeComparator(java.lang.String value)
Sets the value of the codeComparator property.- Parameters:
value- allowed object isString
-
getValueSetProperty
public java.lang.String getValueSetProperty()
Gets the value of the valueSetProperty property.- Returns:
- possible object is
String
-
setValueSetProperty
public void setValueSetProperty(java.lang.String value)
Sets the value of the valueSetProperty property.- Parameters:
value- allowed object isString
-
getDateProperty
public java.lang.String getDateProperty()
Gets the value of the dateProperty property.- Returns:
- possible object is
String
-
setDateProperty
public void setDateProperty(java.lang.String value)
Sets the value of the dateProperty property.- Parameters:
value- allowed object isString
-
getDateLowProperty
public java.lang.String getDateLowProperty()
Gets the value of the dateLowProperty property.- Returns:
- possible object is
String
-
setDateLowProperty
public void setDateLowProperty(java.lang.String value)
Sets the value of the dateLowProperty property.- Parameters:
value- allowed object isString
-
getDateHighProperty
public java.lang.String getDateHighProperty()
Gets the value of the dateHighProperty property.- Returns:
- possible object is
String
-
setDateHighProperty
public void setDateHighProperty(java.lang.String value)
Sets the value of the dateHighProperty property.- Parameters:
value- allowed object isString
-
getDateSearch
public java.lang.String getDateSearch()
Gets the value of the dateSearch property.- Returns:
- possible object is
String
-
setDateSearch
public void setDateSearch(java.lang.String value)
Sets the value of the dateSearch property.- Parameters:
value- allowed object isString
-
getIncludedIn
public java.lang.String getIncludedIn()
Gets the value of the includedIn property.- Returns:
- possible object is
String
-
setIncludedIn
public void setIncludedIn(java.lang.String value)
Sets the value of the includedIn property.- Parameters:
value- allowed object isString
-
withId
public Retrieve withId(Expression value)
-
withCodes
public Retrieve withCodes(Expression value)
-
withDateRange
public Retrieve withDateRange(Expression value)
-
withContext
public Retrieve withContext(Expression value)
-
withInclude
public Retrieve withInclude(IncludeElement... values)
-
withInclude
public Retrieve withInclude(java.util.Collection<IncludeElement> values)
-
withCodeFilter
public Retrieve withCodeFilter(CodeFilterElement... values)
-
withCodeFilter
public Retrieve withCodeFilter(java.util.Collection<CodeFilterElement> values)
-
withDateFilter
public Retrieve withDateFilter(DateFilterElement... values)
-
withDateFilter
public Retrieve withDateFilter(java.util.Collection<DateFilterElement> values)
-
withOtherFilter
public Retrieve withOtherFilter(OtherFilterElement... values)
-
withOtherFilter
public Retrieve withOtherFilter(java.util.Collection<OtherFilterElement> values)
-
withDataType
public Retrieve withDataType(javax.xml.namespace.QName value)
-
withTemplateId
public Retrieve withTemplateId(java.lang.String value)
-
withIdProperty
public Retrieve withIdProperty(java.lang.String value)
-
withIdSearch
public Retrieve withIdSearch(java.lang.String value)
-
withContextProperty
public Retrieve withContextProperty(java.lang.String value)
-
withContextSearch
public Retrieve withContextSearch(java.lang.String value)
-
withCodeProperty
public Retrieve withCodeProperty(java.lang.String value)
-
withCodeSearch
public Retrieve withCodeSearch(java.lang.String value)
-
withCodeComparator
public Retrieve withCodeComparator(java.lang.String value)
-
withValueSetProperty
public Retrieve withValueSetProperty(java.lang.String value)
-
withDateProperty
public Retrieve withDateProperty(java.lang.String value)
-
withDateLowProperty
public Retrieve withDateLowProperty(java.lang.String value)
-
withDateHighProperty
public Retrieve withDateHighProperty(java.lang.String value)
-
withDateSearch
public Retrieve withDateSearch(java.lang.String value)
-
withIncludedIn
public Retrieve withIncludedIn(java.lang.String value)
-
withAnnotation
public Retrieve withAnnotation(CqlToElmBase... values)
- Overrides:
withAnnotationin classExpression
-
withAnnotation
public Retrieve withAnnotation(java.util.Collection<CqlToElmBase> values)
- Overrides:
withAnnotationin classExpression
-
withResultTypeSpecifier
public Retrieve withResultTypeSpecifier(TypeSpecifier value)
- Overrides:
withResultTypeSpecifierin classExpression
-
withLocalId
public Retrieve withLocalId(java.lang.String value)
- Overrides:
withLocalIdin classExpression
-
withLocator
public Retrieve withLocator(java.lang.String value)
- Overrides:
withLocatorin classExpression
-
withResultTypeName
public Retrieve withResultTypeName(javax.xml.namespace.QName value)
- Overrides:
withResultTypeNamein classExpression
-
equals
public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)- Specified by:
equalsin interfaceorg.jvnet.jaxb2_commons.lang.Equals2- Overrides:
equalsin classExpression
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classExpression
-
hashCode
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)- Specified by:
hashCodein interfaceorg.jvnet.jaxb2_commons.lang.HashCode2- Overrides:
hashCodein classExpression
-
hashCode
public int hashCode()
- Overrides:
hashCodein classExpression
-
toString
public java.lang.String toString()
- Overrides:
toStringin classExpression
-
append
public java.lang.StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)- Specified by:
appendin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendin classExpression
-
appendFields
public java.lang.StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)- Specified by:
appendFieldsin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendFieldsin classExpression
-
-