UNPKG

@types/fhir

Version:
942 lines 1.35 MB
// <auto-generated/> // Contents of: hl7.fhir.r4.core version: 4.0.1 // Primitive Naming Style: None // Complex Type / Resource Naming Style: PascalCase // Interaction Naming Style: None // Extension Support: NonPrimitive // Language option: "namespace" = "true" export as namespace fhir4; /** * An address expressed using postal conventions (as opposed to GPS or other location definition formats). This data type may be used to convey addresses for use in delivering mail as well as for visiting locations which might not be valid for mail delivery. There are a variety of postal address formats defined around the world. */ export interface Address extends Element { /** * The name of the city, town, suburb, village or other community or delivery center. */ city?: string | undefined; _city?: Element | undefined; /** * ISO 3166 3 letter codes can be used in place of a human readable country name. */ country?: string | undefined; _country?: Element | undefined; /** * District is sometimes known as county, but in some regions 'county' is used in place of city (municipality), so county name should be conveyed in city instead. */ district?: string | undefined; _district?: Element | undefined; /** * This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information. */ line?: string[] | undefined; _line?: Element[] | undefined; /** * Time period when address was/is in use. */ period?: Period | undefined; /** * A postal code designating a region defined by the postal service. */ postalCode?: string | undefined; _postalCode?: Element | undefined; /** * Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (e.g. US 2 letter state codes). */ state?: string | undefined; _state?: Element | undefined; /** * Can provide both a text representation and parts. Applications updating an address SHALL ensure that when both text and parts are present, no content is included in the text that isn't found in a part. */ text?: string | undefined; _text?: Element | undefined; /** * The definition of Address states that "address is intended to describe postal addresses, not physical locations". However, many applications track whether an address has a dual purpose of being a location that can be visited as well as being a valid delivery destination, and Postal addresses are often used as proxies for physical locations (also see the [Location](location.html#) resource). */ type?: ('postal'|'physical'|'both') | undefined; _type?: Element | undefined; /** * Applications can assume that an address is current unless it explicitly says that it is temporary or old. */ use?: ('home'|'work'|'temp'|'old'|'billing') | undefined; _use?: Element | undefined; } /** * A duration of time during which an organism (or a process) has existed. */ export interface Age extends Quantity { } /** * A text note which also contains information about who made the statement and when. */ export interface Annotation extends Element { /** * Organization is used when there's no need for specific attribution as to who made the comment. */ authorReference?: Reference | undefined; /** * Organization is used when there's no need for specific attribution as to who made the comment. */ authorString?: string | undefined; _authorString?: Element | undefined; /** * The text of the annotation in markdown format. */ text: string; _text?: Element | undefined; /** * Indicates when this particular annotation was made. */ time?: string | undefined; _time?: Element | undefined; } /** * For referring to data content defined in other formats. */ export interface Attachment extends Element { /** * Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate. */ contentType?: string | undefined; _contentType?: Element | undefined; /** * The date that the attachment was first created. */ creation?: string | undefined; _creation?: Element | undefined; /** * The base64-encoded data SHALL be expressed in the same character set as the base resource XML or JSON. */ data?: string | undefined; _data?: Element | undefined; /** * The hash is calculated on the data prior to base64 encoding, if the data is based64 encoded. The hash is not intended to support digital signatures. Where protection against malicious threats a digital signature should be considered, see [Provenance.signature](provenance-definitions.html#Provenance.signature) for mechanism to protect a resource with a digital signature. */ hash?: string | undefined; _hash?: Element | undefined; /** * The human language of the content. The value can be any valid value according to BCP 47. */ language?: string | undefined; _language?: Element | undefined; /** * The number of bytes is redundant if the data is provided as a base64binary, but is useful if the data is provided as a url reference. */ size?: number | undefined; /** * A label or set of text to display in place of the data. */ title?: string | undefined; _title?: Element | undefined; /** * If both data and url are provided, the url SHALL point to the same content as the data contains. Urls may be relative references or may reference transient locations such as a wrapping envelope using cid: though this has ramifications for using signatures. Relative URLs are interpreted relative to the service url, like a resource reference, rather than relative to the resource itself. If a URL is provided, it SHALL resolve to actual data. */ url?: string | undefined; _url?: Element | undefined; } /** * Base definition for all elements that are defined inside a resource - but not those in a data type. */ export interface BackboneElement extends Element { /** * 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. */ modifierExtension?: Extension[] | undefined; } /** * A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text. */ export interface CodeableConcept extends Element { /** * Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true. */ coding?: Coding[] | undefined; /** * Very often the text is the same as a displayName of one of the codings. */ text?: string | undefined; _text?: Element | undefined; } /** * A reference to a code defined by a terminology system. */ export interface Coding extends Element { /** * A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination). */ code?: string | undefined; _code?: Element | undefined; /** * A representation of the meaning of the code in the system, following the rules of the system. */ display?: string | undefined; _display?: Element | undefined; /** * The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously. */ system?: string | undefined; _system?: Element | undefined; /** * Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely. */ userSelected?: boolean | undefined; _userSelected?: Element | undefined; /** * Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date. */ version?: string | undefined; _version?: Element | undefined; } /** * Specifies contact information for a person or organization. */ export interface ContactDetail extends Element { /** * If there is no named individual, the telecom information is for the organization as a whole. */ name?: string | undefined; _name?: Element | undefined; /** * The contact details for the individual (if a name was provided) or the organization. */ telecom?: ContactPoint[] | undefined; } /** * Details for all kinds of technology mediated contact points for a person or organization, including telephone, email, etc. */ export interface ContactPoint extends Element { /** * Time period when the contact point was/is in use. */ period?: Period | undefined; /** * Note that rank does not necessarily follow the order in which the contacts are represented in the instance. */ rank?: number | undefined; /** * Telecommunications form for contact point - what communications system is required to make use of the contact. */ system?: ('phone'|'fax'|'email'|'pager'|'url'|'sms'|'other') | undefined; _system?: Element | undefined; /** * Applications can assume that a contact is current unless it explicitly says that it is temporary or old. */ use?: ('home'|'work'|'temp'|'old'|'mobile') | undefined; _use?: Element | undefined; /** * Additional text data such as phone extension numbers, or notes about use of the contact are sometimes included in the value. */ value?: string | undefined; _value?: Element | undefined; } /** * A contributor to the content of a knowledge asset, including authors, editors, reviewers, and endorsers. */ export interface Contributor extends Element { /** * Contact details to assist a user in finding and communicating with the contributor. */ contact?: ContactDetail[] | undefined; /** * The name of the individual or organization responsible for the contribution. */ name: string; _name?: Element | undefined; /** * The type of contributor. */ type: ('author'|'editor'|'reviewer'|'endorser'); _type?: Element | undefined; } /** * A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies. */ export interface Count extends Quantity { } /** * Code filters specify additional constraints on the data, specifying the value set of interest for a particular element of the data. Each code filter defines an additional constraint on the data, i.e. code filters are AND'ed, not OR'ed. */ export interface DataRequirementCodeFilter extends Element { /** * The codes for the code filter. If values are given, the filter will return only those data items for which the code-valued attribute specified by the path has a value that is one of the specified codes. If codes are specified in addition to a value set, the filter returns items matching a code in the value set or one of the specified codes. */ code?: Coding[] | undefined; /** * The path attribute contains a [Simple FHIRPath Subset](fhirpath.html#simple) that allows path traversal, but not calculation. */ path?: string | undefined; _path?: Element | undefined; /** * A token parameter that refers to a search parameter defined on the specified type of the DataRequirement, and which searches on elements of type code, Coding, or CodeableConcept. */ searchParam?: string | undefined; _searchParam?: Element | undefined; /** * The valueset for the code filter. The valueSet and code elements are additive. If valueSet is specified, the filter will return only those data items for which the value of the code-valued element specified in the path is a member of the specified valueset. */ valueSet?: string | undefined; _valueSet?: Element | undefined; } /** * Date filters specify additional constraints on the data in terms of the applicable date range for specific elements. Each date filter specifies an additional constraint on the data, i.e. date filters are AND'ed, not OR'ed. */ export interface DataRequirementDateFilter extends Element { /** * The path attribute contains a [Simple FHIR Subset](fhirpath.html#simple) that allows path traversal, but not calculation. */ path?: string | undefined; _path?: Element | undefined; /** * A date parameter that refers to a search parameter defined on the specified type of the DataRequirement, and which searches on elements of type date, dateTime, Period, Schedule, or Timing. */ searchParam?: string | undefined; _searchParam?: Element | undefined; /** * The value of the filter. If period is specified, the filter will return only those data items that fall within the bounds determined by the Period, inclusive of the period boundaries. If dateTime is specified, the filter will return only those data items that are equal to the specified dateTime. If a Duration is specified, the filter will return only those data items that fall within Duration before now. */ valueDateTime?: string | undefined; _valueDateTime?: Element | undefined; /** * The value of the filter. If period is specified, the filter will return only those data items that fall within the bounds determined by the Period, inclusive of the period boundaries. If dateTime is specified, the filter will return only those data items that are equal to the specified dateTime. If a Duration is specified, the filter will return only those data items that fall within Duration before now. */ valuePeriod?: Period | undefined; /** * The value of the filter. If period is specified, the filter will return only those data items that fall within the bounds determined by the Period, inclusive of the period boundaries. If dateTime is specified, the filter will return only those data items that are equal to the specified dateTime. If a Duration is specified, the filter will return only those data items that fall within Duration before now. */ valueDuration?: Duration | undefined; } /** * This element can be used in combination with the sort element to specify quota requirements such as "the most recent 5" or "the highest 5". When multiple sorts are specified, they are applied in the order they appear in the resource. */ export interface DataRequirementSort extends Element { /** * The direction of the sort, ascending or descending. */ direction: ('ascending'|'descending'); _direction?: Element | undefined; /** * The attribute of the sort. The specified path must be resolvable from the type of the required data. The path is allowed to contain qualifiers (.) to traverse sub-elements, as well as indexers ([x]) to traverse multiple-cardinality sub-elements. Note that the index must be an integer constant. */ path: string; _path?: Element | undefined; } /** * Describes a required data item for evaluation in terms of the type of data, and optional code or date-based filters of the data. */ export interface DataRequirement extends Element { /** * Code filters specify additional constraints on the data, specifying the value set of interest for a particular element of the data. Each code filter defines an additional constraint on the data, i.e. code filters are AND'ed, not OR'ed. */ codeFilter?: DataRequirementCodeFilter[] | undefined; /** * Date filters specify additional constraints on the data in terms of the applicable date range for specific elements. Each date filter specifies an additional constraint on the data, i.e. date filters are AND'ed, not OR'ed. */ dateFilter?: DataRequirementDateFilter[] | undefined; /** * This element can be used in combination with the sort element to specify quota requirements such as "the most recent 5" or "the highest 5". */ limit?: number | undefined; /** * Indicates that specific elements of the type are referenced by the knowledge module and must be supported by the consumer in order to obtain an effective evaluation. This does not mean that a value is required for this element, only that the consuming system must understand the element and be able to provide values for it if they are available. * The value of mustSupport SHALL be a FHIRPath resolveable on the type of the DataRequirement. The path SHALL consist only of identifiers, constant indexers, and .resolve() (see the [Simple FHIRPath Profile](fhirpath.html#simple) for full details). */ mustSupport?: string[] | undefined; _mustSupport?: Element[] | undefined; /** * The profile of the required data, specified as the uri of the profile definition. */ profile?: string[] | undefined; _profile?: Element[] | undefined; /** * This element can be used in combination with the sort element to specify quota requirements such as "the most recent 5" or "the highest 5". When multiple sorts are specified, they are applied in the order they appear in the resource. */ sort?: DataRequirementSort[] | undefined; /** * The subject of a data requirement is critical, as the data being specified is determined with respect to a particular subject. This corresponds roughly to the notion of a Compartment in that it limits what data is available based on its relationship to the subject. In CQL, this corresponds to the context declaration. */ subjectCodeableConcept?: CodeableConcept | undefined; /** * The subject of a data requirement is critical, as the data being specified is determined with respect to a particular subject. This corresponds roughly to the notion of a Compartment in that it limits what data is available based on its relationship to the subject. In CQL, this corresponds to the context declaration. */ subjectReference?: Reference | undefined; /** * The type of the required data, specified as the type name of a resource. For profiles, this value is set to the type of the base resource of the profile. */ type: string; _type?: Element | undefined; } /** * A length - a value with a unit that is a physical distance. */ export interface Distance extends Quantity { } /** * The amount of medication administered. */ export interface DosageDoseAndRate extends Element { /** * Note that this specifies the quantity of the specified medication, not the quantity for each active ingredient(s). Each ingredient amount can be communicated in the Medication resource. For example, if one wants to communicate that a tablet was 375 mg, where the dose was one tablet, you can use the Medication resource to document that the tablet was comprised of 375 mg of drug XYZ. Alternatively if the dose was 375 mg, then you may only need to use the Medication resource to indicate this was a tablet. If the example were an IV such as dopamine and you wanted to communicate that 400mg of dopamine was mixed in 500 ml of some IV solution, then this would all be communicated in the Medication resource. If the administration is not intended to be instantaneous (rate is present or timing has a duration), this can be specified to convey the total amount to be administered over the period of time as indicated by the schedule e.g. 500 ml in dose, with timing used to convey that this should be done over 4 hours. */ doseRange?: Range | undefined; /** * Note that this specifies the quantity of the specified medication, not the quantity for each active ingredient(s). Each ingredient amount can be communicated in the Medication resource. For example, if one wants to communicate that a tablet was 375 mg, where the dose was one tablet, you can use the Medication resource to document that the tablet was comprised of 375 mg of drug XYZ. Alternatively if the dose was 375 mg, then you may only need to use the Medication resource to indicate this was a tablet. If the example were an IV such as dopamine and you wanted to communicate that 400mg of dopamine was mixed in 500 ml of some IV solution, then this would all be communicated in the Medication resource. If the administration is not intended to be instantaneous (rate is present or timing has a duration), this can be specified to convey the total amount to be administered over the period of time as indicated by the schedule e.g. 500 ml in dose, with timing used to convey that this should be done over 4 hours. */ doseQuantity?: Quantity | undefined; /** * It is possible to supply both a rate and a doseQuantity to provide full details about how the medication is to be administered and supplied. If the rate is intended to change over time, depending on local rules/regulations, each change should be captured as a new version of the MedicationRequest with an updated rate, or captured with a new MedicationRequest with the new rate. * It is possible to specify a rate over time (for example, 100 ml/hour) using either the rateRatio and rateQuantity. The rateQuantity approach requires systems to have the capability to parse UCUM grammer where ml/hour is included rather than a specific ratio where the time is specified as the denominator. Where a rate such as 500ml over 2 hours is specified, the use of rateRatio may be more semantically correct than specifying using a rateQuantity of 250 mg/hour. */ rateRatio?: Ratio | undefined; /** * It is possible to supply both a rate and a doseQuantity to provide full details about how the medication is to be administered and supplied. If the rate is intended to change over time, depending on local rules/regulations, each change should be captured as a new version of the MedicationRequest with an updated rate, or captured with a new MedicationRequest with the new rate. * It is possible to specify a rate over time (for example, 100 ml/hour) using either the rateRatio and rateQuantity. The rateQuantity approach requires systems to have the capability to parse UCUM grammer where ml/hour is included rather than a specific ratio where the time is specified as the denominator. Where a rate such as 500ml over 2 hours is specified, the use of rateRatio may be more semantically correct than specifying using a rateQuantity of 250 mg/hour. */ rateRange?: Range | undefined; /** * It is possible to supply both a rate and a doseQuantity to provide full details about how the medication is to be administered and supplied. If the rate is intended to change over time, depending on local rules/regulations, each change should be captured as a new version of the MedicationRequest with an updated rate, or captured with a new MedicationRequest with the new rate. * It is possible to specify a rate over time (for example, 100 ml/hour) using either the rateRatio and rateQuantity. The rateQuantity approach requires systems to have the capability to parse UCUM grammer where ml/hour is included rather than a specific ratio where the time is specified as the denominator. Where a rate such as 500ml over 2 hours is specified, the use of rateRatio may be more semantically correct than specifying using a rateQuantity of 250 mg/hour. */ rateQuantity?: Quantity | undefined; /** * The kind of dose or rate specified, for example, ordered or calculated. */ type?: CodeableConcept | undefined; } /** * Indicates how the medication is/was taken or should be taken by the patient. */ export interface Dosage extends BackboneElement { /** * Information about administration or preparation of the medication (e.g. "infuse as rapidly as possibly via intraperitoneal port" or "immediately following drug x") should be populated in dosage.text. */ additionalInstruction?: CodeableConcept[] | undefined; /** * Can express "as needed" without a reason by setting the Boolean = True. In this case the CodeableConcept is not populated. Or you can express "as needed" with a reason by including the CodeableConcept. In this case the Boolean is assumed to be True. If you set the Boolean to False, then the dose is given according to the schedule and is not "prn" or "as needed". */ asNeededBoolean?: boolean | undefined; _asNeededBoolean?: Element | undefined; /** * Can express "as needed" without a reason by setting the Boolean = True. In this case the CodeableConcept is not populated. Or you can express "as needed" with a reason by including the CodeableConcept. In this case the Boolean is assumed to be True. If you set the Boolean to False, then the dose is given according to the schedule and is not "prn" or "as needed". */ asNeededCodeableConcept?: CodeableConcept | undefined; /** * The amount of medication administered. */ doseAndRate?: DosageDoseAndRate[] | undefined; /** * This is intended for use as an adjunct to the dosage when there is an upper cap. For example, a body surface area related dose with a maximum amount, such as 1.5 mg/m2 (maximum 2 mg) IV over 5 – 10 minutes would have doseQuantity of 1.5 mg/m2 and maxDosePerAdministration of 2 mg. */ maxDosePerAdministration?: Quantity | undefined; /** * Upper limit on medication per lifetime of the patient. */ maxDosePerLifetime?: Quantity | undefined; /** * This is intended for use as an adjunct to the dosage when there is an upper cap. For example "2 tablets every 4 hours to a maximum of 8/day". */ maxDosePerPeriod?: Ratio | undefined; /** * Terminologies used often pre-coordinate this term with the route and or form of administration. */ method?: CodeableConcept | undefined; /** * Instructions in terms that are understood by the patient or consumer. */ patientInstruction?: string | undefined; _patientInstruction?: Element | undefined; /** * How drug should enter body. */ route?: CodeableConcept | undefined; /** * Indicates the order in which the dosage instructions should be applied or interpreted. */ sequence?: number | undefined; /** * If the use case requires attributes from the BodySite resource (e.g. to identify and track separately) then use the standard extension [bodySite](extension-bodysite.html). May be a summary code, or a reference to a very precise definition of the location, or both. */ site?: CodeableConcept | undefined; /** * Free text dosage instructions e.g. SIG. */ text?: string | undefined; _text?: Element | undefined; /** * This attribute might not always be populated while the Dosage.text is expected to be populated. If both are populated, then the Dosage.text should reflect the content of the Dosage.timing. */ timing?: Timing | undefined; } /** * A length of time. */ export interface Duration extends Quantity { } /** * Base definition for all elements in a resource. */ export interface Element { /** * 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. */ extension?: Extension[] | undefined; /** * Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. */ id?: string | undefined; _id?: Element | undefined; } /** * If there is no discriminator, the content is hard to process, so this should be avoided. */ export interface ElementDefinitionSlicingDiscriminator extends Element { /** * The only FHIRPath functions that are allowed are as(type), resolve(), and extension(url). */ path: string; _path?: Element | undefined; /** * How the element value is interpreted when discrimination is evaluated. */ type: ('value'|'exists'|'pattern'|'type'|'profile'); _type?: Element | undefined; } /** * The first element in the sequence, the one that carries the slicing, is the definition that applies to all the slices. This is based on the unconstrained element, but can apply any constraints as appropriate. This may include the common constraints on the children of the element. */ export interface ElementDefinitionSlicing extends Element { /** * If it's really not possible to differentiate them, the design should be re-evaluated to make the content usable. */ description?: string | undefined; _description?: Element | undefined; /** * If there is no discriminator, the content is hard to process, so this should be avoided. */ discriminator?: ElementDefinitionSlicingDiscriminator[] | undefined; /** * Order should only be required when it is a pressing concern for presentation. Profile authors should consider making the order a feature of the rules about the narrative, not the rules about the data - requiring ordered data makes the profile much less re-usable. */ ordered?: boolean | undefined; _ordered?: Element | undefined; /** * Allowing additional elements makes for a much for flexible template - it's open for use in wider contexts, but also means that the content of the resource is not closed, and applications have to decide how to handle content not described by the profile. */ rules: ('closed'|'open'|'openAtEnd'); _rules?: Element | undefined; } /** * The base information does not carry any information that could not be determined from the path and related profiles, but making this determination requires both that the related profiles are available, and that the algorithm to determine them be available. For tooling simplicity, the base information must always be populated in element definitions in snap shots, even if it is the same. */ export interface ElementDefinitionBase extends Element { /** * This is provided to code generation, since the serialization representation in JSON differs depending on whether the base element has max > 1. Also, some forms of code generation may differ. */ max: string; _max?: Element | undefined; /** * This is provided for consistency with max, and may affect code generation of mandatory elements of the base resource are generated differently (some reference implementations have done this). */ min: number; /** * The Path that identifies the base element - this matches the ElementDefinition.path for that element. Across FHIR, there is only one base definition of any element - that is, an element definition on a [StructureDefinition](structuredefinition.html#) without a StructureDefinition.base. */ path: string; _path?: Element | undefined; } /** * The Type of the element can be left blank in a differential constraint, in which case the type is inherited from the resource. Abstract types are not permitted to appear as a type when multiple types are listed. (I.e. Abstract types cannot be part of a choice). */ export interface ElementDefinitionType extends Element { /** * See [Aggregation Rules](elementdefinition.html#aggregation) for further clarification. */ aggregation?: Array<'contained'|'referenced'|'bundled'> | undefined; _aggregation?: Element[] | undefined; /** * If the element is a reference to another resource, this element contains "Reference", and the targetProfile element defines what resources can be referenced. The targetProfile may be a reference to the general definition of a resource (e.g. http://hl7.org/fhir/StructureDefinition/Patient). */ code: string; _code?: Element | undefined; /** * It is possible to profile backbone element (e.g. part of a resource), using the [profile-element](extension-elementdefinition-profile-element.html) extension. */ profile?: string[] | undefined; _profile?: Element[] | undefined; /** * Used when the type is "Reference" or "canonical", and identifies a profile structure or implementation Guide that applies to the target of the reference this element refers to. If any profiles are specified, then the content must conform to at least one of them. The URL can be a local reference - to a contained StructureDefinition, or a reference to another StructureDefinition or Implementation Guide by a canonical URL. When an implementation guide is specified, the target resource SHALL conform to at least one profile defined in the implementation guide. */ targetProfile?: string[] | undefined; _targetProfile?: Element[] | undefined; /** * The base specification never makes a rule as to which form is allowed, but implementation guides may do this. See [Aggregation Rules](elementdefinition.html#aggregation) for further clarification. */ versioning?: ('either'|'independent'|'specific') | undefined; _versioning?: Element | undefined; } /** * Examples will most commonly be present for data where it's not implicitly obvious from either the data type or value set what the values might be. (I.e. Example values for dates or quantities would generally be unnecessary.) If the example value is fully populated, the publication tool can generate an instance automatically. */ export interface ElementDefinitionExample extends Element { /** * Describes the purpose of this example amoung the set of examples. */ label: string; _label?: Element | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueBase64Binary?: string | undefined; _valueBase64Binary?: Element | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueBoolean?: boolean | undefined; _valueBoolean?: Element | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueCanonical?: string | undefined; _valueCanonical?: Element | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueCode?: string | undefined; _valueCode?: Element | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueDate?: string | undefined; _valueDate?: Element | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueDateTime?: string | undefined; _valueDateTime?: Element | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueDecimal?: number | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueId?: string | undefined; _valueId?: Element | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueInstant?: string | undefined; _valueInstant?: Element | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueInteger?: number | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueMarkdown?: string | undefined; _valueMarkdown?: Element | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueOid?: string | undefined; _valueOid?: Element | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valuePositiveInt?: number | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueString?: string | undefined; _valueString?: Element | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueTime?: string | undefined; _valueTime?: Element | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueUnsignedInt?: number | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueUri?: string | undefined; _valueUri?: Element | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueUrl?: string | undefined; _valueUrl?: Element | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueUuid?: string | undefined; _valueUuid?: Element | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueAddress?: Address | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueAge?: Age | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueAnnotation?: Annotation | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueAttachment?: Attachment | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueCodeableConcept?: CodeableConcept | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueCoding?: Coding | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueContactPoint?: ContactPoint | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueCount?: Count | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueDistance?: Distance | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueDuration?: Duration | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueHumanName?: HumanName | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueIdentifier?: Identifier | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueMoney?: Money | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valuePeriod?: Period | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueQuantity?: Quantity | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueRange?: Range | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueRatio?: Ratio | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueReference?: Reference | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueSampledData?: SampledData | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueSignature?: Signature | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueTiming?: Timing | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueContactDetail?: ContactDetail | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueContributor?: Contributor | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueDataRequirement?: DataRequirement | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueExpression?: Expression | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueParameterDefinition?: ParameterDefinition | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueRelatedArtifact?: RelatedArtifact | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueTriggerDefinition?: TriggerDefinition | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueUsageContext?: UsageContext | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueDosage?: Dosage | undefined; /** * The actual value for the element, which must be one of the types allowed for this element. */ valueMeta?: Meta | undefined; } /** * Constraints should be declared on the "context" element - the lowest element in the hierarchy that is common to all nodes referenced by the constraint. */ export interface ElementDefinitionConstraint extends Element { /** * In the absense of an expression, the expression is likely not enforceable by validators, and might be missed by many systems. */ expression?: string | undefined; _expression?: Element | undefined; /** * Should be expressed in business terms as much as possible. */ human: string; _human?: Element | undefined; /** * Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality. */ key: string; _key?: Element | undefined; /** * To be used if the reason for the constraint might not be intuitive to all implementers. */ requirements?: string | undefined; _requirements?: Element | undefined; /** * This allows constraints to be asserted as "shall" (error) and "should" (warning). */ severity: ('error'|'warning'); _severity?: Element | undefined; /** * This is used when, e.g. rendering, where it is not useful to present inherited constraints when rendering the snapshot. */ source?: string | undefined; _source?: Element | undefined; /** * Elements SHALL use "f" as the namespace prefix for the FHIR namespace, and "x" for the xhtml namespace, and SHALL NOT use any other prefixes. Note: XPath is generally considered not useful because it does not apply to JSON and other formats and because of XSLT implementation issues, and may be removed in the future. */ xpath?: string | undefined; _xpath?: Element | undefined; } /** * For a CodeableConcept, when no codes are allowed - only text, use a binding of strength "required" with a description explaining that no coded values are allowed and what sort of information to put in the "text" element. */ export interface ElementDefinitionBinding extends Element { /** * Describes the intended use of this particular set of codes. */ description?: string | undefined; _description?: Element | undefined; /** * For further discussion, see [Using Terminologies](terminologies.html). */ strength: ('required'|'extensible'|'preferred'|'example'); _strength?: Element | undefined; /** * The reference may be version-specific or not (e.g. have a |[version] at the end of the canonical URL). */ valueSet?: string | undefined; _valueSet?: Element | undefined; } /** * Mappings are not necessarily specific enough for safe translation. */ export interface ElementDefinitionMapping extends Element { /** * Comments that provide information about the mapping or its use. */ comment?: string | undefined; _comment?: Element | undefined; /** * An internal reference to the definition of a mapping. */ identity: string; _identity?: Element | undefined; /** * If omitted, then there can be no expectation of computational interpretation of the mapping. */ language?: string | undefined; _language?: Element | undefined; /** * For most mappings, the syntax is undefined. Syntax will be provided for mappings to the RIM. Multiple mappings may be possible and may include constraints on other resource elements that identify when a particular mapping applies. */ map: string; _map?: Element | undefined; } /** * Captures constraints on each element within the resource, profile, or extension. */ export interface ElementDefinition extends BackboneElement { /** * Identifies additional names by which this element might also be known. */ alias?: string[] | undefined; _alias?: Element[] | undefined; /** * The base information does not carry any information that could not be determined from the path and related profiles, but making this determination requires both that the related profiles are available, and that the algorithm to determine them be available. For tooling simplicity, the base information must always be populated in element definitions in snap shots, even if it is the same. */ base?: ElementDefinitionBase | undefined; /** * For a CodeableConcept, when no codes are allowed - only text, use a binding of strength "required" with a description explaining that no coded values are allowed and what sort of information to put in the "text" element. */ binding?: ElementDefinitionBinding | undefined; /** * The concept SHALL be properly aligned with the data element definition and other constraints, as defined in the code system, including relationships, of any code listed here. Where multiple codes exist in a terminology that could correspond to the data element, the most granular code(s) should be selected, so long as they are not more restrictive than the data element itself. The mappings may be used to provide more or less granular or structured equivalences in the code system. */ code?: Coding[] | undefined; /** * If it is possible to capture usage rules using constraints, that mechanism should be used in preference to this element. */ comment?: string | undefined; _comment?: Element | undefined; /** * A reference to an invariant that may make additional statements about the cardinality or value in the instance. */ condition?: string[] | undefined; _condition?: Element[] | undefined; /** * Constraints should be declared on the "context" element - the lowest element in the hierarchy that is common to all nodes referenced by the constraint. */ constraint?: ElementDefinitionConstraint[] | undefined; /** * ContentReferences can only be defined in specializations, not constrained types, and they cannot be changed and always reference the non-constrained definition. */ contentReference?: string | undefined; _contentReference?: Element | undefined; /** * Specifying a default value means that the property can never been unknown - it must always have a value. Further, the default value can never be changed, or changed in constraints on content models. Defining default values creates many difficulties in implementation (e.g. when is a value missing?). For these reasons, default values are (and should be) used extremely sparingly. * No default values are ever defined in the FHIR specification, nor can they be defined in constraints ("profiles") on data types or resources. This element only exists so that default values may be defined in logical models. */ defaultValueBase64Binary?: string | undefined; _defaultValueBase64Binary?: Element | undefined; /** * Specifying a default value means that the property can never been unknown - it must always have a value. Further, the default value can never be changed, or changed in constraints on content models. Defining default values creates many difficulties in implementation (e.g. when is a value missing?). For these reasons, default values are (and should be) used extremely sparingly. * No default values are ever defined in the FHIR specification, nor can they be defined in constraints ("profiles") on data types or resources. This element only exists so that default values may be defined in logical models. */ defaultValueBoolean?: boolean | undefined; _defaultValueBoolean?: Element | undefined; /** * Specifying a default value means that the property can never been unknown - it must always have a value. Further, the default value can never be changed, or changed in constraints on content models. Defining default values creates many difficulties in implementation (e.g. when is a value missing?). For these reasons, default values are (and should be) used extremely sparingly. * No default values are ever defined in the FHIR specification, nor can they be defined in constraints ("profiles") on data types or resources. This element only exists so that default values may be defined in logical models. */ defaultValueCanonical?: string | undefined; _