Package com.ibm.fhir.model.type
Class Dosage
- java.lang.Object
-
- com.ibm.fhir.model.visitor.AbstractVisitable
-
- com.ibm.fhir.model.type.Element
-
- com.ibm.fhir.model.type.BackboneElement
-
- com.ibm.fhir.model.type.Dosage
-
- All Implemented Interfaces:
Visitable
@Generated("com.ibm.fhir.tools.CodeGenerator") public class Dosage extends BackboneElement
Indicates how the medication is/was taken or should be taken by the patient.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDosage.Builderstatic classDosage.DoseAndRateThe amount of medication administered.
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.type.BackboneElement
modifierExtension
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(String elementName, int elementIndex, Visitor visitor)Accept a Visitor and invoke the appropriate visit methods.static Dosage.Builderbuilder()booleanequals(Object obj)List<CodeableConcept>getAdditionalInstruction()Supplemental instructions to the patient on how to take the medication (e.g.ElementgetAsNeeded()Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), or it indicates the precondition for taking the Medication (CodeableConcept).List<Dosage.DoseAndRate>getDoseAndRate()The amount of medication administered.SimpleQuantitygetMaxDosePerAdministration()Upper limit on medication per administration.SimpleQuantitygetMaxDosePerLifetime()Upper limit on medication per lifetime of the patient.RatiogetMaxDosePerPeriod()Upper limit on medication per unit of time.CodeableConceptgetMethod()Technique for administering medication.StringgetPatientInstruction()Instructions in terms that are understood by the patient or consumer.CodeableConceptgetRoute()How drug should enter body.IntegergetSequence()Indicates the order in which the dosage instructions should be applied or interpreted.CodeableConceptgetSite()Body site to administer to.StringgetText()Free text dosage instructions e.g.TiminggetTiming()When medication should be administered.booleanhasChildren()inthashCode()Dosage.BuildertoBuilder()Create a new Builder from the contents of this Element-
Methods inherited from class com.ibm.fhir.model.type.BackboneElement
getModifierExtension
-
-
-
-
Method Detail
-
getSequence
public Integer getSequence()
Indicates the order in which the dosage instructions should be applied or interpreted.- Returns:
- An immutable object of type
Integerthat may be null.
-
getText
public String getText()
Free text dosage instructions e.g. SIG.- Returns:
- An immutable object of type
Stringthat may be null.
-
getAdditionalInstruction
public List<CodeableConcept> getAdditionalInstruction()
Supplemental instructions to the patient on how to take the medication (e.g. "with meals" or"take half to one hour before food") or warnings for the patient about the medication (e.g. "may cause drowsiness" or "avoid exposure of skin to direct sunlight or sunlamps").- Returns:
- An unmodifiable list containing immutable objects of type
CodeableConceptthat may be empty.
-
getPatientInstruction
public String getPatientInstruction()
Instructions in terms that are understood by the patient or consumer.- Returns:
- An immutable object of type
Stringthat may be null.
-
getTiming
public Timing getTiming()
When medication should be administered.- Returns:
- An immutable object of type
Timingthat may be null.
-
getAsNeeded
public Element getAsNeeded()
Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), or it indicates the precondition for taking the Medication (CodeableConcept).- Returns:
- An immutable object of type
Elementthat may be null.
-
getSite
public CodeableConcept getSite()
Body site to administer to.- Returns:
- An immutable object of type
CodeableConceptthat may be null.
-
getRoute
public CodeableConcept getRoute()
How drug should enter body.- Returns:
- An immutable object of type
CodeableConceptthat may be null.
-
getMethod
public CodeableConcept getMethod()
Technique for administering medication.- Returns:
- An immutable object of type
CodeableConceptthat may be null.
-
getDoseAndRate
public List<Dosage.DoseAndRate> getDoseAndRate()
The amount of medication administered.- Returns:
- An unmodifiable list containing immutable objects of type
Dosage.DoseAndRatethat may be empty.
-
getMaxDosePerPeriod
public Ratio getMaxDosePerPeriod()
Upper limit on medication per unit of time.- Returns:
- An immutable object of type
Ratiothat may be null.
-
getMaxDosePerAdministration
public SimpleQuantity getMaxDosePerAdministration()
Upper limit on medication per administration.- Returns:
- An immutable object of type
SimpleQuantitythat may be null.
-
getMaxDosePerLifetime
public SimpleQuantity getMaxDosePerLifetime()
Upper limit on medication per lifetime of the patient.- Returns:
- An immutable object of type
SimpleQuantitythat may be null.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildrenin classBackboneElement
-
accept
public void accept(String elementName, int elementIndex, Visitor visitor)
Description copied from interface:VisitableAccept a Visitor and invoke the appropriate visit methods. A typical implementation would look like this:if (visitor.preVisit(this)) { visitor.visitStart(elementName, elementIndex, this); if (visitor.visit(elementName, elementIndex, this)) { // visit children } visitor.visitEnd(elementName, elementIndex, this); visitor.postVisit(this); }- Specified by:
acceptin interfaceVisitable- Specified by:
acceptin classAbstractVisitable- Parameters:
elementName- the name of the element in the context of this visitelementIndex- the index of the element in a list or -1 if it is not contained within a Listvisitor- the visitor to use
-
toBuilder
public Dosage.Builder toBuilder()
Description copied from class:ElementCreate a new Builder from the contents of this Element- Specified by:
toBuilderin classBackboneElement
-
builder
public static Dosage.Builder builder()
-
-