Package com.ibm.fhir.model.resource
Class StructureMap.Group.Rule.Source
- java.lang.Object
-
- com.ibm.fhir.model.visitor.AbstractVisitable
-
- com.ibm.fhir.model.type.Element
-
- com.ibm.fhir.model.type.BackboneElement
-
- com.ibm.fhir.model.resource.StructureMap.Group.Rule.Source
-
- All Implemented Interfaces:
Visitable
- Enclosing class:
- StructureMap.Group.Rule
public static class StructureMap.Group.Rule.Source extends BackboneElement
Source inputs to the mapping.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StructureMap.Group.Rule.Source.Builder
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.type.BackboneElement
modifierExtension
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(String elementName, int elementIndex, Visitor visitor)
Accept a Visitor and invoke the appropriate visit methods.static StructureMap.Group.Rule.Source.Builder
builder()
boolean
equals(Object obj)
String
getCheck()
FHIRPath expression - must be true or the mapping engine throws an error instead of completing.String
getCondition()
FHIRPath expression - must be true or the rule does not apply.Id
getContext()
Type or variable this rule applies to.Element
getDefaultValue()
A value to use if there is no existing value in the source object.String
getElement()
Optional field for this source.StructureMapSourceListMode
getListMode()
How to handle the list mode for this element.String
getLogMessage()
A FHIRPath expression which specifies a message to put in the transform log when content matching the source rule is found.String
getMax()
Specified maximum cardinality for the element - a number or a "*".Integer
getMin()
Specified minimum cardinality for the element.String
getType()
Specified type for the element.Id
getVariable()
Named context for field, if a field is specified.boolean
hasChildren()
int
hashCode()
StructureMap.Group.Rule.Source.Builder
toBuilder()
Create a new Builder from the contents of this Element-
Methods inherited from class com.ibm.fhir.model.type.BackboneElement
getModifierExtension
-
-
-
-
Method Detail
-
getContext
public Id getContext()
Type or variable this rule applies to.- Returns:
- An immutable object of type
Id
that is non-null.
-
getMin
public Integer getMin()
Specified minimum cardinality for the element. This is optional; if present, it acts an implicit check on the input content.- Returns:
- An immutable object of type
Integer
that may be null.
-
getMax
public String getMax()
Specified maximum cardinality for the element - a number or a "*". This is optional; if present, it acts an implicit check on the input content (* just serves as documentation; it's the default value).- Returns:
- An immutable object of type
String
that may be null.
-
getType
public String getType()
Specified type for the element. This works as a condition on the mapping - use for polymorphic elements.- Returns:
- An immutable object of type
String
that may be null.
-
getDefaultValue
public Element getDefaultValue()
A value to use if there is no existing value in the source object.- Returns:
- An immutable object of type
Base64Binary
,Boolean
,Canonical
,Code
,Date
,DateTime
,Decimal
,Id
,Instant
,Integer
,Markdown
,Oid
,PositiveInt
,String
,Time
,UnsignedInt
,Uri
,Url
,Uuid
,Address
,Age
,Annotation
,Attachment
,CodeableConcept
,Coding
,ContactPoint
,Count
,Distance
,Duration
,HumanName
,Identifier
,Money
,Period
,Quantity
,Range
,Ratio
,Reference
,SampledData
,Signature
,Timing
,ContactDetail
,Contributor
,DataRequirement
,Expression
,ParameterDefinition
,RelatedArtifact
,TriggerDefinition
,UsageContext
,Dosage
orMeta
that may be null.
-
getElement
public String getElement()
Optional field for this source.- Returns:
- An immutable object of type
String
that may be null.
-
getListMode
public StructureMapSourceListMode getListMode()
How to handle the list mode for this element.- Returns:
- An immutable object of type
StructureMapSourceListMode
that may be null.
-
getVariable
public Id getVariable()
Named context for field, if a field is specified.- Returns:
- An immutable object of type
Id
that may be null.
-
getCondition
public String getCondition()
FHIRPath expression - must be true or the rule does not apply.- Returns:
- An immutable object of type
String
that may be null.
-
getCheck
public String getCheck()
FHIRPath expression - must be true or the mapping engine throws an error instead of completing.- Returns:
- An immutable object of type
String
that may be null.
-
getLogMessage
public String getLogMessage()
A FHIRPath expression which specifies a message to put in the transform log when content matching the source rule is found.- Returns:
- An immutable object of type
String
that may be null.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildren
in classBackboneElement
-
accept
public void accept(String elementName, int elementIndex, Visitor visitor)
Description copied from interface:Visitable
Accept 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:
accept
in interfaceVisitable
- Specified by:
accept
in 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 StructureMap.Group.Rule.Source.Builder toBuilder()
Description copied from class:Element
Create a new Builder from the contents of this Element- Specified by:
toBuilder
in classBackboneElement
-
builder
public static StructureMap.Group.Rule.Source.Builder builder()
-
-