Package com.ibm.fhir.model.resource
Class ImplementationGuide.Definition.Resource
- 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.ImplementationGuide.Definition.Resource
-
- All Implemented Interfaces:
Visitable
- Enclosing class:
- ImplementationGuide.Definition
public static class ImplementationGuide.Definition.Resource extends BackboneElement
A resource that is part of the implementation guide. Conformance resources (value set, structure definition, capability statements etc.) are obvious candidates for inclusion, but any kind of resource can be included as an example resource.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImplementationGuide.Definition.Resource.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(String elementName, int elementIndex, Visitor visitor)Accept a Visitor and invoke the appropriate visit methods.static ImplementationGuide.Definition.Resource.Builderbuilder()booleanequals(Object obj)StringgetDescription()A description of the reason that a resource has been included in the implementation guide.ElementgetExample()If true or a reference, indicates the resource is an example instance.List<FHIRVersion>getFhirVersion()Indicates the FHIR Version(s) this artifact is intended to apply to.IdgetGroupingId()Reference to the id of the grouping this resource appears in.StringgetName()A human assigned name for the resource.ReferencegetReference()Where this resource is found.booleanhasChildren()inthashCode()ImplementationGuide.Definition.Resource.BuildertoBuilder()Create a new Builder from the contents of this Element-
Methods inherited from class com.ibm.fhir.model.type.BackboneElement
getModifierExtension
-
-
-
-
Method Detail
-
getReference
public Reference getReference()
Where this resource is found.- Returns:
- An immutable object of type
Referencethat is non-null.
-
getFhirVersion
public List<FHIRVersion> getFhirVersion()
Indicates the FHIR Version(s) this artifact is intended to apply to. If no versions are specified, the resource is assumed to apply to all the versions stated in ImplementationGuide.fhirVersion.- Returns:
- An unmodifiable list containing immutable objects of type
FHIRVersionthat may be empty.
-
getName
public String getName()
A human assigned name for the resource. All resources SHOULD have a name, but the name may be extracted from the resource (e.g. ValueSet.name).- Returns:
- An immutable object of type
Stringthat may be null.
-
getDescription
public String getDescription()
A description of the reason that a resource has been included in the implementation guide.- Returns:
- An immutable object of type
Stringthat may be null.
-
getExample
public Element getExample()
If true or a reference, indicates the resource is an example instance. If a reference is present, indicates that the example is an example of the specified profile.- Returns:
- An immutable object of type
Elementthat may be null.
-
getGroupingId
public Id getGroupingId()
Reference to the id of the grouping this resource appears in.- Returns:
- An immutable object of type
Idthat may be null.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildrenin classBackboneElement
-
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 ImplementationGuide.Definition.Resource.Builder toBuilder()
Description copied from class:ElementCreate a new Builder from the contents of this Element- Specified by:
toBuilderin classBackboneElement
-
builder
public static ImplementationGuide.Definition.Resource.Builder builder()
-
-