Options
All
  • Public
  • Public/Protected
  • All
Menu

Scenario class.

Hierarchy

  • BasicFunctions
    • Scenario

Index

Constructors

constructor

  • new Scenario(__namedParameters?: ScenarioParameters): Scenario
  • Parameters

    • __namedParameters: ScenarioParameters = {}

    Returns Scenario

Properties

coreObject

coreObject: CoreObject

CLA Wrapper attribute. Object used to send API requests and store technical information. Must be the same object for all classes within an instance of a CdiscLibrary class.

Optional domain

domain: string

CDISC Library attribute.

Optional fields

fields: {}

CDISC Library attribute.

Type declaration

Optional href

href: string

CDISC Library API endpoint.

Optional id

id: string

CLA Wrapper attribute. Item group class ID.

Optional scenario

scenario: string

CDISC Library attribute.

Optional type

type: string

CDISC Library attribute. Value of the _links.self.type.

Methods

findMatchingItems

  • findMatchingItems(name: string, options: MatchingOptions): ItemType[]
  • Find all matching variables/fields. For example TRxxPGy matches TR01PG12.

    Parameters

    • name: string

      Variable/Field name.

    • options: MatchingOptions

    Returns ItemType[]

    Array of matched items.

getItems

  • getItems(): Items
  • Get an object with all variables/fields for that item set.

    Returns Items

    An object with variables/fields.

getNameList

  • getNameList(): string[]
  • Get an array with the list of names for all items.

    Returns string[]

    An array with item names.

getRawResponse

  • getRawResponse(href?: string): Promise<object>
  • Get raw API response

    Parameters

    • Optional href: string

      CDISC Library API endpoint. If not specified, href attribute of the object is used.

    Returns Promise<object>

    Returns a JSON response if the request was successfull, otherwise returns undefined.

load

  • load(href?: string): Promise<boolean>
  • Load object from the CDISC Library

    Parameters

    • Optional href: string

      CDISC Library API endpoint. If not specified, href attribute of the object is used.

    Returns Promise<boolean>

    Returns true in the object was successfully loaded, false otherwise

parseResponse

  • parseResponse(raw: any): void
  • Parse API response to domain

    Parameters

    • raw: any

      Raw CDISC API response

    Returns void

toSimpleObject

  • toSimpleObject(): any
  • Convert class to a simple object, removes methods and technical elements (e.g., coreObject).

    Returns any

    A new object

Generated using TypeDoc