Class MedicationStatementBuilder.Impl
- java.lang.Object
-
- com.babylonhealth.lit.hl7_java.builders.MedicationStatementBuilder.Impl
-
- All Implemented Interfaces:
com.babylonhealth.lit.core_java.builders.ResourceBuilder,DomainResourceBuilder,MedicationStatementBuilder
- Enclosing interface:
- MedicationStatementBuilder
public static class MedicationStatementBuilder.Impl extends java.lang.Object implements MedicationStatementBuilder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.babylonhealth.lit.hl7_java.builders.MedicationStatementBuilder
MedicationStatementBuilder.Impl
-
-
Constructor Summary
Constructors Constructor Description Impl(com.babylonhealth.lit.hl7.MEDICATION_STATEMENT_STATUS status, com.babylonhealth.lit.core.model.Reference subject, @NonNull com.babylonhealth.lit.core_java.model.Unions.ChoiceCodeableConceptOrReference medication)Required fields forMedicationStatement
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.babylonhealth.lit.hl7.model.MedicationStatementbuild()MedicationStatementBuilder.ImplwithBasedOn(@NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder... basedOn)MedicationStatementBuilder.ImplwithBasedOn(@NonNull com.babylonhealth.lit.core.model.Reference... basedOn)MedicationStatementBuilder.ImplwithBasedOn(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> basedOn)MedicationStatementBuilder.ImplwithCategory(@NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder category)MedicationStatementBuilder.ImplwithCategory(@NonNull com.babylonhealth.lit.core.model.CodeableConcept category)MedicationStatementBuilder.ImplwithContained(@NonNull com.babylonhealth.lit.core_java.builders.ResourceBuilder... contained)MedicationStatementBuilder.ImplwithContained(@NonNull com.babylonhealth.lit.core.model.Resource... contained)MedicationStatementBuilder.ImplwithContained(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Resource> contained)MedicationStatementBuilder.ImplwithContext(@NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder context)MedicationStatementBuilder.ImplwithContext(@NonNull com.babylonhealth.lit.core.model.Reference context)MedicationStatementBuilder.ImplwithDateAsserted(@NonNull com.babylonhealth.lit.core.FHIRDateTime dateAsserted)MedicationStatementBuilder.ImplwithDerivedFrom(@NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder... derivedFrom)MedicationStatementBuilder.ImplwithDerivedFrom(@NonNull com.babylonhealth.lit.core.model.Reference... derivedFrom)MedicationStatementBuilder.ImplwithDerivedFrom(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> derivedFrom)MedicationStatementBuilder.ImplwithDosage(@NonNull com.babylonhealth.lit.core_java.builders.DosageBuilder... dosage)MedicationStatementBuilder.ImplwithDosage(@NonNull com.babylonhealth.lit.core.model.Dosage... dosage)MedicationStatementBuilder.ImplwithDosage(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Dosage> dosage)MedicationStatementBuilder.ImplwithEffective(@NonNull Unions.ChoiceDateTimeOrPeriod effective)MedicationStatementBuilder.ImplwithExtension(@NonNull com.babylonhealth.lit.core_java.builders.ExtensionBuilder... extension)MedicationStatementBuilder.ImplwithExtension(@NonNull com.babylonhealth.lit.core.model.Extension... extension)MedicationStatementBuilder.ImplwithExtension(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Extension> extension)MedicationStatementBuilder.ImplwithId(@NonNull java.lang.String id)MedicationStatementBuilder.ImplwithIdentifier(@NonNull com.babylonhealth.lit.core_java.builders.IdentifierBuilder... identifier)MedicationStatementBuilder.ImplwithIdentifier(@NonNull com.babylonhealth.lit.core.model.Identifier... identifier)MedicationStatementBuilder.ImplwithIdentifier(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Identifier> identifier)MedicationStatementBuilder.ImplwithImplicitRules(@NonNull java.lang.String implicitRules)MedicationStatementBuilder.ImplwithInformationSource(@NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder informationSource)MedicationStatementBuilder.ImplwithInformationSource(@NonNull com.babylonhealth.lit.core.model.Reference informationSource)MedicationStatementBuilder.ImplwithLanguage(@NonNull com.babylonhealth.lit.core.LANGUAGES language)MedicationStatementBuilder.ImplwithMeta(@NonNull com.babylonhealth.lit.core_java.builders.MetaBuilder meta)MedicationStatementBuilder.ImplwithMeta(@NonNull com.babylonhealth.lit.core.model.Meta meta)MedicationStatementBuilder.ImplwithModifierExtension(@NonNull com.babylonhealth.lit.core_java.builders.ExtensionBuilder... modifierExtension)MedicationStatementBuilder.ImplwithModifierExtension(@NonNull com.babylonhealth.lit.core.model.Extension... modifierExtension)MedicationStatementBuilder.ImplwithModifierExtension(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Extension> modifierExtension)MedicationStatementBuilder.ImplwithNote(@NonNull com.babylonhealth.lit.core_java.builders.AnnotationBuilder... note)MedicationStatementBuilder.ImplwithNote(@NonNull com.babylonhealth.lit.core.model.Annotation... note)MedicationStatementBuilder.ImplwithNote(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Annotation> note)MedicationStatementBuilder.ImplwithoutMeta()MedicationStatementBuilder.ImplwithPartOf(@NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder... partOf)MedicationStatementBuilder.ImplwithPartOf(@NonNull com.babylonhealth.lit.core.model.Reference... partOf)MedicationStatementBuilder.ImplwithPartOf(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> partOf)MedicationStatementBuilder.ImplwithReasonCode(@NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder... reasonCode)MedicationStatementBuilder.ImplwithReasonCode(@NonNull com.babylonhealth.lit.core.model.CodeableConcept... reasonCode)MedicationStatementBuilder.ImplwithReasonCode(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.CodeableConcept> reasonCode)MedicationStatementBuilder.ImplwithReasonReference(@NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder... reasonReference)MedicationStatementBuilder.ImplwithReasonReference(@NonNull com.babylonhealth.lit.core.model.Reference... reasonReference)MedicationStatementBuilder.ImplwithReasonReference(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> reasonReference)MedicationStatementBuilder.ImplwithStatusReason(@NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder... statusReason)MedicationStatementBuilder.ImplwithStatusReason(@NonNull com.babylonhealth.lit.core.model.CodeableConcept... statusReason)MedicationStatementBuilder.ImplwithStatusReason(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.CodeableConcept> statusReason)MedicationStatementBuilder.ImplwithText(@NonNull NarrativeBuilder text)MedicationStatementBuilder.ImplwithText(@NonNull com.babylonhealth.lit.hl7.model.Narrative text)
-
-
-
Constructor Detail
-
Impl
public Impl(com.babylonhealth.lit.hl7.MEDICATION_STATEMENT_STATUS status, com.babylonhealth.lit.core.model.Reference subject, @NonNull @NonNull com.babylonhealth.lit.core_java.model.Unions.ChoiceCodeableConceptOrReference medication)Required fields forMedicationStatement- Parameters:
status- - A code representing the patient or other source's judgment about the state of the medication used that this statement is about. Generally, this will be active or completed.subject- - The person, animal or group who is/was taking the medication.medication- - Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications. Field is a 'choice' field. Type should be one of CodeableConcept, Reference. To pass the value in, wrap with one of the MedicationStatementBuilder.medication static methods
-
-
Method Detail
-
withId
public MedicationStatementBuilder.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 MedicationStatementBuilder.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 MedicationStatementBuilder.Impl withMeta(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.MetaBuilder meta)
-
withText
public MedicationStatementBuilder.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 MedicationStatementBuilder.Impl withText(@NonNull @NonNull NarrativeBuilder text)
-
withNote
public MedicationStatementBuilder.Impl withNote(@NonNull @NonNull com.babylonhealth.lit.core.model.Annotation... note)
- Parameters:
note- - Provides extra information about the medication statement that is not conveyed by the other attributes.
-
withNote
public MedicationStatementBuilder.Impl withNote(@NonNull @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Annotation> note)
- Parameters:
note- - Provides extra information about the medication statement that is not conveyed by the other attributes.
-
withNote
public MedicationStatementBuilder.Impl withNote(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.AnnotationBuilder... note)
-
withPartOf
public MedicationStatementBuilder.Impl withPartOf(@NonNull @NonNull com.babylonhealth.lit.core.model.Reference... partOf)
- Parameters:
partOf- - A larger event of which this particular event is a component or step.
-
withPartOf
public MedicationStatementBuilder.Impl withPartOf(@NonNull @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> partOf)
- Parameters:
partOf- - A larger event of which this particular event is a component or step.
-
withPartOf
public MedicationStatementBuilder.Impl withPartOf(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder... partOf)
-
withDosage
public MedicationStatementBuilder.Impl withDosage(@NonNull @NonNull com.babylonhealth.lit.core.model.Dosage... dosage)
- Parameters:
dosage- - Indicates how the medication is/was or should be taken by the patient.
-
withDosage
public MedicationStatementBuilder.Impl withDosage(@NonNull @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Dosage> dosage)
- Parameters:
dosage- - Indicates how the medication is/was or should be taken by the patient.
-
withDosage
public MedicationStatementBuilder.Impl withDosage(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.DosageBuilder... dosage)
-
withBasedOn
public MedicationStatementBuilder.Impl withBasedOn(@NonNull @NonNull com.babylonhealth.lit.core.model.Reference... basedOn)
- Parameters:
basedOn- - A plan, proposal or order that is fulfilled in whole or in part by this event.
-
withBasedOn
public MedicationStatementBuilder.Impl withBasedOn(@NonNull @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> basedOn)
- Parameters:
basedOn- - A plan, proposal or order that is fulfilled in whole or in part by this event.
-
withBasedOn
public MedicationStatementBuilder.Impl withBasedOn(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder... basedOn)
-
withContext
public MedicationStatementBuilder.Impl withContext(@NonNull @NonNull com.babylonhealth.lit.core.model.Reference context)
- Parameters:
context- - The encounter or episode of care that establishes the context for this MedicationStatement.
-
withContext
public MedicationStatementBuilder.Impl withContext(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder context)
-
withLanguage
public MedicationStatementBuilder.Impl withLanguage(@NonNull @NonNull com.babylonhealth.lit.core.LANGUAGES language)
- Parameters:
language- - The base language in which the resource is written.
-
withCategory
public MedicationStatementBuilder.Impl withCategory(@NonNull @NonNull com.babylonhealth.lit.core.model.CodeableConcept category)
- Parameters:
category- - Indicates where the medication is expected to be consumed or administered.
-
withCategory
public MedicationStatementBuilder.Impl withCategory(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder category)
-
withContained
public MedicationStatementBuilder.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 MedicationStatementBuilder.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 MedicationStatementBuilder.Impl withContained(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.ResourceBuilder... contained)
-
withExtension
public MedicationStatementBuilder.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 MedicationStatementBuilder.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 MedicationStatementBuilder.Impl withExtension(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.ExtensionBuilder... extension)
-
withIdentifier
public MedicationStatementBuilder.Impl withIdentifier(@NonNull @NonNull com.babylonhealth.lit.core.model.Identifier... identifier)
- Parameters:
identifier- - Identifiers associated with this Medication Statement that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate. They are business identifiers assigned to this resource by the performer or other systems and remain constant as the resource is updated and propagates from server to server.
-
withIdentifier
public MedicationStatementBuilder.Impl withIdentifier(@NonNull @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Identifier> identifier)
- Parameters:
identifier- - Identifiers associated with this Medication Statement that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate. They are business identifiers assigned to this resource by the performer or other systems and remain constant as the resource is updated and propagates from server to server.
-
withIdentifier
public MedicationStatementBuilder.Impl withIdentifier(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.IdentifierBuilder... identifier)
-
withReasonCode
public MedicationStatementBuilder.Impl withReasonCode(@NonNull @NonNull com.babylonhealth.lit.core.model.CodeableConcept... reasonCode)
- Parameters:
reasonCode- - A reason for why the medication is being/was taken.
-
withReasonCode
public MedicationStatementBuilder.Impl withReasonCode(@NonNull @NonNull java.util.Collection<com.babylonhealth.lit.core.model.CodeableConcept> reasonCode)
- Parameters:
reasonCode- - A reason for why the medication is being/was taken.
-
withReasonCode
public MedicationStatementBuilder.Impl withReasonCode(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder... reasonCode)
-
withDerivedFrom
public MedicationStatementBuilder.Impl withDerivedFrom(@NonNull @NonNull com.babylonhealth.lit.core.model.Reference... derivedFrom)
- Parameters:
derivedFrom- - Allows linking the MedicationStatement to the underlying MedicationRequest, or to other information that supports or is used to derive the MedicationStatement.
-
withDerivedFrom
public MedicationStatementBuilder.Impl withDerivedFrom(@NonNull @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> derivedFrom)
- Parameters:
derivedFrom- - Allows linking the MedicationStatement to the underlying MedicationRequest, or to other information that supports or is used to derive the MedicationStatement.
-
withDerivedFrom
public MedicationStatementBuilder.Impl withDerivedFrom(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder... derivedFrom)
-
withStatusReason
public MedicationStatementBuilder.Impl withStatusReason(@NonNull @NonNull com.babylonhealth.lit.core.model.CodeableConcept... statusReason)
- Parameters:
statusReason- - Captures the reason for the current state of the MedicationStatement.
-
withStatusReason
public MedicationStatementBuilder.Impl withStatusReason(@NonNull @NonNull java.util.Collection<com.babylonhealth.lit.core.model.CodeableConcept> statusReason)
- Parameters:
statusReason- - Captures the reason for the current state of the MedicationStatement.
-
withStatusReason
public MedicationStatementBuilder.Impl withStatusReason(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder... statusReason)
-
withEffective
public MedicationStatementBuilder.Impl withEffective(@NonNull @NonNull Unions.ChoiceDateTimeOrPeriod effective)
- Parameters:
effective- - The interval of time during which it is being asserted that the patient is/was/will be taking the medication (or was not taking, when the MedicationStatement.taken element is No). Field is a 'choice' field. Type should be one of FHIRDateTime, Period. To pass the value in, wrap with one of the MedicationStatementBuilder.effective static methods
-
withDateAsserted
public MedicationStatementBuilder.Impl withDateAsserted(@NonNull @NonNull com.babylonhealth.lit.core.FHIRDateTime dateAsserted)
- Parameters:
dateAsserted- - The date when the medication statement was asserted by the information source.
-
withImplicitRules
public MedicationStatementBuilder.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.
-
withReasonReference
public MedicationStatementBuilder.Impl withReasonReference(@NonNull @NonNull com.babylonhealth.lit.core.model.Reference... reasonReference)
- Parameters:
reasonReference- - Condition or observation that supports why the medication is being/was taken.
-
withReasonReference
public MedicationStatementBuilder.Impl withReasonReference(@NonNull @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> reasonReference)
- Parameters:
reasonReference- - Condition or observation that supports why the medication is being/was taken.
-
withReasonReference
public MedicationStatementBuilder.Impl withReasonReference(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder... reasonReference)
-
withModifierExtension
public MedicationStatementBuilder.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 MedicationStatementBuilder.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 MedicationStatementBuilder.Impl withModifierExtension(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.ExtensionBuilder... modifierExtension)
-
withInformationSource
public MedicationStatementBuilder.Impl withInformationSource(@NonNull @NonNull com.babylonhealth.lit.core.model.Reference informationSource)
- Parameters:
informationSource- - The person or organization that provided the information about the taking of this medication. Note: Use derivedFrom when a MedicationStatement is derived from other resources, e.g. Claim or MedicationRequest.
-
withInformationSource
public MedicationStatementBuilder.Impl withInformationSource(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder informationSource)
-
withoutMeta
public MedicationStatementBuilder.Impl withoutMeta()
-
build
public com.babylonhealth.lit.hl7.model.MedicationStatement build()
- Specified by:
buildin interfaceDomainResourceBuilder- Specified by:
buildin interfaceMedicationStatementBuilder- Specified by:
buildin interfacecom.babylonhealth.lit.core_java.builders.ResourceBuilder
-
-