import { Extension } from './Extension.js';
import { FhirPrimitive } from './FhirPrimitive.js';
export interface StructureMap_Group_Rule_Source {
    /**
     * @description Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
     * @short Unique id for inter-element referencing
     */
    id?: string;
    /**
     * @description May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
     * @comment There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
     * @short Additional content defined by implementations
     */
    extension?: Extension[];
    /**
     * @description May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained andor the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
  
  Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
     * @comment There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
     * @short Extensions that cannot be ignored even if unrecognized
     */
    modifierExtension?: Extension[];
    /**
     * @description Type or variable this rule applies to.
     * @short Type or variable this rule applies to
     */
    context: FhirPrimitive<string>;
    /**
     * @description Specified minimum cardinality for the element. This is optional; if present, it acts an implicit check on the input content.
     * @short Specified minimum cardinality
     */
    min?: FhirPrimitive<number>;
    /**
     * @description Specified maximum cardinality for the element - a number or a "". This is optional; if present, it acts an implicit check on the input content ( just serves as documentation; it's the default value).
     * @short Specified maximum cardinality (number or )
     */
    max?: FhirPrimitive<string>;
    /**
     * @description Specified type for the element. This works as a condition on the mapping - use for polymorphic elements.
     * @short Rule only applies if source has this type
     */
    type?: FhirPrimitive<string>;
    /**
     * @description A value to use if there is no existing value in the source object.
     * @comment If there's a default value on an item that can repeat, it will only be used once.
     * @short Default value if no value exists
     */
    defaultValue?: FhirPrimitive<string>;
    /**
     * @description Optional field for this source.
     * @short Optional field for this source
     */
    element?: FhirPrimitive<string>;
    /**
     * @description How to handle the list mode for this element.
     * @short first | not_first | last | not_last | only_one
     */
    listMode?: FhirPrimitive<string>;
    /**
     * @description Named context for field, if a field is specified.
     * @short Named context for field, if a field is specified
     */
    variable?: FhirPrimitive<string>;
    /**
     * @description FHIRPath expression  - must be true or the rule does not apply.
     * @short FHIRPath expression  - must be true or the rule does not apply
     */
    condition?: FhirPrimitive<string>;
    /**
     * @description FHIRPath expression  - must be true or the mapping engine throws an error instead of completing.
     * @short FHIRPath expression  - must be true or the mapping engine throws an error instead of completing
     */
    check?: FhirPrimitive<string>;
    /**
     * @description A FHIRPath expression which specifies a message to put in the transform log when content matching the source rule is found.
     * @comment This is typically used for recording that something Is not transformed to the target for some reason.
     * @short Message to put in log if source exists (FHIRPath)
     */
    logMessage?: FhirPrimitive<string>;
}
//# sourceMappingURL=StructureMap_Group_Rule_Source.d.ts.map