Class ReferralRequest

java.lang.Object
ca.uhn.fhir.model.api.BaseElement
ca.uhn.fhir.model.dstu2.resource.BaseResource
ca.uhn.fhir.model.dstu2.resource.ReferralRequest
All Implemented Interfaces:
ca.uhn.fhir.model.api.ICompositeElement, ca.uhn.fhir.model.api.IElement, ca.uhn.fhir.model.api.IResource, ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions, Serializable, org.hl7.fhir.instance.model.api.IBase, org.hl7.fhir.instance.model.api.IBaseResource

public class ReferralRequest extends BaseResource implements ca.uhn.fhir.model.api.IResource
HAPI/FHIR ReferralRequest Resource (clinical.careprovision)

Definition: Used to record and send details about a request for referral service or transfer of a patient to the care of another provider or provider organization.

Requirements:

Profile Definition: http://hl7.org/fhir/profiles/ReferralRequest

See Also:
  • Field Details

    • SP_STATUS

      public static final String SP_STATUS
      Search parameter constant for status

      Description: The status of the referral
      Type: token
      Path: ReferralRequest.status

      See Also:
    • STATUS

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

      Description: The status of the referral
      Type: token
      Path: ReferralRequest.status

    • SP_DATE

      public static final String SP_DATE
      Search parameter constant for date

      Description: Creation or activation date
      Type: date
      Path: ReferralRequest.date

      See Also:
    • DATE

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

      Description: Creation or activation date
      Type: date
      Path: ReferralRequest.date

    • SP_TYPE

      public static final String SP_TYPE
      Search parameter constant for type

      Description: The type of the referral
      Type: token
      Path: ReferralRequest.type

      See Also:
    • TYPE

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

      Description: The type of the referral
      Type: token
      Path: ReferralRequest.type

    • SP_SPECIALTY

      public static final String SP_SPECIALTY
      Search parameter constant for specialty

      Description: The specialty that the referral is for
      Type: token
      Path: ReferralRequest.specialty

      See Also:
    • SPECIALTY

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

      Description: The specialty that the referral is for
      Type: token
      Path: ReferralRequest.specialty

    • SP_PRIORITY

      public static final String SP_PRIORITY
      Search parameter constant for priority

      Description: The priority assigned to the referral
      Type: token
      Path: ReferralRequest.priority

      See Also:
    • PRIORITY

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

      Description: The priority assigned to the referral
      Type: token
      Path: ReferralRequest.priority

    • SP_RECIPIENT

      public static final String SP_RECIPIENT
      Search parameter constant for recipient

      Description: The person that the referral was sent to
      Type: reference
      Path: ReferralRequest.recipient

      See Also:
    • RECIPIENT

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

      Description: The person that the referral was sent to
      Type: reference
      Path: ReferralRequest.recipient

    • SP_PATIENT

      public static final String SP_PATIENT
      Search parameter constant for patient

      Description: Who the referral is about
      Type: reference
      Path: ReferralRequest.patient

      See Also:
    • PATIENT

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

      Description: Who the referral is about
      Type: reference
      Path: ReferralRequest.patient

    • SP_REQUESTER

      public static final String SP_REQUESTER
      Search parameter constant for requester

      Description:
      Type: reference
      Path: ReferralRequest.requester

      See Also:
    • REQUESTER

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

      Description:
      Type: reference
      Path: ReferralRequest.requester

    • 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 "ReferralRequest:patient".
    • INCLUDE_RECIPIENT

      public static final ca.uhn.fhir.model.api.Include INCLUDE_RECIPIENT
      Constant for fluent queries to be used to add include statements. Specifies the path value of "ReferralRequest:recipient".
    • INCLUDE_REQUESTER

      public static final ca.uhn.fhir.model.api.Include INCLUDE_REQUESTER
      Constant for fluent queries to be used to add include statements. Specifies the path value of "ReferralRequest:requester".
  • Constructor Details

  • Method Details

    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.hl7.fhir.instance.model.api.IBase
    • getAllPopulatedChildElementsOfType

      public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
      Specified by:
      getAllPopulatedChildElementsOfType in interface ca.uhn.fhir.model.api.ICompositeElement
    • getStatusElement

      public ca.uhn.fhir.model.primitive.BoundCodeDt<ReferralStatusEnum> getStatusElement()
      Gets the value(s) for status (status). creating it if it does not exist. Will not return null.

      Definition: The workflow status of the referral or transfer of care request

    • getStatus

      public String getStatus()
      Gets the value(s) for status (status). creating it if it does not exist. This method may return null.

      Definition: The workflow status of the referral or transfer of care request

    • setStatus

      public ReferralRequest setStatus(ca.uhn.fhir.model.primitive.BoundCodeDt<ReferralStatusEnum> theValue)
      Sets the value(s) for status (status)

      Definition: The workflow status of the referral or transfer of care request

    • setStatus

      Sets the value(s) for status (status)

      Definition: The workflow status of the referral or transfer of care request

    • getIdentifier

      Gets the value(s) for identifier (id). creating it if it does not exist. Will not return null.

      Definition: Business identifier that uniquely identifies the referral/care transfer request instance

    • setIdentifier

      Sets the value(s) for identifier (id)

      Definition: Business identifier that uniquely identifies the referral/care transfer request instance

    • addIdentifier

      Adds and returns a new value for identifier (id)

      Definition: Business identifier that uniquely identifies the referral/care transfer request instance

    • addIdentifier

      Adds a given new value for identifier (id)

      Definition: Business identifier that uniquely identifies the referral/care transfer request instance

      Parameters:
      theValue - The identifier to add (must not be null)
    • getIdentifierFirstRep

      Gets the first repetition for identifier (id), creating it if it does not already exist.

      Definition: Business identifier that uniquely identifies the referral/care transfer request instance

    • getDateElement

      public ca.uhn.fhir.model.primitive.DateTimeDt getDateElement()
      Gets the value(s) for date (when.init). creating it if it does not exist. Will not return null.

      Definition: Date/DateTime of creation for draft requests and date of activation for active requests

    • getDate

      public Date getDate()
      Gets the value(s) for date (when.init). creating it if it does not exist. This method may return null.

      Definition: Date/DateTime of creation for draft requests and date of activation for active requests

    • setDate

      public ReferralRequest setDate(ca.uhn.fhir.model.primitive.DateTimeDt theValue)
      Sets the value(s) for date (when.init)

      Definition: Date/DateTime of creation for draft requests and date of activation for active requests

    • setDateWithSecondsPrecision

      Sets the value for date (when.init)

      Definition: Date/DateTime of creation for draft requests and date of activation for active requests

    • setDate

      public ReferralRequest setDate(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)
      Sets the value for date (when.init)

      Definition: Date/DateTime of creation for draft requests and date of activation for active requests

    • getType

      Gets the value(s) for type (class). creating it if it does not exist. Will not return null.

      Definition: An indication of the type of referral (or where applicable the type of transfer of care) request

    • setType

      Sets the value(s) for type (class)

      Definition: An indication of the type of referral (or where applicable the type of transfer of care) request

    • getSpecialty

      Gets the value(s) for specialty (). creating it if it does not exist. Will not return null.

      Definition: Indication of the clinical domain or discipline to which the referral or transfer of care request is sent. For example: Cardiology Gastroenterology Diabetology

    • setSpecialty

      Sets the value(s) for specialty ()

      Definition: Indication of the clinical domain or discipline to which the referral or transfer of care request is sent. For example: Cardiology Gastroenterology Diabetology

    • getPriority

      Gets the value(s) for priority (grade). creating it if it does not exist. Will not return null.

      Definition: An indication of the urgency of referral (or where applicable the type of transfer of care) request

    • setPriority

      Sets the value(s) for priority (grade)

      Definition: An indication of the urgency of referral (or where applicable the type of transfer of care) request

    • getPatient

      Gets the value(s) for patient (who.focus). creating it if it does not exist. Will not return null.

      Definition: The patient who is the subject of a referral or transfer of care request

    • setPatient

      Sets the value(s) for patient (who.focus)

      Definition: The patient who is the subject of a referral or transfer of care request

    • getRequester

      Gets the value(s) for requester (who.author). creating it if it does not exist. Will not return null.

      Definition: The healthcare provider or provider organization who/which initiated the referral/transfer of care request. Can also be Patient (a self referral)

    • setRequester

      Sets the value(s) for requester (who.author)

      Definition: The healthcare provider or provider organization who/which initiated the referral/transfer of care request. Can also be Patient (a self referral)

    • getRecipient

      Gets the value(s) for recipient (who.actor). creating it if it does not exist. Will not return null.

      Definition: The healthcare provider(s) or provider organization(s) who/which is to receive the referral/transfer of care request

    • setRecipient

      Sets the value(s) for recipient (who.actor)

      Definition: The healthcare provider(s) or provider organization(s) who/which is to receive the referral/transfer of care request

    • addRecipient

      Adds and returns a new value for recipient (who.actor)

      Definition: The healthcare provider(s) or provider organization(s) who/which is to receive the referral/transfer of care request

    • getEncounter

      Gets the value(s) for encounter (context). creating it if it does not exist. Will not return null.

      Definition: The encounter at which the request for referral or transfer of care is initiated

    • setEncounter

      Sets the value(s) for encounter (context)

      Definition: The encounter at which the request for referral or transfer of care is initiated

    • getDateSentElement

      public ca.uhn.fhir.model.primitive.DateTimeDt getDateSentElement()
      Gets the value(s) for dateSent (when.init). creating it if it does not exist. Will not return null.

      Definition: Date/DateTime the request for referral or transfer of care is sent by the author

    • getDateSent

      public Date getDateSent()
      Gets the value(s) for dateSent (when.init). creating it if it does not exist. This method may return null.

      Definition: Date/DateTime the request for referral or transfer of care is sent by the author

    • setDateSent

      public ReferralRequest setDateSent(ca.uhn.fhir.model.primitive.DateTimeDt theValue)
      Sets the value(s) for dateSent (when.init)

      Definition: Date/DateTime the request for referral or transfer of care is sent by the author

    • setDateSentWithSecondsPrecision

      Sets the value for dateSent (when.init)

      Definition: Date/DateTime the request for referral or transfer of care is sent by the author

    • setDateSent

      public ReferralRequest setDateSent(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)
      Sets the value for dateSent (when.init)

      Definition: Date/DateTime the request for referral or transfer of care is sent by the author

    • getReason

      Gets the value(s) for reason (why). creating it if it does not exist. Will not return null.

      Definition: Description of clinical condition indicating why referral/transfer of care is requested. For example: Pathological Anomalies, Disabled (physical or mental), Behavioral Management

    • setReason

      Sets the value(s) for reason (why)

      Definition: Description of clinical condition indicating why referral/transfer of care is requested. For example: Pathological Anomalies, Disabled (physical or mental), Behavioral Management

    • getDescriptionElement

      public ca.uhn.fhir.model.primitive.StringDt getDescriptionElement()
      Gets the value(s) for description (). creating it if it does not exist. Will not return null.

      Definition: The reason element gives a short description of why the referral is being made, the description expands on this to support a more complete clinical summary

    • getDescription

      Gets the value(s) for description (). creating it if it does not exist. This method may return null.

      Definition: The reason element gives a short description of why the referral is being made, the description expands on this to support a more complete clinical summary

    • setDescription

      public ReferralRequest setDescription(ca.uhn.fhir.model.primitive.StringDt theValue)
      Sets the value(s) for description ()

      Definition: The reason element gives a short description of why the referral is being made, the description expands on this to support a more complete clinical summary

    • setDescription

      Sets the value for description ()

      Definition: The reason element gives a short description of why the referral is being made, the description expands on this to support a more complete clinical summary

    • getServiceRequested

      Gets the value(s) for serviceRequested (what). creating it if it does not exist. Will not return null.

      Definition: The service(s) that is/are requested to be provided to the patient. For example: cardiac pacemaker insertion

    • setServiceRequested

      Sets the value(s) for serviceRequested (what)

      Definition: The service(s) that is/are requested to be provided to the patient. For example: cardiac pacemaker insertion

    • addServiceRequested

      Adds and returns a new value for serviceRequested (what)

      Definition: The service(s) that is/are requested to be provided to the patient. For example: cardiac pacemaker insertion

    • addServiceRequested

      Adds a given new value for serviceRequested (what)

      Definition: The service(s) that is/are requested to be provided to the patient. For example: cardiac pacemaker insertion

      Parameters:
      theValue - The serviceRequested to add (must not be null)
    • getServiceRequestedFirstRep

      Gets the first repetition for serviceRequested (what), creating it if it does not already exist.

      Definition: The service(s) that is/are requested to be provided to the patient. For example: cardiac pacemaker insertion

    • getSupportingInformation

      Gets the value(s) for supportingInformation (). creating it if it does not exist. Will not return null.

      Definition: Any additional (administrative, financial or clinical) information required to support request for referral or transfer of care. For example: Presenting problems/chief complaints Medical History Family History Alerts Allergy/Intolerance and Adverse Reactions Medications Observations/Assessments (may include cognitive and fundtional assessments) Diagnostic Reports Care Plan

    • setSupportingInformation

      Sets the value(s) for supportingInformation ()

      Definition: Any additional (administrative, financial or clinical) information required to support request for referral or transfer of care. For example: Presenting problems/chief complaints Medical History Family History Alerts Allergy/Intolerance and Adverse Reactions Medications Observations/Assessments (may include cognitive and fundtional assessments) Diagnostic Reports Care Plan

    • addSupportingInformation

      Adds and returns a new value for supportingInformation ()

      Definition: Any additional (administrative, financial or clinical) information required to support request for referral or transfer of care. For example: Presenting problems/chief complaints Medical History Family History Alerts Allergy/Intolerance and Adverse Reactions Medications Observations/Assessments (may include cognitive and fundtional assessments) Diagnostic Reports Care Plan

    • getFulfillmentTime

      Gets the value(s) for fulfillmentTime (when.planned). creating it if it does not exist. Will not return null.

      Definition: The period of time within which the services identified in the referral/transfer of care is specified or required to occur

    • setFulfillmentTime

      Sets the value(s) for fulfillmentTime (when.planned)

      Definition: The period of time within which the services identified in the referral/transfer of care is specified or required to occur

    • getResourceName

      Specified by:
      getResourceName in interface ca.uhn.fhir.model.api.IResource
    • getStructureFhirVersionEnum

      public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum()
      Specified by:
      getStructureFhirVersionEnum in interface org.hl7.fhir.instance.model.api.IBaseResource
      Specified by:
      getStructureFhirVersionEnum in interface ca.uhn.fhir.model.api.IResource