public class Dosage
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
Dosage.Builder
RecordBuilder for Dosage instances.
|
| Modifier and Type | Field and Description |
|---|---|
static org.apache.avro.Schema |
SCHEMA$ |
| Constructor and Description |
|---|
Dosage()
Default constructor.
|
Dosage(String id,
Integer sequence,
String text,
List<CodeableConcept> additionalInstruction,
String patientInstruction,
Timing timing,
ChoiceCodeableConceptBoolean asNeeded,
CodeableConcept site,
CodeableConcept route,
CodeableConcept method,
ChoiceQuantityRange dose,
Ratio maxDosePerPeriod,
Quantity maxDosePerAdministration,
Quantity maxDosePerLifetime,
ChoiceQuantityRangeRatio rate)
All-args constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.avro.message.BinaryMessageDecoder<Dosage> |
createDecoder(org.apache.avro.message.SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified
SchemaStore. |
static Dosage |
fromByteBuffer(ByteBuffer b)
Deserializes a Dosage from a ByteBuffer.
|
Object |
get(int field$) |
List<CodeableConcept> |
getAdditionalInstruction()
Gets the value of the 'additionalInstruction' field.
|
ChoiceCodeableConceptBoolean |
getAsNeeded()
Gets the value of the 'asNeeded' field.
|
static org.apache.avro.Schema |
getClassSchema() |
static org.apache.avro.message.BinaryMessageDecoder<Dosage> |
getDecoder()
Return the BinaryMessageDecoder instance used by this class.
|
ChoiceQuantityRange |
getDose()
Gets the value of the 'dose' field.
|
String |
getId()
Gets the value of the 'id' field.
|
Quantity |
getMaxDosePerAdministration()
Gets the value of the 'maxDosePerAdministration' field.
|
Quantity |
getMaxDosePerLifetime()
Gets the value of the 'maxDosePerLifetime' field.
|
Ratio |
getMaxDosePerPeriod()
Gets the value of the 'maxDosePerPeriod' field.
|
CodeableConcept |
getMethod()
Gets the value of the 'method' field.
|
String |
getPatientInstruction()
Gets the value of the 'patientInstruction' field.
|
ChoiceQuantityRangeRatio |
getRate()
Gets the value of the 'rate' field.
|
CodeableConcept |
getRoute()
Gets the value of the 'route' field.
|
org.apache.avro.Schema |
getSchema() |
Integer |
getSequence()
Gets the value of the 'sequence' field.
|
CodeableConcept |
getSite()
Gets the value of the 'site' field.
|
String |
getText()
Gets the value of the 'text' field.
|
Timing |
getTiming()
Gets the value of the 'timing' field.
|
static Dosage.Builder |
newBuilder()
Creates a new Dosage RecordBuilder.
|
static Dosage.Builder |
newBuilder(Dosage.Builder other)
Creates a new Dosage RecordBuilder by copying an existing Builder.
|
static Dosage.Builder |
newBuilder(Dosage other)
Creates a new Dosage RecordBuilder by copying an existing Dosage instance.
|
void |
put(int field$,
Object value$) |
void |
readExternal(ObjectInput in) |
void |
setAdditionalInstruction(List<CodeableConcept> value)
Sets the value of the 'additionalInstruction' field.
|
void |
setAsNeeded(ChoiceCodeableConceptBoolean value)
Sets the value of the 'asNeeded' field.
|
void |
setDose(ChoiceQuantityRange value)
Sets the value of the 'dose' field.
|
void |
setId(String value)
Sets the value of the 'id' field.
|
void |
setMaxDosePerAdministration(Quantity value)
Sets the value of the 'maxDosePerAdministration' field.
|
void |
setMaxDosePerLifetime(Quantity value)
Sets the value of the 'maxDosePerLifetime' field.
|
void |
setMaxDosePerPeriod(Ratio value)
Sets the value of the 'maxDosePerPeriod' field.
|
void |
setMethod(CodeableConcept value)
Sets the value of the 'method' field.
|
void |
setPatientInstruction(String value)
Sets the value of the 'patientInstruction' field.
|
void |
setRate(ChoiceQuantityRangeRatio value)
Sets the value of the 'rate' field.
|
void |
setRoute(CodeableConcept value)
Sets the value of the 'route' field.
|
void |
setSequence(Integer value)
Sets the value of the 'sequence' field.
|
void |
setSite(CodeableConcept value)
Sets the value of the 'site' field.
|
void |
setText(String value)
Sets the value of the 'text' field.
|
void |
setTiming(Timing value)
Sets the value of the 'timing' field.
|
ByteBuffer |
toByteBuffer()
Serializes this Dosage to a ByteBuffer.
|
void |
writeExternal(ObjectOutput out) |
public Dosage()
newBuilder().public Dosage(String id, Integer sequence, String text, List<CodeableConcept> additionalInstruction, String patientInstruction, Timing timing, ChoiceCodeableConceptBoolean asNeeded, CodeableConcept site, CodeableConcept route, CodeableConcept method, ChoiceQuantityRange dose, Ratio maxDosePerPeriod, Quantity maxDosePerAdministration, Quantity maxDosePerLifetime, ChoiceQuantityRangeRatio rate)
id - Field for FHIR property idsequence - Field for FHIR property sequencetext - Field for FHIR property textadditionalInstruction - Field for FHIR property additionalInstructionpatientInstruction - Field for FHIR property patientInstructiontiming - Field for FHIR property timingasNeeded - Field for FHIR property asNeededsite - Field for FHIR property siteroute - Field for FHIR property routemethod - Field for FHIR property methoddose - Field for FHIR property dosemaxDosePerPeriod - Field for FHIR property maxDosePerPeriodmaxDosePerAdministration - Field for FHIR property maxDosePerAdministrationmaxDosePerLifetime - Field for FHIR property maxDosePerLifetimerate - Field for FHIR property ratepublic static org.apache.avro.Schema getClassSchema()
public static org.apache.avro.message.BinaryMessageDecoder<Dosage> getDecoder()
public static org.apache.avro.message.BinaryMessageDecoder<Dosage> createDecoder(org.apache.avro.message.SchemaStore resolver)
SchemaStore.resolver - a SchemaStore used to find schemas by fingerprintpublic ByteBuffer toByteBuffer() throws IOException
IOExceptionpublic static Dosage fromByteBuffer(ByteBuffer b) throws IOException
IOExceptionpublic org.apache.avro.Schema getSchema()
getSchema in interface org.apache.avro.generic.GenericContainergetSchema in class org.apache.avro.specific.SpecificRecordBasepublic Object get(int field$)
get in interface org.apache.avro.generic.IndexedRecordget in class org.apache.avro.specific.SpecificRecordBasepublic void put(int field$,
Object value$)
put in interface org.apache.avro.generic.IndexedRecordput in class org.apache.avro.specific.SpecificRecordBasepublic String getId()
public void setId(String value)
value - the value to set.public Integer getSequence()
public void setSequence(Integer value)
value - the value to set.public String getText()
public void setText(String value)
value - the value to set.public List<CodeableConcept> getAdditionalInstruction()
public void setAdditionalInstruction(List<CodeableConcept> value)
value - the value to set.public String getPatientInstruction()
public void setPatientInstruction(String value)
value - the value to set.public Timing getTiming()
public void setTiming(Timing value)
value - the value to set.public ChoiceCodeableConceptBoolean getAsNeeded()
public void setAsNeeded(ChoiceCodeableConceptBoolean value)
value - the value to set.public CodeableConcept getSite()
public void setSite(CodeableConcept value)
value - the value to set.public CodeableConcept getRoute()
public void setRoute(CodeableConcept value)
value - the value to set.public CodeableConcept getMethod()
public void setMethod(CodeableConcept value)
value - the value to set.public ChoiceQuantityRange getDose()
public void setDose(ChoiceQuantityRange value)
value - the value to set.public Ratio getMaxDosePerPeriod()
public void setMaxDosePerPeriod(Ratio value)
value - the value to set.public Quantity getMaxDosePerAdministration()
public void setMaxDosePerAdministration(Quantity value)
value - the value to set.public Quantity getMaxDosePerLifetime()
public void setMaxDosePerLifetime(Quantity value)
value - the value to set.public ChoiceQuantityRangeRatio getRate()
public void setRate(ChoiceQuantityRangeRatio value)
value - the value to set.public static Dosage.Builder newBuilder()
public static Dosage.Builder newBuilder(Dosage.Builder other)
other - The existing builder to copy.public static Dosage.Builder newBuilder(Dosage other)
other - The existing instance to copy.public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class org.apache.avro.specific.SpecificRecordBaseIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizablereadExternal in class org.apache.avro.specific.SpecificRecordBaseIOExceptionCopyright © 2020. All rights reserved.