
Package org.hl7.fhir.dstu3.model
Class Dosage
java.lang.Object
org.hl7.fhir.dstu3.model.Base
org.hl7.fhir.dstu3.model.Element
org.hl7.fhir.dstu3.model.Type
org.hl7.fhir.dstu3.model.Dosage
- All Implemented Interfaces:
- ca.uhn.fhir.model.api.IElement,- Serializable,- org.hl7.fhir.instance.model.api.IBase,- org.hl7.fhir.instance.model.api.IBaseDatatype,- org.hl7.fhir.instance.model.api.IBaseElement,- org.hl7.fhir.instance.model.api.IBaseHasExtensions,- org.hl7.fhir.instance.model.api.ICompositeType
Indicates how the medication is/was taken or should be taken by the patient.
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected List<CodeableConcept> Supplemental instruction - e.g.protected TypeIndicates 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).protected TypeAmount of medication per dose.protected SimpleQuantityUpper limit on medication per administration.protected SimpleQuantityUpper limit on medication per lifetime of the patient.protected RatioUpper limit on medication per unit of time.protected CodeableConceptTechnique for administering medication.protected StringTypeInstructions in terms that are understood by the patient or consumer.protected TypeAmount of medication per unit of time.protected CodeableConceptHow drug should enter body.protected IntegerTypeIndicates the order in which the dosage instructions should be applied or interpreted.protected CodeableConceptBody site to administer to.protected StringTypeFree text dosage instructions e.g.protected TimingWhen medication should be administered.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncopy()booleanequalsDeep(Base other_) booleanequalsShallow(Base other_) fhirType()getDose()getNamedProperty(int _hash, String _name, boolean _checkValid) Base[]getProperty(int hash, String name, boolean checkValid) getRate()getRoute()intgetSite()getText()String[]getTypesForProperty(int hash, String name) booleanbooleanbooleanbooleanbooleanhasDose()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanhasRate()booleanbooleanbooleanbooleanhasRoute()booleanbooleanbooleanhasSite()booleanhasText()booleanbooleanbooleanisEmpty()protected voidlistChildren(List<Property> children) makeProperty(int hash, String name) setAdditionalInstruction(List<CodeableConcept> theAdditionalInstruction) setAsNeeded(Type value) setMaxDosePerPeriod(Ratio value) setMethod(CodeableConcept value) setPatientInstruction(String value) setProperty(int hash, String name, Base value) setProperty(String name, Base value) setRoute(CodeableConcept value) setSequence(int value) setSequenceElement(IntegerType value) setSite(CodeableConcept value) setTextElement(StringType value) protected DosageMethods inherited from class org.hl7.fhir.dstu3.model.ElementaddExtension, addExtension, addExtension, copyValues, getExtension, getExtensionByUrl, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, setExtension, setId, setIdBase, setIdElementMethods inherited from class org.hl7.fhir.dstu3.model.BasecastToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isPrimitive, isResource, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINNMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hl7.fhir.instance.model.api.IBasegetFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserDataMethods inherited from interface org.hl7.fhir.instance.model.api.IBaseElementgetUserData, setUserData
- 
Field Details- 
sequenceIndicates the order in which the dosage instructions should be applied or interpreted.
- 
textFree text dosage instructions e.g. SIG.
- 
additionalInstructionSupplemental instruction - e.g. "with meals".
- 
patientInstructionInstructions in terms that are understood by the patient or consumer.
- 
timingWhen medication should be administered.
- 
asNeededIndicates 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).
- 
siteBody site to administer to.
- 
routeHow drug should enter body.
- 
methodTechnique for administering medication.
- 
doseAmount of medication per dose.
- 
maxDosePerPeriodUpper limit on medication per unit of time.
- 
maxDosePerAdministrationUpper limit on medication per administration.
- 
maxDosePerLifetimeUpper limit on medication per lifetime of the patient.
- 
rateAmount of medication per unit of time.
 
- 
- 
Constructor Details- 
Dosagepublic Dosage()Constructor
 
- 
- 
Method Details- 
getSequenceElement- Returns:
- sequence(Indicates the order in which the dosage instructions should be applied or interpreted.). This is the underlying object with id, value and extensions. The accessor "getSequence" gives direct access to the value
 
- 
hasSequenceElement
- 
hasSequence
- 
setSequenceElement- Parameters:
- value-- sequence(Indicates the order in which the dosage instructions should be applied or interpreted.). This is the underlying object with id, value and extensions. The accessor "getSequence" gives direct access to the value
 
- 
getSequence- Returns:
- Indicates the order in which the dosage instructions should be applied or interpreted.
 
- 
setSequence- Parameters:
- value- Indicates the order in which the dosage instructions should be applied or interpreted.
 
- 
getTextElement- Returns:
- text(Free text dosage instructions e.g. SIG.). This is the underlying object with id, value and extensions. The accessor "getText" gives direct access to the value
 
- 
hasTextElement
- 
hasText
- 
setTextElement- Parameters:
- value-- text(Free text dosage instructions e.g. SIG.). This is the underlying object with id, value and extensions. The accessor "getText" gives direct access to the value
 
- 
getText- Returns:
- Free text dosage instructions e.g. SIG.
 
- 
setText- Parameters:
- value- Free text dosage instructions e.g. SIG.
 
- 
getAdditionalInstruction- Returns:
- additionalInstruction(Supplemental instruction - e.g. "with meals".)
 
- 
setAdditionalInstruction- Returns:
- Returns a reference to thisfor easy method chaining
 
- 
hasAdditionalInstruction
- 
addAdditionalInstruction
- 
addAdditionalInstruction
- 
getAdditionalInstructionFirstRep- Returns:
- The first repetition of repeating field additionalInstruction, creating it if it does not already exist
 
- 
getPatientInstructionElement- Returns:
- patientInstruction(Instructions in terms that are understood by the patient or consumer.). This is the underlying object with id, value and extensions. The accessor "getPatientInstruction" gives direct access to the value
 
- 
hasPatientInstructionElement
- 
hasPatientInstruction
- 
setPatientInstructionElement- Parameters:
- value-- patientInstruction(Instructions in terms that are understood by the patient or consumer.). This is the underlying object with id, value and extensions. The accessor "getPatientInstruction" gives direct access to the value
 
- 
getPatientInstruction- Returns:
- Instructions in terms that are understood by the patient or consumer.
 
- 
setPatientInstruction- Parameters:
- value- Instructions in terms that are understood by the patient or consumer.
 
- 
getTiming- Returns:
- timing(When medication should be administered.)
 
- 
hasTiming
- 
setTiming- Parameters:
- value-- timing(When medication should be administered.)
 
- 
getAsNeeded- Returns:
- asNeeded(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).)
 
- 
getAsNeededBooleanType- Returns:
- asNeeded(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).)
- Throws:
- org.hl7.fhir.exceptions.FHIRException
 
- 
hasAsNeededBooleanType
- 
getAsNeededCodeableConcept- Returns:
- asNeeded(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).)
- Throws:
- org.hl7.fhir.exceptions.FHIRException
 
- 
hasAsNeededCodeableConcept
- 
hasAsNeeded
- 
setAsNeeded- Parameters:
- value-- asNeeded(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).)
- Throws:
- org.hl7.fhir.exceptions.FHIRFormatError
 
- 
getSite- Returns:
- site(Body site to administer to.)
 
- 
hasSite
- 
setSite- Parameters:
- value-- site(Body site to administer to.)
 
- 
getRoute- Returns:
- route(How drug should enter body.)
 
- 
hasRoute
- 
setRoute- Parameters:
- value-- route(How drug should enter body.)
 
- 
getMethod- Returns:
- method(Technique for administering medication.)
 
- 
hasMethod
- 
setMethod- Parameters:
- value-- method(Technique for administering medication.)
 
- 
getDose- Returns:
- dose(Amount of medication per dose.)
 
- 
getDoseRange- Returns:
- dose(Amount of medication per dose.)
- Throws:
- org.hl7.fhir.exceptions.FHIRException
 
- 
hasDoseRange
- 
getDoseSimpleQuantity- Returns:
- dose(Amount of medication per dose.)
- Throws:
- org.hl7.fhir.exceptions.FHIRException
 
- 
hasDoseSimpleQuantity
- 
hasDose
- 
setDose- Parameters:
- value-- dose(Amount of medication per dose.)
- Throws:
- org.hl7.fhir.exceptions.FHIRFormatError
 
- 
getMaxDosePerPeriod- Returns:
- maxDosePerPeriod(Upper limit on medication per unit of time.)
 
- 
hasMaxDosePerPeriod
- 
setMaxDosePerPeriod- Parameters:
- value-- maxDosePerPeriod(Upper limit on medication per unit of time.)
 
- 
getMaxDosePerAdministration- Returns:
- maxDosePerAdministration(Upper limit on medication per administration.)
 
- 
hasMaxDosePerAdministration
- 
setMaxDosePerAdministration- Parameters:
- value-- maxDosePerAdministration(Upper limit on medication per administration.)
 
- 
getMaxDosePerLifetime- Returns:
- maxDosePerLifetime(Upper limit on medication per lifetime of the patient.)
 
- 
hasMaxDosePerLifetime
- 
setMaxDosePerLifetime- Parameters:
- value-- maxDosePerLifetime(Upper limit on medication per lifetime of the patient.)
 
- 
getRate- Returns:
- rate(Amount of medication per unit of time.)
 
- 
getRateRatio- Returns:
- rate(Amount of medication per unit of time.)
- Throws:
- org.hl7.fhir.exceptions.FHIRException
 
- 
hasRateRatio
- 
getRateRange- Returns:
- rate(Amount of medication per unit of time.)
- Throws:
- org.hl7.fhir.exceptions.FHIRException
 
- 
hasRateRange
- 
getRateSimpleQuantity- Returns:
- rate(Amount of medication per unit of time.)
- Throws:
- org.hl7.fhir.exceptions.FHIRException
 
- 
hasRateSimpleQuantity
- 
hasRate
- 
setRate- Parameters:
- value-- rate(Amount of medication per unit of time.)
- Throws:
- org.hl7.fhir.exceptions.FHIRFormatError
 
- 
listChildren- Overrides:
- listChildrenin class- Element
 
- 
getNamedPropertypublic Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
- getNamedPropertyin class- Element
- Throws:
- org.hl7.fhir.exceptions.FHIRException
 
- 
getPropertypublic Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
- getPropertyin class- Element
- Throws:
- org.hl7.fhir.exceptions.FHIRException
 
- 
setPropertypublic Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
- setPropertyin class- Element
- Throws:
- org.hl7.fhir.exceptions.FHIRException
 
- 
setProperty- Overrides:
- setPropertyin class- Element
- Throws:
- org.hl7.fhir.exceptions.FHIRException
 
- 
makeProperty- Overrides:
- makePropertyin class- Element
- Throws:
- org.hl7.fhir.exceptions.FHIRException
 
- 
getTypesForPropertypublic String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
- getTypesForPropertyin class- Element
- Throws:
- org.hl7.fhir.exceptions.FHIRException
 
- 
addChild
- 
fhirType
- 
copy
- 
typedCopy
- 
equalsDeep- Overrides:
- equalsDeepin class- Element
 
- 
equalsShallow- Overrides:
- equalsShallowin class- Element
 
- 
isEmpty
 
-