import { ActivityDefinition } from './ActivityDefinition.js';
import { Annotation } from './Annotation.js';
import { BodyStructure } from './BodyStructure.js';
import { CarePlan } from './CarePlan.js';
import { CareTeam } from './CareTeam.js';
import { ClaimResponse } from './ClaimResponse.js';
import { CodeableConcept } from './CodeableConcept.js';
import { CodeableReference } from './CodeableReference.js';
import { Condition } from './Condition.js';
import { Coverage } from './Coverage.js';
import { DetectedIssue } from './DetectedIssue.js';
import { Device } from './Device.js';
import { DiagnosticReport } from './DiagnosticReport.js';
import { DocumentReference } from './DocumentReference.js';
import { Encounter } from './Encounter.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 { Location } from './Location.js';
import { MedicationRequest } from './MedicationRequest.js';
import { Meta } from './Meta.js';
import { Narrative } from './Narrative.js';
import { Observation } from './Observation.js';
import { Organization } from './Organization.js';
import { Patient } from './Patient.js';
import { Period } from './Period.js';
import { PlanDefinition } from './PlanDefinition.js';
import { Practitioner } from './Practitioner.js';
import { PractitionerRole } from './PractitionerRole.js';
import { Provenance } from './Provenance.js';
import { Quantity } from './Quantity.js';
import { Range } from './Range.js';
import { Ratio } from './Ratio.js';
import { Reference } from './Reference.js';
import { RelatedPerson } from './RelatedPerson.js';
import { Resource } from './Resource.js';
import { ServiceRequest_OrderDetail } from './ServiceRequest_OrderDetail.js';
import { ServiceRequest_PatientInstruction } from './ServiceRequest_PatientInstruction.js';
import { Specimen } from './Specimen.js';
import { Timing } from './Timing.js';
export interface ServiceRequest {
    /**
     * @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 Identifiers assigned to this order instance by the orderer andor the receiver andor order fulfiller.
     * @comment The identifier.type element is used to distinguish between the identifiers assigned by the orderer (known as the 'Placer' in HL7 V2) and the producer of the observations in response to the order (known as the 'Filler' in HL7 V2).  For further discussion and examples see the resource notes section below.
     * @short Identifiers assigned to this order
     */
    identifier?: Identifier[];
    /**
     * @description The URL pointing to a FHIR-defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this ServiceRequest.
     * @comment The PlanDefinition resource is used to describe series, sequences, or groups of actions to be taken, while the ActivityDefinition resource is used to define each specific step or activity to be performed. More information can be found in the [Boundaries and Relationships](plandefinition.html#12.23.2) section for PlanDefinition.
     * @short Instantiates FHIR protocol or definition
     */
    instantiatesCanonical?: FhirPrimitive<string>[];
    /**
     * @description The URL pointing to an externally maintained protocol, guideline, orderset or other definition that is adhered to in whole or in part by this ServiceRequest.
     * @comment This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.
     * @short Instantiates external protocol or definition
     */
    instantiatesUri?: FhirPrimitive<string>[];
    /**
     * @description Planproposalorder fulfilled by this request.
     * @short What request fulfills
     */
    basedOn?: Reference<CarePlan | ServiceRequest | MedicationRequest>[];
    /**
     * @description The request takes the place of the referenced completed or terminated request(s).
     * @short What request replaces
     */
    replaces?: Reference<ServiceRequest>[];
    /**
     * @description A shared identifier common to all service requests that were authorized more or less simultaneously by a single author, representing the composite or group identifier.
     * @comment Requests are linked either by a "basedOn" relationship (i.e. one request is fulfilling another) or by having a common requisition. Requests that are part of the same requisition are generally treated independently from the perspective of changing their state or maintaining them after initial creation.
     * @short Composite Request ID
     */
    requisition?: Identifier;
    /**
     * @description The status of the order.
     * @comment The status is generally fully in the control of the requester - they determine whether the order is draft or active and, after it has been activated, competed, revoked or placed on-hold. States relating to the activities of the performer are reflected on either the corresponding event (see [Event Pattern](event.html) for general discussion) or using the [Task](task.html) resource.
     * @short draft | active | on-hold | revoked | completed | entered-in-error | unknown
     */
    status: FhirPrimitive<string>;
    /**
     * @description Whether the request is a proposal, plan, an original order or a reflex order.
     * @comment This element is labeled as a modifier because the intent alters when and how the resource is actually applicable.
     * @short proposal | plan | directive | order +
     */
    intent: FhirPrimitive<string>;
    /**
     * @description A code that classifies the service for searching, sorting and display purposes (e.g. "Surgical Procedure").
     * @comment There may be multiple axis of categorization depending on the context or use case for retrieving or displaying the resource.  The level of granularity is defined by the category concepts in the value set.
     * @short Classification of service
     */
    category?: CodeableConcept[];
    /**
     * @description Indicates how quickly the ServiceRequest should be addressed with respect to other requests.
     * @short routine | urgent | asap | stat
     */
    priority?: FhirPrimitive<string>;
    /**
     * @description Set this to true if the record is saying that the serviceprocedure should NOT be performed.
     * @comment In general, only the code and timeframe will be present, though occasional additional qualifiers such as body site or even performer could be included to narrow the scope of the prohibition.  If the ServiceRequest.code and ServiceRequest.doNotPerform both contain negation, that will reinforce prohibition and should not have a double negative interpretation.
     * @short True if serviceprocedure should not be performed
     */
    doNotPerform?: FhirPrimitive<boolean>;
    /**
     * @description A code or reference that identifies a particular service (i.e., procedure, diagnostic investigation, or panel of investigations) that have been requested.
     * @comment Many laboratory and radiology procedure codes embed the specimenorgan system in the test order name, for example,  serum or serumplasma glucose, or a chest x-ray. The specimen might not be recorded separately from the test code.
     * @short What is being requestedordered
     */
    code?: CodeableReference<ActivityDefinition | PlanDefinition>;
    /**
     * @backbone Nested BackboneElement: orderDetail [0..*]
     */
    orderDetail?: ServiceRequest_OrderDetail[];
    /**
     * @choice This is part of the quantity[x] choice.
     * @oneOf quantityQuantity, quantityRatio, quantityRange
     */
    quantityQuantity?: Quantity;
    /**
     * @choice This is part of the quantity[x] choice.
     * @oneOf quantityQuantity, quantityRatio, quantityRange
     */
    quantityRatio?: Ratio;
    /**
     * @choice This is part of the quantity[x] choice.
     * @oneOf quantityQuantity, quantityRatio, quantityRange
     */
    quantityRange?: Range;
    /**
     * @description On whom or what the service is to be performed. This is usually a human patient, but can also be requested on animals, groups of humans or animals, devices such as dialysis machines, or even locations (typically for environmental scans).
     * @short Individual or Entity the service is ordered for
     */
    subject: Reference<Patient | Group | Location | Device>;
    /**
     * @description The actual focus of a service request when it is not the subject of record representing something or someone associated with the subject such as a spouse, parent, fetus, or donor. The focus of a service request could also be an existing condition,  an intervention, the subject's diet,  another service request on the subject,  or a body structure such as tumor or implanted device.
     * @short What the service request is about, when it is not about the subject of record
     */
    focus?: Reference<Resource>[];
    /**
     * @description An encounter that provides additional information about the healthcare context in which this request is made.
     * @short Encounter in which the request was created
     */
    encounter?: Reference<Encounter>;
    /**
     * @choice This is part of the occurrence[x] choice.
     * @oneOf occurrenceDateTime, occurrencePeriod, occurrenceTiming
     */
    occurrenceDateTime?: FhirPrimitive<string>;
    /**
     * @choice This is part of the occurrence[x] choice.
     * @oneOf occurrenceDateTime, occurrencePeriod, occurrenceTiming
     */
    occurrencePeriod?: Period;
    /**
     * @choice This is part of the occurrence[x] choice.
     * @oneOf occurrenceDateTime, occurrencePeriod, occurrenceTiming
     */
    occurrenceTiming?: Timing;
    /**
     * @choice This is part of the asNeeded[x] choice.
     * @oneOf asNeededBoolean, asNeededCodeableConcept
     */
    asNeededBoolean?: FhirPrimitive<boolean>;
    /**
     * @choice This is part of the asNeeded[x] choice.
     * @oneOf asNeededBoolean, asNeededCodeableConcept
     */
    asNeededCodeableConcept?: CodeableConcept;
    /**
     * @description When the request transitioned to being actionable.
     * @short Date request signed
     */
    authoredOn?: FhirPrimitive<string>;
    /**
     * @description The individual who initiated the request and has responsibility for its activation.
     * @comment This not the dispatcher, but rather who is the authorizer.  This element is not intended to handle delegation which would generally be managed through the Provenance resource.
     * @short Whowhat is requesting service
     */
    requester?: Reference<Practitioner | PractitionerRole | Organization | Patient | RelatedPerson | Device>;
    /**
     * @description Desired type of performer for doing the requested service.
     * @comment This is a  role, not  a participation type.  In other words, does not describe the task but describes the capacity.  For example, “compounding pharmacy”, “psychiatrist” or “internal referral”.
     * @short Performer role
     */
    performerType?: CodeableConcept;
    /**
     * @description The desired performer for doing the requested service.  For example, the surgeon, dermatopathologist, endoscopist, etc.
     * @comment If multiple performers are present, it is interpreted as a list of alternative performers without any preference regardless of order.  If order of preference is needed use the [http:hl7.orgfhirStructureDefinitionrequest-performerOrder](http:hl7.orgfhirextensionsStructureDefinition-request-performerOrder.html).  Use CareTeam to represent a group of performers (for example, Practitioner A and Practitioner B).
     * @short Requested performer
     */
    performer?: Reference<Practitioner | PractitionerRole | Organization | CareTeam | HealthcareService | Patient | Device | RelatedPerson>[];
    /**
     * @description The preferred location(s) where the procedure should actually happen in coded or free text form. E.g. at home or nursing day care center.
     * @short Requested location
     */
    location?: CodeableReference<Location>[];
    /**
     * @description An explanation or justification for why this service is being requested in coded or textual form.   This is often for billing purposes.  May relate to the resources referred to in `supportingInfo`.
     * @comment This element represents why the referral is being made and may be used to decide how the service will be performed, or even if it will be performed at all. To be as specific as possible,  a reference to  Observation or Condition should be used if available.  Otherwise, use `concept.text` element if the data is free (uncoded) text as shown in the [CT Scan example](servicerequest-example-di.html).
     * @short ExplanationJustification for procedure or service
     */
    reason?: CodeableReference<Condition | Observation | DiagnosticReport | DocumentReference | DetectedIssue>[];
    /**
     * @description Insurance plans, coverage extensions, pre-authorizations andor pre-determinations that may be needed for delivering the requested service.
     * @short Associated insurance coverage
     */
    insurance?: Reference<Coverage | ClaimResponse>[];
    /**
     * @description Additional clinical information about the patient or specimen that may influence the services or their interpretations.     This information includes diagnosis, clinical findings and other observations.  In laboratory ordering these are typically referred to as "ask at order entry questions (AOEs)".  This includes observations explicitly requested by the producer (filler) to provide context or supporting information needed to complete the order. For example,  reporting the amount of inspired oxygen for blood gas measurements.
     * @comment To represent information about how the services are to be delivered use the `instructions` element.
     * @short Additional clinical information
     */
    supportingInfo?: CodeableReference<Resource>[];
    /**
     * @description One or more specimens that the laboratory procedure will use.
     * @comment The purpose of the ServiceRequest.specimen is to reflect the actual specimen that the requested testprocedure is asked to be performed on, whether the lab already has it or not.  References to specimens for purposes other than to perform a testprocedure on should be made using the ServiceRequest.supportingInfo or the Specimen.parent where the Specimen.parent would enable descendency and ServiceRequest.supportingInfo a general reference for context.
     * @short Procedure Samples
     */
    specimen?: Reference<Specimen>[];
    /**
     * @description Anatomic location where the procedure should be performed. This is the target site.
     * @comment Only used if not implicit in the code found in ServiceRequest.code.  If the use case requires BodySite to be handled as a separate resource instead of an inline coded element (e.g. to identify and track separately)  then use the standard extension [http:hl7.orgfhirStructureDefinitionprocedure-targetBodyStructure](http:hl7.orgfhirextensionsStructureDefinition-procedure-targetBodyStructure.html).
     * @short Coded location on Body
     */
    bodySite?: CodeableConcept[];
    /**
     * @description Anatomic location where the procedure should be performed. This is the target site.
     * @short BodyStructure-based location on the body
     */
    bodyStructure?: Reference<BodyStructure>;
    /**
     * @description Any other notes and comments made about the service request. For example, internal billing notes.
     * @short Comments
     */
    note?: Annotation[];
    /**
     * @backbone Nested BackboneElement: patientInstruction [0..*]
     */
    patientInstruction?: ServiceRequest_PatientInstruction[];
    /**
     * @description Key events in the history of the request.
     * @comment This might not include provenances for all versions of the request – only those deemed “relevant” or important.
  This SHALL NOT include the Provenance associated with this current version of the resource.  (If that provenance is deemed to be a “relevant” change, it will need to be added as part of a later update.  Until then, it can be queried directly as the Provenance that points to this version using _revinclude
  All Provenances should have some historical version of this Request as their subject.
     * @short Request provenance
     */
    relevantHistory?: Reference<Provenance>[];
    /**
     * @const Auto-injected fixed value: ServiceRequest
     */
    resourceType: "ServiceRequest";
}
//# sourceMappingURL=ServiceRequest.d.ts.map