Class Encounter

All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement, Serializable, org.hl7.fhir.instance.model.api.IAnyResource, org.hl7.fhir.instance.model.api.IBase, org.hl7.fhir.instance.model.api.IBaseHasExtensions, org.hl7.fhir.instance.model.api.IBaseHasModifierExtensions, org.hl7.fhir.instance.model.api.IBaseResource, org.hl7.fhir.instance.model.api.IDomainResource

public class Encounter extends DomainResource
An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient.
See Also:
  • Field Details

    • identifier

      Identifier(s) by which this encounter is known.
    • status

      planned | arrived | triaged | in-progress | onleave | finished | cancelled +.
    • statusHistory

      The status history permits the encounter resource to contain the status history without needing to read through the historical versions of the resource, or even have the server store them.
    • class_

      protected Coding class_
      Concepts representing classification of patient encounter such as ambulatory (outpatient), inpatient, emergency, home health or others due to local variations.
    • classHistory

      The class history permits the tracking of the encounters transitions without needing to go through the resource history. This would be used for a case where an admission starts of as an emergency encounter, then transitions into an inpatient scenario. Doing this and not restarting a new encounter ensures that any lab/diagnostic results can more easily follow the patient and not require re-processing and not get lost or cancelled during a kind of discharge from emergency to inpatient.
    • type

      Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation).
    • serviceType

      Broad categorization of the service that is to be provided (e.g. cardiology).
    • priority

      Indicates the urgency of the encounter.
    • subject

      protected Reference subject
      The patient or group present at the encounter.
    • subjectTarget

      The actual object that is the target of the reference (The patient or group present at the encounter.)
    • episodeOfCare

      Where a specific encounter should be classified as a part of a specific episode(s) of care this field should be used. This association can facilitate grouping of related encounters together for a specific purpose, such as government reporting, issue tracking, association via a common problem. The association is recorded on the encounter as these are typically created after the episode of care and grouped on entry rather than editing the episode of care to append another encounter to it (the episode of care could span years).
    • episodeOfCareTarget

      The actual objects that are the target of the reference (Where a specific encounter should be classified as a part of a specific episode(s) of care this field should be used. This association can facilitate grouping of related encounters together for a specific purpose, such as government reporting, issue tracking, association via a common problem. The association is recorded on the encounter as these are typically created after the episode of care and grouped on entry rather than editing the episode of care to append another encounter to it (the episode of care could span years).)
    • basedOn

      protected List<Reference> basedOn
      The request this encounter satisfies (e.g. incoming referral or procedure request).
    • basedOnTarget

      The actual objects that are the target of the reference (The request this encounter satisfies (e.g. incoming referral or procedure request).)
    • participant

      The list of people responsible for providing the service.
    • appointment

      The appointment that scheduled this encounter.
    • appointmentTarget

      The actual objects that are the target of the reference (The appointment that scheduled this encounter.)
    • period

      protected Period period
      The start and end time of the encounter.
    • length

      protected Duration length
      Quantity of time the encounter lasted. This excludes the time during leaves of absence.
    • reasonCode

      Reason the encounter takes place, expressed as a code. For admissions, this can be used for a coded admission diagnosis.
    • reasonReference

      Reason the encounter takes place, expressed as a code. For admissions, this can be used for a coded admission diagnosis.
    • reasonReferenceTarget

      The actual objects that are the target of the reference (Reason the encounter takes place, expressed as a code. For admissions, this can be used for a coded admission diagnosis.)
    • diagnosis

      The list of diagnosis relevant to this encounter.
    • account

      protected List<Reference> account
      The set of accounts that may be used for billing for this Encounter.
    • accountTarget

      The actual objects that are the target of the reference (The set of accounts that may be used for billing for this Encounter.)
    • hospitalization

      Details about the admission to a healthcare service.
    • location

      List of locations where the patient has been during this encounter.
    • serviceProvider

      The organization that is primarily responsible for this Encounter's services. This MAY be the same as the organization on the Patient record, however it could be different, such as if the actor performing the services was from an external organization (which may be billed seperately) for an external consultation. Refer to the example bundle showing an abbreviated set of Encounters for a colonoscopy.
    • serviceProviderTarget

      The actual object that is the target of the reference (The organization that is primarily responsible for this Encounter's services. This MAY be the same as the organization on the Patient record, however it could be different, such as if the actor performing the services was from an external organization (which may be billed seperately) for an external consultation. Refer to the example bundle showing an abbreviated set of Encounters for a colonoscopy.)
    • partOf

      protected Reference partOf
      Another Encounter of which this encounter is a part of (administratively or in time).
    • partOfTarget

      The actual object that is the target of the reference (Another Encounter of which this encounter is a part of (administratively or in time).)
    • SP_DATE

      public static final String SP_DATE
      Search parameter: date

      Description: A date within the period the Encounter lasted
      Type: date
      Path: Encounter.period

      See Also:
    • DATE

      public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE
      Fluent Client search parameter constant for date

      Description: A date within the period the Encounter lasted
      Type: date
      Path: Encounter.period

    • SP_IDENTIFIER

      public static final String SP_IDENTIFIER
      Search parameter: identifier

      Description: Identifier(s) by which this encounter is known
      Type: token
      Path: Encounter.identifier

      See Also:
    • IDENTIFIER

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER
      Fluent Client search parameter constant for identifier

      Description: Identifier(s) by which this encounter is known
      Type: token
      Path: Encounter.identifier

    • SP_PARTICIPANT_TYPE

      public static final String SP_PARTICIPANT_TYPE
      Search parameter: participant-type

      Description: Role of participant in encounter
      Type: token
      Path: Encounter.participant.type

      See Also:
    • PARTICIPANT_TYPE

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam PARTICIPANT_TYPE
      Fluent Client search parameter constant for participant-type

      Description: Role of participant in encounter
      Type: token
      Path: Encounter.participant.type

    • SP_PRACTITIONER

      public static final String SP_PRACTITIONER
      Search parameter: practitioner

      Description: Persons involved in the encounter other than the patient
      Type: reference
      Path: Encounter.participant.individual

      See Also:
    • PRACTITIONER

      public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PRACTITIONER
      Fluent Client search parameter constant for practitioner

      Description: Persons involved in the encounter other than the patient
      Type: reference
      Path: Encounter.participant.individual

    • INCLUDE_PRACTITIONER

      public static final ca.uhn.fhir.model.api.Include INCLUDE_PRACTITIONER
      Constant for fluent queries to be used to add include statements. Specifies the path value of "Encounter:practitioner".
    • SP_SUBJECT

      public static final String SP_SUBJECT
      Search parameter: subject

      Description: The patient or group present at the encounter
      Type: reference
      Path: Encounter.subject

      See Also:
    • SUBJECT

      public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT
      Fluent Client search parameter constant for subject

      Description: The patient or group present at the encounter
      Type: reference
      Path: Encounter.subject

    • INCLUDE_SUBJECT

      public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT
      Constant for fluent queries to be used to add include statements. Specifies the path value of "Encounter:subject".
    • SP_LENGTH

      public static final String SP_LENGTH
      Search parameter: length

      Description: Length of encounter in days
      Type: quantity
      Path: Encounter.length

      See Also:
    • LENGTH

      public static final ca.uhn.fhir.rest.gclient.QuantityClientParam LENGTH
      Fluent Client search parameter constant for length

      Description: Length of encounter in days
      Type: quantity
      Path: Encounter.length

    • SP_EPISODE_OF_CARE

      public static final String SP_EPISODE_OF_CARE
      Search parameter: episode-of-care

      Description: Episode(s) of care that this encounter should be recorded against
      Type: reference
      Path: Encounter.episodeOfCare

      See Also:
    • EPISODE_OF_CARE

      public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam EPISODE_OF_CARE
      Fluent Client search parameter constant for episode-of-care

      Description: Episode(s) of care that this encounter should be recorded against
      Type: reference
      Path: Encounter.episodeOfCare

    • INCLUDE_EPISODE_OF_CARE

      public static final ca.uhn.fhir.model.api.Include INCLUDE_EPISODE_OF_CARE
      Constant for fluent queries to be used to add include statements. Specifies the path value of "Encounter:episode-of-care".
    • SP_DIAGNOSIS

      public static final String SP_DIAGNOSIS
      Search parameter: diagnosis

      Description: The diagnosis or procedure relevant to the encounter
      Type: reference
      Path: Encounter.diagnosis.condition

      See Also:
    • DIAGNOSIS

      public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam DIAGNOSIS
      Fluent Client search parameter constant for diagnosis

      Description: The diagnosis or procedure relevant to the encounter
      Type: reference
      Path: Encounter.diagnosis.condition

    • INCLUDE_DIAGNOSIS

      public static final ca.uhn.fhir.model.api.Include INCLUDE_DIAGNOSIS
      Constant for fluent queries to be used to add include statements. Specifies the path value of "Encounter:diagnosis".
    • SP_APPOINTMENT

      public static final String SP_APPOINTMENT
      Search parameter: appointment

      Description: The appointment that scheduled this encounter
      Type: reference
      Path: Encounter.appointment

      See Also:
    • APPOINTMENT

      public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam APPOINTMENT
      Fluent Client search parameter constant for appointment

      Description: The appointment that scheduled this encounter
      Type: reference
      Path: Encounter.appointment

    • INCLUDE_APPOINTMENT

      public static final ca.uhn.fhir.model.api.Include INCLUDE_APPOINTMENT
      Constant for fluent queries to be used to add include statements. Specifies the path value of "Encounter:appointment".
    • SP_PART_OF

      public static final String SP_PART_OF
      Search parameter: part-of

      Description: Another Encounter this encounter is part of
      Type: reference
      Path: Encounter.partOf

      See Also:
    • PART_OF

      public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PART_OF
      Fluent Client search parameter constant for part-of

      Description: Another Encounter this encounter is part of
      Type: reference
      Path: Encounter.partOf

    • INCLUDE_PART_OF

      public static final ca.uhn.fhir.model.api.Include INCLUDE_PART_OF
      Constant for fluent queries to be used to add include statements. Specifies the path value of "Encounter:part-of".
    • SP_TYPE

      public static final String SP_TYPE
      Search parameter: type

      Description: Specific type of encounter
      Type: token
      Path: Encounter.type

      See Also:
    • TYPE

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE
      Fluent Client search parameter constant for type

      Description: Specific type of encounter
      Type: token
      Path: Encounter.type

    • SP_REASON_CODE

      public static final String SP_REASON_CODE
      Search parameter: reason-code

      Description: Coded reason the encounter takes place
      Type: token
      Path: Encounter.reasonCode

      See Also:
    • REASON_CODE

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam REASON_CODE
      Fluent Client search parameter constant for reason-code

      Description: Coded reason the encounter takes place
      Type: token
      Path: Encounter.reasonCode

    • SP_PARTICIPANT

      public static final String SP_PARTICIPANT
      Search parameter: participant

      Description: Persons involved in the encounter other than the patient
      Type: reference
      Path: Encounter.participant.individual

      See Also:
    • PARTICIPANT

      public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PARTICIPANT
      Fluent Client search parameter constant for participant

      Description: Persons involved in the encounter other than the patient
      Type: reference
      Path: Encounter.participant.individual

    • INCLUDE_PARTICIPANT

      public static final ca.uhn.fhir.model.api.Include INCLUDE_PARTICIPANT
      Constant for fluent queries to be used to add include statements. Specifies the path value of "Encounter:participant".
    • SP_BASED_ON

      public static final String SP_BASED_ON
      Search parameter: based-on

      Description: The ServiceRequest that initiated this encounter
      Type: reference
      Path: Encounter.basedOn

      See Also:
    • BASED_ON

      public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam BASED_ON
      Fluent Client search parameter constant for based-on

      Description: The ServiceRequest that initiated this encounter
      Type: reference
      Path: Encounter.basedOn

    • INCLUDE_BASED_ON

      public static final ca.uhn.fhir.model.api.Include INCLUDE_BASED_ON
      Constant for fluent queries to be used to add include statements. Specifies the path value of "Encounter:based-on".
    • SP_PATIENT

      public static final String SP_PATIENT
      Search parameter: patient

      Description: The patient or group present at the encounter
      Type: reference
      Path: Encounter.subject

      See Also:
    • PATIENT

      public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT
      Fluent Client search parameter constant for patient

      Description: The patient or group present at the encounter
      Type: reference
      Path: Encounter.subject

    • INCLUDE_PATIENT

      public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT
      Constant for fluent queries to be used to add include statements. Specifies the path value of "Encounter:patient".
    • SP_REASON_REFERENCE

      public static final String SP_REASON_REFERENCE
      Search parameter: reason-reference

      Description: Reason the encounter takes place (reference)
      Type: reference
      Path: Encounter.reasonReference

      See Also:
    • REASON_REFERENCE

      public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam REASON_REFERENCE
      Fluent Client search parameter constant for reason-reference

      Description: Reason the encounter takes place (reference)
      Type: reference
      Path: Encounter.reasonReference

    • INCLUDE_REASON_REFERENCE

      public static final ca.uhn.fhir.model.api.Include INCLUDE_REASON_REFERENCE
      Constant for fluent queries to be used to add include statements. Specifies the path value of "Encounter:reason-reference".
    • SP_LOCATION_PERIOD

      public static final String SP_LOCATION_PERIOD
      Search parameter: location-period

      Description: Time period during which the patient was present at the location
      Type: date
      Path: Encounter.location.period

      See Also:
    • LOCATION_PERIOD

      public static final ca.uhn.fhir.rest.gclient.DateClientParam LOCATION_PERIOD
      Fluent Client search parameter constant for location-period

      Description: Time period during which the patient was present at the location
      Type: date
      Path: Encounter.location.period

    • SP_LOCATION

      public static final String SP_LOCATION
      Search parameter: location

      Description: Location the encounter takes place
      Type: reference
      Path: Encounter.location.location

      See Also:
    • LOCATION

      public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam LOCATION
      Fluent Client search parameter constant for location

      Description: Location the encounter takes place
      Type: reference
      Path: Encounter.location.location

    • INCLUDE_LOCATION

      public static final ca.uhn.fhir.model.api.Include INCLUDE_LOCATION
      Constant for fluent queries to be used to add include statements. Specifies the path value of "Encounter:location".
    • SP_SERVICE_PROVIDER

      public static final String SP_SERVICE_PROVIDER
      Search parameter: service-provider

      Description: The organization (facility) responsible for this encounter
      Type: reference
      Path: Encounter.serviceProvider

      See Also:
    • SERVICE_PROVIDER

      public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SERVICE_PROVIDER
      Fluent Client search parameter constant for service-provider

      Description: The organization (facility) responsible for this encounter
      Type: reference
      Path: Encounter.serviceProvider

    • INCLUDE_SERVICE_PROVIDER

      public static final ca.uhn.fhir.model.api.Include INCLUDE_SERVICE_PROVIDER
      Constant for fluent queries to be used to add include statements. Specifies the path value of "Encounter:service-provider".
    • SP_SPECIAL_ARRANGEMENT

      public static final String SP_SPECIAL_ARRANGEMENT
      Search parameter: special-arrangement

      Description: Wheelchair, translator, stretcher, etc.
      Type: token
      Path: Encounter.hospitalization.specialArrangement

      See Also:
    • SPECIAL_ARRANGEMENT

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam SPECIAL_ARRANGEMENT
      Fluent Client search parameter constant for special-arrangement

      Description: Wheelchair, translator, stretcher, etc.
      Type: token
      Path: Encounter.hospitalization.specialArrangement

    • SP_CLASS

      public static final String SP_CLASS
      Search parameter: class

      Description: Classification of patient encounter
      Type: token
      Path: Encounter.class

      See Also:
    • CLASS

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam CLASS
      Fluent Client search parameter constant for class

      Description: Classification of patient encounter
      Type: token
      Path: Encounter.class

    • SP_ACCOUNT

      public static final String SP_ACCOUNT
      Search parameter: account

      Description: The set of accounts that may be used for billing for this Encounter
      Type: reference
      Path: Encounter.account

      See Also:
    • ACCOUNT

      public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ACCOUNT
      Fluent Client search parameter constant for account

      Description: The set of accounts that may be used for billing for this Encounter
      Type: reference
      Path: Encounter.account

    • INCLUDE_ACCOUNT

      public static final ca.uhn.fhir.model.api.Include INCLUDE_ACCOUNT
      Constant for fluent queries to be used to add include statements. Specifies the path value of "Encounter:account".
    • SP_STATUS

      public static final String SP_STATUS
      Search parameter: status

      Description: planned | arrived | triaged | in-progress | onleave | finished | cancelled +
      Type: token
      Path: Encounter.status

      See Also:
    • STATUS

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS
      Fluent Client search parameter constant for status

      Description: planned | arrived | triaged | in-progress | onleave | finished | cancelled +
      Type: token
      Path: Encounter.status

  • Constructor Details

  • Method Details