Class ContractBuilder.Impl

    • Constructor Detail

      • Impl

        public Impl()
        Required fields for Contract
    • Method Detail

      • withId

        public ContractBuilder.Impl withId​(@NonNull
                                           @NonNull java.lang.String id)
        Parameters:
        id - - The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
      • withUrl

        public ContractBuilder.Impl withUrl​(@NonNull
                                            @NonNull java.lang.String url)
        Parameters:
        url - - Canonical identifier for this contract, represented as a URI (globally unique).
      • withMeta

        public ContractBuilder.Impl withMeta​(@NonNull
                                             @NonNull com.babylonhealth.lit.core.model.Meta meta)
        Parameters:
        meta - - The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.
      • withMeta

        public ContractBuilder.Impl withMeta​(@NonNull
                                             @NonNull com.babylonhealth.lit.core_java.builders.MetaBuilder meta)
      • withText

        public ContractBuilder.Impl withText​(@NonNull
                                             @NonNull com.babylonhealth.lit.hl7.model.Narrative text)
        Parameters:
        text - - A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.
      • withSite

        public ContractBuilder.Impl withSite​(@NonNull
                                             @NonNull com.babylonhealth.lit.core.model.Reference... site)
        Parameters:
        site - - Sites in which the contract is complied with, exercised, or in force.
      • withSite

        public ContractBuilder.Impl withSite​(@NonNull
                                             @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> site)
        Parameters:
        site - - Sites in which the contract is complied with, exercised, or in force.
      • withSite

        public ContractBuilder.Impl withSite​(@NonNull
                                             @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder... site)
      • withName

        public ContractBuilder.Impl withName​(@NonNull
                                             @NonNull java.lang.String name)
        Parameters:
        name - - A natural language name identifying this Contract definition, derivative, or instance in any legal state. Provides additional information about its content. This name should be usable as an identifier for the module by machine processing applications such as code generation.
      • withType

        public ContractBuilder.Impl withType​(@NonNull
                                             @NonNull com.babylonhealth.lit.core.model.CodeableConcept _type)
        Parameters:
        _type - - A high-level category for the legal instrument, whether constructed as a Contract definition, derivative, or instance in any legal state. Provides additional information about its content within the context of the Contract's scope to distinguish the kinds of systems that would be interested in the contract.
      • withType

        public ContractBuilder.Impl withType​(@NonNull
                                             @NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder _type)
      • withTitle

        public ContractBuilder.Impl withTitle​(@NonNull
                                              @NonNull java.lang.String title)
        Parameters:
        title - - A short, descriptive, user-friendly title for this Contract definition, derivative, or instance in any legal state.t giving additional information about its content.
      • withAlias

        public ContractBuilder.Impl withAlias​(@NonNull
                                              @NonNull java.lang.String... alias)
        Parameters:
        alias - - Alternative representation of the title for this Contract definition, derivative, or instance in any legal state., e.g., a domain specific contract number related to legislation.
      • withAlias

        public ContractBuilder.Impl withAlias​(@NonNull
                                              @NonNull java.util.Collection<java.lang.String> alias)
        Parameters:
        alias - - Alternative representation of the title for this Contract definition, derivative, or instance in any legal state., e.g., a domain specific contract number related to legislation.
      • withScope

        public ContractBuilder.Impl withScope​(@NonNull
                                              @NonNull com.babylonhealth.lit.core.model.CodeableConcept scope)
        Parameters:
        scope - - A selector of legal concerns for this Contract definition, derivative, or instance in any legal state.
      • withScope

        public ContractBuilder.Impl withScope​(@NonNull
                                              @NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder scope)
      • withStatus

        public ContractBuilder.Impl withStatus​(@NonNull
                                               @NonNull com.babylonhealth.lit.hl7.CONTRACT_STATUS status)
        Parameters:
        status - - The status of the resource instance.
      • withIssued

        public ContractBuilder.Impl withIssued​(@NonNull
                                               @NonNull com.babylonhealth.lit.core.FHIRDateTime issued)
        Parameters:
        issued - - When this Contract was issued.
      • withDomain

        public ContractBuilder.Impl withDomain​(@NonNull
                                               @NonNull com.babylonhealth.lit.core.model.Reference... domain)
        Parameters:
        domain - - Recognized governance framework or system operating with a circumscribed scope in accordance with specified principles, policies, processes or procedures for managing rights, actions, or behaviors of parties or principals relative to resources.
      • withDomain

        public ContractBuilder.Impl withDomain​(@NonNull
                                               @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> domain)
        Parameters:
        domain - - Recognized governance framework or system operating with a circumscribed scope in accordance with specified principles, policies, processes or procedures for managing rights, actions, or behaviors of parties or principals relative to resources.
      • withDomain

        public ContractBuilder.Impl withDomain​(@NonNull
                                               @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder... domain)
      • withAuthor

        public ContractBuilder.Impl withAuthor​(@NonNull
                                               @NonNull com.babylonhealth.lit.core.model.Reference author)
        Parameters:
        author - - The individual or organization that authored the Contract definition, derivative, or instance in any legal state.
      • withAuthor

        public ContractBuilder.Impl withAuthor​(@NonNull
                                               @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder author)
      • withVersion

        public ContractBuilder.Impl withVersion​(@NonNull
                                                @NonNull java.lang.String version)
        Parameters:
        version - - An edition identifier used for business purposes to label business significant variants.
      • withApplies

        public ContractBuilder.Impl withApplies​(@NonNull
                                                @NonNull com.babylonhealth.lit.core.model.Period applies)
        Parameters:
        applies - - Relevant time or time-period when this Contract is applicable.
      • withApplies

        public ContractBuilder.Impl withApplies​(@NonNull
                                                @NonNull com.babylonhealth.lit.core_java.builders.PeriodBuilder applies)
      • withSubject

        public ContractBuilder.Impl withSubject​(@NonNull
                                                @NonNull com.babylonhealth.lit.core.model.Reference... subject)
        Parameters:
        subject - - The target entity impacted by or of interest to parties to the agreement.
      • withSubject

        public ContractBuilder.Impl withSubject​(@NonNull
                                                @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> subject)
        Parameters:
        subject - - The target entity impacted by or of interest to parties to the agreement.
      • withSubject

        public ContractBuilder.Impl withSubject​(@NonNull
                                                @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder... subject)
      • withSubType

        public ContractBuilder.Impl withSubType​(@NonNull
                                                @NonNull com.babylonhealth.lit.core.model.CodeableConcept... subType)
        Parameters:
        subType - - Sub-category for the Contract that distinguishes the kinds of systems that would be interested in the Contract within the context of the Contract's scope.
      • withSubType

        public ContractBuilder.Impl withSubType​(@NonNull
                                                @NonNull java.util.Collection<com.babylonhealth.lit.core.model.CodeableConcept> subType)
        Parameters:
        subType - - Sub-category for the Contract that distinguishes the kinds of systems that would be interested in the Contract within the context of the Contract's scope.
      • withSubType

        public ContractBuilder.Impl withSubType​(@NonNull
                                                @NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder... subType)
      • withLanguage

        public ContractBuilder.Impl withLanguage​(@NonNull
                                                 @NonNull com.babylonhealth.lit.core.LANGUAGES language)
        Parameters:
        language - - The base language in which the resource is written.
      • withSubtitle

        public ContractBuilder.Impl withSubtitle​(@NonNull
                                                 @NonNull java.lang.String subtitle)
        Parameters:
        subtitle - - An explanatory or alternate user-friendly title for this Contract definition, derivative, or instance in any legal state.t giving additional information about its content.
      • withTopic

        public ContractBuilder.Impl withTopic​(@NonNull
                                              @NonNull com.babylonhealth.lit.core_java.model.Unions.ChoiceCodeableConceptOrReference topic)
        Parameters:
        topic - - Narrows the range of legal concerns to focus on the achievement of specific contractual objectives. Field is a 'choice' field. Type should be one of CodeableConcept, Reference. To pass the value in, wrap with one of the ContractBuilder.topic static methods
      • withContained

        public ContractBuilder.Impl withContained​(@NonNull
                                                  @NonNull com.babylonhealth.lit.core.model.Resource... contained)
        Parameters:
        contained - - These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
      • withContained

        public ContractBuilder.Impl withContained​(@NonNull
                                                  @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Resource> contained)
        Parameters:
        contained - - These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
      • withContained

        public ContractBuilder.Impl withContained​(@NonNull
                                                  @NonNull com.babylonhealth.lit.core_java.builders.ResourceBuilder... contained)
      • withExtension

        public ContractBuilder.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 resource. 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 ContractBuilder.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 resource. 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 ContractBuilder.Impl withExtension​(@NonNull
                                                  @NonNull com.babylonhealth.lit.core_java.builders.ExtensionBuilder... extension)
      • withAuthority

        public ContractBuilder.Impl withAuthority​(@NonNull
                                                  @NonNull com.babylonhealth.lit.core.model.Reference... authority)
        Parameters:
        authority - - A formally or informally recognized grouping of people, principals, organizations, or jurisdictions formed for the purpose of achieving some form of collective action such as the promulgation, administration and enforcement of contracts and policies.
      • withAuthority

        public ContractBuilder.Impl withAuthority​(@NonNull
                                                  @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> authority)
        Parameters:
        authority - - A formally or informally recognized grouping of people, principals, organizations, or jurisdictions formed for the purpose of achieving some form of collective action such as the promulgation, administration and enforcement of contracts and policies.
      • withAuthority

        public ContractBuilder.Impl withAuthority​(@NonNull
                                                  @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder... authority)
      • withIdentifier

        public ContractBuilder.Impl withIdentifier​(@NonNull
                                                   @NonNull com.babylonhealth.lit.core.model.Identifier... identifier)
        Parameters:
        identifier - - Unique identifier for this Contract or a derivative that references a Source Contract.
      • withIdentifier

        public ContractBuilder.Impl withIdentifier​(@NonNull
                                                   @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Identifier> identifier)
        Parameters:
        identifier - - Unique identifier for this Contract or a derivative that references a Source Contract.
      • withIdentifier

        public ContractBuilder.Impl withIdentifier​(@NonNull
                                                   @NonNull com.babylonhealth.lit.core_java.builders.IdentifierBuilder... identifier)
      • withLegalState

        public ContractBuilder.Impl withLegalState​(@NonNull
                                                   @NonNull com.babylonhealth.lit.core.model.CodeableConcept legalState)
        Parameters:
        legalState - - Legal states of the formation of a legal instrument, which is a formally executed written document that can be formally attributed to its author, records and formally expresses a legally enforceable act, process, or contractual duty, obligation, or right, and therefore evidences that act, process, or agreement.
      • withLegalState

        public ContractBuilder.Impl withLegalState​(@NonNull
                                                   @NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder legalState)
      • withImplicitRules

        public ContractBuilder.Impl withImplicitRules​(@NonNull
                                                      @NonNull java.lang.String implicitRules)
        Parameters:
        implicitRules - - A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.
      • withExpirationType

        public ContractBuilder.Impl withExpirationType​(@NonNull
                                                       @NonNull com.babylonhealth.lit.core.model.CodeableConcept expirationType)
        Parameters:
        expirationType - - Event resulting in discontinuation or termination of this Contract instance by one or more parties to the contract.
      • withExpirationType

        public ContractBuilder.Impl withExpirationType​(@NonNull
                                                       @NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder expirationType)
      • withSupportingInfo

        public ContractBuilder.Impl withSupportingInfo​(@NonNull
                                                       @NonNull com.babylonhealth.lit.core.model.Reference... supportingInfo)
        Parameters:
        supportingInfo - - Information that may be needed by/relevant to the performer in their execution of this term action.
      • withSupportingInfo

        public ContractBuilder.Impl withSupportingInfo​(@NonNull
                                                       @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> supportingInfo)
        Parameters:
        supportingInfo - - Information that may be needed by/relevant to the performer in their execution of this term action.
      • withSupportingInfo

        public ContractBuilder.Impl withSupportingInfo​(@NonNull
                                                       @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder... supportingInfo)
      • withInstantiatesUri

        public ContractBuilder.Impl withInstantiatesUri​(@NonNull
                                                        @NonNull java.lang.String instantiatesUri)
        Parameters:
        instantiatesUri - - The URL pointing to an externally maintained definition that is adhered to in whole or in part by this Contract.
      • withRelevantHistory

        public ContractBuilder.Impl withRelevantHistory​(@NonNull
                                                        @NonNull com.babylonhealth.lit.core.model.Reference... relevantHistory)
        Parameters:
        relevantHistory - - Links to Provenance records for past versions of this Contract definition, derivative, or instance, which identify key state transitions or updates that are likely to be relevant to a user looking at the current version of the Contract. The Provence.entity indicates the target that was changed in the update. http://build.fhir.org/provenance-definitions.html#Provenance.entity.
      • withRelevantHistory

        public ContractBuilder.Impl withRelevantHistory​(@NonNull
                                                        @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> relevantHistory)
        Parameters:
        relevantHistory - - Links to Provenance records for past versions of this Contract definition, derivative, or instance, which identify key state transitions or updates that are likely to be relevant to a user looking at the current version of the Contract. The Provence.entity indicates the target that was changed in the update. http://build.fhir.org/provenance-definitions.html#Provenance.entity.
      • withRelevantHistory

        public ContractBuilder.Impl withRelevantHistory​(@NonNull
                                                        @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder... relevantHistory)
      • withModifierExtension

        public ContractBuilder.Impl withModifierExtension​(@NonNull
                                                          @NonNull com.babylonhealth.lit.core.model.Extension... modifierExtension)
        Parameters:
        modifierExtension - - May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it 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 is allowed to 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).

      • withModifierExtension

        public ContractBuilder.Impl withModifierExtension​(@NonNull
                                                          @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Extension> modifierExtension)
        Parameters:
        modifierExtension - - May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it 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 is allowed to 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).

      • withModifierExtension

        public ContractBuilder.Impl withModifierExtension​(@NonNull
                                                          @NonNull com.babylonhealth.lit.core_java.builders.ExtensionBuilder... modifierExtension)
      • withContentDerivative

        public ContractBuilder.Impl withContentDerivative​(@NonNull
                                                          @NonNull com.babylonhealth.lit.core.model.CodeableConcept contentDerivative)
        Parameters:
        contentDerivative - - The minimal content derived from the basal information source at a specific stage in its lifecycle.
      • withContentDerivative

        public ContractBuilder.Impl withContentDerivative​(@NonNull
                                                          @NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder contentDerivative)
      • withLegallyBinding

        public ContractBuilder.Impl withLegallyBinding​(@NonNull
                                                       @NonNull Unions.ChoiceAttachmentOrReference legallyBinding)
        Parameters:
        legallyBinding - - Legally binding Contract: This is the signed and legally recognized representation of the Contract, which is considered the "source of truth" and which would be the basis for legal action related to enforcement of this Contract. Field is a 'choice' field. Type should be one of Attachment, Reference. To pass the value in, wrap with one of the ContractBuilder.legallyBinding static methods
      • withInstantiatesCanonical

        public ContractBuilder.Impl withInstantiatesCanonical​(@NonNull
                                                              @NonNull com.babylonhealth.lit.core.model.Reference instantiatesCanonical)
        Parameters:
        instantiatesCanonical - - The URL pointing to a FHIR-defined Contract Definition that is adhered to in whole or part by this Contract.
      • withInstantiatesCanonical

        public ContractBuilder.Impl withInstantiatesCanonical​(@NonNull
                                                              @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder instantiatesCanonical)
      • withRule

        public ContractBuilder.Impl withRule​(@NonNull
                                             @NonNull com.babylonhealth.lit.hl7.model.Contract.Rule... rule)
        Parameters:
        rule - - List of Computable Policy Rule Language Representations of this Contract.
      • withRule

        public ContractBuilder.Impl withRule​(@NonNull
                                             @NonNull java.util.Collection<com.babylonhealth.lit.hl7.model.Contract.Rule> rule)
        Parameters:
        rule - - List of Computable Policy Rule Language Representations of this Contract.
      • withLegal

        public ContractBuilder.Impl withLegal​(@NonNull
                                              @NonNull com.babylonhealth.lit.hl7.model.Contract.Legal... legal)
        Parameters:
        legal - - List of Legal expressions or representations of this Contract.
      • withLegal

        public ContractBuilder.Impl withLegal​(@NonNull
                                              @NonNull java.util.Collection<com.babylonhealth.lit.hl7.model.Contract.Legal> legal)
        Parameters:
        legal - - List of Legal expressions or representations of this Contract.
      • withSigner

        public ContractBuilder.Impl withSigner​(@NonNull
                                               @NonNull com.babylonhealth.lit.hl7.model.Contract.Signer... signer)
        Parameters:
        signer - - Parties with legal standing in the Contract, including the principal parties, the grantor(s) and grantee(s), which are any person or organization bound by the contract, and any ancillary parties, which facilitate the execution of the contract such as a notary or witness.
      • withSigner

        public ContractBuilder.Impl withSigner​(@NonNull
                                               @NonNull java.util.Collection<com.babylonhealth.lit.hl7.model.Contract.Signer> signer)
        Parameters:
        signer - - Parties with legal standing in the Contract, including the principal parties, the grantor(s) and grantee(s), which are any person or organization bound by the contract, and any ancillary parties, which facilitate the execution of the contract such as a notary or witness.
      • withFriendly

        public ContractBuilder.Impl withFriendly​(@NonNull
                                                 @NonNull com.babylonhealth.lit.hl7.model.Contract.Friendly... friendly)
        Parameters:
        friendly - - The "patient friendly language" versionof the Contract in whole or in parts. "Patient friendly language" means the representation of the Contract and Contract Provisions in a manner that is readily accessible and understandable by a layperson in accordance with best practices for communication styles that ensure that those agreeing to or signing the Contract understand the roles, actions, obligations, responsibilities, and implication of the agreement.
      • withFriendly

        public ContractBuilder.Impl withFriendly​(@NonNull
                                                 @NonNull java.util.Collection<com.babylonhealth.lit.hl7.model.Contract.Friendly> friendly)
        Parameters:
        friendly - - The "patient friendly language" versionof the Contract in whole or in parts. "Patient friendly language" means the representation of the Contract and Contract Provisions in a manner that is readily accessible and understandable by a layperson in accordance with best practices for communication styles that ensure that those agreeing to or signing the Contract understand the roles, actions, obligations, responsibilities, and implication of the agreement.
      • withContentDefinition

        public ContractBuilder.Impl withContentDefinition​(@NonNull
                                                          com.babylonhealth.lit.hl7.model.Contract.ContentDefinition contentDefinition)
        Parameters:
        contentDefinition - - Precusory content developed with a focus and intent of supporting the formation a Contract instance, which may be associated with and transformable into a Contract.
      • withTerm

        public ContractBuilder.Impl withTerm​(@NonNull
                                             @NonNull com.babylonhealth.lit.hl7.model.Contract.Term... term)
        Parameters:
        term - - One or more Contract Provisions, which may be related and conveyed as a group, and may contain nested groups.
      • withTerm

        public ContractBuilder.Impl withTerm​(@NonNull
                                             @NonNull java.util.Collection<com.babylonhealth.lit.hl7.model.Contract.Term> term)
        Parameters:
        term - - One or more Contract Provisions, which may be related and conveyed as a group, and may contain nested groups.
      • build

        public com.babylonhealth.lit.hl7.model.Contract build()
        Specified by:
        build in interface ContractBuilder
        Specified by:
        build in interface DomainResourceBuilder
        Specified by:
        build in interface com.babylonhealth.lit.core_java.builders.ResourceBuilder