Class ConceptMap.Group.Builder
- java.lang.Object
-
- org.linuxforhealth.fhir.model.builder.AbstractBuilder<Element>
-
- org.linuxforhealth.fhir.model.type.Element.Builder
-
- org.linuxforhealth.fhir.model.type.BackboneElement.Builder
-
- org.linuxforhealth.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 org.linuxforhealth.fhir.model.type.BackboneElement.Builder
modifierExtension
-
Fields inherited from class org.linuxforhealth.fhir.model.type.Element.Builder
extension, id
-
Fields inherited from class org.linuxforhealth.fhir.model.builder.AbstractBuilder
validating
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConceptMap.Group
build()
Build theConceptMap.Group
ConceptMap.Group.Builder
element(java.util.Collection<ConceptMap.Group.Element> element)
Mappings for an individual concept in the source to one or more concepts in the target.ConceptMap.Group.Builder
element(ConceptMap.Group.Element... element)
Mappings for an individual concept in the source to one or more concepts in the target.ConceptMap.Group.Builder
extension(java.util.Collection<Extension> extension)
May be used to represent additional information that is not part of the basic definition of the element.ConceptMap.Group.Builder
extension(Extension... extension)
May be used to represent additional information that is not part of the basic definition of the element.protected ConceptMap.Group.Builder
from(ConceptMap.Group group)
ConceptMap.Group.Builder
id(java.lang.String id)
Unique id for the element within a resource (for internal references).ConceptMap.Group.Builder
modifierExtension(java.util.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.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.ConceptMap.Group.Builder
source(Uri source)
An absolute URI that identifies the source system where the concepts to be mapped are defined.ConceptMap.Group.Builder
sourceVersion(java.lang.String sourceVersion)
Convenience method for settingsourceVersion
.ConceptMap.Group.Builder
sourceVersion(String sourceVersion)
The specific version of the code system, as determined by the code system authority.ConceptMap.Group.Builder
target(Uri target)
An absolute URI that identifies the target system that the concepts will be mapped to.ConceptMap.Group.Builder
targetVersion(java.lang.String targetVersion)
Convenience method for settingtargetVersion
.ConceptMap.Group.Builder
targetVersion(String targetVersion)
The specific version of the code system, as determined by the code system authority.ConceptMap.Group.Builder
unmapped(ConceptMap.Group.Unmapped unmapped)
What to do when there is no mapping for the source concept.protected void
validate(ConceptMap.Group group)
-
Methods inherited from class org.linuxforhealth.fhir.model.type.BackboneElement.Builder
from, validate
-
Methods inherited from class org.linuxforhealth.fhir.model.type.Element.Builder
from, validate
-
Methods inherited from class org.linuxforhealth.fhir.model.builder.AbstractBuilder
isValidating, setValidating
-
-
-
-
Method Detail
-
id
public ConceptMap.Group.Builder id(java.lang.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:
id
in 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:
extension
in classBackboneElement.Builder
- Parameters:
extension
- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
extension
public ConceptMap.Group.Builder extension(java.util.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:
extension
in classBackboneElement.Builder
- Parameters:
extension
- Additional content defined by implementations- Returns:
- A reference to this Builder instance
- Throws:
java.lang.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:
modifierExtension
in 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(java.util.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:
modifierExtension
in classBackboneElement.Builder
- Parameters:
modifierExtension
- Extensions that cannot be ignored even if unrecognized- Returns:
- A reference to this Builder instance
- Throws:
java.lang.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(java.lang.String sourceVersion)
Convenience method for settingsourceVersion
.- Parameters:
sourceVersion
- Specific version of the code system- Returns:
- A reference to this Builder instance
- See Also:
sourceVersion(org.linuxforhealth.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(java.lang.String targetVersion)
Convenience method for settingtargetVersion
.- Parameters:
targetVersion
- Specific version of the code system- Returns:
- A reference to this Builder instance
- See Also:
targetVersion(org.linuxforhealth.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(java.util.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:
java.lang.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:
build
in interfaceBuilder<Element>
- Specified by:
build
in classBackboneElement.Builder
- Returns:
- An immutable object of type
ConceptMap.Group
- Throws:
java.lang.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)
-
-