Class CarePlan.Activity.Detail.Builder

    • Method Detail

      • id

        public CarePlan.Activity.Detail.Builder id​(String id)
        Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
        Overrides:
        id in class BackboneElement.Builder
        Parameters:
        id - Unique id for inter-element referencing
        Returns:
        A reference to this Builder instance
      • extension

        public CarePlan.Activity.Detail.Builder extension​(Extension... extension)
        May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.

        Adds new element(s) to the existing list

        Overrides:
        extension in class BackboneElement.Builder
        Parameters:
        extension - Additional content defined by implementations
        Returns:
        A reference to this Builder instance
      • extension

        public CarePlan.Activity.Detail.Builder extension​(Collection<Extension> extension)
        May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.

        Replaces the existing list with a new one containing elements from the Collection

        Overrides:
        extension in class BackboneElement.Builder
        Parameters:
        extension - Additional content defined by implementations
        Returns:
        A reference to this Builder instance
      • modifierExtension

        public CarePlan.Activity.Detail.Builder modifierExtension​(Extension... modifierExtension)
        May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

        Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).

        Adds new element(s) to the existing list

        Overrides:
        modifierExtension in class BackboneElement.Builder
        Parameters:
        modifierExtension - Extensions that cannot be ignored even if unrecognized
        Returns:
        A reference to this Builder instance
      • modifierExtension

        public CarePlan.Activity.Detail.Builder modifierExtension​(Collection<Extension> modifierExtension)
        May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

        Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).

        Replaces the existing list with a new one containing elements from the Collection

        Overrides:
        modifierExtension in class BackboneElement.Builder
        Parameters:
        modifierExtension - Extensions that cannot be ignored even if unrecognized
        Returns:
        A reference to this Builder instance
      • kind

        public CarePlan.Activity.Detail.Builder kind​(CarePlanActivityKind kind)
        A description of the kind of resource the in-line definition of a care plan activity is representing. The CarePlan. activity.detail is an in-line definition when a resource is not referenced using CarePlan.activity.reference. For example, a MedicationRequest, a ServiceRequest, or a CommunicationRequest.
        Parameters:
        kind - Appointment | CommunicationRequest | DeviceRequest | MedicationRequest | NutritionOrder | Task | ServiceRequest | VisionPrescription
        Returns:
        A reference to this Builder instance
      • instantiatesCanonical

        public CarePlan.Activity.Detail.Builder instantiatesCanonical​(Canonical... instantiatesCanonical)
        The URL pointing to a FHIR-defined protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan activity.

        Adds new element(s) to the existing list

        Parameters:
        instantiatesCanonical - Instantiates FHIR protocol or definition
        Returns:
        A reference to this Builder instance
      • instantiatesCanonical

        public CarePlan.Activity.Detail.Builder instantiatesCanonical​(Collection<Canonical> instantiatesCanonical)
        The URL pointing to a FHIR-defined protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan activity.

        Replaces the existing list with a new one containing elements from the Collection

        Parameters:
        instantiatesCanonical - Instantiates FHIR protocol or definition
        Returns:
        A reference to this Builder instance
      • instantiatesUri

        public CarePlan.Activity.Detail.Builder instantiatesUri​(Uri... instantiatesUri)
        The URL pointing to an externally maintained protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan activity.

        Adds new element(s) to the existing list

        Parameters:
        instantiatesUri - Instantiates external protocol or definition
        Returns:
        A reference to this Builder instance
      • instantiatesUri

        public CarePlan.Activity.Detail.Builder instantiatesUri​(Collection<Uri> instantiatesUri)
        The URL pointing to an externally maintained protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan activity.

        Replaces the existing list with a new one containing elements from the Collection

        Parameters:
        instantiatesUri - Instantiates external protocol or definition
        Returns:
        A reference to this Builder instance
      • code

        public CarePlan.Activity.Detail.Builder code​(CodeableConcept code)
        Detailed description of the type of planned activity; e.g. what lab test, what procedure, what kind of encounter.
        Parameters:
        code - Detail type of activity
        Returns:
        A reference to this Builder instance
      • reasonCode

        public CarePlan.Activity.Detail.Builder reasonCode​(CodeableConcept... reasonCode)
        Provides the rationale that drove the inclusion of this particular activity as part of the plan or the reason why the activity was prohibited.

        Adds new element(s) to the existing list

        Parameters:
        reasonCode - Why activity should be done or why activity was prohibited
        Returns:
        A reference to this Builder instance
      • reasonCode

        public CarePlan.Activity.Detail.Builder reasonCode​(Collection<CodeableConcept> reasonCode)
        Provides the rationale that drove the inclusion of this particular activity as part of the plan or the reason why the activity was prohibited.

        Replaces the existing list with a new one containing elements from the Collection

        Parameters:
        reasonCode - Why activity should be done or why activity was prohibited
        Returns:
        A reference to this Builder instance
      • reasonReference

        public CarePlan.Activity.Detail.Builder reasonReference​(Reference... reasonReference)
        Indicates another resource, such as the health condition(s), whose existence justifies this request and drove the inclusion of this particular activity as part of the plan.

        Adds new element(s) to the existing list

        Parameters:
        reasonReference - Why activity is needed
        Returns:
        A reference to this Builder instance
      • reasonReference

        public CarePlan.Activity.Detail.Builder reasonReference​(Collection<Reference> reasonReference)
        Indicates another resource, such as the health condition(s), whose existence justifies this request and drove the inclusion of this particular activity as part of the plan.

        Replaces the existing list with a new one containing elements from the Collection

        Parameters:
        reasonReference - Why activity is needed
        Returns:
        A reference to this Builder instance
      • goal

        public CarePlan.Activity.Detail.Builder goal​(Reference... goal)
        Internal reference that identifies the goals that this activity is intended to contribute towards meeting.

        Adds new element(s) to the existing list

        Parameters:
        goal - Goals this activity relates to
        Returns:
        A reference to this Builder instance
      • goal

        public CarePlan.Activity.Detail.Builder goal​(Collection<Reference> goal)
        Internal reference that identifies the goals that this activity is intended to contribute towards meeting.

        Replaces the existing list with a new one containing elements from the Collection

        Parameters:
        goal - Goals this activity relates to
        Returns:
        A reference to this Builder instance
      • status

        public CarePlan.Activity.Detail.Builder status​(CarePlanActivityStatus status)
        Identifies what progress is being made for the specific activity.

        This element is required.

        Parameters:
        status - not-started | scheduled | in-progress | on-hold | completed | cancelled | stopped | unknown | entered-in-error
        Returns:
        A reference to this Builder instance
      • statusReason

        public CarePlan.Activity.Detail.Builder statusReason​(CodeableConcept statusReason)
        Provides reason why the activity isn't yet started, is on hold, was cancelled, etc.
        Parameters:
        statusReason - Reason for current status
        Returns:
        A reference to this Builder instance
      • doNotPerform

        public CarePlan.Activity.Detail.Builder doNotPerform​(Boolean doNotPerform)
        If true, indicates that the described activity is one that must NOT be engaged in when following the plan. If false, or missing, indicates that the described activity is one that should be engaged in when following the plan.
        Parameters:
        doNotPerform - If true, activity is prohibiting action
        Returns:
        A reference to this Builder instance
      • scheduled

        public CarePlan.Activity.Detail.Builder scheduled​(Element scheduled)
        The period, timing or frequency upon which the described activity is to occur.

        This is a choice element with the following allowed types:

        Parameters:
        scheduled - When activity is to occur
        Returns:
        A reference to this Builder instance
      • location

        public CarePlan.Activity.Detail.Builder location​(Reference location)
        Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc.

        Allowed resource types for this reference:

        Parameters:
        location - Where it should happen
        Returns:
        A reference to this Builder instance
      • performer

        public CarePlan.Activity.Detail.Builder performer​(Reference... performer)
        Identifies who's expected to be involved in the activity.

        Adds new element(s) to the existing list

        Parameters:
        performer - Who will be responsible?
        Returns:
        A reference to this Builder instance
      • performer

        public CarePlan.Activity.Detail.Builder performer​(Collection<Reference> performer)
        Identifies who's expected to be involved in the activity.

        Replaces the existing list with a new one containing elements from the Collection

        Parameters:
        performer - Who will be responsible?
        Returns:
        A reference to this Builder instance
      • product

        public CarePlan.Activity.Detail.Builder product​(Element product)
        Identifies the food, drug or other product to be consumed or supplied in the activity.

        This is a choice element with the following allowed types:

        Parameters:
        product - What is to be administered/supplied
        Returns:
        A reference to this Builder instance
      • dailyAmount

        public CarePlan.Activity.Detail.Builder dailyAmount​(SimpleQuantity dailyAmount)
        Identifies the quantity expected to be consumed in a given day.
        Parameters:
        dailyAmount - How to consume/day?
        Returns:
        A reference to this Builder instance
      • quantity

        public CarePlan.Activity.Detail.Builder quantity​(SimpleQuantity quantity)
        Identifies the quantity expected to be supplied, administered or consumed by the subject.
        Parameters:
        quantity - How much to administer/supply/consume
        Returns:
        A reference to this Builder instance
      • description

        public CarePlan.Activity.Detail.Builder description​(String description)
        This provides a textual description of constraints on the intended activity occurrence, including relation to other activities. It may also include objectives, pre-conditions and end-conditions. Finally, it may convey specifics about the activity such as body site, method, route, etc.
        Parameters:
        description - Extra info describing activity to perform
        Returns:
        A reference to this Builder instance