import { Account } from './Account.js';
import { Annotation } from './Annotation.js';
import { Appointment_Participant } from './Appointment_Participant.js';
import { Appointment_RecurrenceTemplate } from './Appointment_RecurrenceTemplate.js';
import { Binary } from './Binary.js';
import { CarePlan } from './CarePlan.js';
import { CodeableConcept } from './CodeableConcept.js';
import { CodeableReference } from './CodeableReference.js';
import { Communication } from './Communication.js';
import { Condition } from './Condition.js';
import { DeviceRequest } from './DeviceRequest.js';
import { DocumentReference } from './DocumentReference.js';
import { Extension } from './Extension.js';
import { FhirPrimitive } from './FhirPrimitive.js';
import { Group } from './Group.js';
import { HealthcareService } from './HealthcareService.js';
import { Identifier } from './Identifier.js';
import { ImmunizationRecommendation } from './ImmunizationRecommendation.js';
import { MedicationRequest } from './MedicationRequest.js';
import { Meta } from './Meta.js';
import { Narrative } from './Narrative.js';
import { Observation } from './Observation.js';
import { Patient } from './Patient.js';
import { Period } from './Period.js';
import { Procedure } from './Procedure.js';
import { Reference } from './Reference.js';
import { Resource } from './Resource.js';
import { ServiceRequest } from './ServiceRequest.js';
import { Slot } from './Slot.js';
import { VirtualServiceDetail } from './VirtualServiceDetail.js';
export interface Appointment {
    /**
     * @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 This records identifiers associated with this appointment concern that are defined by business processes andor used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written  printed documentation).
     * @short External Ids for this item
     */
    identifier?: Identifier[];
    /**
     * @description The overall status of the Appointment. Each of the participants has their own participation status which indicates their involvement in the process, however this status indicates the shared status.
     * @comment If the Appointment's status is "cancelled" then all participants are expected to have their calendars released for the appointment period, and as such any Slots that were marked as BUSY can be re-set to FREE.
  
  This element is labeled as a modifier because the status contains the code entered-in-error that mark the Appointment as not currently valid.
     * @short proposed | pending | booked | arrived | fulfilled | cancelled | noshow | entered-in-error | checked-in | waitlist
     */
    status: FhirPrimitive<string>;
    /**
     * @description The coded reason for the appointment being cancelled. This is often used in reportingbillingfuther processing to determine if further actions are required, or specific fees apply.
     * @short The coded reason for the appointment being cancelled
     */
    cancellationReason?: CodeableConcept;
    /**
     * @description Concepts representing classification of patient encounter such as ambulatory (outpatient), inpatient, emergency, home health or others due to local variations.
     * @short Classification when becoming an encounter
     */
    class?: CodeableConcept[];
    /**
     * @description A broad categorization of the service that is to be performed during this appointment.
     * @short A broad categorization of the service that is to be performed during this appointment
     */
    serviceCategory?: CodeableConcept[];
    /**
     * @description The specific service that is to be performed during this appointment.
     * @comment For a provider to provider appointment the code "FOLLOWUP" may be appropriate, as this is expected to be discussing some patient that was seen in the past.
     * @short The specific service that is to be performed during this appointment
     */
    serviceType?: CodeableReference<HealthcareService>[];
    /**
     * @description The specialty of a practitioner that would be required to perform the service requested in this appointment.
     * @short The specialty of a practitioner that would be required to perform the service requested in this appointment
     */
    specialty?: CodeableConcept[];
    /**
     * @description The style of appointment or patient that has been booked in the slot (not service type).
     * @short The style of appointment or patient that has been booked in the slot (not service type)
     */
    appointmentType?: CodeableConcept;
    /**
     * @description The reason that this appointment is being scheduled. This is more clinical than administrative. This can be coded, or as specified using information from another resource. When the patient arrives and the encounter begins it may be used as the admission diagnosis. The indication will typically be a Condition (with other resources referenced in the evidence.detail), or a Procedure.
     * @short Reason this appointment is scheduled
     */
    reason?: CodeableReference<Condition | Procedure | Observation | ImmunizationRecommendation>[];
    /**
     * @description The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority).
     * @comment Seeking implementer feedback on this property and how interoperable it is.
  
  Using an extension to record a CodeableConcept for named values may be tested at a future connectathon.
     * @short Used to make informed decisions if needing to re-prioritize
     */
    priority?: CodeableConcept;
    /**
     * @description The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the note field.
     * @short Shown on a subject line in a meeting request, or appointment list
     */
    description?: FhirPrimitive<string>;
    /**
     * @description Appointment replaced by this Appointment in cases where there is a cancellation, the details of the cancellation can be found in the cancellationReason property (on the referenced resource).
     * @short Appointment replaced by this Appointment
     */
    replaces?: Reference<Appointment>[];
    /**
     * @description Connection details of a virtual service (e.g. conference call).
     * @comment There are two types of virtual meetings that often exist:
  
   a persistent, virtual meeting room that can only be used for a single purpose at a time,
   and a dynamic virtual meeting room that is generated on demand for a specific purpose.
  
  Implementers may consider using Location.virtualService for persistent meeting rooms.
  
  If each participant would have a different meeting link, an extension using the VirtualServiceContactDetail  can be applied to the Appointment.participant BackboneElement.
     * @short Connection details of a virtual service (e.g. conference call)
     */
    virtualService?: VirtualServiceDetail[];
    /**
     * @description Additional information to support the appointment provided when making the appointment.
     * @short Additional information to support the appointment
     */
    supportingInformation?: Reference<Resource>[];
    /**
     * @description The previous appointment in a series of related appointments.
     * @comment This property is intended for use when representing a series of related appointments.  For example, in a nuclear medicine procedure, where there is an appointment for the injection of the isotopes, and then a subsequent appointment for the scan, the scan appointment would refer to the injection appointment via Appointment.previousAppointment.  For representing recurring appointments, see the guidance on recurring vs. series appointments.
     * @short The previous appointment in a series
     */
    previousAppointment?: Reference<Appointment>;
    /**
     * @description The originating appointment in a recurring set of related appointments.
     * @comment This property is intended for use when representing a recurring set of related appointments.
  
  For example, a patient undergoing physical therapy may have a recurring appointment every Tuesday and Thursday.  Each occurrence of the set will refer to the originating appointment, which contains the recurring template information.  For representing appointment series, see the guidance on recurring vs. series appointments.
     * @short The originating appointment in a recurring set of appointments
     */
    originatingAppointment?: Reference<Appointment>;
    /**
     * @description DateTime that the appointment is to take place.
     * @comment If actual startend times are not known then the requested period startend can be used.
     * @short When appointment is to take place
     */
    start?: FhirPrimitive<string>;
    /**
     * @description DateTime that the appointment is to conclude.
     * @comment If actual startend times are not known then the requested period startend can be used.
     * @short When appointment is to conclude
     */
    end?: FhirPrimitive<string>;
    /**
     * @description Number of minutes that the appointment is to take. This can be less than the duration between the start and end times.  For example, where the actual time of appointment is only an estimate or if a 30 minute appointment is being requested, but any time would work.  Also, if there is, for example, a planned 15 minute break in the middle of a long appointment, the duration may be 15 minutes less than the difference between the start and end.
     * @short Can be less than startend (e.g. estimate)
     */
    minutesDuration?: FhirPrimitive<number>;
    /**
     * @description A set of date ranges (potentially including times) that the appointment is preferred to be scheduled within.
  
  The duration (usually in minutes) could also be provided to indicate the length of the appointment to fill and populate the startend times for the actual allocated time. However, in other situations the duration may be calculated by the scheduling system.
     * @comment This does not introduce a capacity for recurring appointments.
     * @short Potential datetime interval(s) requested to allocate the appointment within
     */
    requestedPeriod?: Period[];
    /**
     * @description The slots from the participants' schedules that will be filled by the appointment.
     * @short The slots that this appointment is filling
     */
    slot?: Reference<Slot>[];
    /**
     * @description The set of accounts that is expected to be used for billing the activities that result from this Appointment.
     * @comment The specified account(s) could be those identified during pre-registration workflows in preparation for an upcoming Encounter.
     * @short The set of accounts that may be used for billing for this Appointment
     */
    account?: Reference<Account>[];
    /**
     * @description The date that this appointment was initially created. This could be different to the meta.lastModified value on the initial entry, as this could have been before the resource was created on the FHIR server, and should remain unchanged over the lifespan of the appointment.
     * @comment This property is required for many use cases where the age of an appointment is considered in processing workflows for scheduling and billing of appointments.
     * @short The date that this appointment was initially created
     */
    created?: FhirPrimitive<string>;
    /**
     * @description The datetime describing when the appointment was cancelled.
     * @comment If the appointment was cancelled multiple times, this would reflect the most recent cancellation.
     * @short When the appointment was cancelled
     */
    cancellationDate?: FhirPrimitive<string>;
    /**
     * @description Additional notescomments about the appointment.
     * @comment Additional text to aid in facilitating the appointment. For instance, a note might be, "patient should proceed immediately to infusion room upon arrival"
  
  Where this is a planned appointment and the startend dates are not set then this field can be used to provide additional guidance on the details of the appointment request, including any restrictions on when to book it.
  
  Typically only the concept.text will be used, however occasionally a reference to some generic documentation (or specific) and also supports coded instructions ifwhen they are required.
     * @short Additional comments
     */
    note?: Annotation[];
    /**
     * @description While Appointment.note contains information for internal use, Appointment.patientInstructions is used to capture patient facing information about the Appointment (e.g. please bring your referral or fast from 8pm night before).
     * @short Detailed information and instructions for the patient
     */
    patientInstruction?: CodeableReference<DocumentReference | Binary | Communication>[];
    /**
     * @description The request this appointment is allocated to assess (e.g. incoming referral or procedure request).
     * @short The request this appointment is allocated to assess
     */
    basedOn?: Reference<CarePlan | DeviceRequest | MedicationRequest | ServiceRequest>[];
    /**
     * @description The patient or group associated with the appointment, if they are to be present (usually) then they should also be included in the participant backbone element.
     * @short The patient or group associated with the appointment
     */
    subject?: Reference<Patient | Group>;
    /**
     * @backbone Nested BackboneElement: participant [1..*]
     */
    participant: Appointment_Participant[];
    /**
     * @description The sequence number that identifies a specific appointment in a recurring pattern.
     * @short The sequence number in the recurrence
     */
    recurrenceId?: FhirPrimitive<number>;
    /**
     * @description This appointment varies from the recurring pattern.
     * @comment For example, if a patient has physical therapy appointments every Tuesday and Thursday, but due to a national holiday, a single occurrence was rescheduled to a different day, while the rest of the recurring series remained on Tuesday  Thursday.
     * @short Indicates that this appointment varies from a recurrence pattern
     */
    occurrenceChanged?: FhirPrimitive<boolean>;
    /**
     * @backbone Nested BackboneElement: recurrenceTemplate [0..*]
     */
    recurrenceTemplate?: Appointment_RecurrenceTemplate[];
    /**
     * @const Auto-injected fixed value: Appointment
     */
    resourceType: "Appointment";
}
//# sourceMappingURL=Appointment.d.ts.map