@medplum/fhirtypes
Version:
Medplum FHIR Type Definitions
82 lines (71 loc) • 2.84 kB
TypeScript
/*
* This is a generated file
* Do not edit manually.
*/
import { CodeableConcept } from './CodeableConcept';
import { Coding } from './Coding';
import { Extension } from './Extension';
import { Group } from './Group';
import { HealthcareService } from './HealthcareService';
import { InsurancePlan } from './InsurancePlan';
import { Location } from './Location';
import { Organization } from './Organization';
import { PlanDefinition } from './PlanDefinition';
import { Quantity } from './Quantity';
import { Range } from './Range';
import { Reference } from './Reference';
import { ResearchStudy } from './ResearchStudy';
/**
* Specifies clinical/business/etc. metadata that can be used to
* retrieve, index and/or categorize an artifact. This metadata can
* either be specific to the applicable population (e.g., age category,
* DRG) or the specific context of care (e.g., venue, care setting,
* provider of care).
*/
export interface UsageContext {
/**
* Unique id for the element within a resource (for internal references).
* This may be any string value that does not contain spaces.
*/
id?: string;
/**
* 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.
*/
extension?: Extension[];
/**
* A code that identifies the type of context being specified by this
* usage context.
*/
code: Coding;
/**
* A value that defines the context specified in this context of use. The
* interpretation of the value is defined by the code.
*/
valueCodeableConcept?: CodeableConcept;
/**
* A value that defines the context specified in this context of use. The
* interpretation of the value is defined by the code.
*/
valueQuantity?: Quantity;
/**
* A value that defines the context specified in this context of use. The
* interpretation of the value is defined by the code.
*/
valueRange?: Range;
/**
* A value that defines the context specified in this context of use. The
* interpretation of the value is defined by the code.
*/
valueReference?: Reference<PlanDefinition | ResearchStudy | InsurancePlan | HealthcareService | Group | Location | Organization>;
}
/**
* A value that defines the context specified in this context of use. The
* interpretation of the value is defined by the code.
*/
export type UsageContextValue = CodeableConcept | Quantity | Range | Reference<PlanDefinition | ResearchStudy |
InsurancePlan | HealthcareService | Group | Location | Organization>;