Class AllergyIntoleranceBuilder.Impl
- java.lang.Object
-
- com.babylonhealth.lit.hl7_java.builders.AllergyIntoleranceBuilder.Impl
-
- All Implemented Interfaces:
com.babylonhealth.lit.core_java.builders.ResourceBuilder,AllergyIntoleranceBuilder,DomainResourceBuilder
- Enclosing interface:
- AllergyIntoleranceBuilder
public static class AllergyIntoleranceBuilder.Impl extends java.lang.Object implements AllergyIntoleranceBuilder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.babylonhealth.lit.hl7_java.builders.AllergyIntoleranceBuilder
AllergyIntoleranceBuilder.Impl
-
-
Constructor Summary
Constructors Constructor Description Impl(com.babylonhealth.lit.core.model.Reference patient)Required fields forAllergyIntolerance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.babylonhealth.lit.hl7.model.AllergyIntolerancebuild()AllergyIntoleranceBuilder.ImplwithAsserter(@NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder asserter)AllergyIntoleranceBuilder.ImplwithAsserter(@NonNull com.babylonhealth.lit.core.model.Reference asserter)AllergyIntoleranceBuilder.ImplwithCategory(@NonNull com.babylonhealth.lit.hl7.ALLERGY_INTOLERANCE_CATEGORY... category)AllergyIntoleranceBuilder.ImplwithCategory(@NonNull java.util.Collection<com.babylonhealth.lit.hl7.ALLERGY_INTOLERANCE_CATEGORY> category)AllergyIntoleranceBuilder.ImplwithClinicalStatus(@NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder clinicalStatus)AllergyIntoleranceBuilder.ImplwithClinicalStatus(@NonNull com.babylonhealth.lit.core.model.CodeableConcept clinicalStatus)AllergyIntoleranceBuilder.ImplwithCode(@NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder code)AllergyIntoleranceBuilder.ImplwithCode(@NonNull com.babylonhealth.lit.core.model.CodeableConcept code)AllergyIntoleranceBuilder.ImplwithContained(@NonNull com.babylonhealth.lit.core_java.builders.ResourceBuilder... contained)AllergyIntoleranceBuilder.ImplwithContained(@NonNull com.babylonhealth.lit.core.model.Resource... contained)AllergyIntoleranceBuilder.ImplwithContained(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Resource> contained)AllergyIntoleranceBuilder.ImplwithCriticality(@NonNull com.babylonhealth.lit.hl7.ALLERGY_INTOLERANCE_CRITICALITY criticality)AllergyIntoleranceBuilder.ImplwithEncounter(@NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder encounter)AllergyIntoleranceBuilder.ImplwithEncounter(@NonNull com.babylonhealth.lit.core.model.Reference encounter)AllergyIntoleranceBuilder.ImplwithExtension(@NonNull com.babylonhealth.lit.core_java.builders.ExtensionBuilder... extension)AllergyIntoleranceBuilder.ImplwithExtension(@NonNull com.babylonhealth.lit.core.model.Extension... extension)AllergyIntoleranceBuilder.ImplwithExtension(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Extension> extension)AllergyIntoleranceBuilder.ImplwithId(@NonNull java.lang.String id)AllergyIntoleranceBuilder.ImplwithIdentifier(@NonNull com.babylonhealth.lit.core_java.builders.IdentifierBuilder... identifier)AllergyIntoleranceBuilder.ImplwithIdentifier(@NonNull com.babylonhealth.lit.core.model.Identifier... identifier)AllergyIntoleranceBuilder.ImplwithIdentifier(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Identifier> identifier)AllergyIntoleranceBuilder.ImplwithImplicitRules(@NonNull java.lang.String implicitRules)AllergyIntoleranceBuilder.ImplwithLanguage(@NonNull com.babylonhealth.lit.core.LANGUAGES language)AllergyIntoleranceBuilder.ImplwithLastOccurrence(@NonNull com.babylonhealth.lit.core.FHIRDateTime lastOccurrence)AllergyIntoleranceBuilder.ImplwithMeta(@NonNull com.babylonhealth.lit.core_java.builders.MetaBuilder meta)AllergyIntoleranceBuilder.ImplwithMeta(@NonNull com.babylonhealth.lit.core.model.Meta meta)AllergyIntoleranceBuilder.ImplwithModifierExtension(@NonNull com.babylonhealth.lit.core_java.builders.ExtensionBuilder... modifierExtension)AllergyIntoleranceBuilder.ImplwithModifierExtension(@NonNull com.babylonhealth.lit.core.model.Extension... modifierExtension)AllergyIntoleranceBuilder.ImplwithModifierExtension(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Extension> modifierExtension)AllergyIntoleranceBuilder.ImplwithNote(@NonNull com.babylonhealth.lit.core_java.builders.AnnotationBuilder... note)AllergyIntoleranceBuilder.ImplwithNote(@NonNull com.babylonhealth.lit.core.model.Annotation... note)AllergyIntoleranceBuilder.ImplwithNote(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Annotation> note)AllergyIntoleranceBuilder.ImplwithOnset(@NonNull Unions.Choice01474038381 onset)AllergyIntoleranceBuilder.ImplwithoutMeta()AllergyIntoleranceBuilder.ImplwithReaction(@NonNull AllergyIntolerance_ReactionBuilder... reaction)AllergyIntoleranceBuilder.ImplwithReaction(@NonNull com.babylonhealth.lit.hl7.model.AllergyIntolerance.Reaction... reaction)AllergyIntoleranceBuilder.ImplwithReaction(@NonNull java.util.Collection<com.babylonhealth.lit.hl7.model.AllergyIntolerance.Reaction> reaction)AllergyIntoleranceBuilder.ImplwithRecordedDate(@NonNull com.babylonhealth.lit.core.FHIRDateTime recordedDate)AllergyIntoleranceBuilder.ImplwithRecorder(@NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder recorder)AllergyIntoleranceBuilder.ImplwithRecorder(@NonNull com.babylonhealth.lit.core.model.Reference recorder)AllergyIntoleranceBuilder.ImplwithText(@NonNull NarrativeBuilder text)AllergyIntoleranceBuilder.ImplwithText(@NonNull com.babylonhealth.lit.hl7.model.Narrative text)AllergyIntoleranceBuilder.ImplwithType(@NonNull com.babylonhealth.lit.hl7.ALLERGY_INTOLERANCE_TYPE _type)AllergyIntoleranceBuilder.ImplwithVerificationStatus(@NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder verificationStatus)AllergyIntoleranceBuilder.ImplwithVerificationStatus(@NonNull com.babylonhealth.lit.core.model.CodeableConcept verificationStatus)
-
-
-
Method Detail
-
withId
public AllergyIntoleranceBuilder.Impl withId(@NonNull @NonNull java.lang.String id)
- Parameters:
id- - The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
-
withMeta
public AllergyIntoleranceBuilder.Impl withMeta(@NonNull @NonNull com.babylonhealth.lit.core.model.Meta meta)
- Parameters:
meta- - The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.
-
withMeta
public AllergyIntoleranceBuilder.Impl withMeta(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.MetaBuilder meta)
-
withText
public AllergyIntoleranceBuilder.Impl withText(@NonNull @NonNull com.babylonhealth.lit.hl7.model.Narrative text)
- Parameters:
text- - A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.
-
withText
public AllergyIntoleranceBuilder.Impl withText(@NonNull @NonNull NarrativeBuilder text)
-
withType
public AllergyIntoleranceBuilder.Impl withType(@NonNull @NonNull com.babylonhealth.lit.hl7.ALLERGY_INTOLERANCE_TYPE _type)
- Parameters:
_type- - Identification of the underlying physiological mechanism for the reaction risk.
-
withCode
public AllergyIntoleranceBuilder.Impl withCode(@NonNull @NonNull com.babylonhealth.lit.core.model.CodeableConcept code)
- Parameters:
code- - Code for an allergy or intolerance statement (either a positive or a negated/excluded statement). This may be a code for a substance or pharmaceutical product that is considered to be responsible for the adverse reaction risk (e.g., "Latex"), an allergy or intolerance condition (e.g., "Latex allergy"), or a negated/excluded code for a specific substance or class (e.g., "No latex allergy") or a general or categorical negated statement (e.g., "No known allergy", "No known drug allergies"). Note: the substance for a specific reaction may be different from the substance identified as the cause of the risk, but it must be consistent with it. For instance, it may be a more specific substance (e.g. a brand medication) or a composite product that includes the identified substance. It must be clinically safe to only process the 'code' and ignore the 'reaction.substance'. If a receiving system is unable to confirm that AllergyIntolerance.reaction.substance falls within the semantic scope of AllergyIntolerance.code, then the receiving system should ignore AllergyIntolerance.reaction.substance.
-
withCode
public AllergyIntoleranceBuilder.Impl withCode(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder code)
-
withNote
public AllergyIntoleranceBuilder.Impl withNote(@NonNull @NonNull com.babylonhealth.lit.core.model.Annotation... note)
- Parameters:
note- - Additional narrative about the propensity for the Adverse Reaction, not captured in other fields.
-
withNote
public AllergyIntoleranceBuilder.Impl withNote(@NonNull @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Annotation> note)
- Parameters:
note- - Additional narrative about the propensity for the Adverse Reaction, not captured in other fields.
-
withNote
public AllergyIntoleranceBuilder.Impl withNote(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.AnnotationBuilder... note)
-
withLanguage
public AllergyIntoleranceBuilder.Impl withLanguage(@NonNull @NonNull com.babylonhealth.lit.core.LANGUAGES language)
- Parameters:
language- - The base language in which the resource is written.
-
withCategory
public AllergyIntoleranceBuilder.Impl withCategory(@NonNull @NonNull com.babylonhealth.lit.hl7.ALLERGY_INTOLERANCE_CATEGORY... category)
- Parameters:
category- - Category of the identified substance.
-
withCategory
public AllergyIntoleranceBuilder.Impl withCategory(@NonNull @NonNull java.util.Collection<com.babylonhealth.lit.hl7.ALLERGY_INTOLERANCE_CATEGORY> category)
- Parameters:
category- - Category of the identified substance.
-
withOnset
public AllergyIntoleranceBuilder.Impl withOnset(@NonNull @NonNull Unions.Choice01474038381 onset)
- Parameters:
onset- - Estimated or actual date, date-time, or age when allergy or intolerance was identified. Field is a 'choice' field. Type should be one of Age, FHIRDateTime, Period, Range, String. To pass the value in, wrap with one of the AllergyIntoleranceBuilder.onset static methods
-
withRecorder
public AllergyIntoleranceBuilder.Impl withRecorder(@NonNull @NonNull com.babylonhealth.lit.core.model.Reference recorder)
- Parameters:
recorder- - Individual who recorded the record and takes responsibility for its content.
-
withRecorder
public AllergyIntoleranceBuilder.Impl withRecorder(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder recorder)
-
withAsserter
public AllergyIntoleranceBuilder.Impl withAsserter(@NonNull @NonNull com.babylonhealth.lit.core.model.Reference asserter)
- Parameters:
asserter- - The source of the information about the allergy that is recorded.
-
withAsserter
public AllergyIntoleranceBuilder.Impl withAsserter(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder asserter)
-
withContained
public AllergyIntoleranceBuilder.Impl withContained(@NonNull @NonNull com.babylonhealth.lit.core.model.Resource... contained)
- Parameters:
contained- - These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
-
withContained
public AllergyIntoleranceBuilder.Impl withContained(@NonNull @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Resource> contained)
- Parameters:
contained- - These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
-
withContained
public AllergyIntoleranceBuilder.Impl withContained(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.ResourceBuilder... contained)
-
withExtension
public AllergyIntoleranceBuilder.Impl withExtension(@NonNull @NonNull com.babylonhealth.lit.core.model.Extension... extension)
- Parameters:
extension- - May be used to represent additional information that is not part of the basic definition of the resource. 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.
-
withExtension
public AllergyIntoleranceBuilder.Impl withExtension(@NonNull @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Extension> extension)
- Parameters:
extension- - May be used to represent additional information that is not part of the basic definition of the resource. 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.
-
withExtension
public AllergyIntoleranceBuilder.Impl withExtension(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.ExtensionBuilder... extension)
-
withEncounter
public AllergyIntoleranceBuilder.Impl withEncounter(@NonNull @NonNull com.babylonhealth.lit.core.model.Reference encounter)
- Parameters:
encounter- - The encounter when the allergy or intolerance was asserted.
-
withEncounter
public AllergyIntoleranceBuilder.Impl withEncounter(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder encounter)
-
withIdentifier
public AllergyIntoleranceBuilder.Impl withIdentifier(@NonNull @NonNull com.babylonhealth.lit.core.model.Identifier... identifier)
- Parameters:
identifier- - Business identifiers assigned to this AllergyIntolerance by the performer or other systems which remain constant as the resource is updated and propagates from server to server.
-
withIdentifier
public AllergyIntoleranceBuilder.Impl withIdentifier(@NonNull @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Identifier> identifier)
- Parameters:
identifier- - Business identifiers assigned to this AllergyIntolerance by the performer or other systems which remain constant as the resource is updated and propagates from server to server.
-
withIdentifier
public AllergyIntoleranceBuilder.Impl withIdentifier(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.IdentifierBuilder... identifier)
-
withCriticality
public AllergyIntoleranceBuilder.Impl withCriticality(@NonNull @NonNull com.babylonhealth.lit.hl7.ALLERGY_INTOLERANCE_CRITICALITY criticality)
- Parameters:
criticality- - Estimate of the potential clinical harm, or seriousness, of the reaction to the identified substance.
-
withRecordedDate
public AllergyIntoleranceBuilder.Impl withRecordedDate(@NonNull @NonNull com.babylonhealth.lit.core.FHIRDateTime recordedDate)
- Parameters:
recordedDate- - The recordedDate represents when this particular AllergyIntolerance record was created in the system, which is often a system-generated date.
-
withImplicitRules
public AllergyIntoleranceBuilder.Impl withImplicitRules(@NonNull @NonNull java.lang.String implicitRules)
- Parameters:
implicitRules- - A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.
-
withClinicalStatus
public AllergyIntoleranceBuilder.Impl withClinicalStatus(@NonNull @NonNull com.babylonhealth.lit.core.model.CodeableConcept clinicalStatus)
- Parameters:
clinicalStatus- - The clinical status of the allergy or intolerance.
-
withClinicalStatus
public AllergyIntoleranceBuilder.Impl withClinicalStatus(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder clinicalStatus)
-
withLastOccurrence
public AllergyIntoleranceBuilder.Impl withLastOccurrence(@NonNull @NonNull com.babylonhealth.lit.core.FHIRDateTime lastOccurrence)
- Parameters:
lastOccurrence- - Represents the date and/or time of the last known occurrence of a reaction event.
-
withModifierExtension
public AllergyIntoleranceBuilder.Impl withModifierExtension(@NonNull @NonNull com.babylonhealth.lit.core.model.Extension... modifierExtension)
- Parameters:
modifierExtension- - May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it 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 is allowed to 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).
-
withModifierExtension
public AllergyIntoleranceBuilder.Impl withModifierExtension(@NonNull @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Extension> modifierExtension)
- Parameters:
modifierExtension- - May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it 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 is allowed to 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).
-
withModifierExtension
public AllergyIntoleranceBuilder.Impl withModifierExtension(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.ExtensionBuilder... modifierExtension)
-
withVerificationStatus
public AllergyIntoleranceBuilder.Impl withVerificationStatus(@NonNull @NonNull com.babylonhealth.lit.core.model.CodeableConcept verificationStatus)
- Parameters:
verificationStatus- - Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified substance (including pharmaceutical product).
-
withVerificationStatus
public AllergyIntoleranceBuilder.Impl withVerificationStatus(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder verificationStatus)
-
withReaction
public AllergyIntoleranceBuilder.Impl withReaction(@NonNull @NonNull com.babylonhealth.lit.hl7.model.AllergyIntolerance.Reaction... reaction)
- Parameters:
reaction- - Details about each adverse reaction event linked to exposure to the identified substance.
-
withReaction
public AllergyIntoleranceBuilder.Impl withReaction(@NonNull @NonNull java.util.Collection<com.babylonhealth.lit.hl7.model.AllergyIntolerance.Reaction> reaction)
- Parameters:
reaction- - Details about each adverse reaction event linked to exposure to the identified substance.
-
withReaction
public AllergyIntoleranceBuilder.Impl withReaction(@NonNull @NonNull AllergyIntolerance_ReactionBuilder... reaction)
-
withoutMeta
public AllergyIntoleranceBuilder.Impl withoutMeta()
-
build
public com.babylonhealth.lit.hl7.model.AllergyIntolerance build()
- Specified by:
buildin interfaceAllergyIntoleranceBuilder- Specified by:
buildin interfaceDomainResourceBuilder- Specified by:
buildin interfacecom.babylonhealth.lit.core_java.builders.ResourceBuilder
-
-