Class Us_core_allergyintoleranceBuilder.Impl
- java.lang.Object
-
- com.babylonhealth.lit.uscore_java.builders.Us_core_allergyintoleranceBuilder.Impl
-
- All Implemented Interfaces:
com.babylonhealth.lit.core_java.builders.ResourceBuilder,com.babylonhealth.lit.hl7_java.builders.AllergyIntoleranceBuilder,com.babylonhealth.lit.hl7_java.builders.DomainResourceBuilder,Us_core_allergyintoleranceBuilder
- Enclosing interface:
- Us_core_allergyintoleranceBuilder
public static class Us_core_allergyintoleranceBuilder.Impl extends java.lang.Object implements Us_core_allergyintoleranceBuilder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.babylonhealth.lit.uscore_java.builders.Us_core_allergyintoleranceBuilder
Us_core_allergyintoleranceBuilder.Impl
-
-
Constructor Summary
Constructors Constructor Description Impl(com.babylonhealth.lit.core.model.CodeableConcept code, com.babylonhealth.lit.core.model.Reference patient)Required fields forUs_core_allergyintolerance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.babylonhealth.lit.uscore.model.Us_core_allergyintolerancebuild()Us_core_allergyintoleranceBuilder.ImplwithAsserter(@NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder asserter)Us_core_allergyintoleranceBuilder.ImplwithAsserter(@NonNull com.babylonhealth.lit.core.model.Reference asserter)Us_core_allergyintoleranceBuilder.ImplwithCategory(@NonNull com.babylonhealth.lit.hl7.ALLERGY_INTOLERANCE_CATEGORY... category)Us_core_allergyintoleranceBuilder.ImplwithCategory(@NonNull java.util.Collection<com.babylonhealth.lit.hl7.ALLERGY_INTOLERANCE_CATEGORY> category)Us_core_allergyintoleranceBuilder.ImplwithClinicalStatus(@NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder clinicalStatus)Us_core_allergyintoleranceBuilder.ImplwithClinicalStatus(@NonNull com.babylonhealth.lit.core.model.CodeableConcept clinicalStatus)Us_core_allergyintoleranceBuilder.ImplwithContained(@NonNull com.babylonhealth.lit.core_java.builders.ResourceBuilder... contained)Us_core_allergyintoleranceBuilder.ImplwithContained(@NonNull com.babylonhealth.lit.core.model.Resource... contained)Us_core_allergyintoleranceBuilder.ImplwithContained(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Resource> contained)Us_core_allergyintoleranceBuilder.ImplwithCriticality(@NonNull com.babylonhealth.lit.hl7.ALLERGY_INTOLERANCE_CRITICALITY criticality)Us_core_allergyintoleranceBuilder.ImplwithEncounter(@NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder encounter)Us_core_allergyintoleranceBuilder.ImplwithEncounter(@NonNull com.babylonhealth.lit.core.model.Reference encounter)Us_core_allergyintoleranceBuilder.ImplwithExtension(@NonNull com.babylonhealth.lit.core_java.builders.ExtensionBuilder... extension)Us_core_allergyintoleranceBuilder.ImplwithExtension(@NonNull com.babylonhealth.lit.core.model.Extension... extension)Us_core_allergyintoleranceBuilder.ImplwithExtension(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Extension> extension)Us_core_allergyintoleranceBuilder.ImplwithId(@NonNull java.lang.String id)Us_core_allergyintoleranceBuilder.ImplwithIdentifier(@NonNull com.babylonhealth.lit.core_java.builders.IdentifierBuilder... identifier)Us_core_allergyintoleranceBuilder.ImplwithIdentifier(@NonNull com.babylonhealth.lit.core.model.Identifier... identifier)Us_core_allergyintoleranceBuilder.ImplwithIdentifier(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Identifier> identifier)Us_core_allergyintoleranceBuilder.ImplwithImplicitRules(@NonNull java.lang.String implicitRules)Us_core_allergyintoleranceBuilder.ImplwithLanguage(@NonNull com.babylonhealth.lit.core.LANGUAGES language)Us_core_allergyintoleranceBuilder.ImplwithLastOccurrence(@NonNull com.babylonhealth.lit.core.FHIRDateTime lastOccurrence)Us_core_allergyintoleranceBuilder.ImplwithMeta(@NonNull com.babylonhealth.lit.core_java.builders.MetaBuilder meta)Us_core_allergyintoleranceBuilder.ImplwithMeta(@NonNull com.babylonhealth.lit.core.model.Meta meta)Us_core_allergyintoleranceBuilder.ImplwithModifierExtension(@NonNull com.babylonhealth.lit.core_java.builders.ExtensionBuilder... modifierExtension)Us_core_allergyintoleranceBuilder.ImplwithModifierExtension(@NonNull com.babylonhealth.lit.core.model.Extension... modifierExtension)Us_core_allergyintoleranceBuilder.ImplwithModifierExtension(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Extension> modifierExtension)Us_core_allergyintoleranceBuilder.ImplwithNote(@NonNull com.babylonhealth.lit.core_java.builders.AnnotationBuilder... note)Us_core_allergyintoleranceBuilder.ImplwithNote(@NonNull com.babylonhealth.lit.core.model.Annotation... note)Us_core_allergyintoleranceBuilder.ImplwithNote(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Annotation> note)Us_core_allergyintoleranceBuilder.ImplwithOnset(@NonNull com.babylonhealth.lit.hl7_java.model.Unions.Choice01474038381 onset)Us_core_allergyintoleranceBuilder.ImplwithoutMeta()Us_core_allergyintoleranceBuilder.ImplwithReaction(@NonNull com.babylonhealth.lit.hl7_java.builders.AllergyIntolerance_ReactionBuilder... reaction)Us_core_allergyintoleranceBuilder.ImplwithReaction(@NonNull com.babylonhealth.lit.hl7.model.AllergyIntolerance.Reaction... reaction)Us_core_allergyintoleranceBuilder.ImplwithReaction(@NonNull java.util.Collection<com.babylonhealth.lit.hl7.model.AllergyIntolerance.Reaction> reaction)Us_core_allergyintoleranceBuilder.ImplwithRecordedDate(@NonNull com.babylonhealth.lit.core.FHIRDateTime recordedDate)Us_core_allergyintoleranceBuilder.ImplwithRecorder(@NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder recorder)Us_core_allergyintoleranceBuilder.ImplwithRecorder(@NonNull com.babylonhealth.lit.core.model.Reference recorder)Us_core_allergyintoleranceBuilder.ImplwithText(@NonNull com.babylonhealth.lit.hl7_java.builders.NarrativeBuilder text)Us_core_allergyintoleranceBuilder.ImplwithText(@NonNull com.babylonhealth.lit.hl7.model.Narrative text)Us_core_allergyintoleranceBuilder.ImplwithType(@NonNull com.babylonhealth.lit.hl7.ALLERGY_INTOLERANCE_TYPE _type)Us_core_allergyintoleranceBuilder.ImplwithVerificationStatus(@NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder verificationStatus)Us_core_allergyintoleranceBuilder.ImplwithVerificationStatus(@NonNull com.babylonhealth.lit.core.model.CodeableConcept verificationStatus)
-
-
-
Constructor Detail
-
Impl
public Impl(com.babylonhealth.lit.core.model.CodeableConcept code, com.babylonhealth.lit.core.model.Reference patient)Required fields forUs_core_allergyintolerance- 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.patient- - The patient who has the allergy or intolerance.
-
-
Method Detail
-
withId
public Us_core_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 Us_core_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 Us_core_allergyintoleranceBuilder.Impl withMeta(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.MetaBuilder meta)
-
withText
public Us_core_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 Us_core_allergyintoleranceBuilder.Impl withText(@NonNull @NonNull com.babylonhealth.lit.hl7_java.builders.NarrativeBuilder text)
-
withType
public Us_core_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.
-
withNote
public Us_core_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 Us_core_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 Us_core_allergyintoleranceBuilder.Impl withNote(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.AnnotationBuilder... note)
-
withLanguage
public Us_core_allergyintoleranceBuilder.Impl withLanguage(@NonNull @NonNull com.babylonhealth.lit.core.LANGUAGES language)
- Parameters:
language- - The base language in which the resource is written.
-
withCategory
public Us_core_allergyintoleranceBuilder.Impl withCategory(@NonNull @NonNull com.babylonhealth.lit.hl7.ALLERGY_INTOLERANCE_CATEGORY... category)
- Parameters:
category- - Category of the identified substance.
-
withCategory
public Us_core_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 Us_core_allergyintoleranceBuilder.Impl withOnset(@NonNull @NonNull com.babylonhealth.lit.hl7_java.model.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 Us_core_allergyintoleranceBuilder.onset static methods
-
withRecorder
public Us_core_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 Us_core_allergyintoleranceBuilder.Impl withRecorder(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder recorder)
-
withAsserter
public Us_core_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 Us_core_allergyintoleranceBuilder.Impl withAsserter(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder asserter)
-
withContained
public Us_core_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 Us_core_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 Us_core_allergyintoleranceBuilder.Impl withContained(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.ResourceBuilder... contained)
-
withExtension
public Us_core_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 Us_core_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 Us_core_allergyintoleranceBuilder.Impl withExtension(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.ExtensionBuilder... extension)
-
withEncounter
public Us_core_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 Us_core_allergyintoleranceBuilder.Impl withEncounter(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder encounter)
-
withIdentifier
public Us_core_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 Us_core_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 Us_core_allergyintoleranceBuilder.Impl withIdentifier(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.IdentifierBuilder... identifier)
-
withCriticality
public Us_core_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 Us_core_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 Us_core_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 Us_core_allergyintoleranceBuilder.Impl withClinicalStatus(@NonNull @NonNull com.babylonhealth.lit.core.model.CodeableConcept clinicalStatus)
- Parameters:
clinicalStatus- - The clinical status of the allergy or intolerance.
-
withClinicalStatus
public Us_core_allergyintoleranceBuilder.Impl withClinicalStatus(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder clinicalStatus)
-
withLastOccurrence
public Us_core_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 Us_core_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 Us_core_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 Us_core_allergyintoleranceBuilder.Impl withModifierExtension(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.ExtensionBuilder... modifierExtension)
-
withVerificationStatus
public Us_core_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 Us_core_allergyintoleranceBuilder.Impl withVerificationStatus(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder verificationStatus)
-
withReaction
public Us_core_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 Us_core_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 Us_core_allergyintoleranceBuilder.Impl withReaction(@NonNull @NonNull com.babylonhealth.lit.hl7_java.builders.AllergyIntolerance_ReactionBuilder... reaction)
-
withoutMeta
public Us_core_allergyintoleranceBuilder.Impl withoutMeta()
-
build
public com.babylonhealth.lit.uscore.model.Us_core_allergyintolerance build()
- Specified by:
buildin interfacecom.babylonhealth.lit.hl7_java.builders.AllergyIntoleranceBuilder- Specified by:
buildin interfacecom.babylonhealth.lit.hl7_java.builders.DomainResourceBuilder- Specified by:
buildin interfacecom.babylonhealth.lit.core_java.builders.ResourceBuilder- Specified by:
buildin interfaceUs_core_allergyintoleranceBuilder
-
-