public class Patient
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
Modifier and Type | Class and Description |
---|---|
static class |
Patient.Builder
RecordBuilder for Patient instances.
|
Modifier and Type | Field and Description |
---|---|
static org.apache.avro.Schema |
SCHEMA$ |
Constructor and Description |
---|
Patient()
Default constructor.
|
Patient(String id,
Meta meta,
String implicitRules,
String language,
Narrative text,
List<Resource> contained,
List<Identifier> identifier,
Boolean active,
List<HumanName> name,
List<ContactPoint> telecom,
String gender,
String birthDate,
ChoiceBooleanDateTime deceased,
List<Address> address,
CodeableConcept maritalStatus,
ChoiceBooleanInteger multipleBirth,
List<Attachment> photo,
List<PatientContact> contact,
PatientAnimal animal,
List<PatientCommunication> communication,
List<OrganizationPractitionerReference> generalPractitioner,
OrganizationReference managingOrganization,
List<PatientLink> link)
All-args constructor.
|
Modifier and Type | Method and Description |
---|---|
static org.apache.avro.message.BinaryMessageDecoder<Patient> |
createDecoder(org.apache.avro.message.SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified
SchemaStore . |
static Patient |
fromByteBuffer(ByteBuffer b)
Deserializes a Patient from a ByteBuffer.
|
Object |
get(int field$) |
Boolean |
getActive()
Gets the value of the 'active' field.
|
List<Address> |
getAddress()
Gets the value of the 'address' field.
|
PatientAnimal |
getAnimal()
Gets the value of the 'animal' field.
|
String |
getBirthDate()
Gets the value of the 'birthDate' field.
|
static org.apache.avro.Schema |
getClassSchema() |
List<PatientCommunication> |
getCommunication()
Gets the value of the 'communication' field.
|
List<PatientContact> |
getContact()
Gets the value of the 'contact' field.
|
List<Resource> |
getContained()
Gets the value of the 'contained' field.
|
ChoiceBooleanDateTime |
getDeceased()
Gets the value of the 'deceased' field.
|
static org.apache.avro.message.BinaryMessageDecoder<Patient> |
getDecoder()
Return the BinaryMessageDecoder instance used by this class.
|
String |
getGender()
Gets the value of the 'gender' field.
|
List<OrganizationPractitionerReference> |
getGeneralPractitioner()
Gets the value of the 'generalPractitioner' 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.
|
String |
getLanguage()
Gets the value of the 'language' field.
|
List<PatientLink> |
getLink()
Gets the value of the 'link' field.
|
OrganizationReference |
getManagingOrganization()
Gets the value of the 'managingOrganization' field.
|
CodeableConcept |
getMaritalStatus()
Gets the value of the 'maritalStatus' field.
|
Meta |
getMeta()
Gets the value of the 'meta' field.
|
ChoiceBooleanInteger |
getMultipleBirth()
Gets the value of the 'multipleBirth' field.
|
List<HumanName> |
getName()
Gets the value of the 'name' field.
|
List<Attachment> |
getPhoto()
Gets the value of the 'photo' field.
|
org.apache.avro.Schema |
getSchema() |
List<ContactPoint> |
getTelecom()
Gets the value of the 'telecom' field.
|
Narrative |
getText()
Gets the value of the 'text' field.
|
static Patient.Builder |
newBuilder()
Creates a new Patient RecordBuilder.
|
static Patient.Builder |
newBuilder(Patient.Builder other)
Creates a new Patient RecordBuilder by copying an existing Builder.
|
static Patient.Builder |
newBuilder(Patient other)
Creates a new Patient RecordBuilder by copying an existing Patient instance.
|
void |
put(int field$,
Object value$) |
void |
readExternal(ObjectInput in) |
void |
setActive(Boolean value)
Sets the value of the 'active' field.
|
void |
setAddress(List<Address> value)
Sets the value of the 'address' field.
|
void |
setAnimal(PatientAnimal value)
Sets the value of the 'animal' field.
|
void |
setBirthDate(String value)
Sets the value of the 'birthDate' field.
|
void |
setCommunication(List<PatientCommunication> value)
Sets the value of the 'communication' field.
|
void |
setContact(List<PatientContact> value)
Sets the value of the 'contact' field.
|
void |
setContained(List<Resource> value)
Sets the value of the 'contained' field.
|
void |
setDeceased(ChoiceBooleanDateTime value)
Sets the value of the 'deceased' field.
|
void |
setGender(String value)
Sets the value of the 'gender' field.
|
void |
setGeneralPractitioner(List<OrganizationPractitionerReference> value)
Sets the value of the 'generalPractitioner' 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 |
setLanguage(String value)
Sets the value of the 'language' field.
|
void |
setLink(List<PatientLink> value)
Sets the value of the 'link' field.
|
void |
setManagingOrganization(OrganizationReference value)
Sets the value of the 'managingOrganization' field.
|
void |
setMaritalStatus(CodeableConcept value)
Sets the value of the 'maritalStatus' field.
|
void |
setMeta(Meta value)
Sets the value of the 'meta' field.
|
void |
setMultipleBirth(ChoiceBooleanInteger value)
Sets the value of the 'multipleBirth' field.
|
void |
setName(List<HumanName> value)
Sets the value of the 'name' field.
|
void |
setPhoto(List<Attachment> value)
Sets the value of the 'photo' field.
|
void |
setTelecom(List<ContactPoint> value)
Sets the value of the 'telecom' field.
|
void |
setText(Narrative value)
Sets the value of the 'text' field.
|
ByteBuffer |
toByteBuffer()
Serializes this Patient to a ByteBuffer.
|
void |
writeExternal(ObjectOutput out) |
public Patient()
newBuilder()
.public Patient(String id, Meta meta, String implicitRules, String language, Narrative text, List<Resource> contained, List<Identifier> identifier, Boolean active, List<HumanName> name, List<ContactPoint> telecom, String gender, String birthDate, ChoiceBooleanDateTime deceased, List<Address> address, CodeableConcept maritalStatus, ChoiceBooleanInteger multipleBirth, List<Attachment> photo, List<PatientContact> contact, PatientAnimal animal, List<PatientCommunication> communication, List<OrganizationPractitionerReference> generalPractitioner, OrganizationReference managingOrganization, List<PatientLink> link)
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 identifieractive
- Field for FHIR property activename
- Field for FHIR property nametelecom
- Field for FHIR property telecomgender
- Field for FHIR property genderbirthDate
- Field for FHIR property birthDatedeceased
- Field for FHIR property deceasedaddress
- Field for FHIR property addressmaritalStatus
- Field for FHIR property maritalStatusmultipleBirth
- Field for FHIR property multipleBirthphoto
- Field for FHIR property photocontact
- Field for FHIR property contactanimal
- Field for FHIR property animalcommunication
- Field for FHIR property communicationgeneralPractitioner
- Field for FHIR property generalPractitionermanagingOrganization
- Field for FHIR property managingOrganizationlink
- Field for FHIR property linkpublic static org.apache.avro.Schema getClassSchema()
public static org.apache.avro.message.BinaryMessageDecoder<Patient> getDecoder()
public static org.apache.avro.message.BinaryMessageDecoder<Patient> createDecoder(org.apache.avro.message.SchemaStore resolver)
SchemaStore
.resolver
- a SchemaStore
used to find schemas by fingerprintpublic ByteBuffer toByteBuffer() throws IOException
IOException
public static Patient fromByteBuffer(ByteBuffer b) throws IOException
IOException
public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
getSchema
in class org.apache.avro.specific.SpecificRecordBase
public Object get(int field$)
get
in interface org.apache.avro.generic.IndexedRecord
get
in class org.apache.avro.specific.SpecificRecordBase
public void put(int field$, Object value$)
put
in interface org.apache.avro.generic.IndexedRecord
put
in class org.apache.avro.specific.SpecificRecordBase
public 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 Boolean getActive()
public void setActive(Boolean value)
value
- the value to set.public List<HumanName> getName()
public void setName(List<HumanName> value)
value
- the value to set.public List<ContactPoint> getTelecom()
public void setTelecom(List<ContactPoint> value)
value
- the value to set.public String getGender()
public void setGender(String value)
value
- the value to set.public String getBirthDate()
public void setBirthDate(String value)
value
- the value to set.public ChoiceBooleanDateTime getDeceased()
public void setDeceased(ChoiceBooleanDateTime value)
value
- the value to set.public List<Address> getAddress()
public void setAddress(List<Address> value)
value
- the value to set.public CodeableConcept getMaritalStatus()
public void setMaritalStatus(CodeableConcept value)
value
- the value to set.public ChoiceBooleanInteger getMultipleBirth()
public void setMultipleBirth(ChoiceBooleanInteger value)
value
- the value to set.public List<Attachment> getPhoto()
public void setPhoto(List<Attachment> value)
value
- the value to set.public List<PatientContact> getContact()
public void setContact(List<PatientContact> value)
value
- the value to set.public PatientAnimal getAnimal()
public void setAnimal(PatientAnimal value)
value
- the value to set.public List<PatientCommunication> getCommunication()
public void setCommunication(List<PatientCommunication> value)
value
- the value to set.public List<OrganizationPractitionerReference> getGeneralPractitioner()
public void setGeneralPractitioner(List<OrganizationPractitionerReference> value)
value
- the value to set.public OrganizationReference getManagingOrganization()
public void setManagingOrganization(OrganizationReference value)
value
- the value to set.public List<PatientLink> getLink()
public void setLink(List<PatientLink> value)
value
- the value to set.public static Patient.Builder newBuilder()
public static Patient.Builder newBuilder(Patient.Builder other)
other
- The existing builder to copy.public static Patient.Builder newBuilder(Patient other)
other
- The existing instance to copy.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class org.apache.avro.specific.SpecificRecordBase
IOException
public void readExternal(ObjectInput in) throws IOException
readExternal
in interface Externalizable
readExternal
in class org.apache.avro.specific.SpecificRecordBase
IOException
Copyright © 2020. All rights reserved.