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 classStructureMap.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 voidaccept(java.lang.String elementName, int elementIndex, Visitor visitor)Accept a Visitor and invoke the appropriate visit methods.static StructureMap.Group.Rule.Source.Builderbuilder()booleanequals(java.lang.Object obj)StringgetCheck()FHIRPath expression - must be true or the mapping engine throws an error instead of completing.StringgetCondition()FHIRPath expression - must be true or the rule does not apply.IdgetContext()Type or variable this rule applies to.ElementgetDefaultValue()A value to use if there is no existing value in the source object.StringgetElement()Optional field for this source.StructureMapSourceListModegetListMode()How to handle the list mode for this element.StringgetLogMessage()A FHIRPath expression which specifies a message to put in the transform log when content matching the source rule is found.StringgetMax()Specified maximum cardinality for the element - a number or a "*".IntegergetMin()Specified minimum cardinality for the element.StringgetType()Specified type for the element.IdgetVariable()Named context for field, if a field is specified.booleanhasChildren()inthashCode()StructureMap.Group.Rule.Source.BuildertoBuilder()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
Idthat 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
Integerthat 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
Stringthat 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
Stringthat 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,DosageorMetathat may be null.
-
getElement
public String getElement()
Optional field for this source.- Returns:
- An immutable object of type
Stringthat may be null.
-
getListMode
public StructureMapSourceListMode getListMode()
How to handle the list mode for this element.- Returns:
- An immutable object of type
StructureMapSourceListModethat may be null.
-
getVariable
public Id getVariable()
Named context for field, if a field is specified.- Returns:
- An immutable object of type
Idthat may be null.
-
getCondition
public String getCondition()
FHIRPath expression - must be true or the rule does not apply.- Returns:
- An immutable object of type
Stringthat 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
Stringthat 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
Stringthat may be null.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildrenin classBackboneElement
-
accept
public void accept(java.lang.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
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toBuilder
public StructureMap.Group.Rule.Source.Builder toBuilder()
Description copied from class:ElementCreate a new Builder from the contents of this Element- Specified by:
toBuilderin classBackboneElement
-
builder
public static StructureMap.Group.Rule.Source.Builder builder()
-
-