public class Medication
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
Medication.Builder
RecordBuilder for Medication instances.
|
| Modifier and Type | Field and Description |
|---|---|
static org.apache.avro.Schema |
SCHEMA$ |
| Constructor and Description |
|---|
Medication()
Default constructor.
|
Medication(String id,
Meta meta,
String implicitRules,
String language,
Narrative text,
List<Resource> contained,
CodeableConcept code,
String status,
Boolean isBrand,
Boolean isOverTheCounter,
OrganizationReference manufacturer,
CodeableConcept form,
List<MedicationIngredient> ingredient,
MedicationPackage package$,
List<Attachment> image)
All-args constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.avro.message.BinaryMessageDecoder<Medication> |
createDecoder(org.apache.avro.message.SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified
SchemaStore. |
static Medication |
fromByteBuffer(ByteBuffer b)
Deserializes a Medication from a ByteBuffer.
|
Object |
get(int field$) |
static org.apache.avro.Schema |
getClassSchema() |
CodeableConcept |
getCode()
Gets the value of the 'code' field.
|
List<Resource> |
getContained()
Gets the value of the 'contained' field.
|
static org.apache.avro.message.BinaryMessageDecoder<Medication> |
getDecoder()
Return the BinaryMessageDecoder instance used by this class.
|
CodeableConcept |
getForm()
Gets the value of the 'form' field.
|
String |
getId()
Gets the value of the 'id' field.
|
List<Attachment> |
getImage()
Gets the value of the 'image' field.
|
String |
getImplicitRules()
Gets the value of the 'implicitRules' field.
|
List<MedicationIngredient> |
getIngredient()
Gets the value of the 'ingredient' field.
|
Boolean |
getIsBrand()
Gets the value of the 'isBrand' field.
|
Boolean |
getIsOverTheCounter()
Gets the value of the 'isOverTheCounter' field.
|
String |
getLanguage()
Gets the value of the 'language' field.
|
OrganizationReference |
getManufacturer()
Gets the value of the 'manufacturer' field.
|
Meta |
getMeta()
Gets the value of the 'meta' field.
|
MedicationPackage |
getPackage$()
Gets the value of the 'package$' field.
|
org.apache.avro.Schema |
getSchema() |
String |
getStatus()
Gets the value of the 'status' field.
|
Narrative |
getText()
Gets the value of the 'text' field.
|
static Medication.Builder |
newBuilder()
Creates a new Medication RecordBuilder.
|
static Medication.Builder |
newBuilder(Medication.Builder other)
Creates a new Medication RecordBuilder by copying an existing Builder.
|
static Medication.Builder |
newBuilder(Medication other)
Creates a new Medication RecordBuilder by copying an existing Medication instance.
|
void |
put(int field$,
Object value$) |
void |
readExternal(ObjectInput in) |
void |
setCode(CodeableConcept value)
Sets the value of the 'code' field.
|
void |
setContained(List<Resource> value)
Sets the value of the 'contained' field.
|
void |
setForm(CodeableConcept value)
Sets the value of the 'form' field.
|
void |
setId(String value)
Sets the value of the 'id' field.
|
void |
setImage(List<Attachment> value)
Sets the value of the 'image' field.
|
void |
setImplicitRules(String value)
Sets the value of the 'implicitRules' field.
|
void |
setIngredient(List<MedicationIngredient> value)
Sets the value of the 'ingredient' field.
|
void |
setIsBrand(Boolean value)
Sets the value of the 'isBrand' field.
|
void |
setIsOverTheCounter(Boolean value)
Sets the value of the 'isOverTheCounter' field.
|
void |
setLanguage(String value)
Sets the value of the 'language' field.
|
void |
setManufacturer(OrganizationReference value)
Sets the value of the 'manufacturer' field.
|
void |
setMeta(Meta value)
Sets the value of the 'meta' field.
|
void |
setPackage$(MedicationPackage value)
Sets the value of the 'package$' field.
|
void |
setStatus(String value)
Sets the value of the 'status' field.
|
void |
setText(Narrative value)
Sets the value of the 'text' field.
|
ByteBuffer |
toByteBuffer()
Serializes this Medication to a ByteBuffer.
|
void |
writeExternal(ObjectOutput out) |
public Medication()
newBuilder().public Medication(String id, Meta meta, String implicitRules, String language, Narrative text, List<Resource> contained, CodeableConcept code, String status, Boolean isBrand, Boolean isOverTheCounter, OrganizationReference manufacturer, CodeableConcept form, List<MedicationIngredient> ingredient, MedicationPackage package$, List<Attachment> image)
id - Field for FHIR property idmeta - Field for FHIR property metaimplicitRules - Field for FHIR property implicitRuleslanguage - Field for FHIR property languagetext - Field for FHIR property textcontained - Field for FHIR property containedcode - Field for FHIR property codestatus - Field for FHIR property statusisBrand - Field for FHIR property isBrandisOverTheCounter - Field for FHIR property isOverTheCountermanufacturer - Field for FHIR property manufacturerform - Field for FHIR property formingredient - Field for FHIR property ingredientpackage$ - Field for FHIR property packageimage - Field for FHIR property imagepublic static org.apache.avro.Schema getClassSchema()
public static org.apache.avro.message.BinaryMessageDecoder<Medication> getDecoder()
public static org.apache.avro.message.BinaryMessageDecoder<Medication> createDecoder(org.apache.avro.message.SchemaStore resolver)
SchemaStore.resolver - a SchemaStore used to find schemas by fingerprintpublic ByteBuffer toByteBuffer() throws IOException
IOExceptionpublic static Medication 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 Meta getMeta()
public void setMeta(Meta value)
value - the value to set.public String getImplicitRules()
public void setImplicitRules(String value)
value - the value to set.public String getLanguage()
public void setLanguage(String value)
value - the value to set.public Narrative getText()
public void setText(Narrative value)
value - the value to set.public List<Resource> getContained()
public void setContained(List<Resource> value)
value - the value to set.public CodeableConcept getCode()
public void setCode(CodeableConcept value)
value - the value to set.public String getStatus()
public void setStatus(String value)
value - the value to set.public Boolean getIsBrand()
public void setIsBrand(Boolean value)
value - the value to set.public Boolean getIsOverTheCounter()
public void setIsOverTheCounter(Boolean value)
value - the value to set.public OrganizationReference getManufacturer()
public void setManufacturer(OrganizationReference value)
value - the value to set.public CodeableConcept getForm()
public void setForm(CodeableConcept value)
value - the value to set.public List<MedicationIngredient> getIngredient()
public void setIngredient(List<MedicationIngredient> value)
value - the value to set.public MedicationPackage getPackage$()
public void setPackage$(MedicationPackage value)
value - the value to set.public List<Attachment> getImage()
public void setImage(List<Attachment> value)
value - the value to set.public static Medication.Builder newBuilder()
public static Medication.Builder newBuilder(Medication.Builder other)
other - The existing builder to copy.public static Medication.Builder newBuilder(Medication 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.