public class ObservationComponent
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
ObservationComponent.Builder
RecordBuilder for ObservationComponent instances.
|
| Modifier and Type | Field and Description |
|---|---|
static org.apache.avro.Schema |
SCHEMA$ |
| Constructor and Description |
|---|
ObservationComponent()
Default constructor.
|
ObservationComponent(String id,
CodeableConcept code,
ChoiceAttachmentCodeableConceptPeriodQuantityRangeRatioSampledDataDateTimeStringTime value,
CodeableConcept dataAbsentReason,
CodeableConcept interpretation,
List<ObservationComponentReferenceRange> referenceRange)
All-args constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.avro.message.BinaryMessageDecoder<ObservationComponent> |
createDecoder(org.apache.avro.message.SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified
SchemaStore. |
static ObservationComponent |
fromByteBuffer(ByteBuffer b)
Deserializes a ObservationComponent from a ByteBuffer.
|
Object |
get(int field$) |
static org.apache.avro.Schema |
getClassSchema() |
CodeableConcept |
getCode()
Gets the value of the 'code' field.
|
CodeableConcept |
getDataAbsentReason()
Gets the value of the 'dataAbsentReason' field.
|
static org.apache.avro.message.BinaryMessageDecoder<ObservationComponent> |
getDecoder()
Return the BinaryMessageDecoder instance used by this class.
|
String |
getId()
Gets the value of the 'id' field.
|
CodeableConcept |
getInterpretation()
Gets the value of the 'interpretation' field.
|
List<ObservationComponentReferenceRange> |
getReferenceRange()
Gets the value of the 'referenceRange' field.
|
org.apache.avro.Schema |
getSchema() |
ChoiceAttachmentCodeableConceptPeriodQuantityRangeRatioSampledDataDateTimeStringTime |
getValue()
Gets the value of the 'value' field.
|
static ObservationComponent.Builder |
newBuilder()
Creates a new ObservationComponent RecordBuilder.
|
static ObservationComponent.Builder |
newBuilder(ObservationComponent.Builder other)
Creates a new ObservationComponent RecordBuilder by copying an existing Builder.
|
static ObservationComponent.Builder |
newBuilder(ObservationComponent other)
Creates a new ObservationComponent RecordBuilder by copying an existing ObservationComponent instance.
|
void |
put(int field$,
Object value$) |
void |
readExternal(ObjectInput in) |
void |
setCode(CodeableConcept value)
Sets the value of the 'code' field.
|
void |
setDataAbsentReason(CodeableConcept value)
Sets the value of the 'dataAbsentReason' field.
|
void |
setId(String value)
Sets the value of the 'id' field.
|
void |
setInterpretation(CodeableConcept value)
Sets the value of the 'interpretation' field.
|
void |
setReferenceRange(List<ObservationComponentReferenceRange> value)
Sets the value of the 'referenceRange' field.
|
void |
setValue(ChoiceAttachmentCodeableConceptPeriodQuantityRangeRatioSampledDataDateTimeStringTime value)
Sets the value of the 'value' field.
|
ByteBuffer |
toByteBuffer()
Serializes this ObservationComponent to a ByteBuffer.
|
void |
writeExternal(ObjectOutput out) |
public ObservationComponent()
newBuilder().public ObservationComponent(String id, CodeableConcept code, ChoiceAttachmentCodeableConceptPeriodQuantityRangeRatioSampledDataDateTimeStringTime value, CodeableConcept dataAbsentReason, CodeableConcept interpretation, List<ObservationComponentReferenceRange> referenceRange)
id - Field for FHIR property idcode - Field for FHIR property codevalue - Field for FHIR property valuedataAbsentReason - Field for FHIR property dataAbsentReasoninterpretation - Field for FHIR property interpretationreferenceRange - Field for FHIR property referenceRangepublic static org.apache.avro.Schema getClassSchema()
public static org.apache.avro.message.BinaryMessageDecoder<ObservationComponent> getDecoder()
public static org.apache.avro.message.BinaryMessageDecoder<ObservationComponent> createDecoder(org.apache.avro.message.SchemaStore resolver)
SchemaStore.resolver - a SchemaStore used to find schemas by fingerprintpublic ByteBuffer toByteBuffer() throws IOException
IOExceptionpublic static ObservationComponent 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 CodeableConcept getCode()
public void setCode(CodeableConcept value)
value - the value to set.public ChoiceAttachmentCodeableConceptPeriodQuantityRangeRatioSampledDataDateTimeStringTime getValue()
public void setValue(ChoiceAttachmentCodeableConceptPeriodQuantityRangeRatioSampledDataDateTimeStringTime value)
value - the value to set.public CodeableConcept getDataAbsentReason()
public void setDataAbsentReason(CodeableConcept value)
value - the value to set.public CodeableConcept getInterpretation()
public void setInterpretation(CodeableConcept value)
value - the value to set.public List<ObservationComponentReferenceRange> getReferenceRange()
public void setReferenceRange(List<ObservationComponentReferenceRange> value)
value - the value to set.public static ObservationComponent.Builder newBuilder()
public static ObservationComponent.Builder newBuilder(ObservationComponent.Builder other)
other - The existing builder to copy.public static ObservationComponent.Builder newBuilder(ObservationComponent 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.