public class MedicationRequestDispenseRequest
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
MedicationRequestDispenseRequest.Builder
RecordBuilder for MedicationRequestDispenseRequest instances.
|
| Modifier and Type | Field and Description |
|---|---|
static org.apache.avro.Schema |
SCHEMA$ |
| Constructor and Description |
|---|
MedicationRequestDispenseRequest()
Default constructor.
|
MedicationRequestDispenseRequest(String id,
Period validityPeriod,
Integer numberOfRepeatsAllowed,
Quantity quantity,
Duration expectedSupplyDuration,
OrganizationReference performer)
All-args constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.avro.message.BinaryMessageDecoder<MedicationRequestDispenseRequest> |
createDecoder(org.apache.avro.message.SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified
SchemaStore. |
static MedicationRequestDispenseRequest |
fromByteBuffer(ByteBuffer b)
Deserializes a MedicationRequestDispenseRequest from a ByteBuffer.
|
Object |
get(int field$) |
static org.apache.avro.Schema |
getClassSchema() |
static org.apache.avro.message.BinaryMessageDecoder<MedicationRequestDispenseRequest> |
getDecoder()
Return the BinaryMessageDecoder instance used by this class.
|
Duration |
getExpectedSupplyDuration()
Gets the value of the 'expectedSupplyDuration' field.
|
String |
getId()
Gets the value of the 'id' field.
|
Integer |
getNumberOfRepeatsAllowed()
Gets the value of the 'numberOfRepeatsAllowed' field.
|
OrganizationReference |
getPerformer()
Gets the value of the 'performer' field.
|
Quantity |
getQuantity()
Gets the value of the 'quantity' field.
|
org.apache.avro.Schema |
getSchema() |
Period |
getValidityPeriod()
Gets the value of the 'validityPeriod' field.
|
static MedicationRequestDispenseRequest.Builder |
newBuilder()
Creates a new MedicationRequestDispenseRequest RecordBuilder.
|
static MedicationRequestDispenseRequest.Builder |
newBuilder(MedicationRequestDispenseRequest.Builder other)
Creates a new MedicationRequestDispenseRequest RecordBuilder by copying an existing Builder.
|
static MedicationRequestDispenseRequest.Builder |
newBuilder(MedicationRequestDispenseRequest other)
Creates a new MedicationRequestDispenseRequest RecordBuilder by copying an existing MedicationRequestDispenseRequest instance.
|
void |
put(int field$,
Object value$) |
void |
readExternal(ObjectInput in) |
void |
setExpectedSupplyDuration(Duration value)
Sets the value of the 'expectedSupplyDuration' field.
|
void |
setId(String value)
Sets the value of the 'id' field.
|
void |
setNumberOfRepeatsAllowed(Integer value)
Sets the value of the 'numberOfRepeatsAllowed' field.
|
void |
setPerformer(OrganizationReference value)
Sets the value of the 'performer' field.
|
void |
setQuantity(Quantity value)
Sets the value of the 'quantity' field.
|
void |
setValidityPeriod(Period value)
Sets the value of the 'validityPeriod' field.
|
ByteBuffer |
toByteBuffer()
Serializes this MedicationRequestDispenseRequest to a ByteBuffer.
|
void |
writeExternal(ObjectOutput out) |
public MedicationRequestDispenseRequest()
newBuilder().public MedicationRequestDispenseRequest(String id, Period validityPeriod, Integer numberOfRepeatsAllowed, Quantity quantity, Duration expectedSupplyDuration, OrganizationReference performer)
id - Field for FHIR property idvalidityPeriod - Field for FHIR property validityPeriodnumberOfRepeatsAllowed - Field for FHIR property numberOfRepeatsAllowedquantity - Field for FHIR property quantityexpectedSupplyDuration - Field for FHIR property expectedSupplyDurationperformer - Field for FHIR property performerpublic static org.apache.avro.Schema getClassSchema()
public static org.apache.avro.message.BinaryMessageDecoder<MedicationRequestDispenseRequest> getDecoder()
public static org.apache.avro.message.BinaryMessageDecoder<MedicationRequestDispenseRequest> createDecoder(org.apache.avro.message.SchemaStore resolver)
SchemaStore.resolver - a SchemaStore used to find schemas by fingerprintpublic ByteBuffer toByteBuffer() throws IOException
IOExceptionpublic static MedicationRequestDispenseRequest 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 Period getValidityPeriod()
public void setValidityPeriod(Period value)
value - the value to set.public Integer getNumberOfRepeatsAllowed()
public void setNumberOfRepeatsAllowed(Integer value)
value - the value to set.public Quantity getQuantity()
public void setQuantity(Quantity value)
value - the value to set.public Duration getExpectedSupplyDuration()
public void setExpectedSupplyDuration(Duration value)
value - the value to set.public OrganizationReference getPerformer()
public void setPerformer(OrganizationReference value)
value - the value to set.public static MedicationRequestDispenseRequest.Builder newBuilder()
public static MedicationRequestDispenseRequest.Builder newBuilder(MedicationRequestDispenseRequest.Builder other)
other - The existing builder to copy.public static MedicationRequestDispenseRequest.Builder newBuilder(MedicationRequestDispenseRequest 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.