Class ConceptMap.Group.Builder
- java.lang.Object
-
- com.ibm.fhir.model.builder.AbstractBuilder<Element>
-
- com.ibm.fhir.model.type.Element.Builder
-
- com.ibm.fhir.model.type.BackboneElement.Builder
-
- com.ibm.fhir.model.resource.ConceptMap.Group.Builder
-
- Enclosing class:
- ConceptMap.Group
public static class ConceptMap.Group.Builder extends BackboneElement.Builder
-
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.type.BackboneElement.Builder
modifierExtension
-
Fields inherited from class com.ibm.fhir.model.type.Element.Builder
extension, id
-
Fields inherited from class com.ibm.fhir.model.builder.AbstractBuilder
validating
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConceptMap.Groupbuild()Build theConceptMap.GroupConceptMap.Group.Builderelement(ConceptMap.Group.Element... element)Mappings for an individual concept in the source to one or more concepts in the target.ConceptMap.Group.Builderelement(Collection<ConceptMap.Group.Element> element)Mappings for an individual concept in the source to one or more concepts in the target.ConceptMap.Group.Builderextension(Extension... extension)May be used to represent additional information that is not part of the basic definition of the element.ConceptMap.Group.Builderextension(Collection<Extension> extension)May be used to represent additional information that is not part of the basic definition of the element.protected ConceptMap.Group.Builderfrom(ConceptMap.Group group)ConceptMap.Group.Builderid(String id)Unique id for the element within a resource (for internal references).ConceptMap.Group.BuildermodifierExtension(Extension... modifierExtension)May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants.ConceptMap.Group.BuildermodifierExtension(Collection<Extension> modifierExtension)May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants.ConceptMap.Group.Buildersource(Uri source)An absolute URI that identifies the source system where the concepts to be mapped are defined.ConceptMap.Group.BuildersourceVersion(String sourceVersion)The specific version of the code system, as determined by the code system authority.ConceptMap.Group.BuildersourceVersion(String sourceVersion)Convenience method for settingsourceVersion.ConceptMap.Group.Buildertarget(Uri target)An absolute URI that identifies the target system that the concepts will be mapped to.ConceptMap.Group.BuildertargetVersion(String targetVersion)The specific version of the code system, as determined by the code system authority.ConceptMap.Group.BuildertargetVersion(String targetVersion)Convenience method for settingtargetVersion.ConceptMap.Group.Builderunmapped(ConceptMap.Group.Unmapped unmapped)What to do when there is no mapping for the source concept.protected voidvalidate(ConceptMap.Group group)-
Methods inherited from class com.ibm.fhir.model.type.BackboneElement.Builder
from, validate
-
Methods inherited from class com.ibm.fhir.model.type.Element.Builder
from, validate
-
Methods inherited from class com.ibm.fhir.model.builder.AbstractBuilder
isValidating, setValidating
-
-
-
-
Method Detail
-
id
public ConceptMap.Group.Builder id(String id)
Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.- Overrides:
idin classBackboneElement.Builder- Parameters:
id- Unique id for inter-element referencing- Returns:
- A reference to this Builder instance
-
extension
public ConceptMap.Group.Builder extension(Extension... extension)
May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.Adds new element(s) to the existing list. If any of the elements are null, calling
build()will fail.- Overrides:
extensionin classBackboneElement.Builder- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
extension
public ConceptMap.Group.Builder extension(Collection<Extension> extension)
May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()will fail.- Overrides:
extensionin classBackboneElement.Builder- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
- Throws:
NullPointerException- If the passed collection is null
-
modifierExtension
public ConceptMap.Group.Builder modifierExtension(Extension... modifierExtension)
May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
Adds new element(s) to the existing list. If any of the elements are null, calling
build()will fail.- Overrides:
modifierExtensionin classBackboneElement.Builder- Parameters:
modifierExtension- Extensions that cannot be ignored even if unrecognized- Returns:
- A reference to this Builder instance
-
modifierExtension
public ConceptMap.Group.Builder modifierExtension(Collection<Extension> modifierExtension)
May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()will fail.- Overrides:
modifierExtensionin classBackboneElement.Builder- Parameters:
modifierExtension- Extensions that cannot be ignored even if unrecognized- Returns:
- A reference to this Builder instance
- Throws:
NullPointerException- If the passed collection is null
-
source
public ConceptMap.Group.Builder source(Uri source)
An absolute URI that identifies the source system where the concepts to be mapped are defined.- Parameters:
source- Source system where concepts to be mapped are defined- Returns:
- A reference to this Builder instance
-
sourceVersion
public ConceptMap.Group.Builder sourceVersion(String sourceVersion)
Convenience method for settingsourceVersion.- Parameters:
sourceVersion- Specific version of the code system- Returns:
- A reference to this Builder instance
- See Also:
sourceVersion(com.ibm.fhir.model.type.String)
-
sourceVersion
public ConceptMap.Group.Builder sourceVersion(String sourceVersion)
The specific version of the code system, as determined by the code system authority.- Parameters:
sourceVersion- Specific version of the code system- Returns:
- A reference to this Builder instance
-
target
public ConceptMap.Group.Builder target(Uri target)
An absolute URI that identifies the target system that the concepts will be mapped to.- Parameters:
target- Target system that the concepts are to be mapped to- Returns:
- A reference to this Builder instance
-
targetVersion
public ConceptMap.Group.Builder targetVersion(String targetVersion)
Convenience method for settingtargetVersion.- Parameters:
targetVersion- Specific version of the code system- Returns:
- A reference to this Builder instance
- See Also:
targetVersion(com.ibm.fhir.model.type.String)
-
targetVersion
public ConceptMap.Group.Builder targetVersion(String targetVersion)
The specific version of the code system, as determined by the code system authority.- Parameters:
targetVersion- Specific version of the code system- Returns:
- A reference to this Builder instance
-
element
public ConceptMap.Group.Builder element(ConceptMap.Group.Element... element)
Mappings for an individual concept in the source to one or more concepts in the target.Adds new element(s) to the existing list. If any of the elements are null, calling
build()will fail.This element is required.
- Parameters:
element- Mappings for a concept from the source set- Returns:
- A reference to this Builder instance
-
element
public ConceptMap.Group.Builder element(Collection<ConceptMap.Group.Element> element)
Mappings for an individual concept in the source to one or more concepts in the target.Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()will fail.This element is required.
- Parameters:
element- Mappings for a concept from the source set- Returns:
- A reference to this Builder instance
- Throws:
NullPointerException- If the passed collection is null
-
unmapped
public ConceptMap.Group.Builder unmapped(ConceptMap.Group.Unmapped unmapped)
What to do when there is no mapping for the source concept. "Unmapped" does not include codes that are unmatched, and the unmapped element is ignored in a code is specified to have equivalence = unmatched.- Parameters:
unmapped- What to do when there is no mapping for the source concept- Returns:
- A reference to this Builder instance
-
build
public ConceptMap.Group build()
- Specified by:
buildin interfaceBuilder<Element>- Specified by:
buildin classBackboneElement.Builder- Returns:
- An immutable object of type
ConceptMap.Group - Throws:
IllegalStateException- if the current state cannot be built into a valid Group per the base specification
-
validate
protected void validate(ConceptMap.Group group)
-
from
protected ConceptMap.Group.Builder from(ConceptMap.Group group)
-
-