Package com.ibm.fhir.model.resource
Class MedicationAdministration.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.resource.MedicationAdministration.Dosage
-
- All Implemented Interfaces:
Visitable
- Enclosing class:
- MedicationAdministration
public static class MedicationAdministration.Dosage extends BackboneElement
Describes the medication dosage information details e.g. dose, rate, site, route, etc.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMedicationAdministration.Dosage.Builder
-
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(java.lang.String elementName, int elementIndex, Visitor visitor)Accept a Visitor and invoke the appropriate visit methods.static MedicationAdministration.Dosage.Builderbuilder()booleanequals(java.lang.Object obj)SimpleQuantitygetDose()The amount of the medication given at one administration event.CodeableConceptgetMethod()A coded value indicating the method by which the medication is intended to be or was introduced into or on the body.ElementgetRate()Identifies the speed with which the medication was or will be introduced into the patient.CodeableConceptgetRoute()A code specifying the route or physiological path of administration of a therapeutic agent into or onto the patient.CodeableConceptgetSite()A coded specification of the anatomic site where the medication first entered the body.StringgetText()Free text dosage can be used for cases where the dosage administered is too complex to code.booleanhasChildren()inthashCode()MedicationAdministration.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
-
getText
public String getText()
Free text dosage can be used for cases where the dosage administered is too complex to code. When coded dosage is present, the free text dosage may still be present for display to humans. The dosage instructions should reflect the dosage of the medication that was administered.- Returns:
- An immutable object of type
Stringthat may be null.
-
getSite
public CodeableConcept getSite()
A coded specification of the anatomic site where the medication first entered the body. For example, "left arm".- Returns:
- An immutable object of type
CodeableConceptthat may be null.
-
getRoute
public CodeableConcept getRoute()
A code specifying the route or physiological path of administration of a therapeutic agent into or onto the patient. For example, topical, intravenous, etc.- Returns:
- An immutable object of type
CodeableConceptthat may be null.
-
getMethod
public CodeableConcept getMethod()
A coded value indicating the method by which the medication is intended to be or was introduced into or on the body. This attribute will most often NOT be populated. It is most commonly used for injections. For example, Slow Push, Deep IV.- Returns:
- An immutable object of type
CodeableConceptthat may be null.
-
getDose
public SimpleQuantity getDose()
The amount of the medication given at one administration event. Use this value when the administration is essentially an instantaneous event such as a swallowing a tablet or giving an injection.- Returns:
- An immutable object of type
SimpleQuantitythat may be null.
-
getRate
public Element getRate()
Identifies the speed with which the medication was or will be introduced into the patient. Typically, the rate for an infusion e.g. 100 ml per 1 hour or 100 ml/hr. May also be expressed as a rate per unit of time, e.g. 500 ml per 2 hours. Other examples: 200 mcg/min or 200 mcg/1 minute; 1 liter/8 hours.- Returns:
- An immutable object of type
RatioorSimpleQuantitythat may be null.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildrenin classBackboneElement
-
accept
public void accept(java.lang.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
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toBuilder
public MedicationAdministration.Dosage.Builder toBuilder()
Description copied from class:ElementCreate a new Builder from the contents of this Element- Specified by:
toBuilderin classBackboneElement
-
builder
public static MedicationAdministration.Dosage.Builder builder()
-
-