Class MedicationAdministration
- java.lang.Object
-
- org.hl7.fhir.Resource
-
- org.hl7.fhir.DomainResource
-
- org.hl7.fhir.MedicationAdministration
-
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
public class MedicationAdministration extends DomainResource implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
If the element is present, it must have either a @value, an @id, or extensionsJava class for MedicationAdministration complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="MedicationAdministration"> <complexContent> <extension base="{http://hl7.org/fhir}DomainResource"> <sequence> <element name="identifier" type="{http://hl7.org/fhir}Identifier" maxOccurs="unbounded" minOccurs="0"/> <element name="status" type="{http://hl7.org/fhir}MedicationAdministrationStatus"/> <choice> <element name="medicationCodeableConcept" type="{http://hl7.org/fhir}CodeableConcept"/> <element name="medicationReference" type="{http://hl7.org/fhir}Reference"/> </choice> <element name="patient" type="{http://hl7.org/fhir}Reference"/> <element name="encounter" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> <choice> <element name="effectiveTimeDateTime" type="{http://hl7.org/fhir}dateTime"/> <element name="effectiveTimePeriod" type="{http://hl7.org/fhir}Period"/> </choice> <element name="practitioner" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> <element name="prescription" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> <element name="wasNotGiven" type="{http://hl7.org/fhir}boolean" minOccurs="0"/> <element name="reasonNotGiven" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/> <element name="reasonGiven" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/> <element name="device" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/> <element name="note" type="{http://hl7.org/fhir}Annotation" maxOccurs="unbounded" minOccurs="0"/> <element name="dosage" type="{http://hl7.org/fhir}MedicationAdministration.Dosage" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<Reference>deviceprotected MedicationAdministrationDosagedosageprotected DateTimeeffectiveTimeDateTimeprotected PeriodeffectiveTimePeriodprotected Referenceencounterprotected java.util.List<Identifier>identifierprotected CodeableConceptmedicationCodeableConceptprotected ReferencemedicationReferenceprotected java.util.List<Annotation>noteprotected Referencepatientprotected Referencepractitionerprotected Referenceprescriptionprotected java.util.List<CodeableConcept>reasonGivenprotected java.util.List<CodeableConcept>reasonNotGivenprotected MedicationAdministrationStatusstatusprotected BooleanwasNotGiven-
Fields inherited from class org.hl7.fhir.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class org.hl7.fhir.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description MedicationAdministration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringBuilderappend(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)java.lang.StringBuilderappendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)booleanequals(java.lang.Object object)booleanequals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)java.util.List<Reference>getDevice()Gets the value of the device property.MedicationAdministrationDosagegetDosage()Gets the value of the dosage property.DateTimegetEffectiveTimeDateTime()Gets the value of the effectiveTimeDateTime property.PeriodgetEffectiveTimePeriod()Gets the value of the effectiveTimePeriod property.ReferencegetEncounter()Gets the value of the encounter property.java.util.List<Identifier>getIdentifier()Gets the value of the identifier property.CodeableConceptgetMedicationCodeableConcept()Gets the value of the medicationCodeableConcept property.ReferencegetMedicationReference()Gets the value of the medicationReference property.java.util.List<Annotation>getNote()Gets the value of the note property.ReferencegetPatient()Gets the value of the patient property.ReferencegetPractitioner()Gets the value of the practitioner property.ReferencegetPrescription()Gets the value of the prescription property.java.util.List<CodeableConcept>getReasonGiven()Gets the value of the reasonGiven property.java.util.List<CodeableConcept>getReasonNotGiven()Gets the value of the reasonNotGiven property.MedicationAdministrationStatusgetStatus()Gets the value of the status property.BooleangetWasNotGiven()Gets the value of the wasNotGiven property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetDosage(MedicationAdministrationDosage value)Sets the value of the dosage property.voidsetEffectiveTimeDateTime(DateTime value)Sets the value of the effectiveTimeDateTime property.voidsetEffectiveTimePeriod(Period value)Sets the value of the effectiveTimePeriod property.voidsetEncounter(Reference value)Sets the value of the encounter property.voidsetMedicationCodeableConcept(CodeableConcept value)Sets the value of the medicationCodeableConcept property.voidsetMedicationReference(Reference value)Sets the value of the medicationReference property.voidsetPatient(Reference value)Sets the value of the patient property.voidsetPractitioner(Reference value)Sets the value of the practitioner property.voidsetPrescription(Reference value)Sets the value of the prescription property.voidsetStatus(MedicationAdministrationStatus value)Sets the value of the status property.voidsetWasNotGiven(Boolean value)Sets the value of the wasNotGiven property.java.lang.StringtoString()MedicationAdministrationwithContained(java.util.Collection<ResourceContainer> values)MedicationAdministrationwithContained(ResourceContainer... values)MedicationAdministrationwithDevice(java.util.Collection<Reference> values)MedicationAdministrationwithDevice(Reference... values)MedicationAdministrationwithDosage(MedicationAdministrationDosage value)MedicationAdministrationwithEffectiveTimeDateTime(DateTime value)MedicationAdministrationwithEffectiveTimePeriod(Period value)MedicationAdministrationwithEncounter(Reference value)MedicationAdministrationwithExtension(java.util.Collection<Extension> values)MedicationAdministrationwithExtension(Extension... values)MedicationAdministrationwithId(Id value)MedicationAdministrationwithIdentifier(java.util.Collection<Identifier> values)MedicationAdministrationwithIdentifier(Identifier... values)MedicationAdministrationwithImplicitRules(Uri value)MedicationAdministrationwithLanguage(Code value)MedicationAdministrationwithMedicationCodeableConcept(CodeableConcept value)MedicationAdministrationwithMedicationReference(Reference value)MedicationAdministrationwithMeta(Meta value)MedicationAdministrationwithModifierExtension(java.util.Collection<Extension> values)MedicationAdministrationwithModifierExtension(Extension... values)MedicationAdministrationwithNote(java.util.Collection<Annotation> values)MedicationAdministrationwithNote(Annotation... values)MedicationAdministrationwithPatient(Reference value)MedicationAdministrationwithPractitioner(Reference value)MedicationAdministrationwithPrescription(Reference value)MedicationAdministrationwithReasonGiven(java.util.Collection<CodeableConcept> values)MedicationAdministrationwithReasonGiven(CodeableConcept... values)MedicationAdministrationwithReasonNotGiven(java.util.Collection<CodeableConcept> values)MedicationAdministrationwithReasonNotGiven(CodeableConcept... values)MedicationAdministrationwithStatus(MedicationAdministrationStatus value)MedicationAdministrationwithText(Narrative value)MedicationAdministrationwithWasNotGiven(Boolean value)-
Methods inherited from class org.hl7.fhir.DomainResource
getContained, getExtension, getModifierExtension, getText, setText
-
Methods inherited from class org.hl7.fhir.Resource
getId, getImplicitRules, getLanguage, getMeta, setId, setImplicitRules, setLanguage, setMeta
-
-
-
-
Field Detail
-
identifier
protected java.util.List<Identifier> identifier
-
status
protected MedicationAdministrationStatus status
-
medicationCodeableConcept
protected CodeableConcept medicationCodeableConcept
-
medicationReference
protected Reference medicationReference
-
patient
protected Reference patient
-
encounter
protected Reference encounter
-
effectiveTimeDateTime
protected DateTime effectiveTimeDateTime
-
effectiveTimePeriod
protected Period effectiveTimePeriod
-
practitioner
protected Reference practitioner
-
prescription
protected Reference prescription
-
wasNotGiven
protected Boolean wasNotGiven
-
reasonNotGiven
protected java.util.List<CodeableConcept> reasonNotGiven
-
reasonGiven
protected java.util.List<CodeableConcept> reasonGiven
-
device
protected java.util.List<Reference> device
-
note
protected java.util.List<Annotation> note
-
dosage
protected MedicationAdministrationDosage dosage
-
-
Method Detail
-
getIdentifier
public java.util.List<Identifier> getIdentifier()
Gets the value of the identifier property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the identifier property.For example, to add a new item, do as follows:
getIdentifier().add(newItem);Objects of the following type(s) are allowed in the list
Identifier
-
getStatus
public MedicationAdministrationStatus getStatus()
Gets the value of the status property.- Returns:
- possible object is
MedicationAdministrationStatus
-
setStatus
public void setStatus(MedicationAdministrationStatus value)
Sets the value of the status property.- Parameters:
value- allowed object isMedicationAdministrationStatus
-
getMedicationCodeableConcept
public CodeableConcept getMedicationCodeableConcept()
Gets the value of the medicationCodeableConcept property.- Returns:
- possible object is
CodeableConcept
-
setMedicationCodeableConcept
public void setMedicationCodeableConcept(CodeableConcept value)
Sets the value of the medicationCodeableConcept property.- Parameters:
value- allowed object isCodeableConcept
-
getMedicationReference
public Reference getMedicationReference()
Gets the value of the medicationReference property.- Returns:
- possible object is
Reference
-
setMedicationReference
public void setMedicationReference(Reference value)
Sets the value of the medicationReference property.- Parameters:
value- allowed object isReference
-
getPatient
public Reference getPatient()
Gets the value of the patient property.- Returns:
- possible object is
Reference
-
setPatient
public void setPatient(Reference value)
Sets the value of the patient property.- Parameters:
value- allowed object isReference
-
getEncounter
public Reference getEncounter()
Gets the value of the encounter property.- Returns:
- possible object is
Reference
-
setEncounter
public void setEncounter(Reference value)
Sets the value of the encounter property.- Parameters:
value- allowed object isReference
-
getEffectiveTimeDateTime
public DateTime getEffectiveTimeDateTime()
Gets the value of the effectiveTimeDateTime property.- Returns:
- possible object is
DateTime
-
setEffectiveTimeDateTime
public void setEffectiveTimeDateTime(DateTime value)
Sets the value of the effectiveTimeDateTime property.- Parameters:
value- allowed object isDateTime
-
getEffectiveTimePeriod
public Period getEffectiveTimePeriod()
Gets the value of the effectiveTimePeriod property.- Returns:
- possible object is
Period
-
setEffectiveTimePeriod
public void setEffectiveTimePeriod(Period value)
Sets the value of the effectiveTimePeriod property.- Parameters:
value- allowed object isPeriod
-
getPractitioner
public Reference getPractitioner()
Gets the value of the practitioner property.- Returns:
- possible object is
Reference
-
setPractitioner
public void setPractitioner(Reference value)
Sets the value of the practitioner property.- Parameters:
value- allowed object isReference
-
getPrescription
public Reference getPrescription()
Gets the value of the prescription property.- Returns:
- possible object is
Reference
-
setPrescription
public void setPrescription(Reference value)
Sets the value of the prescription property.- Parameters:
value- allowed object isReference
-
getWasNotGiven
public Boolean getWasNotGiven()
Gets the value of the wasNotGiven property.- Returns:
- possible object is
Boolean
-
setWasNotGiven
public void setWasNotGiven(Boolean value)
Sets the value of the wasNotGiven property.- Parameters:
value- allowed object isBoolean
-
getReasonNotGiven
public java.util.List<CodeableConcept> getReasonNotGiven()
Gets the value of the reasonNotGiven property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the reasonNotGiven property.For example, to add a new item, do as follows:
getReasonNotGiven().add(newItem);Objects of the following type(s) are allowed in the list
CodeableConcept
-
getReasonGiven
public java.util.List<CodeableConcept> getReasonGiven()
Gets the value of the reasonGiven property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the reasonGiven property.For example, to add a new item, do as follows:
getReasonGiven().add(newItem);Objects of the following type(s) are allowed in the list
CodeableConcept
-
getDevice
public java.util.List<Reference> getDevice()
Gets the value of the device property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the device property.For example, to add a new item, do as follows:
getDevice().add(newItem);Objects of the following type(s) are allowed in the list
Reference
-
getNote
public java.util.List<Annotation> getNote()
Gets the value of the note property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the note property.For example, to add a new item, do as follows:
getNote().add(newItem);Objects of the following type(s) are allowed in the list
Annotation
-
getDosage
public MedicationAdministrationDosage getDosage()
Gets the value of the dosage property.- Returns:
- possible object is
MedicationAdministrationDosage
-
setDosage
public void setDosage(MedicationAdministrationDosage value)
Sets the value of the dosage property.- Parameters:
value- allowed object isMedicationAdministrationDosage
-
withIdentifier
public MedicationAdministration withIdentifier(Identifier... values)
-
withIdentifier
public MedicationAdministration withIdentifier(java.util.Collection<Identifier> values)
-
withStatus
public MedicationAdministration withStatus(MedicationAdministrationStatus value)
-
withMedicationCodeableConcept
public MedicationAdministration withMedicationCodeableConcept(CodeableConcept value)
-
withMedicationReference
public MedicationAdministration withMedicationReference(Reference value)
-
withPatient
public MedicationAdministration withPatient(Reference value)
-
withEncounter
public MedicationAdministration withEncounter(Reference value)
-
withEffectiveTimeDateTime
public MedicationAdministration withEffectiveTimeDateTime(DateTime value)
-
withEffectiveTimePeriod
public MedicationAdministration withEffectiveTimePeriod(Period value)
-
withPractitioner
public MedicationAdministration withPractitioner(Reference value)
-
withPrescription
public MedicationAdministration withPrescription(Reference value)
-
withWasNotGiven
public MedicationAdministration withWasNotGiven(Boolean value)
-
withReasonNotGiven
public MedicationAdministration withReasonNotGiven(CodeableConcept... values)
-
withReasonNotGiven
public MedicationAdministration withReasonNotGiven(java.util.Collection<CodeableConcept> values)
-
withReasonGiven
public MedicationAdministration withReasonGiven(CodeableConcept... values)
-
withReasonGiven
public MedicationAdministration withReasonGiven(java.util.Collection<CodeableConcept> values)
-
withDevice
public MedicationAdministration withDevice(Reference... values)
-
withDevice
public MedicationAdministration withDevice(java.util.Collection<Reference> values)
-
withNote
public MedicationAdministration withNote(Annotation... values)
-
withNote
public MedicationAdministration withNote(java.util.Collection<Annotation> values)
-
withDosage
public MedicationAdministration withDosage(MedicationAdministrationDosage value)
-
withText
public MedicationAdministration withText(Narrative value)
- Overrides:
withTextin classDomainResource
-
withContained
public MedicationAdministration withContained(ResourceContainer... values)
- Overrides:
withContainedin classDomainResource
-
withContained
public MedicationAdministration withContained(java.util.Collection<ResourceContainer> values)
- Overrides:
withContainedin classDomainResource
-
withExtension
public MedicationAdministration withExtension(Extension... values)
- Overrides:
withExtensionin classDomainResource
-
withExtension
public MedicationAdministration withExtension(java.util.Collection<Extension> values)
- Overrides:
withExtensionin classDomainResource
-
withModifierExtension
public MedicationAdministration withModifierExtension(Extension... values)
- Overrides:
withModifierExtensionin classDomainResource
-
withModifierExtension
public MedicationAdministration withModifierExtension(java.util.Collection<Extension> values)
- Overrides:
withModifierExtensionin classDomainResource
-
withId
public MedicationAdministration withId(Id value)
- Overrides:
withIdin classDomainResource
-
withMeta
public MedicationAdministration withMeta(Meta value)
- Overrides:
withMetain classDomainResource
-
withImplicitRules
public MedicationAdministration withImplicitRules(Uri value)
- Overrides:
withImplicitRulesin classDomainResource
-
withLanguage
public MedicationAdministration withLanguage(Code value)
- Overrides:
withLanguagein classDomainResource
-
equals
public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)- Specified by:
equalsin interfaceorg.jvnet.jaxb2_commons.lang.Equals2- Overrides:
equalsin classDomainResource
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classDomainResource
-
hashCode
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)- Specified by:
hashCodein interfaceorg.jvnet.jaxb2_commons.lang.HashCode2- Overrides:
hashCodein classDomainResource
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDomainResource
-
toString
public java.lang.String toString()
- Overrides:
toStringin classDomainResource
-
append
public java.lang.StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)- Specified by:
appendin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendin classDomainResource
-
appendFields
public java.lang.StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)- Specified by:
appendFieldsin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendFieldsin classDomainResource
-
-