Class DataRequirementBuilder.Impl

    • Constructor Detail

      • Impl

        public Impl​(com.babylonhealth.lit.core.ALL_TYPES _type)
        Required fields for DataRequirement
        Parameters:
        _type - - The type of the required data, specified as the type name of a resource. For profiles, this value is set to the type of the base resource of the profile.
    • Method Detail

      • withId

        public DataRequirementBuilder.Impl withId​(@NonNull
                                                  @NonNull java.lang.String id)
        Parameters:
        id - - Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
      • withLimit

        public DataRequirementBuilder.Impl withLimit​(@NonNull
                                                     @NonNull java.lang.Integer limit)
        Parameters:
        limit - - Specifies a maximum number of results that are required (uses the _count search parameter).
      • withProfile

        public DataRequirementBuilder.Impl withProfile​(@NonNull
                                                       @NonNull java.lang.String... profile)
        Parameters:
        profile - - The profile of the required data, specified as the uri of the profile definition.
      • withProfile

        public DataRequirementBuilder.Impl withProfile​(@NonNull
                                                       @NonNull java.util.Collection<java.lang.String> profile)
        Parameters:
        profile - - The profile of the required data, specified as the uri of the profile definition.
      • withExtension

        public DataRequirementBuilder.Impl withExtension​(@NonNull
                                                         @NonNull com.babylonhealth.lit.core.model.Extension... extension)
        Parameters:
        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.
      • withExtension

        public DataRequirementBuilder.Impl withExtension​(@NonNull
                                                         @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Extension> extension)
        Parameters:
        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.
      • withSubject

        public DataRequirementBuilder.Impl withSubject​(@NonNull
                                                       @NonNull Unions.ChoiceCodeableConceptOrReference subject)
        Parameters:
        subject - - The intended subjects of the data requirement. If this element is not provided, a Patient subject is assumed. Field is a 'choice' field. Type should be one of CodeableConcept, Reference. To pass the value in, wrap with one of the DataRequirementBuilder.subject static methods
      • withMustSupport

        public DataRequirementBuilder.Impl withMustSupport​(@NonNull
                                                           @NonNull java.lang.String... mustSupport)
        Parameters:
        mustSupport - - Indicates that specific elements of the type are referenced by the knowledge module and must be supported by the consumer in order to obtain an effective evaluation. This does not mean that a value is required for this element, only that the consuming system must understand the element and be able to provide values for it if they are available.

        The value of mustSupport SHALL be a FHIRPath resolveable on the type of the DataRequirement. The path SHALL consist only of identifiers, constant indexers, and .resolve() (see the [Simple FHIRPath Profile](fhirpath.html#simple) for full details).

      • withMustSupport

        public DataRequirementBuilder.Impl withMustSupport​(@NonNull
                                                           @NonNull java.util.Collection<java.lang.String> mustSupport)
        Parameters:
        mustSupport - - Indicates that specific elements of the type are referenced by the knowledge module and must be supported by the consumer in order to obtain an effective evaluation. This does not mean that a value is required for this element, only that the consuming system must understand the element and be able to provide values for it if they are available.

        The value of mustSupport SHALL be a FHIRPath resolveable on the type of the DataRequirement. The path SHALL consist only of identifiers, constant indexers, and .resolve() (see the [Simple FHIRPath Profile](fhirpath.html#simple) for full details).

      • withSort

        public DataRequirementBuilder.Impl withSort​(@NonNull
                                                    @NonNull com.babylonhealth.lit.core.model.DataRequirement.Sort... sort)
        Parameters:
        sort - - Specifies the order of the results to be returned.
      • withSort

        public DataRequirementBuilder.Impl withSort​(@NonNull
                                                    @NonNull java.util.Collection<com.babylonhealth.lit.core.model.DataRequirement.Sort> sort)
        Parameters:
        sort - - Specifies the order of the results to be returned.
      • withCodeFilter

        public DataRequirementBuilder.Impl withCodeFilter​(@NonNull
                                                          @NonNull com.babylonhealth.lit.core.model.DataRequirement.CodeFilter... codeFilter)
        Parameters:
        codeFilter - - Code filters specify additional constraints on the data, specifying the value set of interest for a particular element of the data. Each code filter defines an additional constraint on the data, i.e. code filters are AND'ed, not OR'ed.
      • withCodeFilter

        public DataRequirementBuilder.Impl withCodeFilter​(@NonNull
                                                          @NonNull java.util.Collection<com.babylonhealth.lit.core.model.DataRequirement.CodeFilter> codeFilter)
        Parameters:
        codeFilter - - Code filters specify additional constraints on the data, specifying the value set of interest for a particular element of the data. Each code filter defines an additional constraint on the data, i.e. code filters are AND'ed, not OR'ed.
      • withDateFilter

        public DataRequirementBuilder.Impl withDateFilter​(@NonNull
                                                          @NonNull com.babylonhealth.lit.core.model.DataRequirement.DateFilter... dateFilter)
        Parameters:
        dateFilter - - Date filters specify additional constraints on the data in terms of the applicable date range for specific elements. Each date filter specifies an additional constraint on the data, i.e. date filters are AND'ed, not OR'ed.
      • withDateFilter

        public DataRequirementBuilder.Impl withDateFilter​(@NonNull
                                                          @NonNull java.util.Collection<com.babylonhealth.lit.core.model.DataRequirement.DateFilter> dateFilter)
        Parameters:
        dateFilter - - Date filters specify additional constraints on the data in terms of the applicable date range for specific elements. Each date filter specifies an additional constraint on the data, i.e. date filters are AND'ed, not OR'ed.