Class RelatedArtifactBuilder.Impl

    • Constructor Detail

      • Impl

        public Impl​(com.babylonhealth.lit.core.RELATED_ARTIFACT_TYPE _type)
        Required fields for RelatedArtifact
        Parameters:
        _type - - The type of relationship to the related artifact.
    • Method Detail

      • withId

        public RelatedArtifactBuilder.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.
      • withUrl

        public RelatedArtifactBuilder.Impl withUrl​(@NonNull
                                                   @NonNull java.lang.String url)
        Parameters:
        url - - A url for the artifact that can be followed to access the actual content.
      • withLabel

        public RelatedArtifactBuilder.Impl withLabel​(@NonNull
                                                     @NonNull java.lang.String label)
        Parameters:
        label - - A short label that can be used to reference the citation from elsewhere in the containing artifact, such as a footnote index.
      • withDisplay

        public RelatedArtifactBuilder.Impl withDisplay​(@NonNull
                                                       @NonNull java.lang.String display)
        Parameters:
        display - - A brief description of the document or knowledge resource being referenced, suitable for display to a consumer.
      • withCitation

        public RelatedArtifactBuilder.Impl withCitation​(@NonNull
                                                        @NonNull java.lang.String citation)
        Parameters:
        citation - - A bibliographic citation for the related artifact. This text SHOULD be formatted according to an accepted citation format.
      • withDocument

        public RelatedArtifactBuilder.Impl withDocument​(@NonNull
                                                        @NonNull com.babylonhealth.lit.core.model.Attachment document)
        Parameters:
        document - - The document being referenced, represented as an attachment. This is exclusive with the resource element.
      • withResource

        public RelatedArtifactBuilder.Impl withResource​(@NonNull
                                                        @NonNull java.lang.String resource)
        Parameters:
        resource - - The related resource, such as a library, value set, profile, or other knowledge resource.
      • withExtension

        public RelatedArtifactBuilder.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 RelatedArtifactBuilder.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.