public class Dosage extends Type implements ICompositeType
| Modifier and Type | Field and Description |
|---|---|
protected List<CodeableConcept> |
additionalInstruction
Supplemental instruction - e.g.
|
protected Type |
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).
|
protected Type |
dose
Amount of medication per dose.
|
protected SimpleQuantity |
maxDosePerAdministration
Upper limit on medication per administration.
|
protected SimpleQuantity |
maxDosePerLifetime
Upper limit on medication per lifetime of the patient.
|
protected Ratio |
maxDosePerPeriod
Upper limit on medication per unit of time.
|
protected CodeableConcept |
method
Technique for administering medication.
|
protected StringType |
patientInstruction
Instructions in terms that are understood by the patient or consumer.
|
protected Type |
rate
Amount of medication per unit of time.
|
protected CodeableConcept |
route
How drug should enter body.
|
protected IntegerType |
sequence
Indicates the order in which the dosage instructions should be applied or interpreted.
|
protected CodeableConcept |
site
Body site to administer to.
|
protected StringType |
text
Free text dosage instructions e.g.
|
protected Timing |
timing
When medication should be administered.
|
| Constructor and Description |
|---|
Dosage()
Constructor
|
addExtension, addExtension, addExtension, copyValues, getExtension, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, setExtension, setId, setIdBase, setIdElementcastToAddress, 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, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isMetadataBased, isPrimitive, isResource, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINNclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFormatCommentsPost, getFormatCommentsPre, hasFormatCommentprotected IntegerType sequence
protected StringType text
protected List<CodeableConcept> additionalInstruction
protected StringType patientInstruction
protected Type asNeeded
protected CodeableConcept site
protected CodeableConcept route
protected CodeableConcept method
protected Ratio maxDosePerPeriod
protected SimpleQuantity maxDosePerAdministration
protected SimpleQuantity maxDosePerLifetime
public Dosage()
public IntegerType getSequenceElement()
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 valuepublic boolean hasSequenceElement()
public boolean hasSequence()
public Dosage setSequenceElement(IntegerType value)
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 valuepublic int getSequence()
public Dosage setSequence(int value)
value - Indicates the order in which the dosage instructions should be applied or interpreted.public StringType getTextElement()
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 valuepublic boolean hasTextElement()
public boolean hasText()
public Dosage setTextElement(StringType value)
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 valuepublic Dosage setText(String value)
value - Free text dosage instructions e.g. SIG.public List<CodeableConcept> getAdditionalInstruction()
additionalInstruction (Supplemental instruction - e.g. "with meals".)public Dosage setAdditionalInstruction(List<CodeableConcept> theAdditionalInstruction)
this for easy method chainingpublic boolean hasAdditionalInstruction()
public CodeableConcept addAdditionalInstruction()
public Dosage addAdditionalInstruction(CodeableConcept t)
public CodeableConcept getAdditionalInstructionFirstRep()
additionalInstruction, creating it if it does not already existpublic StringType getPatientInstructionElement()
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 valuepublic boolean hasPatientInstructionElement()
public boolean hasPatientInstruction()
public Dosage setPatientInstructionElement(StringType value)
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 valuepublic String getPatientInstruction()
public Dosage setPatientInstruction(String value)
value - Instructions in terms that are understood by the patient or consumer.public boolean hasTiming()
public Dosage setTiming(Timing value)
value - timing (When medication should be administered.)public Type getAsNeeded()
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).)public BooleanType getAsNeededBooleanType() throws FHIRException
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).)FHIRExceptionpublic boolean hasAsNeededBooleanType()
public CodeableConcept getAsNeededCodeableConcept() throws FHIRException
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).)FHIRExceptionpublic boolean hasAsNeededCodeableConcept()
public boolean hasAsNeeded()
public Dosage setAsNeeded(Type value)
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).)public CodeableConcept getSite()
site (Body site to administer to.)public boolean hasSite()
public Dosage setSite(CodeableConcept value)
value - site (Body site to administer to.)public CodeableConcept getRoute()
route (How drug should enter body.)public boolean hasRoute()
public Dosage setRoute(CodeableConcept value)
value - route (How drug should enter body.)public CodeableConcept getMethod()
method (Technique for administering medication.)public boolean hasMethod()
public Dosage setMethod(CodeableConcept value)
value - method (Technique for administering medication.)public Range getDoseRange() throws FHIRException
dose (Amount of medication per dose.)FHIRExceptionpublic boolean hasDoseRange()
public SimpleQuantity getDoseSimpleQuantity() throws FHIRException
dose (Amount of medication per dose.)FHIRExceptionpublic boolean hasDoseSimpleQuantity()
public boolean hasDose()
public Ratio getMaxDosePerPeriod()
maxDosePerPeriod (Upper limit on medication per unit of time.)public boolean hasMaxDosePerPeriod()
public Dosage setMaxDosePerPeriod(Ratio value)
value - maxDosePerPeriod (Upper limit on medication per unit of time.)public SimpleQuantity getMaxDosePerAdministration()
maxDosePerAdministration (Upper limit on medication per administration.)public boolean hasMaxDosePerAdministration()
public Dosage setMaxDosePerAdministration(SimpleQuantity value)
value - maxDosePerAdministration (Upper limit on medication per administration.)public SimpleQuantity getMaxDosePerLifetime()
maxDosePerLifetime (Upper limit on medication per lifetime of the patient.)public boolean hasMaxDosePerLifetime()
public Dosage setMaxDosePerLifetime(SimpleQuantity value)
value - maxDosePerLifetime (Upper limit on medication per lifetime of the patient.)public Ratio getRateRatio() throws FHIRException
rate (Amount of medication per unit of time.)FHIRExceptionpublic boolean hasRateRatio()
public Range getRateRange() throws FHIRException
rate (Amount of medication per unit of time.)FHIRExceptionpublic boolean hasRateRange()
public SimpleQuantity getRateSimpleQuantity() throws FHIRException
rate (Amount of medication per unit of time.)FHIRExceptionpublic boolean hasRateSimpleQuantity()
public boolean hasRate()
public Dosage setRate(Type value)
value - rate (Amount of medication per unit of time.)protected void listChildren(List<Property> childrenList)
listChildren in class Elementpublic Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException
getProperty in class ElementFHIRExceptionpublic Base setProperty(int hash, String name, Base value) throws FHIRException
setProperty in class ElementFHIRExceptionpublic Base setProperty(String name, Base value) throws FHIRException
setProperty in class ElementFHIRExceptionpublic Base makeProperty(int hash, String name) throws FHIRException
makeProperty in class ElementFHIRExceptionpublic String[] getTypesForProperty(int hash, String name) throws FHIRException
getTypesForProperty in class ElementFHIRExceptionpublic Base addChild(String name) throws FHIRException
addChild in class ElementFHIRExceptionpublic boolean equalsDeep(Base other)
equalsDeep in class Elementpublic boolean equalsShallow(Base other)
equalsShallow in class ElementCopyright © 2014–2017 University Health Network. All rights reserved.