@schemastore/abc-clinical-demand-forecast-2.0.0 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/LICENSE +674 -0
  2. package/README.md +14 -0
  3. package/index.d.ts +1202 -0
  4. package/package.json +13 -0
package/index.d.ts ADDED
@@ -0,0 +1,1202 @@
1
+ /* eslint-disable */
2
+
3
+ /**
4
+ * Optional notes about the clinical demand forecast plan.
5
+ */
6
+ export type PlanNotes = string;
7
+ /**
8
+ * An analytics item that can be either a time series or an analytics note
9
+ */
10
+ export type AnalyticsItem = TimeSeries | AnalyticsNoteItem;
11
+ /**
12
+ * The aggregation level for time series data display
13
+ */
14
+ export type TimeAggregateType = 'Annual' | 'Quarterly' | 'Monthly';
15
+ /**
16
+ * How to display the quantities for this metric
17
+ */
18
+ export type ShowQuantitiesAs = (('Units' | 'Lots' | 'Monetary') | null) &
19
+ (((('Units' | 'Lots' | 'Monetary') | null) & string) | (null & (('Units' | 'Lots' | 'Monetary') | null)));
20
+ /**
21
+ * The ID of the comparison plan to use for this metric or null if no comparison plan is used
22
+ */
23
+ export type ComparisonPlanID = string | null;
24
+ /**
25
+ * Optional region filter for Clinical Demand Forecast metrics
26
+ */
27
+ export type RegionID = string;
28
+ /**
29
+ * Optional treatment arm filter for Clinical Demand Forecast metrics
30
+ */
31
+ export type ArmID = string;
32
+ /**
33
+ * Optional kit filter for Clinical Demand Forecast metrics
34
+ */
35
+ export type KitID = string;
36
+ /**
37
+ * Optional item filter for Clinical Demand Forecast metrics
38
+ */
39
+ export type ItemID = string;
40
+ /**
41
+ * Whether to display cumulative values
42
+ */
43
+ export type IsCumulative = boolean;
44
+ /**
45
+ * Name of the clinical trial study.
46
+ */
47
+ export type StudyName = string;
48
+ /**
49
+ * Phase of the clinical trial.
50
+ */
51
+ export type StudyPhase = 'phase_i' | 'phase_ii' | 'phase_iii' | 'phase_iv';
52
+ /**
53
+ * Summary of the trial protocol. Optional field with recommended default: empty string.
54
+ */
55
+ export type ProtocolSummary = string;
56
+ /**
57
+ * Disease category being treated (e.g., Oncology, CNS, Rare Disease). Will be normalized by LLM for benchmarking. Required field with recommended default: empty string.
58
+ */
59
+ export type TherapeuticArea = string;
60
+ /**
61
+ * Target number of subjects to complete the trial.
62
+ */
63
+ export type TargetCompleted = number;
64
+ /**
65
+ * Percentage of subjects who fail screening (0-100).
66
+ */
67
+ export type ScreenFailureRate = number;
68
+ /**
69
+ * Percentage of enrolled subjects who drop out of the study entirely and stop receiving all doses (0-100). NOTE: This is different from adverse events in dose escalation regimens. Attrition causes subjects to exit the study early, while adverse events only prevent dose escalation but subjects continue receiving doses at their maximum tolerated level.
70
+ */
71
+ export type AttritionRate = number;
72
+ /**
73
+ * Display name of the kit.
74
+ */
75
+ export type KitName = string;
76
+ /**
77
+ * This interface was referenced by `Items`'s JSON-Schema definition
78
+ * via the `patternProperty` ".*".
79
+ */
80
+ export type KitNode = KitContainer | KitItem;
81
+ /**
82
+ * Discriminator identifying this as a container node.
83
+ */
84
+ export type NodeType = 'container';
85
+ /**
86
+ * Name of the container.
87
+ */
88
+ export type Name = string;
89
+ /**
90
+ * Type of container.
91
+ */
92
+ export type DeliveryForm = 'bottle' | 'carton' | 'dose_pack' | 'blister_pack';
93
+ /**
94
+ * Display order of this node within its parent. Lower numbers appear first.
95
+ */
96
+ export type Ordering = number;
97
+ /**
98
+ * Discriminator identifying this as an item node.
99
+ */
100
+ export type NodeType1 = 'item';
101
+ /**
102
+ * Type of pharmaceutical item.
103
+ */
104
+ export type DeliveryForm1 = 'tablet' | 'capsule' | 'vial' | 'syringe' | 'sachet';
105
+ /**
106
+ * Number of units contained in this item within one kit. For example, if this is a bottle containing tablets, quantity=10 means the bottle contains 10 tablets. This is NOT the same as dosingRegimen.kitItemQuantities, which specifies consumption per dose. This quantity field defines the container/packaging size.
107
+ */
108
+ export type Quantity = number;
109
+ /**
110
+ * Dosage amount.
111
+ */
112
+ export type Dosage = number;
113
+ /**
114
+ * Units of dosage (e.g., mg, ml).
115
+ */
116
+ export type Units = string;
117
+ /**
118
+ * Description of the dosing regimen.
119
+ */
120
+ export type Description = string;
121
+ /**
122
+ * Discriminated union: either an active regimen definition (isPlacebo: false) or a placebo definition (isPlacebo: true).
123
+ */
124
+ export type DosingRegimenDefinition = ActiveRegimenDefinition | PlaceboRegimenDefinition;
125
+ /**
126
+ * Discriminator: false for active regimens.
127
+ */
128
+ export type IsPlacebo = false;
129
+ /**
130
+ * Total duration of treatment for all subjects.
131
+ */
132
+ export type TreatmentDuration = number;
133
+ /**
134
+ * Unit of treatment duration.
135
+ */
136
+ export type TreatmentDurationUnit = 'days' | 'weeks' | 'months' | 'years';
137
+ /**
138
+ * Frequency of dose administration.
139
+ */
140
+ export type DosingFrequency =
141
+ | 'once_daily_qd'
142
+ | 'twice_daily_bid'
143
+ | 'three_times_daily_tid'
144
+ | 'four_times_daily_qid'
145
+ | 'once_weekly_qw'
146
+ | 'every_2_weeks_q2w'
147
+ | 'every_3_weeks_q3w'
148
+ | 'every_4_weeks_q4w'
149
+ | 'monthly'
150
+ | 'every_6_weeks_q6w'
151
+ | 'every_8_weeks_q8w'
152
+ | 'every_12_weeks_q12w'
153
+ | 'every_other_day';
154
+ /**
155
+ * Configuration for fixed dose regimens. Null if using another regimen type.
156
+ */
157
+ export type FixedDoseConfiguration = FixedDoseConfiguration1 | null;
158
+ /**
159
+ * Configuration for dose escalation regimens. Null if using another regimen type.
160
+ */
161
+ export type DoseEscalationConfiguration = DoseEscalationConfiguration1 | null;
162
+ /**
163
+ * Individual dose escalation level configuration. This is a discriminated union with three variants: First level (isFirstLevel=true), Intermediate level (isFinalLevel=false, has adverseEventRate), and Final level (isFinalLevel=true, no duration).
164
+ *
165
+ * This interface was referenced by `EscalationLevels`'s JSON-Schema definition
166
+ * via the `patternProperty` ".*".
167
+ */
168
+ export type DoseEscalationLevel = FirstDoseEscalationLevel | IntermediateDoseEscalationLevel | FinalDoseEscalationLevel;
169
+ /**
170
+ * First escalation level. Has isFirstLevel=true, isFinalLevel=false, duration and durationUnit. Does NOT have adverseEventRate because adverse events occur when trialing a level, and there is no previous level to trial from.
171
+ */
172
+ export type FirstDoseEscalationLevel = DoseEscalationLevelBase & {
173
+ kitItemQuantities?: unknown;
174
+ isFirstLevel: IsFirstLevel;
175
+ isFinalLevel: IsFinalLevel;
176
+ duration: Duration;
177
+ durationUnit: DurationUnit;
178
+ ordering?: unknown;
179
+ };
180
+ /**
181
+ * Must be true for first level.
182
+ */
183
+ export type IsFirstLevel = true;
184
+ /**
185
+ * Must be false for first level (first level cannot also be final).
186
+ */
187
+ export type IsFinalLevel = false;
188
+ /**
189
+ * Duration of this escalation level.
190
+ */
191
+ export type Duration = number;
192
+ /**
193
+ * Unit of duration for this level.
194
+ */
195
+ export type DurationUnit = 'days' | 'weeks' | 'months' | 'years';
196
+ /**
197
+ * Intermediate escalation level (not first, not final). Has isFinalLevel=false, duration, durationUnit, and adverseEventRate. Does NOT have isFirstLevel property.
198
+ */
199
+ export type IntermediateDoseEscalationLevel = DoseEscalationLevelBase & {
200
+ kitItemQuantities?: unknown;
201
+ isFinalLevel: IsFinalLevel;
202
+ duration: Duration;
203
+ durationUnit: DurationUnit;
204
+ adverseEventRate: AdverseEventRate;
205
+ ordering?: unknown;
206
+ };
207
+ /**
208
+ * Percentage of subjects who experience adverse events when TRIALING THIS level from the previous level.
209
+ */
210
+ export type AdverseEventRate = number;
211
+ /**
212
+ * Final escalation level. Has isFinalLevel=true and adverseEventRate. Does NOT have duration or durationUnit (subjects continue at final level until treatment ends).
213
+ */
214
+ export type FinalDoseEscalationLevel = DoseEscalationLevelBase & {
215
+ kitItemQuantities?: unknown;
216
+ isFinalLevel: IsFinalLevel2;
217
+ adverseEventRate: AdverseEventRate;
218
+ ordering?: unknown;
219
+ };
220
+ /**
221
+ * Must be true for final level.
222
+ */
223
+ export type IsFinalLevel2 = true;
224
+ /**
225
+ * Configuration for weight-based dosing regimens. Null if using another regimen type.
226
+ */
227
+ export type WeightBasedConfiguration = WeightBasedConfiguration1 | null;
228
+ /**
229
+ * Unit of weight measurement.
230
+ */
231
+ export type WeightUnit = 'lbs' | 'kg';
232
+ /**
233
+ * Minimum weight for this range (null for no lower bound).
234
+ */
235
+ export type FromWeight = number | null;
236
+ /**
237
+ * Maximum weight for this range (null for no upper bound).
238
+ */
239
+ export type ToWeight = number | null;
240
+ /**
241
+ * Expected percentage of subjects in this weight range.
242
+ */
243
+ export type ExpectedPercentage = number;
244
+ /**
245
+ * Configuration for age-based dosing regimens. Null if using another regimen type.
246
+ */
247
+ export type AgeBasedConfiguration = AgeBasedConfiguration1 | null;
248
+ /**
249
+ * Unit of age measurement.
250
+ */
251
+ export type AgeUnit = 'years' | 'months';
252
+ /**
253
+ * Minimum age for this range (null for no lower bound).
254
+ */
255
+ export type FromAge = number | null;
256
+ /**
257
+ * Maximum age for this range (null for no upper bound).
258
+ */
259
+ export type ToAge = number | null;
260
+ /**
261
+ * Non-empty array of intervals between consecutive dispensation events, in dispensationIntervalUnit.
262
+ *
263
+ * @minItems 1
264
+ */
265
+ export type DispensationIntervals = [number, ...number[]];
266
+ /**
267
+ * Unit for dispensationIntervals. Independent of treatmentDurationUnit.
268
+ */
269
+ export type DispensationIntervalUnit = 'days' | 'weeks' | 'months' | 'years';
270
+ /**
271
+ * Discriminator: true for placebo regimens.
272
+ */
273
+ export type IsPlacebo1 = true;
274
+ /**
275
+ * ID of the active dosing regimen this placebo references. Placebo inherits all dosing configuration from the active regimen.
276
+ */
277
+ export type PlaceboOf = string;
278
+ /**
279
+ * Percentage of subjects allocated to this arm.
280
+ */
281
+ export type AllocationPercentage = number;
282
+ /**
283
+ * This interface was referenced by `DosingRegimenSequence`'s JSON-Schema definition
284
+ * via the `patternProperty` ".*".
285
+ */
286
+ export type SequencePeriod = TreatmentPeriod | WashoutPeriod;
287
+ /**
288
+ * Discriminator identifying this as a treatment period.
289
+ */
290
+ export type PeriodType = 'treatment';
291
+ /**
292
+ * ID of the dosing regimen used during this treatment period.
293
+ */
294
+ export type DosingRegimenID = string;
295
+ /**
296
+ * Discriminator identifying this as a washout period.
297
+ */
298
+ export type PeriodType1 = 'washout';
299
+ /**
300
+ * This interface was referenced by `Countries`'s JSON-Schema definition
301
+ * via the `patternProperty` ".*".
302
+ */
303
+ export type RegionConfig = RegionContainer | RegionLeaf;
304
+ /**
305
+ * Name of the region container.
306
+ */
307
+ export type RegionName = string;
308
+ /**
309
+ * Default activation start date for child regions. Null means no default.
310
+ */
311
+ export type ActivationStartDate = string | null;
312
+ /**
313
+ * Default screen rate for child regions. Null means no default.
314
+ */
315
+ export type ScreenRate = number | null;
316
+ /**
317
+ * Default site activation rate for child regions. Null means no default.
318
+ */
319
+ export type SiteActivationRate = number | null;
320
+ /**
321
+ * Default max enrollment per site for child regions. Null means no default.
322
+ */
323
+ export type MaximumEnrollmentPerSite = number | null;
324
+ /**
325
+ * Default site seeding quantity per kit for child regions. Map of kitId to quantity, or null to inherit.
326
+ */
327
+ export type SiteSeeding = null | {
328
+ [k: string]: number | undefined;
329
+ };
330
+ /**
331
+ * Discriminator identifying this as a leaf region node.
332
+ */
333
+ export type NodeType3 = 'region';
334
+ /**
335
+ * Total number of sites in this region.
336
+ */
337
+ export type NumberOfSites = number;
338
+ /**
339
+ * Total subjects enrolled for this region and month.
340
+ */
341
+ export type TotalEnrolled = number;
342
+ /**
343
+ * Trial design type: parallel (single regimen per arm) or crossOver (sequence of treatments with washout periods).
344
+ */
345
+ export type TrialDesign = 'parallel' | 'crossOver';
346
+
347
+ /**
348
+ * Schema defining the structure of ABCClinicalDemandForecast used for clinical trial demand forecasting in ABC-Plan.
349
+ */
350
+ export interface ABCClinicalDemandForecastJSONSchema {
351
+ /**
352
+ * Link to https://json.schemastore.org/abc-clinical-demand-forecast-2.0.0.json
353
+ */
354
+ $schema?: 'https://json.schemastore.org/abc-clinical-demand-forecast-2.0.0.json';
355
+ planNotes: PlanNotes;
356
+ analytics: {
357
+ items: AnalyticsItem[];
358
+ layouts: {
359
+ contentId: string;
360
+ /**
361
+ * Grid column position (0-11 for 12-column grid)
362
+ */
363
+ x: number;
364
+ /**
365
+ * Grid row position
366
+ */
367
+ y: number;
368
+ /**
369
+ * ID of the tab this layout item belongs to
370
+ */
371
+ tabID: string;
372
+ /**
373
+ * Width in grid units (1-12)
374
+ */
375
+ w: number;
376
+ /**
377
+ * Height in grid units
378
+ */
379
+ h: number;
380
+ /**
381
+ * Minimum height in grid units
382
+ */
383
+ minH?: number;
384
+ /**
385
+ * Maximum height in grid units
386
+ */
387
+ maxH?: number;
388
+ /**
389
+ * Minimum width in grid units
390
+ */
391
+ minW?: number;
392
+ /**
393
+ * Maximum width in grid units
394
+ */
395
+ maxW?: number;
396
+ /**
397
+ * Whether the item can be dragged
398
+ */
399
+ isDraggable?: boolean;
400
+ /**
401
+ * Whether the item can be resized
402
+ */
403
+ isResizable?: boolean;
404
+ }[];
405
+ tabs: {
406
+ id: string;
407
+ name: string;
408
+ ordering: number;
409
+ }[];
410
+ };
411
+ clinicalDemandForecastConfiguration: ClinicalDemandForecastConfiguration;
412
+ clinicalDemandCalculatedForecast: ClinicalDemandCalculatedForecast;
413
+ }
414
+ export interface TimeSeries {
415
+ id: string;
416
+ name: string;
417
+ type: 'TIME_SERIES';
418
+ subtitle: string;
419
+ /**
420
+ * Number of months to exclude from the beginning of the time series. Positive values trim, negative values add months before the plan start date.
421
+ */
422
+ excludeMonthsFromBeginning: number;
423
+ /**
424
+ * Number of months to exclude from the end of the time series. Positive values trim, negative values add months after the plan end date.
425
+ */
426
+ excludeMonthsFromEnd: number;
427
+ timeAggregateType: TimeAggregateType;
428
+ metrics: {
429
+ metricType:
430
+ | 'enrolled'
431
+ | 'active'
432
+ | 'completed'
433
+ | 'kitDemand'
434
+ | 'sites'
435
+ | 'screened'
436
+ | 'screenedOut'
437
+ | 'droppedOut'
438
+ | 'siteSeedingKitDemand'
439
+ | 'kitItemDemand';
440
+ abcMaterialIDs: string[];
441
+ visualization:
442
+ | {
443
+ type: 'line';
444
+ strokeWidth: number;
445
+ strokeDasharray: string;
446
+ dotSize: number;
447
+ dotFill: string;
448
+ /**
449
+ * Display data point values directly on the chart
450
+ */
451
+ showDataPointValues: boolean;
452
+ }
453
+ | {
454
+ type: 'bar';
455
+ barWidth: number;
456
+ radius: number;
457
+ stackId: string;
458
+ showAsPercent: boolean;
459
+ /**
460
+ * Display data point values directly on the chart
461
+ */
462
+ showDataPointValues: boolean;
463
+ }
464
+ | {
465
+ type: 'area';
466
+ fillOpacity: number;
467
+ strokeWidth: number;
468
+ stackId: string;
469
+ showAsPercent: boolean;
470
+ /**
471
+ * Display data point values directly on the chart
472
+ */
473
+ showDataPointValues: boolean;
474
+ };
475
+ yAxisIndex: number;
476
+ color: string;
477
+ zIndex: number;
478
+ label: string;
479
+ showQuantitiesAs: ShowQuantitiesAs;
480
+ comparisonPlanID: ComparisonPlanID;
481
+ regionID?: RegionID;
482
+ armID?: ArmID;
483
+ kitID?: KitID;
484
+ itemID?: ItemID;
485
+ isCumulative?: IsCumulative;
486
+ }[];
487
+ }
488
+ export interface AnalyticsNoteItem {
489
+ id: string;
490
+ name: string;
491
+ type: 'ANALYTICS_NOTE';
492
+ subtitle: string;
493
+ backgroundColor?: string;
494
+ imageUrl?: string;
495
+ text?: {
496
+ content: string;
497
+ fontFamily: string;
498
+ fontSize: number;
499
+ color: string;
500
+ horizontalAlignment: 'left' | 'center' | 'right';
501
+ verticalAlignment: 'top' | 'center' | 'bottom';
502
+ };
503
+ }
504
+ /**
505
+ * All algorithm inputs that affect forecast calculation. Any change to this object invalidates clinicalDemandCalculatedForecast.
506
+ */
507
+ export interface ClinicalDemandForecastConfiguration {
508
+ studyOverview: StudyOverview;
509
+ enrollment: Enrollment;
510
+ kitConfiguration: KitConfiguration;
511
+ dosingRegimens: DosingRegimens;
512
+ treatmentArms: TreatmentArms;
513
+ subjectFlow: SubjectFlow;
514
+ actuals: ClinicalDemandActuals;
515
+ trialDesign: TrialDesign;
516
+ }
517
+ /**
518
+ * Basic information about the clinical trial study.
519
+ */
520
+ export interface StudyOverview {
521
+ studyName: StudyName;
522
+ studyPhase: StudyPhase;
523
+ protocolSummary: ProtocolSummary;
524
+ therapeuticArea: TherapeuticArea;
525
+ }
526
+ /**
527
+ * Patient enrollment targets and rates.
528
+ */
529
+ export interface Enrollment {
530
+ targetCompleted: TargetCompleted;
531
+ screenFailureRate: ScreenFailureRate;
532
+ attritionRate: AttritionRate;
533
+ }
534
+ /**
535
+ * Configuration of kits with containers and items, keyed by kit ID.
536
+ */
537
+ export interface KitConfiguration {
538
+ [k: string]: Kit;
539
+ }
540
+ /**
541
+ * A kit containing items and containers. The kit ID is the key in the kitConfiguration map.
542
+ *
543
+ * This interface was referenced by `KitConfiguration`'s JSON-Schema definition
544
+ * via the `patternProperty` ".*".
545
+ */
546
+ export interface Kit {
547
+ name: KitName;
548
+ items: Items;
549
+ }
550
+ /**
551
+ * Items and containers within this kit, keyed by node ID.
552
+ */
553
+ export interface Items {
554
+ [k: string]: KitNode;
555
+ }
556
+ /**
557
+ * A structural container (bottle, blister pack) that holds other nodes. The container ID is the key in the parent items/children map.
558
+ */
559
+ export interface KitContainer {
560
+ nodeType: NodeType;
561
+ name: Name;
562
+ deliveryForm: DeliveryForm;
563
+ children: Children;
564
+ ordering: Ordering;
565
+ }
566
+ /**
567
+ * Items contained within this container, keyed by node ID.
568
+ */
569
+ export interface Children {
570
+ [k: string]: KitNode;
571
+ }
572
+ /**
573
+ * An actual pharmaceutical item (tablet, capsule, vial) with dosage. The item ID is the key in the parent items/children map.
574
+ */
575
+ export interface KitItem {
576
+ nodeType: NodeType1;
577
+ name: Name;
578
+ deliveryForm: DeliveryForm1;
579
+ quantity: Quantity;
580
+ dosage: Dosage;
581
+ units: Units;
582
+ ordering: Ordering;
583
+ }
584
+ /**
585
+ * Available dosing regimens for the study, keyed by ID.
586
+ */
587
+ export interface DosingRegimens {
588
+ [k: string]: DosingRegimen;
589
+ }
590
+ /**
591
+ * Dosing regimen configuration with nested dosingRegimenDefinition discriminated union.
592
+ *
593
+ * This interface was referenced by `DosingRegimens`'s JSON-Schema definition
594
+ * via the `patternProperty` ".*".
595
+ */
596
+ export interface DosingRegimen {
597
+ name: Name;
598
+ description: Description;
599
+ dosingRegimenDefinition: DosingRegimenDefinition;
600
+ }
601
+ /**
602
+ * Definition for an active (non-placebo) dosing regimen.
603
+ */
604
+ export interface ActiveRegimenDefinition {
605
+ isPlacebo: IsPlacebo;
606
+ treatmentDuration: TreatmentDuration;
607
+ treatmentDurationUnit: TreatmentDurationUnit;
608
+ dosingFrequency: DosingFrequency;
609
+ fixedConfig: FixedDoseConfiguration;
610
+ doseEscalationConfig: DoseEscalationConfiguration;
611
+ weightBasedConfig: WeightBasedConfiguration;
612
+ ageBasedConfig: AgeBasedConfiguration;
613
+ dispensationIntervals: DispensationIntervals;
614
+ dispensationIntervalUnit: DispensationIntervalUnit;
615
+ }
616
+ /**
617
+ * Configuration for fixed dose regimens.
618
+ */
619
+ export interface FixedDoseConfiguration1 {
620
+ kitItemQuantities: KitItemQuantities;
621
+ }
622
+ /**
623
+ * Mapping of kit item IDs to quantities consumed per dose.
624
+ */
625
+ export interface KitItemQuantities {
626
+ /**
627
+ * This interface was referenced by `KitItemQuantities`'s JSON-Schema definition
628
+ * via the `patternProperty` ".*".
629
+ */
630
+ [k: string]: number;
631
+ }
632
+ /**
633
+ * Configuration for dose escalation levels.
634
+ */
635
+ export interface DoseEscalationConfiguration1 {
636
+ levels: EscalationLevels;
637
+ }
638
+ /**
639
+ * Map of level IDs to dose escalation levels. Use ordering property to maintain display order.
640
+ */
641
+ export interface EscalationLevels {
642
+ [k: string]: DoseEscalationLevel;
643
+ }
644
+ /**
645
+ * Base properties shared by all dose escalation level variants.
646
+ */
647
+ export interface DoseEscalationLevelBase {
648
+ kitItemQuantities: KitItemQuantities1;
649
+ ordering: Ordering;
650
+ [k: string]: unknown | undefined;
651
+ }
652
+ /**
653
+ * Mapping of kit item IDs to quantities consumed per dose at this escalation level.
654
+ */
655
+ export interface KitItemQuantities1 {
656
+ /**
657
+ * This interface was referenced by `KitItemQuantities1`'s JSON-Schema definition
658
+ * via the `patternProperty` ".*".
659
+ */
660
+ [k: string]: number;
661
+ }
662
+ /**
663
+ * Configuration for weight-based dosing.
664
+ */
665
+ export interface WeightBasedConfiguration1 {
666
+ weightUnit: WeightUnit;
667
+ ranges: WeightRanges;
668
+ }
669
+ /**
670
+ * Map of range IDs to weight ranges for kit assignment. Use ordering property to maintain display order.
671
+ */
672
+ export interface WeightRanges {
673
+ [k: string]: WeightRange;
674
+ }
675
+ /**
676
+ * Weight range configuration for dosing.
677
+ *
678
+ * This interface was referenced by `WeightRanges`'s JSON-Schema definition
679
+ * via the `patternProperty` ".*".
680
+ */
681
+ export interface WeightRange {
682
+ kitItemQuantities: KitItemQuantities2;
683
+ fromWeight: FromWeight;
684
+ toWeight: ToWeight;
685
+ expectedPercentage: ExpectedPercentage;
686
+ ordering: Ordering;
687
+ }
688
+ /**
689
+ * Mapping of kit item IDs to quantities consumed per dose for subjects in THIS weight range. Each value represents the number of units (e.g., tablets) of that item required for a single dose. Different weight ranges can specify different quantities for the same item.
690
+ */
691
+ export interface KitItemQuantities2 {
692
+ /**
693
+ * This interface was referenced by `KitItemQuantities2`'s JSON-Schema definition
694
+ * via the `patternProperty` ".*".
695
+ */
696
+ [k: string]: number;
697
+ }
698
+ /**
699
+ * Configuration for age-based dosing.
700
+ */
701
+ export interface AgeBasedConfiguration1 {
702
+ ageUnit: AgeUnit;
703
+ ranges: AgeRanges;
704
+ }
705
+ /**
706
+ * Map of range IDs to age ranges for kit assignment. Use ordering property to maintain display order.
707
+ */
708
+ export interface AgeRanges {
709
+ [k: string]: AgeRange;
710
+ }
711
+ /**
712
+ * Age range configuration for dosing.
713
+ *
714
+ * This interface was referenced by `AgeRanges`'s JSON-Schema definition
715
+ * via the `patternProperty` ".*".
716
+ */
717
+ export interface AgeRange {
718
+ kitItemQuantities: KitItemQuantities3;
719
+ fromAge: FromAge;
720
+ toAge: ToAge;
721
+ expectedPercentage: ExpectedPercentage;
722
+ ordering: Ordering;
723
+ }
724
+ /**
725
+ * Mapping of kit item IDs to quantities consumed per dose for subjects in THIS age range. Each value represents the number of units (e.g., tablets) of that item required for a single dose. Different age ranges can specify different quantities for the same item.
726
+ */
727
+ export interface KitItemQuantities3 {
728
+ /**
729
+ * This interface was referenced by `KitItemQuantities3`'s JSON-Schema definition
730
+ * via the `patternProperty` ".*".
731
+ */
732
+ [k: string]: number;
733
+ }
734
+ /**
735
+ * Definition for a placebo regimen that references an active regimen.
736
+ */
737
+ export interface PlaceboRegimenDefinition {
738
+ isPlacebo: IsPlacebo1;
739
+ placeboOf: PlaceboOf;
740
+ }
741
+ /**
742
+ * Treatment arms in the clinical trial, keyed by ID.
743
+ */
744
+ export interface TreatmentArms {
745
+ [k: string]: TreatmentArm;
746
+ }
747
+ /**
748
+ * Treatment arm configuration from wizard step 5.
749
+ *
750
+ * This interface was referenced by `TreatmentArms`'s JSON-Schema definition
751
+ * via the `patternProperty` ".*".
752
+ */
753
+ export interface TreatmentArm {
754
+ name: Name;
755
+ allocationPercentage: AllocationPercentage;
756
+ dosingRegimenSequence: DosingRegimenSequence;
757
+ }
758
+ /**
759
+ * Sequence of treatment and washout periods for this treatment arm.
760
+ */
761
+ export interface DosingRegimenSequence {
762
+ [k: string]: SequencePeriod;
763
+ }
764
+ /**
765
+ * Treatment period in a dosing regimen sequence.
766
+ */
767
+ export interface TreatmentPeriod {
768
+ periodType: PeriodType;
769
+ dosingRegimenId: DosingRegimenID;
770
+ ordering: Ordering;
771
+ }
772
+ /**
773
+ * Washout period (no dosing) in a dosing regimen sequence.
774
+ */
775
+ export interface WashoutPeriod {
776
+ periodType: PeriodType1;
777
+ duration: Duration;
778
+ durationUnit: DurationUnit;
779
+ ordering: Ordering;
780
+ }
781
+ /**
782
+ * Site supply and region configuration.
783
+ */
784
+ export interface SubjectFlow {
785
+ regions: Countries;
786
+ }
787
+ /**
788
+ * Region-specific site configuration, keyed by ID.
789
+ */
790
+ export interface Countries {
791
+ [k: string]: RegionConfig;
792
+ }
793
+ /**
794
+ * Container node for grouping regions. Has subregions but no sites.
795
+ */
796
+ export interface RegionContainer {
797
+ nodeType: NodeType;
798
+ regionName: RegionName;
799
+ subregions: Subregions;
800
+ activationStartDate?: ActivationStartDate;
801
+ screenRate?: ScreenRate;
802
+ siteActivationRate?: SiteActivationRate;
803
+ maxEnrollmentPerSite?: MaximumEnrollmentPerSite;
804
+ siteSeeding?: SiteSeeding;
805
+ }
806
+ /**
807
+ * Child regions within this container.
808
+ */
809
+ export interface Subregions {
810
+ [k: string]: RegionConfig;
811
+ }
812
+ /**
813
+ * Leaf node representing an operational region with sites.
814
+ */
815
+ export interface RegionLeaf {
816
+ nodeType: NodeType3;
817
+ regionName: RegionName;
818
+ numberOfSites: NumberOfSites;
819
+ activationStartDate?: ActivationStartDate;
820
+ screenRate?: ScreenRate;
821
+ siteActivationRate?: SiteActivationRate;
822
+ maxEnrollmentPerSite?: MaximumEnrollmentPerSite;
823
+ siteSeeding?: SiteSeeding;
824
+ }
825
+ /**
826
+ * Actual enrollment data entered by users to reconcile with forecast.
827
+ */
828
+ export interface ClinicalDemandActuals {
829
+ enrollment: EnrollmentActuals;
830
+ sites: SitesActuals;
831
+ notes: ActualsNotes;
832
+ siteNotes: SiteActualsNotes;
833
+ }
834
+ /**
835
+ * Actual enrollment by region and month.
836
+ */
837
+ export interface EnrollmentActuals {
838
+ /**
839
+ * This interface was referenced by `EnrollmentActuals`'s JSON-Schema definition
840
+ * via the `patternProperty` ".*".
841
+ */
842
+ [k: string]: {
843
+ /**
844
+ * This interface was referenced by `undefined`'s JSON-Schema definition
845
+ * via the `patternProperty` ".*".
846
+ */
847
+ [k: string]: {
848
+ total: TotalEnrolled;
849
+ byArm: EnrollmentByArm;
850
+ };
851
+ };
852
+ }
853
+ /**
854
+ * Enrollment count per treatment arm.
855
+ */
856
+ export interface EnrollmentByArm {
857
+ /**
858
+ * This interface was referenced by `EnrollmentByArm`'s JSON-Schema definition
859
+ * via the `patternProperty` ".*".
860
+ */
861
+ [k: string]: number;
862
+ }
863
+ /**
864
+ * Actual site counts by region and month.
865
+ */
866
+ export interface SitesActuals {
867
+ /**
868
+ * This interface was referenced by `SitesActuals`'s JSON-Schema definition
869
+ * via the `patternProperty` ".*".
870
+ */
871
+ [k: string]: {
872
+ /**
873
+ * This interface was referenced by `undefined`'s JSON-Schema definition
874
+ * via the `patternProperty` ".*".
875
+ */
876
+ [k: string]: number;
877
+ };
878
+ }
879
+ /**
880
+ * Explanatory notes for enrollment actuals by region and month.
881
+ */
882
+ export interface ActualsNotes {
883
+ /**
884
+ * This interface was referenced by `ActualsNotes`'s JSON-Schema definition
885
+ * via the `patternProperty` ".*".
886
+ */
887
+ [k: string]: {
888
+ /**
889
+ * This interface was referenced by `undefined`'s JSON-Schema definition
890
+ * via the `patternProperty` ".*".
891
+ */
892
+ [k: string]: string;
893
+ };
894
+ }
895
+ /**
896
+ * Explanatory notes for site activation actuals by region and month.
897
+ */
898
+ export interface SiteActualsNotes {
899
+ /**
900
+ * This interface was referenced by `SiteActualsNotes`'s JSON-Schema definition
901
+ * via the `patternProperty` ".*".
902
+ */
903
+ [k: string]: {
904
+ /**
905
+ * This interface was referenced by `undefined`'s JSON-Schema definition
906
+ * via the `patternProperty` ".*".
907
+ */
908
+ [k: string]: string;
909
+ };
910
+ }
911
+ /**
912
+ * Calculated demand forecast with atomic monthly data per-region, per-arm.
913
+ */
914
+ export interface ClinicalDemandCalculatedForecast {
915
+ byRegion: ByRegion;
916
+ }
917
+ /**
918
+ * Region-specific forecast data keyed by region ID.
919
+ */
920
+ export interface ByRegion {
921
+ [k: string]: RegionForecast | undefined;
922
+ }
923
+ /**
924
+ * Atomic monthly forecast data for a single region. All values are monthly (not cumulative). UI computes cumulative views.
925
+ */
926
+ export interface RegionForecast {
927
+ sites: Sites;
928
+ subjectsScreened: SubjectsScreened;
929
+ subjectsScreenedOut: SubjectsScreenedOut;
930
+ subjectsEnrolled: SubjectsEnrolled;
931
+ subjectsActive: SubjectsActive;
932
+ subjectsCompleted: SubjectsCompleted;
933
+ subjectsDroppedOut: SubjectsDroppedOut;
934
+ kitDemand: KitDemand;
935
+ kitItemDemand: KitItemDemand;
936
+ siteSeedingKitDemand: SiteSeedingKitDemand;
937
+ }
938
+ /**
939
+ * Monthly count of sites opened this month.
940
+ */
941
+ export interface Sites {
942
+ /**
943
+ * This interface was referenced by `Sites`'s JSON-Schema definition
944
+ * via the `patternProperty` "^\d{4}-(0[1-9]|1[0-2])-01$".
945
+ *
946
+ * This interface was referenced by `SubjectsScreened`'s JSON-Schema definition
947
+ * via the `patternProperty` "^\d{4}-(0[1-9]|1[0-2])-01$".
948
+ *
949
+ * This interface was referenced by `SubjectsScreenedOut`'s JSON-Schema definition
950
+ * via the `patternProperty` "^\d{4}-(0[1-9]|1[0-2])-01$".
951
+ *
952
+ * This interface was referenced by `PositiveDateMap`'s JSON-Schema definition
953
+ * via the `patternProperty` "^\d{4}-(0[1-9]|1[0-2])-01$".
954
+ *
955
+ * This interface was referenced by `PositiveDateMap1`'s JSON-Schema definition
956
+ * via the `patternProperty` "^\d{4}-(0[1-9]|1[0-2])-01$".
957
+ *
958
+ * This interface was referenced by `PositiveDateMap2`'s JSON-Schema definition
959
+ * via the `patternProperty` "^\d{4}-(0[1-9]|1[0-2])-01$".
960
+ */
961
+ [k: string]: number;
962
+ }
963
+ /**
964
+ * Monthly count of subjects screened this month.
965
+ */
966
+ export interface SubjectsScreened {
967
+ /**
968
+ * This interface was referenced by `Sites`'s JSON-Schema definition
969
+ * via the `patternProperty` "^\d{4}-(0[1-9]|1[0-2])-01$".
970
+ *
971
+ * This interface was referenced by `SubjectsScreened`'s JSON-Schema definition
972
+ * via the `patternProperty` "^\d{4}-(0[1-9]|1[0-2])-01$".
973
+ *
974
+ * This interface was referenced by `SubjectsScreenedOut`'s JSON-Schema definition
975
+ * via the `patternProperty` "^\d{4}-(0[1-9]|1[0-2])-01$".
976
+ *
977
+ * This interface was referenced by `PositiveDateMap`'s JSON-Schema definition
978
+ * via the `patternProperty` "^\d{4}-(0[1-9]|1[0-2])-01$".
979
+ *
980
+ * This interface was referenced by `PositiveDateMap1`'s JSON-Schema definition
981
+ * via the `patternProperty` "^\d{4}-(0[1-9]|1[0-2])-01$".
982
+ *
983
+ * This interface was referenced by `PositiveDateMap2`'s JSON-Schema definition
984
+ * via the `patternProperty` "^\d{4}-(0[1-9]|1[0-2])-01$".
985
+ */
986
+ [k: string]: number;
987
+ }
988
+ /**
989
+ * Monthly count of subjects who failed screening this month.
990
+ */
991
+ export interface SubjectsScreenedOut {
992
+ /**
993
+ * This interface was referenced by `Sites`'s JSON-Schema definition
994
+ * via the `patternProperty` "^\d{4}-(0[1-9]|1[0-2])-01$".
995
+ *
996
+ * This interface was referenced by `SubjectsScreened`'s JSON-Schema definition
997
+ * via the `patternProperty` "^\d{4}-(0[1-9]|1[0-2])-01$".
998
+ *
999
+ * This interface was referenced by `SubjectsScreenedOut`'s JSON-Schema definition
1000
+ * via the `patternProperty` "^\d{4}-(0[1-9]|1[0-2])-01$".
1001
+ *
1002
+ * This interface was referenced by `PositiveDateMap`'s JSON-Schema definition
1003
+ * via the `patternProperty` "^\d{4}-(0[1-9]|1[0-2])-01$".
1004
+ *
1005
+ * This interface was referenced by `PositiveDateMap1`'s JSON-Schema definition
1006
+ * via the `patternProperty` "^\d{4}-(0[1-9]|1[0-2])-01$".
1007
+ *
1008
+ * This interface was referenced by `PositiveDateMap2`'s JSON-Schema definition
1009
+ * via the `patternProperty` "^\d{4}-(0[1-9]|1[0-2])-01$".
1010
+ */
1011
+ [k: string]: number;
1012
+ }
1013
+ /**
1014
+ * Monthly subjects enrolled, broken down by treatment arm.
1015
+ */
1016
+ export interface SubjectsEnrolled {
1017
+ [k: string]: PositiveDateMap;
1018
+ }
1019
+ /**
1020
+ * Mapping of dates to positive numerical values.
1021
+ *
1022
+ * This interface was referenced by `SubjectsEnrolled`'s JSON-Schema definition
1023
+ * via the `patternProperty` ".*".
1024
+ *
1025
+ * This interface was referenced by `SubjectsActive`'s JSON-Schema definition
1026
+ * via the `patternProperty` ".*".
1027
+ *
1028
+ * This interface was referenced by `SubjectsCompleted`'s JSON-Schema definition
1029
+ * via the `patternProperty` ".*".
1030
+ *
1031
+ * This interface was referenced by `SubjectsDroppedOut`'s JSON-Schema definition
1032
+ * via the `patternProperty` ".*".
1033
+ *
1034
+ * This interface was referenced by `SiteSeedingKitDemand`'s JSON-Schema definition
1035
+ * via the `patternProperty` ".*".
1036
+ */
1037
+ export interface PositiveDateMap {
1038
+ /**
1039
+ * This interface was referenced by `Sites`'s JSON-Schema definition
1040
+ * via the `patternProperty` "^\d{4}-(0[1-9]|1[0-2])-01$".
1041
+ *
1042
+ * This interface was referenced by `SubjectsScreened`'s JSON-Schema definition
1043
+ * via the `patternProperty` "^\d{4}-(0[1-9]|1[0-2])-01$".
1044
+ *
1045
+ * This interface was referenced by `SubjectsScreenedOut`'s JSON-Schema definition
1046
+ * via the `patternProperty` "^\d{4}-(0[1-9]|1[0-2])-01$".
1047
+ *
1048
+ * This interface was referenced by `PositiveDateMap`'s JSON-Schema definition
1049
+ * via the `patternProperty` "^\d{4}-(0[1-9]|1[0-2])-01$".
1050
+ *
1051
+ * This interface was referenced by `PositiveDateMap1`'s JSON-Schema definition
1052
+ * via the `patternProperty` "^\d{4}-(0[1-9]|1[0-2])-01$".
1053
+ *
1054
+ * This interface was referenced by `PositiveDateMap2`'s JSON-Schema definition
1055
+ * via the `patternProperty` "^\d{4}-(0[1-9]|1[0-2])-01$".
1056
+ */
1057
+ [k: string]: number;
1058
+ }
1059
+ /**
1060
+ * Monthly change in active subjects (new active this month), broken down by treatment arm.
1061
+ */
1062
+ export interface SubjectsActive {
1063
+ [k: string]: PositiveDateMap;
1064
+ }
1065
+ /**
1066
+ * Monthly subjects who completed treatment, broken down by treatment arm.
1067
+ */
1068
+ export interface SubjectsCompleted {
1069
+ [k: string]: PositiveDateMap;
1070
+ }
1071
+ /**
1072
+ * Monthly subjects who dropped out, broken down by treatment arm.
1073
+ */
1074
+ export interface SubjectsDroppedOut {
1075
+ [k: string]: PositiveDateMap;
1076
+ }
1077
+ /**
1078
+ * Monthly kit demand (whole kits rounded up), broken down by treatment arm and kit ID. Use this for supply planning - it accounts for buffer/waste in partially-used bottles.
1079
+ */
1080
+ export interface KitDemand {
1081
+ /**
1082
+ * Mapping of sequence period IDs to kit demand for this arm.
1083
+ *
1084
+ * This interface was referenced by `KitDemand`'s JSON-Schema definition
1085
+ * via the `patternProperty` ".*".
1086
+ */
1087
+ [k: string]: {
1088
+ /**
1089
+ * Mapping of kit IDs to KitDemandEntry for this sequence period.
1090
+ *
1091
+ * This interface was referenced by `undefined`'s JSON-Schema definition
1092
+ * via the `patternProperty` ".*".
1093
+ */
1094
+ [k: string]: {
1095
+ [k: string]: KitDemandEntry;
1096
+ };
1097
+ };
1098
+ }
1099
+ /**
1100
+ * Kit demand with placeboOf tagging for active/placebo separation.
1101
+ *
1102
+ * This interface was referenced by `undefined`'s JSON-Schema definition
1103
+ * via the `patternProperty` ".*".
1104
+ */
1105
+ export interface KitDemandEntry {
1106
+ demand: PositiveDateMap1;
1107
+ /**
1108
+ * Regimen ID this is placebo of, or null if active.
1109
+ */
1110
+ placeboOf: string | null;
1111
+ }
1112
+ /**
1113
+ * Mapping of dates to positive numerical values.
1114
+ */
1115
+ export interface PositiveDateMap1 {
1116
+ /**
1117
+ * This interface was referenced by `Sites`'s JSON-Schema definition
1118
+ * via the `patternProperty` "^\d{4}-(0[1-9]|1[0-2])-01$".
1119
+ *
1120
+ * This interface was referenced by `SubjectsScreened`'s JSON-Schema definition
1121
+ * via the `patternProperty` "^\d{4}-(0[1-9]|1[0-2])-01$".
1122
+ *
1123
+ * This interface was referenced by `SubjectsScreenedOut`'s JSON-Schema definition
1124
+ * via the `patternProperty` "^\d{4}-(0[1-9]|1[0-2])-01$".
1125
+ *
1126
+ * This interface was referenced by `PositiveDateMap`'s JSON-Schema definition
1127
+ * via the `patternProperty` "^\d{4}-(0[1-9]|1[0-2])-01$".
1128
+ *
1129
+ * This interface was referenced by `PositiveDateMap1`'s JSON-Schema definition
1130
+ * via the `patternProperty` "^\d{4}-(0[1-9]|1[0-2])-01$".
1131
+ *
1132
+ * This interface was referenced by `PositiveDateMap2`'s JSON-Schema definition
1133
+ * via the `patternProperty` "^\d{4}-(0[1-9]|1[0-2])-01$".
1134
+ */
1135
+ [k: string]: number;
1136
+ }
1137
+ /**
1138
+ * Monthly kit item consumption (what patients actually receive), broken down by treatment arm and item ID. Displayed as 'Dosing' in the UI. Note: This is consumption, not supply demand - it does not include buffer/waste from partially-used bottles. For supply planning, use kitDemand.
1139
+ */
1140
+ export interface KitItemDemand {
1141
+ /**
1142
+ * Mapping of sequence period IDs to kit item demand for this arm.
1143
+ *
1144
+ * This interface was referenced by `KitItemDemand`'s JSON-Schema definition
1145
+ * via the `patternProperty` ".*".
1146
+ */
1147
+ [k: string]: {
1148
+ /**
1149
+ * Mapping of item IDs to KitItemDemandEntry for this sequence period.
1150
+ *
1151
+ * This interface was referenced by `undefined`'s JSON-Schema definition
1152
+ * via the `patternProperty` ".*".
1153
+ */
1154
+ [k: string]: {
1155
+ [k: string]: KitItemDemandEntry;
1156
+ };
1157
+ };
1158
+ }
1159
+ /**
1160
+ * Kit item consumption entry with placeboOf tagging for active/placebo separation. Represents what patients actually receive, not supply demand.
1161
+ *
1162
+ * This interface was referenced by `undefined`'s JSON-Schema definition
1163
+ * via the `patternProperty` ".*".
1164
+ */
1165
+ export interface KitItemDemandEntry {
1166
+ demand: PositiveDateMap2;
1167
+ /**
1168
+ * Regimen ID this is placebo of, or null if active.
1169
+ */
1170
+ placeboOf: string | null;
1171
+ }
1172
+ /**
1173
+ * Mapping of dates to positive numerical values.
1174
+ */
1175
+ export interface PositiveDateMap2 {
1176
+ /**
1177
+ * This interface was referenced by `Sites`'s JSON-Schema definition
1178
+ * via the `patternProperty` "^\d{4}-(0[1-9]|1[0-2])-01$".
1179
+ *
1180
+ * This interface was referenced by `SubjectsScreened`'s JSON-Schema definition
1181
+ * via the `patternProperty` "^\d{4}-(0[1-9]|1[0-2])-01$".
1182
+ *
1183
+ * This interface was referenced by `SubjectsScreenedOut`'s JSON-Schema definition
1184
+ * via the `patternProperty` "^\d{4}-(0[1-9]|1[0-2])-01$".
1185
+ *
1186
+ * This interface was referenced by `PositiveDateMap`'s JSON-Schema definition
1187
+ * via the `patternProperty` "^\d{4}-(0[1-9]|1[0-2])-01$".
1188
+ *
1189
+ * This interface was referenced by `PositiveDateMap1`'s JSON-Schema definition
1190
+ * via the `patternProperty` "^\d{4}-(0[1-9]|1[0-2])-01$".
1191
+ *
1192
+ * This interface was referenced by `PositiveDateMap2`'s JSON-Schema definition
1193
+ * via the `patternProperty` "^\d{4}-(0[1-9]|1[0-2])-01$".
1194
+ */
1195
+ [k: string]: number;
1196
+ }
1197
+ /**
1198
+ * Site seeding kit demand - kits shipped when sites activate (not treatment-driven). Keyed by kit ID.
1199
+ */
1200
+ export interface SiteSeedingKitDemand {
1201
+ [k: string]: PositiveDateMap;
1202
+ }