public class Encounter
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
Modifier and Type | Class and Description |
---|---|
static class |
Encounter.Builder
RecordBuilder for Encounter instances.
|
Modifier and Type | Field and Description |
---|---|
static org.apache.avro.Schema |
SCHEMA$ |
Constructor and Description |
---|
Encounter()
Default constructor.
|
Encounter(String id,
Meta meta,
String implicitRules,
String language,
Narrative text,
List<Resource> contained,
List<Identifier> identifier,
String status,
List<EncounterStatusHistory> statusHistory,
Coding class$,
List<EncounterClassHistory> classHistory,
List<CodeableConcept> type,
CodeableConcept priority,
PatientReference subject,
List<EpisodeOfCareReference> episodeOfCare,
List<ReferralRequestReference> incomingReferral,
List<EncounterParticipant> participant,
AppointmentReference appointment,
Period period,
Duration length,
List<CodeableConcept> reason,
List<EncounterDiagnosis> diagnosis,
List<AccountReference> account,
EncounterHospitalization hospitalization,
List<EncounterLocation> location,
OrganizationReference serviceProvider,
EncounterReference partOf)
All-args constructor.
|
Modifier and Type | Method and Description |
---|---|
static org.apache.avro.message.BinaryMessageDecoder<Encounter> |
createDecoder(org.apache.avro.message.SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified
SchemaStore . |
static Encounter |
fromByteBuffer(ByteBuffer b)
Deserializes a Encounter from a ByteBuffer.
|
Object |
get(int field$) |
List<AccountReference> |
getAccount()
Gets the value of the 'account' field.
|
AppointmentReference |
getAppointment()
Gets the value of the 'appointment' field.
|
Coding |
getClass$()
Gets the value of the 'class$' field.
|
List<EncounterClassHistory> |
getClassHistory()
Gets the value of the 'classHistory' field.
|
static org.apache.avro.Schema |
getClassSchema() |
List<Resource> |
getContained()
Gets the value of the 'contained' field.
|
static org.apache.avro.message.BinaryMessageDecoder<Encounter> |
getDecoder()
Return the BinaryMessageDecoder instance used by this class.
|
List<EncounterDiagnosis> |
getDiagnosis()
Gets the value of the 'diagnosis' field.
|
List<EpisodeOfCareReference> |
getEpisodeOfCare()
Gets the value of the 'episodeOfCare' field.
|
EncounterHospitalization |
getHospitalization()
Gets the value of the 'hospitalization' 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.
|
List<ReferralRequestReference> |
getIncomingReferral()
Gets the value of the 'incomingReferral' field.
|
String |
getLanguage()
Gets the value of the 'language' field.
|
Duration |
getLength()
Gets the value of the 'length' field.
|
List<EncounterLocation> |
getLocation()
Gets the value of the 'location' field.
|
Meta |
getMeta()
Gets the value of the 'meta' field.
|
List<EncounterParticipant> |
getParticipant()
Gets the value of the 'participant' field.
|
EncounterReference |
getPartOf()
Gets the value of the 'partOf' field.
|
Period |
getPeriod()
Gets the value of the 'period' field.
|
CodeableConcept |
getPriority()
Gets the value of the 'priority' field.
|
List<CodeableConcept> |
getReason()
Gets the value of the 'reason' field.
|
org.apache.avro.Schema |
getSchema() |
OrganizationReference |
getServiceProvider()
Gets the value of the 'serviceProvider' field.
|
String |
getStatus()
Gets the value of the 'status' field.
|
List<EncounterStatusHistory> |
getStatusHistory()
Gets the value of the 'statusHistory' field.
|
PatientReference |
getSubject()
Gets the value of the 'subject' field.
|
Narrative |
getText()
Gets the value of the 'text' field.
|
List<CodeableConcept> |
getType()
Gets the value of the 'type' field.
|
static Encounter.Builder |
newBuilder()
Creates a new Encounter RecordBuilder.
|
static Encounter.Builder |
newBuilder(Encounter.Builder other)
Creates a new Encounter RecordBuilder by copying an existing Builder.
|
static Encounter.Builder |
newBuilder(Encounter other)
Creates a new Encounter RecordBuilder by copying an existing Encounter instance.
|
void |
put(int field$,
Object value$) |
void |
readExternal(ObjectInput in) |
void |
setAccount(List<AccountReference> value)
Sets the value of the 'account' field.
|
void |
setAppointment(AppointmentReference value)
Sets the value of the 'appointment' field.
|
void |
setClass$(Coding value)
Sets the value of the 'class$' field.
|
void |
setClassHistory(List<EncounterClassHistory> value)
Sets the value of the 'classHistory' field.
|
void |
setContained(List<Resource> value)
Sets the value of the 'contained' field.
|
void |
setDiagnosis(List<EncounterDiagnosis> value)
Sets the value of the 'diagnosis' field.
|
void |
setEpisodeOfCare(List<EpisodeOfCareReference> value)
Sets the value of the 'episodeOfCare' field.
|
void |
setHospitalization(EncounterHospitalization value)
Sets the value of the 'hospitalization' 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 |
setIncomingReferral(List<ReferralRequestReference> value)
Sets the value of the 'incomingReferral' field.
|
void |
setLanguage(String value)
Sets the value of the 'language' field.
|
void |
setLength(Duration value)
Sets the value of the 'length' field.
|
void |
setLocation(List<EncounterLocation> value)
Sets the value of the 'location' field.
|
void |
setMeta(Meta value)
Sets the value of the 'meta' field.
|
void |
setParticipant(List<EncounterParticipant> value)
Sets the value of the 'participant' field.
|
void |
setPartOf(EncounterReference value)
Sets the value of the 'partOf' field.
|
void |
setPeriod(Period value)
Sets the value of the 'period' field.
|
void |
setPriority(CodeableConcept value)
Sets the value of the 'priority' field.
|
void |
setReason(List<CodeableConcept> value)
Sets the value of the 'reason' field.
|
void |
setServiceProvider(OrganizationReference value)
Sets the value of the 'serviceProvider' field.
|
void |
setStatus(String value)
Sets the value of the 'status' field.
|
void |
setStatusHistory(List<EncounterStatusHistory> value)
Sets the value of the 'statusHistory' field.
|
void |
setSubject(PatientReference value)
Sets the value of the 'subject' field.
|
void |
setText(Narrative value)
Sets the value of the 'text' field.
|
void |
setType(List<CodeableConcept> value)
Sets the value of the 'type' field.
|
ByteBuffer |
toByteBuffer()
Serializes this Encounter to a ByteBuffer.
|
void |
writeExternal(ObjectOutput out) |
public Encounter()
newBuilder()
.public Encounter(String id, Meta meta, String implicitRules, String language, Narrative text, List<Resource> contained, List<Identifier> identifier, String status, List<EncounterStatusHistory> statusHistory, Coding class$, List<EncounterClassHistory> classHistory, List<CodeableConcept> type, CodeableConcept priority, PatientReference subject, List<EpisodeOfCareReference> episodeOfCare, List<ReferralRequestReference> incomingReferral, List<EncounterParticipant> participant, AppointmentReference appointment, Period period, Duration length, List<CodeableConcept> reason, List<EncounterDiagnosis> diagnosis, List<AccountReference> account, EncounterHospitalization hospitalization, List<EncounterLocation> location, OrganizationReference serviceProvider, EncounterReference partOf)
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 identifierstatus
- Field for FHIR property statusstatusHistory
- Field for FHIR property statusHistoryclass$
- Field for FHIR property classclassHistory
- Field for FHIR property classHistorytype
- Field for FHIR property typepriority
- Field for FHIR property prioritysubject
- Field for FHIR property subjectepisodeOfCare
- Field for FHIR property episodeOfCareincomingReferral
- Field for FHIR property incomingReferralparticipant
- Field for FHIR property participantappointment
- Field for FHIR property appointmentperiod
- Field for FHIR property periodlength
- Field for FHIR property lengthreason
- Field for FHIR property reasondiagnosis
- Field for FHIR property diagnosisaccount
- Field for FHIR property accounthospitalization
- Field for FHIR property hospitalizationlocation
- Field for FHIR property locationserviceProvider
- Field for FHIR property serviceProviderpartOf
- Field for FHIR property partOfpublic static org.apache.avro.Schema getClassSchema()
public static org.apache.avro.message.BinaryMessageDecoder<Encounter> getDecoder()
public static org.apache.avro.message.BinaryMessageDecoder<Encounter> createDecoder(org.apache.avro.message.SchemaStore resolver)
SchemaStore
.resolver
- a SchemaStore
used to find schemas by fingerprintpublic ByteBuffer toByteBuffer() throws IOException
IOException
public static Encounter 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 String getStatus()
public void setStatus(String value)
value
- the value to set.public List<EncounterStatusHistory> getStatusHistory()
public void setStatusHistory(List<EncounterStatusHistory> value)
value
- the value to set.public Coding getClass$()
public void setClass$(Coding value)
value
- the value to set.public List<EncounterClassHistory> getClassHistory()
public void setClassHistory(List<EncounterClassHistory> value)
value
- the value to set.public List<CodeableConcept> getType()
public void setType(List<CodeableConcept> value)
value
- the value to set.public CodeableConcept getPriority()
public void setPriority(CodeableConcept value)
value
- the value to set.public PatientReference getSubject()
public void setSubject(PatientReference value)
value
- the value to set.public List<EpisodeOfCareReference> getEpisodeOfCare()
public void setEpisodeOfCare(List<EpisodeOfCareReference> value)
value
- the value to set.public List<ReferralRequestReference> getIncomingReferral()
public void setIncomingReferral(List<ReferralRequestReference> value)
value
- the value to set.public List<EncounterParticipant> getParticipant()
public void setParticipant(List<EncounterParticipant> value)
value
- the value to set.public AppointmentReference getAppointment()
public void setAppointment(AppointmentReference value)
value
- the value to set.public Period getPeriod()
public void setPeriod(Period value)
value
- the value to set.public Duration getLength()
public void setLength(Duration value)
value
- the value to set.public List<CodeableConcept> getReason()
public void setReason(List<CodeableConcept> value)
value
- the value to set.public List<EncounterDiagnosis> getDiagnosis()
public void setDiagnosis(List<EncounterDiagnosis> value)
value
- the value to set.public List<AccountReference> getAccount()
public void setAccount(List<AccountReference> value)
value
- the value to set.public EncounterHospitalization getHospitalization()
public void setHospitalization(EncounterHospitalization value)
value
- the value to set.public List<EncounterLocation> getLocation()
public void setLocation(List<EncounterLocation> value)
value
- the value to set.public OrganizationReference getServiceProvider()
public void setServiceProvider(OrganizationReference value)
value
- the value to set.public EncounterReference getPartOf()
public void setPartOf(EncounterReference value)
value
- the value to set.public static Encounter.Builder newBuilder()
public static Encounter.Builder newBuilder(Encounter.Builder other)
other
- The existing builder to copy.public static Encounter.Builder newBuilder(Encounter 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.