public class MedicationStatement
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
MedicationStatement.Builder
RecordBuilder for MedicationStatement instances.
|
| Modifier and Type | Field and Description |
|---|---|
static org.apache.avro.Schema |
SCHEMA$ |
| Constructor and Description |
|---|
MedicationStatement()
Default constructor.
|
MedicationStatement(String id,
Meta meta,
String implicitRules,
String language,
Narrative text,
List<Resource> contained,
List<Identifier> identifier,
List<CarePlanMedicationRequestProcedureRequestReferralRequestReference> basedOn,
List<MedicationAdministrationMedicationDispenseMedicationStatementObservationProcedureReference> partOf,
EncounterEpisodeOfCareReference context,
String status,
CodeableConcept category,
ChoiceCodeableConceptMedicationReference medication,
ChoicePeriodDateTime effective,
String dateAsserted,
OrganizationPatientPractitionerRelatedPersonReference informationSource,
GroupPatientReference subject,
List<ResourceReference> derivedFrom,
String taken,
List<CodeableConcept> reasonNotTaken,
List<CodeableConcept> reasonCode,
List<ConditionObservationReference> reasonReference,
List<Annotation> note,
List<Dosage> dosage)
All-args constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.avro.message.BinaryMessageDecoder<MedicationStatement> |
createDecoder(org.apache.avro.message.SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified
SchemaStore. |
static MedicationStatement |
fromByteBuffer(ByteBuffer b)
Deserializes a MedicationStatement from a ByteBuffer.
|
Object |
get(int field$) |
List<CarePlanMedicationRequestProcedureRequestReferralRequestReference> |
getBasedOn()
Gets the value of the 'basedOn' field.
|
CodeableConcept |
getCategory()
Gets the value of the 'category' field.
|
static org.apache.avro.Schema |
getClassSchema() |
List<Resource> |
getContained()
Gets the value of the 'contained' field.
|
EncounterEpisodeOfCareReference |
getContext()
Gets the value of the 'context' field.
|
String |
getDateAsserted()
Gets the value of the 'dateAsserted' field.
|
static org.apache.avro.message.BinaryMessageDecoder<MedicationStatement> |
getDecoder()
Return the BinaryMessageDecoder instance used by this class.
|
List<ResourceReference> |
getDerivedFrom()
Gets the value of the 'derivedFrom' field.
|
List<Dosage> |
getDosage()
Gets the value of the 'dosage' field.
|
ChoicePeriodDateTime |
getEffective()
Gets the value of the 'effective' field.
|
String |
getId()
Gets the value of the 'id' field.
|
List<Identifier> |
getIdentifier()
Gets the value of the 'identifier' field.
|
String |
getImplicitRules()
Gets the value of the 'implicitRules' field.
|
OrganizationPatientPractitionerRelatedPersonReference |
getInformationSource()
Gets the value of the 'informationSource' field.
|
String |
getLanguage()
Gets the value of the 'language' field.
|
ChoiceCodeableConceptMedicationReference |
getMedication()
Gets the value of the 'medication' field.
|
Meta |
getMeta()
Gets the value of the 'meta' field.
|
List<Annotation> |
getNote()
Gets the value of the 'note' field.
|
List<MedicationAdministrationMedicationDispenseMedicationStatementObservationProcedureReference> |
getPartOf()
Gets the value of the 'partOf' field.
|
List<CodeableConcept> |
getReasonCode()
Gets the value of the 'reasonCode' field.
|
List<CodeableConcept> |
getReasonNotTaken()
Gets the value of the 'reasonNotTaken' field.
|
List<ConditionObservationReference> |
getReasonReference()
Gets the value of the 'reasonReference' field.
|
org.apache.avro.Schema |
getSchema() |
String |
getStatus()
Gets the value of the 'status' field.
|
GroupPatientReference |
getSubject()
Gets the value of the 'subject' field.
|
String |
getTaken()
Gets the value of the 'taken' field.
|
Narrative |
getText()
Gets the value of the 'text' field.
|
static MedicationStatement.Builder |
newBuilder()
Creates a new MedicationStatement RecordBuilder.
|
static MedicationStatement.Builder |
newBuilder(MedicationStatement.Builder other)
Creates a new MedicationStatement RecordBuilder by copying an existing Builder.
|
static MedicationStatement.Builder |
newBuilder(MedicationStatement other)
Creates a new MedicationStatement RecordBuilder by copying an existing MedicationStatement instance.
|
void |
put(int field$,
Object value$) |
void |
readExternal(ObjectInput in) |
void |
setBasedOn(List<CarePlanMedicationRequestProcedureRequestReferralRequestReference> value)
Sets the value of the 'basedOn' field.
|
void |
setCategory(CodeableConcept value)
Sets the value of the 'category' field.
|
void |
setContained(List<Resource> value)
Sets the value of the 'contained' field.
|
void |
setContext(EncounterEpisodeOfCareReference value)
Sets the value of the 'context' field.
|
void |
setDateAsserted(String value)
Sets the value of the 'dateAsserted' field.
|
void |
setDerivedFrom(List<ResourceReference> value)
Sets the value of the 'derivedFrom' field.
|
void |
setDosage(List<Dosage> value)
Sets the value of the 'dosage' field.
|
void |
setEffective(ChoicePeriodDateTime value)
Sets the value of the 'effective' field.
|
void |
setId(String value)
Sets the value of the 'id' field.
|
void |
setIdentifier(List<Identifier> value)
Sets the value of the 'identifier' field.
|
void |
setImplicitRules(String value)
Sets the value of the 'implicitRules' field.
|
void |
setInformationSource(OrganizationPatientPractitionerRelatedPersonReference value)
Sets the value of the 'informationSource' field.
|
void |
setLanguage(String value)
Sets the value of the 'language' field.
|
void |
setMedication(ChoiceCodeableConceptMedicationReference value)
Sets the value of the 'medication' field.
|
void |
setMeta(Meta value)
Sets the value of the 'meta' field.
|
void |
setNote(List<Annotation> value)
Sets the value of the 'note' field.
|
void |
setPartOf(List<MedicationAdministrationMedicationDispenseMedicationStatementObservationProcedureReference> value)
Sets the value of the 'partOf' field.
|
void |
setReasonCode(List<CodeableConcept> value)
Sets the value of the 'reasonCode' field.
|
void |
setReasonNotTaken(List<CodeableConcept> value)
Sets the value of the 'reasonNotTaken' field.
|
void |
setReasonReference(List<ConditionObservationReference> value)
Sets the value of the 'reasonReference' field.
|
void |
setStatus(String value)
Sets the value of the 'status' field.
|
void |
setSubject(GroupPatientReference value)
Sets the value of the 'subject' field.
|
void |
setTaken(String value)
Sets the value of the 'taken' field.
|
void |
setText(Narrative value)
Sets the value of the 'text' field.
|
ByteBuffer |
toByteBuffer()
Serializes this MedicationStatement to a ByteBuffer.
|
void |
writeExternal(ObjectOutput out) |
public MedicationStatement()
newBuilder().public MedicationStatement(String id, Meta meta, String implicitRules, String language, Narrative text, List<Resource> contained, List<Identifier> identifier, List<CarePlanMedicationRequestProcedureRequestReferralRequestReference> basedOn, List<MedicationAdministrationMedicationDispenseMedicationStatementObservationProcedureReference> partOf, EncounterEpisodeOfCareReference context, String status, CodeableConcept category, ChoiceCodeableConceptMedicationReference medication, ChoicePeriodDateTime effective, String dateAsserted, OrganizationPatientPractitionerRelatedPersonReference informationSource, GroupPatientReference subject, List<ResourceReference> derivedFrom, String taken, List<CodeableConcept> reasonNotTaken, List<CodeableConcept> reasonCode, List<ConditionObservationReference> reasonReference, List<Annotation> note, List<Dosage> dosage)
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 containedidentifier - Field for FHIR property identifierbasedOn - Field for FHIR property basedOnpartOf - Field for FHIR property partOfcontext - Field for FHIR property contextstatus - Field for FHIR property statuscategory - Field for FHIR property categorymedication - Field for FHIR property medicationeffective - Field for FHIR property effectivedateAsserted - Field for FHIR property dateAssertedinformationSource - Field for FHIR property informationSourcesubject - Field for FHIR property subjectderivedFrom - Field for FHIR property derivedFromtaken - Field for FHIR property takenreasonNotTaken - Field for FHIR property reasonNotTakenreasonCode - Field for FHIR property reasonCodereasonReference - Field for FHIR property reasonReferencenote - Field for FHIR property notedosage - Field for FHIR property dosagepublic static org.apache.avro.Schema getClassSchema()
public static org.apache.avro.message.BinaryMessageDecoder<MedicationStatement> getDecoder()
public static org.apache.avro.message.BinaryMessageDecoder<MedicationStatement> createDecoder(org.apache.avro.message.SchemaStore resolver)
SchemaStore.resolver - a SchemaStore used to find schemas by fingerprintpublic ByteBuffer toByteBuffer() throws IOException
IOExceptionpublic static MedicationStatement 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 List<Identifier> getIdentifier()
public void setIdentifier(List<Identifier> value)
value - the value to set.public List<CarePlanMedicationRequestProcedureRequestReferralRequestReference> getBasedOn()
public void setBasedOn(List<CarePlanMedicationRequestProcedureRequestReferralRequestReference> value)
value - the value to set.public List<MedicationAdministrationMedicationDispenseMedicationStatementObservationProcedureReference> getPartOf()
public void setPartOf(List<MedicationAdministrationMedicationDispenseMedicationStatementObservationProcedureReference> value)
value - the value to set.public EncounterEpisodeOfCareReference getContext()
public void setContext(EncounterEpisodeOfCareReference value)
value - the value to set.public String getStatus()
public void setStatus(String value)
value - the value to set.public CodeableConcept getCategory()
public void setCategory(CodeableConcept value)
value - the value to set.public ChoiceCodeableConceptMedicationReference getMedication()
public void setMedication(ChoiceCodeableConceptMedicationReference value)
value - the value to set.public ChoicePeriodDateTime getEffective()
public void setEffective(ChoicePeriodDateTime value)
value - the value to set.public String getDateAsserted()
public void setDateAsserted(String value)
value - the value to set.public OrganizationPatientPractitionerRelatedPersonReference getInformationSource()
public void setInformationSource(OrganizationPatientPractitionerRelatedPersonReference value)
value - the value to set.public GroupPatientReference getSubject()
public void setSubject(GroupPatientReference value)
value - the value to set.public List<ResourceReference> getDerivedFrom()
public void setDerivedFrom(List<ResourceReference> value)
value - the value to set.public String getTaken()
public void setTaken(String value)
value - the value to set.public List<CodeableConcept> getReasonNotTaken()
public void setReasonNotTaken(List<CodeableConcept> value)
value - the value to set.public List<CodeableConcept> getReasonCode()
public void setReasonCode(List<CodeableConcept> value)
value - the value to set.public List<ConditionObservationReference> getReasonReference()
public void setReasonReference(List<ConditionObservationReference> value)
value - the value to set.public List<Annotation> getNote()
public void setNote(List<Annotation> value)
value - the value to set.public List<Dosage> getDosage()
public void setDosage(List<Dosage> value)
value - the value to set.public static MedicationStatement.Builder newBuilder()
public static MedicationStatement.Builder newBuilder(MedicationStatement.Builder other)
other - The existing builder to copy.public static MedicationStatement.Builder newBuilder(MedicationStatement 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.