@forwardimpact/libsyntheticrender 0.1.1

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.
@@ -0,0 +1,434 @@
1
+ /**
2
+ * Industry Data — drug and platform definitions for synthetic knowledge graph.
3
+ *
4
+ * Provides deterministic drug pipeline and technology platform data
5
+ * parameterized by the universe's industry and domain.
6
+ *
7
+ * @module libuniverse/render/industry-data
8
+ */
9
+
10
+ /**
11
+ * @typedef {object} Drug
12
+ * @property {string} id
13
+ * @property {string} name
14
+ * @property {string} drugClass
15
+ * @property {string} activeIngredient
16
+ * @property {string} clinicalPharmacology
17
+ * @property {string} phase
18
+ * @property {string} legalStatus
19
+ * @property {string|null} parentDrug - id of parent drug for derivatives
20
+ */
21
+
22
+ /**
23
+ * @typedef {object} Platform
24
+ * @property {string} id
25
+ * @property {string} name
26
+ * @property {string} description
27
+ * @property {string} category
28
+ * @property {string} version
29
+ * @property {string[]} dependencies - ids of dependency platforms
30
+ */
31
+
32
+ /**
33
+ * Generate drug pipeline data.
34
+ * @param {string} domain
35
+ * @returns {Drug[]}
36
+ */
37
+ export function generateDrugs(domain) {
38
+ return [
39
+ {
40
+ id: "oncora",
41
+ name: "Oncora",
42
+ drugClass: "Monoclonal Antibody",
43
+ activeIngredient: "Oncorizumab",
44
+ clinicalPharmacology:
45
+ "Selective inhibition of PD-L1 checkpoint pathway in solid tumors",
46
+ phase: "clinical_trial_phase_3",
47
+ legalStatus: "Investigational New Drug",
48
+ parentDrug: null,
49
+ iri: `https://${domain}/id/drug/oncora`,
50
+ },
51
+ {
52
+ id: "oncora-sc",
53
+ name: "Oncora SC",
54
+ drugClass: "Monoclonal Antibody",
55
+ activeIngredient: "Oncorizumab (subcutaneous)",
56
+ clinicalPharmacology:
57
+ "Subcutaneous formulation of Oncorizumab for improved patient compliance",
58
+ phase: "clinical_trial_phase_1",
59
+ legalStatus: "Investigational New Drug",
60
+ parentDrug: "oncora",
61
+ iri: `https://${domain}/id/drug/oncora-sc`,
62
+ },
63
+ {
64
+ id: "neuralink-7",
65
+ name: "NeuraLink-7",
66
+ drugClass: "Small Molecule",
67
+ activeIngredient: "Neuralixib",
68
+ clinicalPharmacology:
69
+ "BACE1 inhibitor targeting amyloid-beta aggregation in neurodegenerative disease",
70
+ phase: "clinical_trial_phase_2",
71
+ legalStatus: "Investigational New Drug",
72
+ parentDrug: null,
73
+ iri: `https://${domain}/id/drug/neuralink-7`,
74
+ },
75
+ {
76
+ id: "cardioguard",
77
+ name: "CardioGuard",
78
+ drugClass: "Peptide Therapeutic",
79
+ activeIngredient: "Cardioptide",
80
+ clinicalPharmacology:
81
+ "Natriuretic peptide analog for chronic heart failure management",
82
+ phase: "clinical_trial_phase_2",
83
+ legalStatus: "Investigational New Drug",
84
+ parentDrug: null,
85
+ iri: `https://${domain}/id/drug/cardioguard`,
86
+ },
87
+ {
88
+ id: "immunex-pro",
89
+ name: "ImmuneX Pro",
90
+ drugClass: "CAR-T Cell Therapy",
91
+ activeIngredient: "Autologous anti-CD19 CAR-T cells",
92
+ clinicalPharmacology:
93
+ "Chimeric antigen receptor T-cell therapy for B-cell lymphomas",
94
+ phase: "clinical_trial_phase_3",
95
+ legalStatus: "Breakthrough Therapy Designation",
96
+ parentDrug: null,
97
+ iri: `https://${domain}/id/drug/immunex-pro`,
98
+ },
99
+ {
100
+ id: "genova-rna",
101
+ name: "Genova RNA",
102
+ drugClass: "mRNA Therapeutic",
103
+ activeIngredient: "mRNA-encoded IL-12",
104
+ clinicalPharmacology:
105
+ "Intratumoral mRNA encoding interleukin-12 for immune activation",
106
+ phase: "preclinical",
107
+ legalStatus: "Pre-IND",
108
+ parentDrug: null,
109
+ iri: `https://${domain}/id/drug/genova-rna`,
110
+ },
111
+ {
112
+ id: "hepaclean",
113
+ name: "HepaClean",
114
+ drugClass: "Antisense Oligonucleotide",
115
+ activeIngredient: "Hepatisiran",
116
+ clinicalPharmacology:
117
+ "Hepatocyte-targeted ASO for NASH fibrosis reduction",
118
+ phase: "clinical_trial_phase_1",
119
+ legalStatus: "Investigational New Drug",
120
+ parentDrug: null,
121
+ iri: `https://${domain}/id/drug/hepaclean`,
122
+ },
123
+ {
124
+ id: "dermashield",
125
+ name: "DermaShield",
126
+ drugClass: "Biologic",
127
+ activeIngredient: "Dermazolimab",
128
+ clinicalPharmacology:
129
+ "IL-17A/F dual inhibitor for moderate-to-severe psoriasis",
130
+ phase: "clinical_trial_phase_2",
131
+ legalStatus: "Investigational New Drug",
132
+ parentDrug: null,
133
+ iri: `https://${domain}/id/drug/dermashield`,
134
+ },
135
+ {
136
+ id: "pulmofix",
137
+ name: "PulmoFix",
138
+ drugClass: "Inhaled Biologic",
139
+ activeIngredient: "Pulmozimab",
140
+ clinicalPharmacology:
141
+ "Inhaled anti-TSLP antibody fragment for severe asthma",
142
+ phase: "clinical_trial_phase_1",
143
+ legalStatus: "Investigational New Drug",
144
+ parentDrug: null,
145
+ iri: `https://${domain}/id/drug/pulmofix`,
146
+ },
147
+ {
148
+ id: "oncora-combo",
149
+ name: "Oncora Combo",
150
+ drugClass: "Combination Therapy",
151
+ activeIngredient: "Oncorizumab + Neuralixib",
152
+ clinicalPharmacology:
153
+ "Combination checkpoint inhibitor and kinase inhibitor for resistant tumors",
154
+ phase: "preclinical",
155
+ legalStatus: "Pre-IND",
156
+ parentDrug: "oncora",
157
+ iri: `https://${domain}/id/drug/oncora-combo`,
158
+ },
159
+ ];
160
+ }
161
+
162
+ /**
163
+ * Generate technology platform data as a DAG (no cycles).
164
+ * @param {string} domain
165
+ * @returns {Platform[]}
166
+ */
167
+ export function generatePlatforms(domain) {
168
+ return [
169
+ // Foundation layer (no dependencies)
170
+ {
171
+ id: "cloud-core",
172
+ name: "CloudCore",
173
+ description: "Core cloud infrastructure services and IAM",
174
+ category: "Infrastructure",
175
+ version: "3.2.0",
176
+ dependencies: [],
177
+ iri: `https://${domain}/id/platform/cloud-core`,
178
+ },
179
+ {
180
+ id: "data-mesh",
181
+ name: "DataMesh",
182
+ description: "Enterprise data mesh fabric for cross-domain data sharing",
183
+ category: "Data Infrastructure",
184
+ version: "2.1.0",
185
+ dependencies: ["cloud-core"],
186
+ iri: `https://${domain}/id/platform/data-mesh`,
187
+ },
188
+ {
189
+ id: "identity-hub",
190
+ name: "IdentityHub",
191
+ description: "Centralized identity and access management platform",
192
+ category: "Security",
193
+ version: "4.0.1",
194
+ dependencies: ["cloud-core"],
195
+ iri: `https://${domain}/id/platform/identity-hub`,
196
+ },
197
+ {
198
+ id: "event-bus",
199
+ name: "EventBus",
200
+ description: "Enterprise event streaming and message broker",
201
+ category: "Middleware",
202
+ version: "2.5.0",
203
+ dependencies: ["cloud-core"],
204
+ iri: `https://${domain}/id/platform/event-bus`,
205
+ },
206
+ // Mid layer
207
+ {
208
+ id: "molecularforge",
209
+ name: "MolecularForge",
210
+ description:
211
+ "AI-powered molecular simulation and drug candidate screening",
212
+ category: "Drug Discovery",
213
+ version: "5.1.0",
214
+ dependencies: ["data-mesh", "cloud-core"],
215
+ iri: `https://${domain}/id/platform/molecularforge`,
216
+ },
217
+ {
218
+ id: "genomics-pipeline",
219
+ name: "GenomicsPipeline",
220
+ description:
221
+ "High-throughput genomic sequencing and variant analysis pipeline",
222
+ category: "Genomics",
223
+ version: "3.0.2",
224
+ dependencies: ["data-mesh", "cloud-core"],
225
+ iri: `https://${domain}/id/platform/genomics-pipeline`,
226
+ },
227
+ {
228
+ id: "clinical-stream",
229
+ name: "ClinicalStream",
230
+ description: "Real-time clinical trial data ingestion and monitoring",
231
+ category: "Clinical",
232
+ version: "2.3.0",
233
+ dependencies: ["data-mesh", "event-bus"],
234
+ iri: `https://${domain}/id/platform/clinical-stream`,
235
+ },
236
+ {
237
+ id: "stat-engine",
238
+ name: "StatEngine",
239
+ description: "Biostatistics computation engine for trial analysis",
240
+ category: "Analytics",
241
+ version: "4.2.1",
242
+ dependencies: ["data-mesh"],
243
+ iri: `https://${domain}/id/platform/stat-engine`,
244
+ },
245
+ {
246
+ id: "ml-pipeline",
247
+ name: "MLPipeline",
248
+ description: "End-to-end machine learning model training and deployment",
249
+ category: "AI/ML",
250
+ version: "3.4.0",
251
+ dependencies: ["data-mesh", "cloud-core"],
252
+ iri: `https://${domain}/id/platform/ml-pipeline`,
253
+ },
254
+ {
255
+ id: "compliance-tracker",
256
+ name: "ComplianceTracker",
257
+ description: "Regulatory compliance monitoring and audit trail system",
258
+ category: "Regulatory",
259
+ version: "2.0.3",
260
+ dependencies: ["identity-hub", "event-bus"],
261
+ iri: `https://${domain}/id/platform/compliance-tracker`,
262
+ },
263
+ {
264
+ id: "api-gateway",
265
+ name: "APIGateway",
266
+ description: "Centralized API management, rate limiting, and routing",
267
+ category: "Infrastructure",
268
+ version: "3.1.0",
269
+ dependencies: ["cloud-core", "identity-hub"],
270
+ iri: `https://${domain}/id/platform/api-gateway`,
271
+ },
272
+ {
273
+ id: "dev-portal",
274
+ name: "DevPortal",
275
+ description:
276
+ "Developer documentation, SDK distribution, and API playground",
277
+ category: "Developer Tools",
278
+ version: "2.2.0",
279
+ dependencies: ["api-gateway", "identity-hub"],
280
+ iri: `https://${domain}/id/platform/dev-portal`,
281
+ },
282
+ // Upper layer
283
+ {
284
+ id: "trial-manager",
285
+ name: "TrialManager",
286
+ description:
287
+ "End-to-end clinical trial management and patient enrollment",
288
+ category: "Clinical",
289
+ version: "3.5.0",
290
+ dependencies: ["clinical-stream", "compliance-tracker", "stat-engine"],
291
+ iri: `https://${domain}/id/platform/trial-manager`,
292
+ },
293
+ {
294
+ id: "drug-safety",
295
+ name: "DrugSafety",
296
+ description: "Pharmacovigilance and adverse event reporting system",
297
+ category: "Safety",
298
+ version: "2.1.0",
299
+ dependencies: ["clinical-stream", "compliance-tracker", "event-bus"],
300
+ iri: `https://${domain}/id/platform/drug-safety`,
301
+ },
302
+ {
303
+ id: "feature-store",
304
+ name: "FeatureStore",
305
+ description: "Centralized ML feature registry and serving infrastructure",
306
+ category: "AI/ML",
307
+ version: "1.8.0",
308
+ dependencies: ["ml-pipeline", "data-mesh"],
309
+ iri: `https://${domain}/id/platform/feature-store`,
310
+ },
311
+ {
312
+ id: "prediction-models",
313
+ name: "PredictionModels",
314
+ description:
315
+ "Pre-trained biomarker prediction and patient stratification models",
316
+ category: "AI/ML",
317
+ version: "2.0.0",
318
+ dependencies: ["ml-pipeline", "feature-store"],
319
+ iri: `https://${domain}/id/platform/prediction-models`,
320
+ },
321
+ {
322
+ id: "batch-control",
323
+ name: "BatchControl",
324
+ description: "GMP batch manufacturing execution and process control",
325
+ category: "Manufacturing",
326
+ version: "4.1.0",
327
+ dependencies: ["event-bus", "compliance-tracker"],
328
+ iri: `https://${domain}/id/platform/batch-control`,
329
+ },
330
+ {
331
+ id: "supply-optimizer",
332
+ name: "SupplyOptimizer",
333
+ description: "Supply chain optimization and demand forecasting",
334
+ category: "Manufacturing",
335
+ version: "2.3.0",
336
+ dependencies: ["data-mesh", "prediction-models"],
337
+ iri: `https://${domain}/id/platform/supply-optimizer`,
338
+ },
339
+ {
340
+ id: "qa-automation",
341
+ name: "QAAutomation",
342
+ description: "Automated quality testing and validation framework",
343
+ category: "Quality",
344
+ version: "3.0.0",
345
+ dependencies: ["batch-control", "compliance-tracker"],
346
+ iri: `https://${domain}/id/platform/qa-automation`,
347
+ },
348
+ {
349
+ id: "medical-info-portal",
350
+ name: "MedicalInfoPortal",
351
+ description: "Medical information management and HCP inquiry response",
352
+ category: "Commercial",
353
+ version: "2.4.0",
354
+ dependencies: ["api-gateway", "identity-hub"],
355
+ iri: `https://${domain}/id/platform/medical-info-portal`,
356
+ },
357
+ {
358
+ id: "campaign-platform",
359
+ name: "CampaignPlatform",
360
+ description: "Digital marketing campaign management and analytics",
361
+ category: "Commercial",
362
+ version: "3.2.0",
363
+ dependencies: ["api-gateway", "data-mesh"],
364
+ iri: `https://${domain}/id/platform/campaign-platform`,
365
+ },
366
+ {
367
+ id: "ci-cd-platform",
368
+ name: "CICDPlatform",
369
+ description:
370
+ "Continuous integration and deployment pipeline orchestration",
371
+ category: "Developer Tools",
372
+ version: "5.0.0",
373
+ dependencies: ["cloud-core", "identity-hub"],
374
+ iri: `https://${domain}/id/platform/ci-cd-platform`,
375
+ },
376
+ {
377
+ id: "monitoring-stack",
378
+ name: "MonitoringStack",
379
+ description: "Centralized observability, alerting, and SLO management",
380
+ category: "Operations",
381
+ version: "3.3.0",
382
+ dependencies: ["cloud-core", "event-bus"],
383
+ iri: `https://${domain}/id/platform/monitoring-stack`,
384
+ },
385
+ {
386
+ id: "k8s-platform",
387
+ name: "K8sPlatform",
388
+ description: "Kubernetes orchestration and container management",
389
+ category: "Infrastructure",
390
+ version: "2.8.0",
391
+ dependencies: ["cloud-core", "monitoring-stack"],
392
+ iri: `https://${domain}/id/platform/k8s-platform`,
393
+ },
394
+ {
395
+ id: "data-lake",
396
+ name: "DataLake",
397
+ description:
398
+ "Cloud-native data lake with schema evolution and governance",
399
+ category: "Data Infrastructure",
400
+ version: "2.0.0",
401
+ dependencies: ["data-mesh", "cloud-core", "compliance-tracker"],
402
+ iri: `https://${domain}/id/platform/data-lake`,
403
+ },
404
+ {
405
+ id: "variant-caller",
406
+ name: "VariantCaller",
407
+ description: "Genomic variant calling and annotation service",
408
+ category: "Genomics",
409
+ version: "2.1.0",
410
+ dependencies: ["genomics-pipeline", "ml-pipeline"],
411
+ iri: `https://${domain}/id/platform/variant-caller`,
412
+ },
413
+ {
414
+ id: "real-world-evidence",
415
+ name: "RealWorldEvidence",
416
+ description:
417
+ "Real-world data collection and evidence generation platform",
418
+ category: "Clinical",
419
+ version: "1.5.0",
420
+ dependencies: ["data-lake", "clinical-stream", "stat-engine"],
421
+ iri: `https://${domain}/id/platform/real-world-evidence`,
422
+ },
423
+ {
424
+ id: "submission-portal",
425
+ name: "SubmissionPortal",
426
+ description:
427
+ "Regulatory submission document assembly and eCTD publishing",
428
+ category: "Regulatory",
429
+ version: "3.0.0",
430
+ dependencies: ["compliance-tracker", "trial-manager"],
431
+ iri: `https://${domain}/id/platform/submission-portal`,
432
+ },
433
+ ];
434
+ }