Package com.ibm.fhir.model.type
Class ParameterDefinition
- java.lang.Object
-
- com.ibm.fhir.model.visitor.AbstractVisitable
-
- com.ibm.fhir.model.type.Element
-
- com.ibm.fhir.model.type.ParameterDefinition
-
- All Implemented Interfaces:
Visitable
@Generated("com.ibm.fhir.tools.CodeGenerator") public class ParameterDefinition extends Element
The parameters to the module. This collection specifies both the input and output parameters. Input parameters are provided by the caller as part of the $evaluate operation. Output parameters are included in the GuidanceResponse.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classParameterDefinition.Builder
-
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 ParameterDefinition.Builderbuilder()booleanequals(Object obj)StringgetDocumentation()A brief discussion of what the parameter is for and how it is used by the module.StringgetMax()The maximum number of times this element is permitted to appear in the request or response.IntegergetMin()The minimum number of times this parameter SHALL appear in the request or response.CodegetName()The name of the parameter used to allow access to the value of the parameter in evaluation contexts.CanonicalgetProfile()If specified, this indicates a profile that the input data must conform to, or that the output data will conform to.FHIRAllTypesgetType()The type of the parameter.ParameterUsegetUse()Whether the parameter is input or output for the module.booleanhasChildren()inthashCode()ParameterDefinition.BuildertoBuilder()Create a new Builder from the contents of this Element
-
-
-
Method Detail
-
getName
public Code getName()
The name of the parameter used to allow access to the value of the parameter in evaluation contexts.- Returns:
- An immutable object of type
Codethat may be null.
-
getUse
public ParameterUse getUse()
Whether the parameter is input or output for the module.- Returns:
- An immutable object of type
ParameterUsethat is non-null.
-
getMin
public Integer getMin()
The minimum number of times this parameter SHALL appear in the request or response.- Returns:
- An immutable object of type
Integerthat may be null.
-
getMax
public String getMax()
The maximum number of times this element is permitted to appear in the request or response.- Returns:
- An immutable object of type
Stringthat may be null.
-
getDocumentation
public String getDocumentation()
A brief discussion of what the parameter is for and how it is used by the module.- Returns:
- An immutable object of type
Stringthat may be null.
-
getType
public FHIRAllTypes getType()
The type of the parameter.- Returns:
- An immutable object of type
FHIRAllTypesthat is non-null.
-
getProfile
public Canonical getProfile()
If specified, this indicates a profile that the input data must conform to, or that the output data will conform to.- Returns:
- An immutable object of type
Canonicalthat may be null.
-
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 ParameterDefinition.Builder toBuilder()
Description copied from class:ElementCreate a new Builder from the contents of this Element
-
builder
public static ParameterDefinition.Builder builder()
-
-