Class EvidenceReport.Section.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.EvidenceReport.Section.Builder
-
- Enclosing class:
- EvidenceReport.Section
public static class EvidenceReport.Section.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 EvidenceReport.Section.Builder
author(java.util.Collection<Reference> author)
Identifies who is responsible for the information in this section, not necessarily who typed it in.EvidenceReport.Section.Builder
author(Reference... author)
Identifies who is responsible for the information in this section, not necessarily who typed it in.EvidenceReport.Section
build()
Build theEvidenceReport.Section
EvidenceReport.Section.Builder
emptyReason(CodeableConcept emptyReason)
If the section is empty, why the list is empty.EvidenceReport.Section.Builder
entryClassifier(java.util.Collection<CodeableConcept> entryClassifier)
Specifies any type of classification of the evidence report.EvidenceReport.Section.Builder
entryClassifier(CodeableConcept... entryClassifier)
Specifies any type of classification of the evidence report.EvidenceReport.Section.Builder
entryQuantity(java.util.Collection<Quantity> entryQuantity)
Quantity as content.EvidenceReport.Section.Builder
entryQuantity(Quantity... entryQuantity)
Quantity as content.EvidenceReport.Section.Builder
entryReference(java.util.Collection<Reference> entryReference)
A reference to the actual resource from which the narrative in the section is derived.EvidenceReport.Section.Builder
entryReference(Reference... entryReference)
A reference to the actual resource from which the narrative in the section is derived.EvidenceReport.Section.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.EvidenceReport.Section.Builder
extension(Extension... extension)
May be used to represent additional information that is not part of the basic definition of the element.EvidenceReport.Section.Builder
focus(CodeableConcept focus)
A code identifying the kind of content contained within the section.EvidenceReport.Section.Builder
focusReference(Reference focusReference)
A definitional Resource identifying the kind of content contained within the section.protected EvidenceReport.Section.Builder
from(EvidenceReport.Section section)
EvidenceReport.Section.Builder
id(java.lang.String id)
Unique id for the element within a resource (for internal references).EvidenceReport.Section.Builder
mode(SectionMode mode)
How the entry list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted.EvidenceReport.Section.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.EvidenceReport.Section.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.EvidenceReport.Section.Builder
orderedBy(CodeableConcept orderedBy)
Specifies the order applied to the items in the section entries.EvidenceReport.Section.Builder
section(java.util.Collection<EvidenceReport.Section> section)
A nested sub-section within this section.EvidenceReport.Section.Builder
section(EvidenceReport.Section... section)
A nested sub-section within this section.EvidenceReport.Section.Builder
text(Narrative text)
A human-readable narrative that contains the attested content of the section, used to represent the content of the resource to a human.EvidenceReport.Section.Builder
title(java.lang.String title)
Convenience method for settingtitle
.EvidenceReport.Section.Builder
title(String title)
The label for this particular section.protected void
validate(EvidenceReport.Section section)
-
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 EvidenceReport.Section.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 EvidenceReport.Section.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 EvidenceReport.Section.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 EvidenceReport.Section.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 EvidenceReport.Section.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
-
title
public EvidenceReport.Section.Builder title(java.lang.String title)
Convenience method for settingtitle
.- Parameters:
title
- Label for section (e.g. for ToC)- Returns:
- A reference to this Builder instance
- See Also:
title(org.linuxforhealth.fhir.model.type.String)
-
title
public EvidenceReport.Section.Builder title(String title)
The label for this particular section. This will be part of the rendered content for the document, and is often used to build a table of contents.- Parameters:
title
- Label for section (e.g. for ToC)- Returns:
- A reference to this Builder instance
-
focus
public EvidenceReport.Section.Builder focus(CodeableConcept focus)
A code identifying the kind of content contained within the section. This should be consistent with the section title.- Parameters:
focus
- Classification of section (recommended)- Returns:
- A reference to this Builder instance
-
focusReference
public EvidenceReport.Section.Builder focusReference(Reference focusReference)
A definitional Resource identifying the kind of content contained within the section. This should be consistent with the section title.- Parameters:
focusReference
- Classification of section by Resource- Returns:
- A reference to this Builder instance
-
author
public EvidenceReport.Section.Builder author(Reference... author)
Identifies who is responsible for the information in this section, not necessarily who typed it in.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.Allowed resource types for the references:
- Parameters:
author
- Who and/or what authored the section- Returns:
- A reference to this Builder instance
-
author
public EvidenceReport.Section.Builder author(java.util.Collection<Reference> author)
Identifies who is responsible for the information in this section, not necessarily who typed it in.Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()
will fail.Allowed resource types for the references:
- Parameters:
author
- Who and/or what authored the section- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
text
public EvidenceReport.Section.Builder text(Narrative text)
A human-readable narrative that contains the attested content of the section, used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is peferred to contain sufficient detail to make it acceptable for a human to just read the narrative.- Parameters:
text
- Text summary of the section, for human interpretation- Returns:
- A reference to this Builder instance
-
mode
public EvidenceReport.Section.Builder mode(SectionMode mode)
How the entry list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted.- Parameters:
mode
- working | snapshot | changes- Returns:
- A reference to this Builder instance
-
orderedBy
public EvidenceReport.Section.Builder orderedBy(CodeableConcept orderedBy)
Specifies the order applied to the items in the section entries.- Parameters:
orderedBy
- Order of section entries- Returns:
- A reference to this Builder instance
-
entryClassifier
public EvidenceReport.Section.Builder entryClassifier(CodeableConcept... entryClassifier)
Specifies any type of classification of the evidence report.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
entryClassifier
- Extensible classifiers as content- Returns:
- A reference to this Builder instance
-
entryClassifier
public EvidenceReport.Section.Builder entryClassifier(java.util.Collection<CodeableConcept> entryClassifier)
Specifies any type of classification of the evidence report.Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()
will fail.- Parameters:
entryClassifier
- Extensible classifiers as content- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
entryReference
public EvidenceReport.Section.Builder entryReference(Reference... entryReference)
A reference to the actual resource from which the narrative in the section is derived.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
entryReference
- Reference to resources as content- Returns:
- A reference to this Builder instance
-
entryReference
public EvidenceReport.Section.Builder entryReference(java.util.Collection<Reference> entryReference)
A reference to the actual resource from which the narrative in the section is derived.Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()
will fail.- Parameters:
entryReference
- Reference to resources as content- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
entryQuantity
public EvidenceReport.Section.Builder entryQuantity(Quantity... entryQuantity)
Quantity as content.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
entryQuantity
- Quantity as content- Returns:
- A reference to this Builder instance
-
entryQuantity
public EvidenceReport.Section.Builder entryQuantity(java.util.Collection<Quantity> entryQuantity)
Quantity as content.Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()
will fail.- Parameters:
entryQuantity
- Quantity as content- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
emptyReason
public EvidenceReport.Section.Builder emptyReason(CodeableConcept emptyReason)
If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason.- Parameters:
emptyReason
- Why the section is empty- Returns:
- A reference to this Builder instance
-
section
public EvidenceReport.Section.Builder section(EvidenceReport.Section... section)
A nested sub-section within this section.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
section
- Nested Section- Returns:
- A reference to this Builder instance
-
section
public EvidenceReport.Section.Builder section(java.util.Collection<EvidenceReport.Section> section)
A nested sub-section within this section.Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()
will fail.- Parameters:
section
- Nested Section- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
build
public EvidenceReport.Section build()
Build theEvidenceReport.Section
- Specified by:
build
in interfaceBuilder<Element>
- Specified by:
build
in classBackboneElement.Builder
- Returns:
- An immutable object of type
EvidenceReport.Section
- Throws:
java.lang.IllegalStateException
- if the current state cannot be built into a valid Section per the base specification
-
validate
protected void validate(EvidenceReport.Section section)
-
from
protected EvidenceReport.Section.Builder from(EvidenceReport.Section section)
-
-