public class PatientContact
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
PatientContact.Builder
RecordBuilder for PatientContact instances.
|
| Modifier and Type | Field and Description |
|---|---|
static org.apache.avro.Schema |
SCHEMA$ |
| Constructor and Description |
|---|
PatientContact()
Default constructor.
|
PatientContact(String id,
List<CodeableConcept> relationship,
HumanName name,
List<ContactPoint> telecom,
Address address,
String gender,
OrganizationReference organization,
Period period)
All-args constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.avro.message.BinaryMessageDecoder<PatientContact> |
createDecoder(org.apache.avro.message.SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified
SchemaStore. |
static PatientContact |
fromByteBuffer(ByteBuffer b)
Deserializes a PatientContact from a ByteBuffer.
|
Object |
get(int field$) |
Address |
getAddress()
Gets the value of the 'address' field.
|
static org.apache.avro.Schema |
getClassSchema() |
static org.apache.avro.message.BinaryMessageDecoder<PatientContact> |
getDecoder()
Return the BinaryMessageDecoder instance used by this class.
|
String |
getGender()
Gets the value of the 'gender' field.
|
String |
getId()
Gets the value of the 'id' field.
|
HumanName |
getName()
Gets the value of the 'name' field.
|
OrganizationReference |
getOrganization()
Gets the value of the 'organization' field.
|
Period |
getPeriod()
Gets the value of the 'period' field.
|
List<CodeableConcept> |
getRelationship()
Gets the value of the 'relationship' field.
|
org.apache.avro.Schema |
getSchema() |
List<ContactPoint> |
getTelecom()
Gets the value of the 'telecom' field.
|
static PatientContact.Builder |
newBuilder()
Creates a new PatientContact RecordBuilder.
|
static PatientContact.Builder |
newBuilder(PatientContact.Builder other)
Creates a new PatientContact RecordBuilder by copying an existing Builder.
|
static PatientContact.Builder |
newBuilder(PatientContact other)
Creates a new PatientContact RecordBuilder by copying an existing PatientContact instance.
|
void |
put(int field$,
Object value$) |
void |
readExternal(ObjectInput in) |
void |
setAddress(Address value)
Sets the value of the 'address' field.
|
void |
setGender(String value)
Sets the value of the 'gender' field.
|
void |
setId(String value)
Sets the value of the 'id' field.
|
void |
setName(HumanName value)
Sets the value of the 'name' field.
|
void |
setOrganization(OrganizationReference value)
Sets the value of the 'organization' field.
|
void |
setPeriod(Period value)
Sets the value of the 'period' field.
|
void |
setRelationship(List<CodeableConcept> value)
Sets the value of the 'relationship' field.
|
void |
setTelecom(List<ContactPoint> value)
Sets the value of the 'telecom' field.
|
ByteBuffer |
toByteBuffer()
Serializes this PatientContact to a ByteBuffer.
|
void |
writeExternal(ObjectOutput out) |
public PatientContact()
newBuilder().public PatientContact(String id, List<CodeableConcept> relationship, HumanName name, List<ContactPoint> telecom, Address address, String gender, OrganizationReference organization, Period period)
id - Field for FHIR property idrelationship - Field for FHIR property relationshipname - Field for FHIR property nametelecom - Field for FHIR property telecomaddress - Field for FHIR property addressgender - Field for FHIR property genderorganization - Field for FHIR property organizationperiod - Field for FHIR property periodpublic static org.apache.avro.Schema getClassSchema()
public static org.apache.avro.message.BinaryMessageDecoder<PatientContact> getDecoder()
public static org.apache.avro.message.BinaryMessageDecoder<PatientContact> createDecoder(org.apache.avro.message.SchemaStore resolver)
SchemaStore.resolver - a SchemaStore used to find schemas by fingerprintpublic ByteBuffer toByteBuffer() throws IOException
IOExceptionpublic static PatientContact 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 List<CodeableConcept> getRelationship()
public void setRelationship(List<CodeableConcept> value)
value - the value to set.public HumanName getName()
public void setName(HumanName value)
value - the value to set.public List<ContactPoint> getTelecom()
public void setTelecom(List<ContactPoint> value)
value - the value to set.public Address getAddress()
public void setAddress(Address value)
value - the value to set.public String getGender()
public void setGender(String value)
value - the value to set.public OrganizationReference getOrganization()
public void setOrganization(OrganizationReference value)
value - the value to set.public Period getPeriod()
public void setPeriod(Period value)
value - the value to set.public static PatientContact.Builder newBuilder()
public static PatientContact.Builder newBuilder(PatientContact.Builder other)
other - The existing builder to copy.public static PatientContact.Builder newBuilder(PatientContact 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.