import { Annotation } from './Annotation.js';
import { CodeableConcept } from './CodeableConcept.js';
import { Composition_Attester } from './Composition_Attester.js';
import { Composition_Event } from './Composition_Event.js';
import { Composition_Section } from './Composition_Section.js';
import { Device } from './Device.js';
import { Encounter } from './Encounter.js';
import { Extension } from './Extension.js';
import { FhirPrimitive } from './FhirPrimitive.js';
import { Identifier } from './Identifier.js';
import { Meta } from './Meta.js';
import { Narrative } from './Narrative.js';
import { Organization } from './Organization.js';
import { Patient } from './Patient.js';
import { Practitioner } from './Practitioner.js';
import { PractitionerRole } from './PractitionerRole.js';
import { Reference } from './Reference.js';
import { RelatedArtifact } from './RelatedArtifact.js';
import { RelatedPerson } from './RelatedPerson.js';
import { Resource } from './Resource.js';
import { UsageContext } from './UsageContext.js';
export interface Composition {
    /**
     * @description The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
     * @comment Within the context of the FHIR RESTful interactions, the resource has an id except for cases like the create and conditional update. Otherwise, the use of the resouce id depends on the given use case.
     * @short Logical id of this artifact
     */
    id?: string;
    /**
     * @description 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.
     * @short Metadata about the resource
     */
    meta?: Meta;
    /**
     * @description 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.
     * @comment Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers andor specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of its narrative along with other profiles, value sets, etc.
     * @short A set of rules under which this content was created
     */
    implicitRules?: FhirPrimitive<string>;
    /**
     * @description The base language in which the resource is written.
     * @comment Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).
     * @short Language of the resource content
     */
    language?: FhirPrimitive<string>;
    /**
     * @description 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.
     * @comment Contained resources do not have a narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a "text blob" or where text is additionally entered raw or narrated and encoded information is added later.
     * @short Text summary of the resource, for human interpretation
     */
    text?: Narrative;
    /**
     * @description These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, nor can they have their own independent transaction scope. This is allowed to be a Parameters resource if and only if it is referenced by a resource that provides contextmeaning.
     * @comment This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags in their meta elements, but SHALL NOT have security labels.
     * @short Contained, inline Resources
     */
    contained?: Resource[];
    /**
     * @description 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 managable, 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.
     * @comment There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
     * @short Additional content defined by implementations
     */
    extension?: Extension[];
    /**
     * @description 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 andor the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, 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).
     * @comment There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
     * @short Extensions that cannot be ignored
     */
    modifierExtension?: Extension[];
    /**
     * @description An absolute URI that is used to identify this Composition when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which an authoritative instance of this Composition is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the Composition is stored on different servers.
     * @comment Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred. Multiple instances may share the same URL if they have a distinct version.
     * @short Canonical identifier for this Composition, represented as a URI (globally unique)
     */
    url?: FhirPrimitive<string>;
    /**
     * @description A version-independent identifier for the Composition. This identifier stays constant as the composition is changed over time.
     * @comment Similar to ClinicalDocumentsetId in CDA. See discussion in resource definition for how these relate.
     * @short Version-independent identifier for the Composition
     */
    identifier?: Identifier[];
    /**
     * @description An explicitly assigned identifer of a variation of the content in the Composition.
     * @comment While each resource, including the composition itself, has its own version identifier, this is a formal identifier for the logical version of the Composition as a whole. It would remain constant if the resources were moved to a new server, and all got new individual resource versions, for example.
     * @short An explicitly assigned identifer of a variation of the content in the Composition
     */
    version?: FhirPrimitive<string>;
    /**
     * @description The workflowclinical status of this composition. The status is a marker for the clinical standing of the document.
     * @comment If a composition is marked as withdrawn, the compositionsdocuments in the series, or data from the composition or document series, should never be displayed to a user without being clearly marked as untrustworthy. The flag "entered-in-error" is why this element is labeled as a modifier of other elements.
  
  Some reporting work flows require that the original narrative of a final document never be altered; instead, only new narrative can be added. The composition resource has no explicit status for explicitly noting whether this business rule is in effect. This would be handled by an extension if required.
     * @short registered | partial | preliminary | final | amended | corrected | appended | cancelled | entered-in-error | deprecated | unknown
     */
    status: FhirPrimitive<string>;
    /**
     * @description Specifies the particular kind of composition (e.g. History and Physical, Discharge Summary, Progress Note). This usually equates to the purpose of making the composition.
     * @comment For Composition type, LOINC is ubiquitous and strongly endorsed by HL7. Most implementation guides will require a specific LOINC code, or use LOINC as an extensible binding.
     * @short Kind of composition (LOINC if possible)
     */
    type: CodeableConcept;
    /**
     * @description A categorization for the type of the composition - helps for indexing and searching. This may be implied by or derived from the code specified in the Composition Type.
     * @short Categorization of Composition
     */
    category?: CodeableConcept[];
    /**
     * @description Who or what the composition is about. The composition can be about a person, (patient or healthcare practitioner), a device (e.g. a machine) or even a group of subjects (such as a document about a herd of livestock, or a set of patients that share a common exposure).
     * @comment For clinical documents, this is usually the patient.
     * @short Who andor what the composition is about
     */
    subject?: Reference<Resource>[];
    /**
     * @description Describes the clinical encounter or type of care this documentation is associated with.
     * @short Context of the Composition
     */
    encounter?: Reference<Encounter>;
    /**
     * @description The composition editing time, when the composition was last logically changed by the author.
     * @comment The Last Modified Date on the composition may be after the date of the document was attested without being changed. This means that the date on an amended document is the date of the amendment, not the date of original authorship.
     * @short Composition editing time
     */
    date: FhirPrimitive<string>;
    /**
     * @description The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate Composition instances.
     * @comment When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.
     * @short The context that the content is intended to support
     */
    useContext?: UsageContext[];
    /**
     * @description Identifies who is responsible for the information in the composition, not necessarily who typed it in.
     * @short Who andor what authored the composition
     */
    author: Reference<Practitioner | PractitionerRole | Device | Patient | RelatedPerson | Organization>[];
    /**
     * @description A natural language name identifying the {{title}}. This name should be usable as an identifier for the module by machine processing applications such as code generation.
     * @comment The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.
     * @short Name for this Composition (computer friendly)
     */
    name?: FhirPrimitive<string>;
    /**
     * @description Official human-readable label for the composition.
     * @comment For many compositions, the title is the same as the text or a display name of Composition.type (e.g. a "consultation" or "progress note"). Note that CDA does not make title mandatory, but there are no known cases where it is useful for title to be omitted, so it is mandatory here. Feedback on this requirement is welcome during the trial use period.
     * @short Human Readable nametitle
     */
    title: FhirPrimitive<string>;
    /**
     * @description For any additional notes.
     * @comment A comment, general note or annotation not coded elsewhere.
     * @short For any additional notes
     */
    note?: Annotation[];
    /**
     * @backbone Nested BackboneElement: attester [0..*]
     */
    attester?: Composition_Attester[];
    /**
     * @description Identifies the organization or group who is responsible for ongoing maintenance of and access to the compositiondocument information.
     * @comment This is useful when documents are derived from a composition - provides guidance for how to get the latest version of the document. This is optional because this is sometimes not known by the authoring system, and can be inferred by context. However, it is important that this information be known when working with a derived document, so providing a custodian is encouraged.
     * @short Organization which maintains the composition
     */
    custodian?: Reference<Organization>;
    /**
     * @description Relationships that this composition has with other compositions or documents that already exist.
     * @comment To reference (using relatesTo) a Bundle of type "document" or another Composition where you only have the identifier, use a resourceReference with an identifier.\
  When a Composition is an alternate representation of another type of document e.g. CDA, the other document could be referenced in a DocumentReference resource.
  Here is an example of using relatesTo to reference another Bundle of type "document" or Composition where you only have the identifier:
  ```
  "relatesTo": [{
    "type": "replaces",
    "resourceReference": {
      "identifier": {
        "system": "...",
        "value": "..."
      }
    }
  }]
  ```
     * @short Relationships to other compositionsdocuments
     */
    relatesTo?: RelatedArtifact[];
    /**
     * @backbone Nested BackboneElement: event [0..*]
     */
    event?: Composition_Event[];
    /**
     * @backbone Nested BackboneElement: section [0..*]
     */
    section?: Composition_Section[];
    /**
     * @const Auto-injected fixed value: Composition
     */
    resourceType: "Composition";
}
//# sourceMappingURL=Composition.d.ts.map