import * as t from 'io-ts' ; import { RTTI_Extension , IExtension } from './RTTI_Extension' ; import { RTTI_Element , IElement } from './RTTI_Element' ; import { RTTI_integer } from '../Scalar/RTTI_integer' ; import { RTTI_uri } from '../Scalar/RTTI_uri' ; import { RTTI_canonical } from '../Scalar/RTTI_canonical' ; export interface ITestScript_Capability { /**
     * Minimum capabilities required of server for test script to execute successfully.   If server does not meet at a minimum the referenced capability statement, then all tests in this script are skipped.
     */ capabilities : string ; /**
     * 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 [ ] ; /**
     * Whether or not the test execution will require the given capabilities of the server in order for this test script to execute.
     */ required ? : boolean ; /**
     * Extensions for required
     */ _required ? : IElement ; /**
     * Whether or not the test execution will validate the given capabilities of the server in order for this test script to execute.
     */ validated ? : boolean ; /**
     * Extensions for validated
     */ _validated ? : IElement ; /**
     * Description of the capabilities that this test script is requiring the server to support.
     */ description ? : string ; /**
     * Extensions for description
     */ _description ? : IElement ; /**
     * Which origin server these requirements apply to.
     */ origin ? : number [ ] ; /**
     * Extensions for origin
     */ _origin ? : IElement [ ] ; /**
     * Which server these requirements apply to.
     */ destination ? : number ; /**
     * Extensions for destination
     */ _destination ? : IElement ; /**
     * Links to the FHIR specification that describes this interaction and the resources involved in more detail.
     */ link ? : string [ ] ; /**
     * Extensions for link
     */ _link ? : IElement [ ] ; } export const RTTI_TestScript_Capability = t . recursion ( 'ITestScript_Capability' , ( ) => t . intersection ( [ t . type ( { capabilities : RTTI_canonical } ) , t . partial ( { id : t . string , extension : t . array ( RTTI_Extension ) , modifierExtension : t . array ( RTTI_Extension ) , required : t . boolean , _required : RTTI_Element , validated : t . boolean , _validated : RTTI_Element , description : t . string , _description : RTTI_Element , origin : t . array ( RTTI_integer ) , _origin : t . array ( RTTI_Element ) , destination : RTTI_integer , _destination : RTTI_Element , link : t . array ( RTTI_uri ) , _link : t . array ( RTTI_Element ) } ) ] ) ) ;