Package org.hl7.fhir

Class Encounter

  • All Implemented Interfaces:
    org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2

    public class Encounter
    extends DomainResource
    implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
    If the element is present, it must have either a @value, an @id, or extensions

    Java class for Encounter complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="Encounter">
       <complexContent>
         <extension base="{http://hl7.org/fhir}DomainResource">
           <sequence>
             <element name="identifier" type="{http://hl7.org/fhir}Identifier" maxOccurs="unbounded" minOccurs="0"/>
             <element name="status" type="{http://hl7.org/fhir}EncounterState"/>
             <element name="statusHistory" type="{http://hl7.org/fhir}Encounter.StatusHistory" maxOccurs="unbounded" minOccurs="0"/>
             <element name="class" type="{http://hl7.org/fhir}EncounterClass" minOccurs="0"/>
             <element name="type" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
             <element name="priority" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
             <element name="patient" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
             <element name="episodeOfCare" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
             <element name="incomingReferral" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
             <element name="participant" type="{http://hl7.org/fhir}Encounter.Participant" maxOccurs="unbounded" minOccurs="0"/>
             <element name="appointment" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
             <element name="period" type="{http://hl7.org/fhir}Period" minOccurs="0"/>
             <element name="length" type="{http://hl7.org/fhir}Duration" minOccurs="0"/>
             <element name="reason" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
             <element name="indication" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
             <element name="hospitalization" type="{http://hl7.org/fhir}Encounter.Hospitalization" minOccurs="0"/>
             <element name="location" type="{http://hl7.org/fhir}Encounter.Location" maxOccurs="unbounded" minOccurs="0"/>
             <element name="serviceProvider" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
             <element name="partOf" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
           </sequence>
         </extension>
       </complexContent>
     </complexType>
     
    • Constructor Detail

      • Encounter

        public Encounter()
    • Method Detail

      • getIdentifier

        public java.util.List<Identifier> getIdentifier()
        Gets the value of the identifier property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the identifier property.

        For example, to add a new item, do as follows:

            getIdentifier().add(newItem);
         

        Objects of the following type(s) are allowed in the list Identifier

      • setStatus

        public void setStatus​(EncounterState value)
        Sets the value of the status property.
        Parameters:
        value - allowed object is EncounterState
      • getStatusHistory

        public java.util.List<EncounterStatusHistory> getStatusHistory()
        Gets the value of the statusHistory property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the statusHistory property.

        For example, to add a new item, do as follows:

            getStatusHistory().add(newItem);
         

        Objects of the following type(s) are allowed in the list EncounterStatusHistory

      • setClazz

        public void setClazz​(EncounterClass value)
        Sets the value of the clazz property.
        Parameters:
        value - allowed object is EncounterClass
      • getType

        public java.util.List<CodeableConcept> getType()
        Gets the value of the type property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the type property.

        For example, to add a new item, do as follows:

            getType().add(newItem);
         

        Objects of the following type(s) are allowed in the list CodeableConcept

      • setPriority

        public void setPriority​(CodeableConcept value)
        Sets the value of the priority property.
        Parameters:
        value - allowed object is CodeableConcept
      • getPatient

        public Reference getPatient()
        Gets the value of the patient property.
        Returns:
        possible object is Reference
      • setPatient

        public void setPatient​(Reference value)
        Sets the value of the patient property.
        Parameters:
        value - allowed object is Reference
      • getEpisodeOfCare

        public java.util.List<Reference> getEpisodeOfCare()
        Gets the value of the episodeOfCare property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the episodeOfCare property.

        For example, to add a new item, do as follows:

            getEpisodeOfCare().add(newItem);
         

        Objects of the following type(s) are allowed in the list Reference

      • getIncomingReferral

        public java.util.List<Reference> getIncomingReferral()
        Gets the value of the incomingReferral property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the incomingReferral property.

        For example, to add a new item, do as follows:

            getIncomingReferral().add(newItem);
         

        Objects of the following type(s) are allowed in the list Reference

      • getParticipant

        public java.util.List<EncounterParticipant> getParticipant()
        Gets the value of the participant property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the participant property.

        For example, to add a new item, do as follows:

            getParticipant().add(newItem);
         

        Objects of the following type(s) are allowed in the list EncounterParticipant

      • getAppointment

        public Reference getAppointment()
        Gets the value of the appointment property.
        Returns:
        possible object is Reference
      • setAppointment

        public void setAppointment​(Reference value)
        Sets the value of the appointment property.
        Parameters:
        value - allowed object is Reference
      • getPeriod

        public Period getPeriod()
        Gets the value of the period property.
        Returns:
        possible object is Period
      • setPeriod

        public void setPeriod​(Period value)
        Sets the value of the period property.
        Parameters:
        value - allowed object is Period
      • getLength

        public Duration getLength()
        Gets the value of the length property.
        Returns:
        possible object is Duration
      • setLength

        public void setLength​(Duration value)
        Sets the value of the length property.
        Parameters:
        value - allowed object is Duration
      • getReason

        public java.util.List<CodeableConcept> getReason()
        Gets the value of the reason property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the reason property.

        For example, to add a new item, do as follows:

            getReason().add(newItem);
         

        Objects of the following type(s) are allowed in the list CodeableConcept

      • getIndication

        public java.util.List<Reference> getIndication()
        Gets the value of the indication property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the indication property.

        For example, to add a new item, do as follows:

            getIndication().add(newItem);
         

        Objects of the following type(s) are allowed in the list Reference

      • getLocation

        public java.util.List<EncounterLocation> getLocation()
        Gets the value of the location property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the location property.

        For example, to add a new item, do as follows:

            getLocation().add(newItem);
         

        Objects of the following type(s) are allowed in the list EncounterLocation

      • getServiceProvider

        public Reference getServiceProvider()
        Gets the value of the serviceProvider property.
        Returns:
        possible object is Reference
      • setServiceProvider

        public void setServiceProvider​(Reference value)
        Sets the value of the serviceProvider property.
        Parameters:
        value - allowed object is Reference
      • getPartOf

        public Reference getPartOf()
        Gets the value of the partOf property.
        Returns:
        possible object is Reference
      • setPartOf

        public void setPartOf​(Reference value)
        Sets the value of the partOf property.
        Parameters:
        value - allowed object is Reference
      • withIdentifier

        public Encounter withIdentifier​(java.util.Collection<Identifier> values)
      • withEpisodeOfCare

        public Encounter withEpisodeOfCare​(java.util.Collection<Reference> values)
      • withIncomingReferral

        public Encounter withIncomingReferral​(java.util.Collection<Reference> values)
      • withIndication

        public Encounter withIndication​(java.util.Collection<Reference> values)
      • equals

        public boolean equals​(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator,
                              org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator,
                              java.lang.Object object,
                              org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)
        Specified by:
        equals in interface org.jvnet.jaxb2_commons.lang.Equals2
        Overrides:
        equals in class DomainResource
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class DomainResource
      • hashCode

        public int hashCode​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                            org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)
        Specified by:
        hashCode in interface org.jvnet.jaxb2_commons.lang.HashCode2
        Overrides:
        hashCode in class DomainResource
      • append

        public java.lang.StringBuilder append​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                                              java.lang.StringBuilder buffer,
                                              org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
        Specified by:
        append in interface org.jvnet.jaxb2_commons.lang.ToString2
        Overrides:
        append in class DomainResource
      • appendFields

        public java.lang.StringBuilder appendFields​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                                                    java.lang.StringBuilder buffer,
                                                    org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
        Specified by:
        appendFields in interface org.jvnet.jaxb2_commons.lang.ToString2
        Overrides:
        appendFields in class DomainResource