UNPKG

@types/fhir

Version:
911 lines 998 kB
// <auto-generated/> // Contents of: hl7.fhir.r3.core version: 3.0.2 // Primitive Naming Style: None // Complex Type / Resource Naming Style: PascalCase // Interaction Naming Style: None // Extension Support: NonPrimitive // Language option: "namespace" = "true" export as namespace fhir3; /** * 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, 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 full 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 (i.e. US 2 letter state codes). */ state?: string | undefined; _state?: Element | undefined; /** * Can provide both a text representation and parts. */ text?: string | undefined; _text?: Element | undefined; /** * Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both. */ type?: ('postal'|'physical'|'both') | undefined; _type?: Element | undefined; /** * This is labeled as "Is Modifier" because applications should not mistake a temporary or old address etc.for a current/permanent one. Applications can assume that an address is current unless it explicitly says that it is temporary or old. */ use?: ('home'|'work'|'temp'|'old') | 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 { /** * The individual responsible for making the annotation. */ authorReference?: Reference | undefined; /** * The individual responsible for making the annotation. */ authorString?: string | undefined; _authorString?: Element | undefined; /** * The text of the annotation. */ 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. */ 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 de-reference to some definition that establish 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; /** * This is labeled as "Is Modifier" because applications should not mistake a temporary or old contact etc.for a current/permanent one. 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. */ export interface DataRequirementCodeFilter extends Element { /** * The code-valued attribute of the filter. 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. The path must resolve to an element of type code, Coding, or CodeableConcept. */ path: string; _path?: Element | undefined; /** * The codes for the code filter. Only one of valueSet, valueCode, valueCoding, or valueCodeableConcept may be specified. 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. */ valueCode?: string[] | undefined; _valueCode?: Element[] | undefined; /** * The CodeableConcepts for the code filter. Only one of valueSet, valueCode, valueConding, or valueCodeableConcept may be specified. 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 CodeableConcepts. */ valueCodeableConcept?: CodeableConcept[] | undefined; /** * The Codings for the code filter. Only one of valueSet, valueCode, valueConding, or valueCodeableConcept may be specified. 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 Codings. */ valueCoding?: Coding[] | undefined; /** * The valueset for the code filter. The valueSet and value elements are exclusive. 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. */ valueSetString?: string | undefined; _valueSetString?: Element | undefined; /** * The valueset for the code filter. The valueSet and value elements are exclusive. 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. */ valueSetReference?: Reference | undefined; } /** * Date filters specify additional constraints on the data in terms of the applicable date range for specific elements. */ export interface DataRequirementDateFilter extends Element { /** * The date-valued attribute of the filter. 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. The path must resolve to an element of type dateTime, Period, Schedule, or Timing. */ path: string; _path?: 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 from 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 from 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 from now. */ valueDuration?: Duration | 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. */ codeFilter?: DataRequirementCodeFilter[] | undefined; /** * Date filters specify additional constraints on the data in terms of the applicable date range for specific elements. */ dateFilter?: DataRequirementDateFilter[] | 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. Note that the value for this element can be a path to allow references to nested elements. In that case, all the elements along the path must be supported. */ 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; /** * 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 { } /** * Indicates how the medication is/was taken or should be taken by the patient. */ export interface Dosage extends Element { /** * Supplemental instruction - e.g. "with meals". */ 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; /** * 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; /** * 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; /** * 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. */ 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. */ 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. */ rateQuantity?: Quantity | 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 [body-site-instance](extension-body-site-instance.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 may 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. If the base element has a cardinality of ..1, and there is a choice of types, the discriminator must be "@type". */ export interface ElementDefinitionSlicingDiscriminator extends Element { /** * The only FHIRPath functions that are allowed are 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. If the base element has a cardinality of ..1, and there is a choice of types, the discriminator must be "@type". */ 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. So they are deformalised into this location for tooling convenience, and to ensure that the base information is available without dependencies. */ 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 { /** * If the type is a reference to another resource, how the resource is or can be aggregated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle. */ 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). There would be one pair of type/code for each allowed target resource type. */ code: string; _code?: Element | undefined; /** * Identifies a profile structure or implementation Guide that SHALL hold for the datatype this element refers to. 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 resource SHALL conform to at least one profile defined in the implementation guide. */ profile?: string | undefined; _profile?: Element | undefined; /** * Identifies a profile structure or implementation Guide that SHALL hold for the target of the reference this element refers to. 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 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. */ 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. */ 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. */ 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. */ 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 { /** * A [FHIRPath](http://hl7.org/fluentpath) expression of constraint that can be executed to see if this constraint is met. */ expression: string; _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 may 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: we are considering deprecating the xpath element. Implementer feedback is welcome. */ 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; /** * For value sets with a referenceResource, the display can contain the value set description. The reference may be version-specific or not. */ valueSetUri?: string | undefined; _valueSetUri?: Element | undefined; /** * For value sets with a referenceResource, the display can contain the value set description. The reference may be version-specific or not. */ valueSetReference?: Reference | 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 Element { /** * 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. So they are deformalised into this location for tooling convenience, and to ensure that the base information is available without dependencies. */ 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; /** * Identifies the identity of an element defined elsewhere in the profile whose content rules should be applied to the current element. */ contentReference?: string | undefined; _contentReference?: Element | undefined; /** * Default values can only be specified on a resource, data type, or extension definition, and never in a profile that applies to one of these. 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. For these reasons, default values are (and should be) used extremely sparingly. */ defaultValueBase64Binary?: string | undefined; _defaultValueBase64Binary?: Element | undefined; /** * Default values can only be specified on a resource, data type, or extension definition, and never in a profile that applies to one of these. 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. For these reasons, default values are (and should be) used extremely sparingly. */ defaultValueBoolean?: boolean | undefined; _defaultValueBoolean?: Element | undefined; /** * Default values can only be specified on a resource, data type, or extension definition, and never in a profile that applies to one of these. 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. For these reasons, default values are (and should be) used extremely sparingly. */ defaultValueCode?: string | undefined; _defaultValueCode?: Element | undefined; /** * Default values can only be specified on a resource, data type, or extension definition, and never in a profile that applies to one of these. 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. For these reasons, default values are (and should be) used extremely sparingly. */ defaultValueDate?: string | undefined; _defaultValueDate?: Element | undefined; /** * Default values can only be specified on a resource, data type, or extension definition, and never in a profile that applies to one of these. 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. For these reasons, default values are (and should be) used extremely sparingly. */ defaultValueDateTime?: string | undefined; _defaultValueDateTime?: Element | undefined; /** * Default values can only be specified on a resource, data type, or extension definition, and never in a profile that applies to one of these. 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. For these reasons, default values are (and should be) used extremely sparingly. */ defaultValueDecimal?: number | undefined; /** * Default values can only be specified on a resource, data type, or extension definition, and never in a profile that applies to one of these. 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. For these reasons, default values are (and should be) used extremely sparingly. */ defaultValueId?: string | undefined; _defaultValueId?: Element | undefined; /** * Default values can only be specified on a resource, data type, or extension definition, and never in a profile that applies to one of these. 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. For these reasons, default values are (and should be) used extremely sparingly. */ defaultValueInstant?: string | undefined; _defaultValueInstant?: Element | undefined; /** * Default values can only be specified on a resource, data type, or extension definition, and never in a profile that applies to one of these. 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. For these reasons, default values are (and should be) used extremely sparingly. */ defaultValueInteger?: number | undefined; /** * Default values can only be specified on a resource, data type, or extension definition, and never in a profile that applies to one of these. 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. For these reasons, default values are (and should be) used extremely sparingly. */ defaultValueMarkdown?: string | undefined; _defaultValueMarkdown?: Element | undefined; /** * Default values can only be specified on a resource, data type, or extension definition, and never in a profile that applies to one of these. 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. For these reasons, default values are (and should be) used extremely sparingly. */ defaultValueOid?: string | undefined; _defaultValueOid?: Element | undefined; /** * Default values can only be specified on a resource, data type, or extension definition, and never in a profile that applies to one of these. 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. For these reasons, default values are (and should be) used extremely sparingly. */ defaultValuePositiveInt?: number | undefined; /** * Default values can only be specified on a resource, data type, or extension definition, and never in a profile that applies to one of these. 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. For these reasons, default values are (and should be) used extremely sparingly. */ defaultValueString?: string | undefined; _defaultValueString?: Element | undefined; /** * Default values can only be specified on a resource, data type, or extension definition, and never in a profile that applies to one of these. 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. For these reasons, default values are (and should be) used extremely sparingly. */ defaultValueTime?: string | undefined; _defaultValueTime?: Element | undefined; /** * Default values can only be specified on a resource, data type, or extension definition, and never in a profile that applies to one of these. 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. For these reasons, default values are (and should be) used extremely sparingly. */ defaultValueUnsignedInt?: number | undefined; /** * Default values can only be specified on a resource, data type, or extension definition, and never in a profile that applies to one of these. 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. For these reasons, default values are (and should be) used extremely sparingly. */ defaultValueUri?: string | undefined; _defaultValueUri?: Element | undefined; /** * Default values can only be specified on a resource, data ty