import * as t from 'io-ts' ; import { RTTI_Extension , IExtension } from './RTTI_Extension' ; import { RTTI_CodeableConcept , ICodeableConcept } from './RTTI_CodeableConcept' ; import { RTTI_Element , IElement } from './RTTI_Element' ; import { RTTI_SubstanceSpecification_Isotope , ISubstanceSpecification_Isotope } from './RTTI_SubstanceSpecification_Isotope' ; import { RTTI_SubstanceSpecification_MolecularWeight , ISubstanceSpecification_MolecularWeight } from './RTTI_SubstanceSpecification_MolecularWeight' ; import { RTTI_Reference , IReference } from './RTTI_Reference' ; import { RTTI_SubstanceSpecification_Representation , ISubstanceSpecification_Representation } from './RTTI_SubstanceSpecification_Representation' ; export interface ISubstanceSpecification_Structure { /**
     * Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
     */ id ? : string ; /**
     * May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
     */ extension ? : IExtension [ ] ; /**
                     * 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 and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. 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).
                     */ modifierExtension ? : IExtension [ ] ; /**
     * Stereochemistry type.
     */ stereochemistry ? : ICodeableConcept ; /**
     * Optical activity type.
     */ opticalActivity ? : ICodeableConcept ; /**
     * Molecular formula.
     */ molecularFormula ? : string ; /**
     * Extensions for molecularFormula
     */ _molecularFormula ? : IElement ; /**
     * Specified per moiety according to the Hill system, i.e. first C, then H, then alphabetical, each moiety separated by a dot.
     */ molecularFormulaByMoiety ? : string ; /**
     * Extensions for molecularFormulaByMoiety
     */ _molecularFormulaByMoiety ? : IElement ; /**
     * Applicable for single substances that contain a radionuclide or a non-natural isotopic ratio.
     */ isotope ? : ISubstanceSpecification_Isotope [ ] ; /**
     * The molecular weight or weight range (for proteins, polymers or nucleic acids).
     */ molecularWeight ? : ISubstanceSpecification_MolecularWeight ; /**
     * Supporting literature.
     */ source ? : IReference [ ] ; /**
     * Molecular structural representation.
     */ representation ? : ISubstanceSpecification_Representation [ ] ; } export const RTTI_SubstanceSpecification_Structure = t . recursion ( 'ISubstanceSpecification_Structure' , ( ) => t . partial ( { id : t . string , extension : t . array ( RTTI_Extension ) , modifierExtension : t . array ( RTTI_Extension ) , stereochemistry : RTTI_CodeableConcept , opticalActivity : RTTI_CodeableConcept , molecularFormula : t . string , _molecularFormula : RTTI_Element , molecularFormulaByMoiety : t . string , _molecularFormulaByMoiety : RTTI_Element , isotope : t . array ( RTTI_SubstanceSpecification_Isotope ) , molecularWeight : RTTI_SubstanceSpecification_MolecularWeight , source : t . array ( RTTI_Reference ) , representation : t . array ( RTTI_SubstanceSpecification_Representation ) } ) ) ;