Class ReferralRequest

  • 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 ReferralRequest
    extends DomainResource
    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.
    See Also:
    Serialized Form
    • Field Detail

      • identifier

        protected List<Identifier> identifier
        Business identifier that uniquely identifies the referral/care transfer request instance.
      • basedOn

        protected List<Reference> basedOn
        Indicates any plans, proposals or orders that this request is intended to satisfy - in whole or in part.
      • basedOnTarget

        protected List<Resource> basedOnTarget
        The actual objects that are the target of the reference (Indicates any plans, proposals or orders that this request is intended to satisfy - in whole or in part.)
      • parent

        protected Identifier parent
        The business identifier of the logical "grouping" request/order that this referral is a part of.
      • type

        protected CodeableConcept type
        An indication of the type of referral (or where applicable the type of transfer of care) request.
      • priority

        protected CodeableConcept priority
        An indication of the urgency of referral (or where applicable the type of transfer of care) request.
      • patient

        protected Reference patient
        The patient who is the subject of a referral or transfer of care request.
      • patientTarget

        protected Patient patientTarget
        The actual object that is the target of the reference (The patient who is the subject of a referral or transfer of care request.)
      • context

        protected Reference context
        The encounter at which the request for referral or transfer of care is initiated.
      • contextTarget

        protected Resource contextTarget
        The actual object that is the target of the reference (The encounter at which the request for referral or transfer of care is initiated.)
      • fulfillmentTime

        protected Period fulfillmentTime
        The period of time within which the services identified in the referral/transfer of care is specified or required to occur.
      • authored

        protected DateTimeType authored
        Date/DateTime of creation for draft requests and date of activation for active requests.
      • requester

        protected Reference requester
        The healthcare provider or provider organization who/which initiated the referral/transfer of care request. Can also be Patient (a self referral).
      • requesterTarget

        protected Resource requesterTarget
        The actual object that is the target of the reference (The healthcare provider or provider organization who/which initiated the referral/transfer of care request. Can also be Patient (a self referral).)
      • specialty

        protected CodeableConcept specialty
        Indication of the clinical domain or discipline to which the referral or transfer of care request is sent. For example: Cardiology Gastroenterology Diabetology.
      • recipient

        protected List<Reference> recipient
        The healthcare provider(s) or provider organization(s) who/which is to receive the referral/transfer of care request.
      • recipientTarget

        protected List<Resource> recipientTarget
        The actual objects that are the target of the reference (The healthcare provider(s) or provider organization(s) who/which is to receive the referral/transfer of care request.)
      • reason

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

        protected StringType description
        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.
      • serviceRequested

        protected List<CodeableConcept> serviceRequested
        The service(s) that is/are requested to be provided to the patient. For example: cardiac pacemaker insertion.
      • supportingInformation

        protected List<Reference> supportingInformation
        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.
      • supportingInformationTarget

        protected List<Resource> supportingInformationTarget
        The actual objects that are the target of the reference (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.)
      • SP_CATEGORY

        public static final String SP_CATEGORY
        Search parameter: category

        Description: Proposal, plan or request
        Type: token
        Path: ReferralRequest.category

        See Also:
        Constant Field Values
      • CATEGORY

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

        Description: Proposal, plan or request
        Type: token
        Path: ReferralRequest.category

      • SP_REQUESTER

        public static final String SP_REQUESTER
        Search parameter: requester

        Description: Requester of referral / transfer of care
        Type: reference
        Path: ReferralRequest.requester

        See Also:
        Constant Field Values
      • REQUESTER

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

        Description: Requester of referral / transfer of care
        Type: reference
        Path: ReferralRequest.requester

      • 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".
      • SP_PATIENT

        public static final String SP_PATIENT
        Search parameter: patient

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

        See Also:
        Constant Field Values
      • 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

      • 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".
      • SP_STATUS

        public static final String SP_STATUS
        Search parameter: status

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

        See Also:
        Constant Field Values
      • 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_PRIORITY

        public static final String SP_PRIORITY
        Search parameter: priority

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

        See Also:
        Constant Field Values
      • 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_BASEDON

        public static final String SP_BASEDON
        Search parameter: basedon

        Description: Request being fulfilled
        Type: reference
        Path: ReferralRequest.basedOn

        See Also:
        Constant Field Values
      • BASEDON

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

        Description: Request being fulfilled
        Type: reference
        Path: ReferralRequest.basedOn

      • INCLUDE_BASEDON

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

        public static final String SP_CONTEXT
        Search parameter: context

        Description: Part of encounter or episode of care
        Type: reference
        Path: ReferralRequest.context

        See Also:
        Constant Field Values
      • CONTEXT

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

        Description: Part of encounter or episode of care
        Type: reference
        Path: ReferralRequest.context

      • INCLUDE_CONTEXT

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

        public static final String SP_PARENT
        Search parameter: parent

        Description: Part of common request
        Type: token
        Path: ReferralRequest.parent

        See Also:
        Constant Field Values
      • PARENT

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

        Description: Part of common request
        Type: token
        Path: ReferralRequest.parent

      • SP_TYPE

        public static final String SP_TYPE
        Search parameter: type

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

        See Also:
        Constant Field Values
      • 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_DATE

        public static final String SP_DATE
        Search parameter: date

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

        See Also:
        Constant Field Values
      • 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.authored

      • SP_SPECIALTY

        public static final String SP_SPECIALTY
        Search parameter: specialty

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

        See Also:
        Constant Field Values
      • 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_RECIPIENT

        public static final String SP_RECIPIENT
        Search parameter: recipient

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

        See Also:
        Constant Field Values
      • 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

      • 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".
    • Method Detail

      • getBasedOn

        public List<ReferencegetBasedOn()
        Returns:
        basedOn (Indicates any plans, proposals or orders that this request is intended to satisfy - in whole or in part.)
      • addBasedOn

        public Reference addBasedOn()
        Returns:
        basedOn (Indicates any plans, proposals or orders that this request is intended to satisfy - in whole or in part.)
      • getBasedOnTarget

        public List<ResourcegetBasedOnTarget()
        Returns:
        basedOn (The actual objects that are the target of the reference. The reference library doesn't populate this, but you can use this to hold the resources if you resolvethemt. Indicates any plans, proposals or orders that this request is intended to satisfy - in whole or in part.)
      • getParent

        public Identifier getParent()
        Returns:
        parent (The business identifier of the logical "grouping" request/order that this referral is a part of.)
      • getType

        public CodeableConcept getType()
        Returns:
        type (An indication of the type of referral (or where applicable the type of transfer of care) request.)
      • hasType

        public boolean hasType()
      • getPriority

        public CodeableConcept getPriority()
        Returns:
        priority (An indication of the urgency of referral (or where applicable the type of transfer of care) request.)
      • getPatient

        public Reference getPatient()
        Returns:
        patient (The patient who is the subject of a referral or transfer of care request.)
      • getPatientTarget

        public Patient getPatientTarget()
        Returns:
        patient The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The patient who is the subject of a referral or transfer of care request.)
      • setPatientTarget

        public ReferralRequest setPatientTarget​(Patient value)
        Parameters:
        value - patient The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The patient who is the subject of a referral or transfer of care request.)
      • getContext

        public Reference getContext()
        Returns:
        context (The encounter at which the request for referral or transfer of care is initiated.)
      • getContextTarget

        public Resource getContextTarget()
        Returns:
        context The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The encounter at which the request for referral or transfer of care is initiated.)
      • setContextTarget

        public ReferralRequest setContextTarget​(Resource value)
        Parameters:
        value - context The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The encounter at which the request for referral or transfer of care is initiated.)
      • getFulfillmentTime

        public Period getFulfillmentTime()
        Returns:
        fulfillmentTime (The period of time within which the services identified in the referral/transfer of care is specified or required to occur.)
      • getAuthoredElement

        public DateTimeType getAuthoredElement()
        Returns:
        authored (Date/DateTime of creation for draft requests and date of activation for active requests.). This is the underlying object with id, value and extensions. The accessor "getAuthored" gives direct access to the value
      • setAuthoredElement

        public ReferralRequest setAuthoredElement​(DateTimeType value)
        Parameters:
        value - authored (Date/DateTime of creation for draft requests and date of activation for active requests.). This is the underlying object with id, value and extensions. The accessor "getAuthored" gives direct access to the value
      • getAuthored

        public Date getAuthored()
        Returns:
        Date/DateTime of creation for draft requests and date of activation for active requests.
      • setAuthored

        public ReferralRequest setAuthored​(Date value)
        Parameters:
        value - Date/DateTime of creation for draft requests and date of activation for active requests.
      • getRequester

        public Reference getRequester()
        Returns:
        requester (The healthcare provider or provider organization who/which initiated the referral/transfer of care request. Can also be Patient (a self referral).)
      • setRequester

        public ReferralRequest setRequester​(Reference value)
        Parameters:
        value - requester (The healthcare provider or provider organization who/which initiated the referral/transfer of care request. Can also be Patient (a self referral).)
      • getRequesterTarget

        public Resource getRequesterTarget()
        Returns:
        requester The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The healthcare provider or provider organization who/which initiated the referral/transfer of care request. Can also be Patient (a self referral).)
      • setRequesterTarget

        public ReferralRequest setRequesterTarget​(Resource value)
        Parameters:
        value - requester The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The healthcare provider or provider organization who/which initiated the referral/transfer of care request. Can also be Patient (a self referral).)
      • getSpecialty

        public CodeableConcept getSpecialty()
        Returns:
        specialty (Indication of the clinical domain or discipline to which the referral or transfer of care request is sent. For example: Cardiology Gastroenterology Diabetology.)
      • setSpecialty

        public ReferralRequest setSpecialty​(CodeableConcept value)
        Parameters:
        value - specialty (Indication of the clinical domain or discipline to which the referral or transfer of care request is sent. For example: Cardiology Gastroenterology Diabetology.)
      • getRecipient

        public List<ReferencegetRecipient()
        Returns:
        recipient (The healthcare provider(s) or provider organization(s) who/which is to receive the referral/transfer of care request.)
      • addRecipient

        public Reference addRecipient()
        Returns:
        recipient (The healthcare provider(s) or provider organization(s) who/which is to receive the referral/transfer of care request.)
      • getRecipientTarget

        public List<ResourcegetRecipientTarget()
        Returns:
        recipient (The actual objects that are the target of the reference. The reference library doesn't populate this, but you can use this to hold the resources if you resolvethemt. The healthcare provider(s) or provider organization(s) who/which is to receive the referral/transfer of care request.)
      • getReason

        public CodeableConcept getReason()
        Returns:
        reason (Description of clinical condition indicating why referral/transfer of care is requested. For example: Pathological Anomalies, Disabled (physical or mental), Behavioral Management.)
      • setReason

        public ReferralRequest setReason​(CodeableConcept value)
        Parameters:
        value - reason (Description of clinical condition indicating why referral/transfer of care is requested. For example: Pathological Anomalies, Disabled (physical or mental), Behavioral Management.)
      • getDescriptionElement

        public StringType getDescriptionElement()
        Returns:
        description (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.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
      • setDescriptionElement

        public ReferralRequest setDescriptionElement​(StringType value)
        Parameters:
        value - description (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.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
      • getDescription

        public String getDescription()
        Returns:
        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​(String value)
        Parameters:
        value - 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.
      • getSupportingInformation

        public List<ReferencegetSupportingInformation()
        Returns:
        supportingInformation (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

        public Reference addSupportingInformation()
        Returns:
        supportingInformation (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.)
      • getSupportingInformationTarget

        public List<ResourcegetSupportingInformationTarget()
        Returns:
        supportingInformation (The actual objects that are the target of the reference. The reference library doesn't populate this, but you can use this to hold the resources if you resolvethemt. 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.)
      • getProperty

        public Base[] getProperty​(int hash,
                                  String name,
                                  boolean checkValid)
                           throws org.hl7.fhir.exceptions.FHIRException
        Overrides:
        getProperty in class DomainResource
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • makeProperty

        public Base makeProperty​(int hash,
                                 String name)
                          throws org.hl7.fhir.exceptions.FHIRException
        Description copied from class: Base
        make an instance of a property. If the property is a repeating property, make a new instance. if the property is not repeating, return the property
        Overrides:
        makeProperty in class DomainResource
        Returns:
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface org.hl7.fhir.instance.model.api.IBase
        Overrides:
        isEmpty in class DomainResource