@nyrra/prismantix-oac-pharma 0.0.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.
- package/README.md +30 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.mjs +1 -0
- package/dist/lib/prismantix/externalObjects.d.mts +3 -0
- package/dist/lib/prismantix/externalObjects.mjs +16 -0
- package/dist/lib/prismantix/index.d.mts +20 -0
- package/dist/lib/prismantix/index.mjs +29 -0
- package/dist/lib/prismantix/links.d.mts +27 -0
- package/dist/lib/prismantix/links.mjs +456 -0
- package/dist/lib/prismantix/objects/index.d.mts +2 -0
- package/dist/lib/prismantix/objects/index.mjs +2 -0
- package/dist/lib/prismantix/objects/masterData/Batch.d.mts +1 -0
- package/dist/lib/prismantix/objects/masterData/Batch.mjs +263 -0
- package/dist/lib/prismantix/objects/masterData/Equipment.d.mts +1 -0
- package/dist/lib/prismantix/objects/masterData/Equipment.mjs +126 -0
- package/dist/lib/prismantix/objects/masterData/Product.d.mts +1 -0
- package/dist/lib/prismantix/objects/masterData/Product.mjs +155 -0
- package/dist/lib/prismantix/objects/masterData/Site.d.mts +1 -0
- package/dist/lib/prismantix/objects/masterData/Site.mjs +182 -0
- package/dist/lib/prismantix/objects/masterData/Supplier.d.mts +1 -0
- package/dist/lib/prismantix/objects/masterData/Supplier.mjs +202 -0
- package/dist/lib/prismantix/objects/masterData/index.d.mts +6 -0
- package/dist/lib/prismantix/objects/masterData/index.mjs +17 -0
- package/dist/lib/prismantix/objects/quality/ActionItem.d.mts +1 -0
- package/dist/lib/prismantix/objects/quality/ActionItem.mjs +144 -0
- package/dist/lib/prismantix/objects/quality/Capa.d.mts +1 -0
- package/dist/lib/prismantix/objects/quality/Capa.mjs +286 -0
- package/dist/lib/prismantix/objects/quality/ChangeControl.d.mts +1 -0
- package/dist/lib/prismantix/objects/quality/ChangeControl.mjs +212 -0
- package/dist/lib/prismantix/objects/quality/ChangeControlApproval.d.mts +1 -0
- package/dist/lib/prismantix/objects/quality/ChangeControlApproval.mjs +122 -0
- package/dist/lib/prismantix/objects/quality/ChangeControlEffectiveness.d.mts +1 -0
- package/dist/lib/prismantix/objects/quality/ChangeControlEffectiveness.mjs +130 -0
- package/dist/lib/prismantix/objects/quality/ChangeControlImpact.d.mts +1 -0
- package/dist/lib/prismantix/objects/quality/ChangeControlImpact.mjs +150 -0
- package/dist/lib/prismantix/objects/quality/Complaint.d.mts +1 -0
- package/dist/lib/prismantix/objects/quality/Complaint.mjs +206 -0
- package/dist/lib/prismantix/objects/quality/Deviation.d.mts +1 -0
- package/dist/lib/prismantix/objects/quality/Deviation.mjs +212 -0
- package/dist/lib/prismantix/objects/quality/Investigation.d.mts +1 -0
- package/dist/lib/prismantix/objects/quality/Investigation.mjs +235 -0
- package/dist/lib/prismantix/objects/quality/RcaFactor.d.mts +1 -0
- package/dist/lib/prismantix/objects/quality/RcaFactor.mjs +89 -0
- package/dist/lib/prismantix/objects/quality/index.d.mts +11 -0
- package/dist/lib/prismantix/objects/quality/index.mjs +32 -0
- package/dist/lib/prismantix/valueTypes.d.mts +46 -0
- package/dist/lib/prismantix/valueTypes.mjs +586 -0
- package/package.json +49 -0
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { defineObject } from "@nyrra/maker";
|
|
2
|
+
import { Client } from "../../externalObjects.mjs";
|
|
3
|
+
import { EpochMillisValueType, IsoTimestampStringValueType, SiteRegionValueType, SiteSiteTypeValueType, SiteStatusValueType, SiteValidationStatusValueType, } from "../../valueTypes.mjs";
|
|
4
|
+
export const Site = defineObject({
|
|
5
|
+
apiName: "Site",
|
|
6
|
+
displayName: "Site",
|
|
7
|
+
pluralDisplayName: "Sites",
|
|
8
|
+
primaryKeyPropertyApiName: "siteCode",
|
|
9
|
+
titlePropertyApiName: "siteName",
|
|
10
|
+
description: "Generate realistic pharmaceutical manufacturing sites with complete facility information. Each site should represent a believable pharmaceutical manufacturing facility with: - Professional facility naming that reflects location or company indicators - Appropriate site types based on pharmaceutical operations - Realistic geographic distribution across major pharmaceutical regions - Valid regulatory and operational statuses - Complete contact and address information - Proper management structure with site manager and quality head",
|
|
11
|
+
properties: {
|
|
12
|
+
address: {
|
|
13
|
+
displayName: "Address",
|
|
14
|
+
description: "Complete street address for the pharmaceutical facility",
|
|
15
|
+
type: "string",
|
|
16
|
+
exampleValues: [
|
|
17
|
+
"2500 Technology Drive",
|
|
18
|
+
"Little Island Industrial Estate",
|
|
19
|
+
"8 Biomedical Grove",
|
|
20
|
+
],
|
|
21
|
+
},
|
|
22
|
+
city: {
|
|
23
|
+
displayName: "City",
|
|
24
|
+
description: "City name that matches the country and region",
|
|
25
|
+
type: "string",
|
|
26
|
+
exampleValues: ["Indianapolis", "Cork", "Singapore"],
|
|
27
|
+
},
|
|
28
|
+
clientId: {
|
|
29
|
+
displayName: "Client ID",
|
|
30
|
+
description: "Reference to client.",
|
|
31
|
+
type: "string",
|
|
32
|
+
reference: Client,
|
|
33
|
+
},
|
|
34
|
+
country: {
|
|
35
|
+
displayName: "Country",
|
|
36
|
+
description: "Country name that aligns with the selected region",
|
|
37
|
+
type: "string",
|
|
38
|
+
exampleValues: ["United States", "Ireland", "Singapore"],
|
|
39
|
+
},
|
|
40
|
+
createdAt: {
|
|
41
|
+
displayName: "Created At",
|
|
42
|
+
description: "Created At for the site record.",
|
|
43
|
+
type: EpochMillisValueType,
|
|
44
|
+
optional: true,
|
|
45
|
+
},
|
|
46
|
+
lastAuditDate: {
|
|
47
|
+
displayName: "Last Audit Date",
|
|
48
|
+
description: "Recent audit date in ISO 8601 format (within last 2 years)",
|
|
49
|
+
type: IsoTimestampStringValueType,
|
|
50
|
+
exampleValues: [
|
|
51
|
+
"2025-03-15T00:00:00Z",
|
|
52
|
+
"2025-01-20T00:00:00Z",
|
|
53
|
+
"2024-11-10T00:00:00Z",
|
|
54
|
+
],
|
|
55
|
+
},
|
|
56
|
+
qualityHead: {
|
|
57
|
+
displayName: "Quality Head",
|
|
58
|
+
description: "Professional name for quality assurance head",
|
|
59
|
+
type: "string",
|
|
60
|
+
exampleValues: ["Michael Chen", "James Walsh", "Priya Sharma"],
|
|
61
|
+
},
|
|
62
|
+
region: {
|
|
63
|
+
displayName: "Region",
|
|
64
|
+
description: "Geographic region for global pharmaceutical presence",
|
|
65
|
+
type: SiteRegionValueType,
|
|
66
|
+
exampleValues: ["North America", "Europe", "Asia Pacific"],
|
|
67
|
+
},
|
|
68
|
+
siteCode: {
|
|
69
|
+
displayName: "Site Code",
|
|
70
|
+
description: "Unique site identifier following SITE### pattern",
|
|
71
|
+
type: "string",
|
|
72
|
+
exampleValues: ["SITE001", "SITE002", "SITE003"],
|
|
73
|
+
},
|
|
74
|
+
siteManager: {
|
|
75
|
+
displayName: "Site Manager",
|
|
76
|
+
description: "Professional name for facility site manager",
|
|
77
|
+
type: "string",
|
|
78
|
+
exampleValues: ["Sarah Johnson", "Emma O'Sullivan", "Li Wei"],
|
|
79
|
+
},
|
|
80
|
+
siteName: {
|
|
81
|
+
displayName: "Site Name",
|
|
82
|
+
description: "Professional pharmaceutical facility names that sound like real manufacturing sites",
|
|
83
|
+
type: "string",
|
|
84
|
+
exampleValues: [
|
|
85
|
+
"Indianapolis Manufacturing Center",
|
|
86
|
+
"Cork Biopharmaceutical Facility",
|
|
87
|
+
"Singapore R&D Center",
|
|
88
|
+
],
|
|
89
|
+
},
|
|
90
|
+
siteType: {
|
|
91
|
+
displayName: "Site Type",
|
|
92
|
+
description: "Type of pharmaceutical facility operations",
|
|
93
|
+
type: SiteSiteTypeValueType,
|
|
94
|
+
exampleValues: ["Manufacturing", "R&D"],
|
|
95
|
+
},
|
|
96
|
+
state: {
|
|
97
|
+
displayName: "State",
|
|
98
|
+
description: "State/province if applicable to the country",
|
|
99
|
+
type: "string",
|
|
100
|
+
optional: true,
|
|
101
|
+
exampleValues: ["Indiana"],
|
|
102
|
+
},
|
|
103
|
+
status: {
|
|
104
|
+
displayName: "Status",
|
|
105
|
+
description: "Operational status of the facility",
|
|
106
|
+
type: SiteStatusValueType,
|
|
107
|
+
exampleValues: ["Active"],
|
|
108
|
+
},
|
|
109
|
+
timezone: {
|
|
110
|
+
displayName: "Timezone",
|
|
111
|
+
description: "Valid timezone identifier (e.g., America/New_York, Europe/London)",
|
|
112
|
+
type: "string",
|
|
113
|
+
exampleValues: [
|
|
114
|
+
"America/Indiana/Indianapolis",
|
|
115
|
+
"Europe/Dublin",
|
|
116
|
+
"Asia/Singapore",
|
|
117
|
+
],
|
|
118
|
+
},
|
|
119
|
+
updatedAt: {
|
|
120
|
+
displayName: "Updated At",
|
|
121
|
+
description: "Updated At for the site record.",
|
|
122
|
+
type: EpochMillisValueType,
|
|
123
|
+
optional: true,
|
|
124
|
+
},
|
|
125
|
+
validationStatus: {
|
|
126
|
+
displayName: "Validation Status",
|
|
127
|
+
description: "Regulatory validation status",
|
|
128
|
+
type: SiteValidationStatusValueType,
|
|
129
|
+
exampleValues: ["Validated", "In Progress"],
|
|
130
|
+
},
|
|
131
|
+
zipCode: {
|
|
132
|
+
displayName: "Zip Code",
|
|
133
|
+
description: "Postal/ZIP code appropriate for the country format",
|
|
134
|
+
type: "string",
|
|
135
|
+
exampleValues: ["46268", "T45 DP01", "138665"],
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
prismantix: {
|
|
139
|
+
category: "master-data",
|
|
140
|
+
convex: {
|
|
141
|
+
componentName: "ontology",
|
|
142
|
+
indexes: [
|
|
143
|
+
{
|
|
144
|
+
fields: ["siteCode"],
|
|
145
|
+
name: "by_code",
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
fields: ["clientId"],
|
|
149
|
+
name: "by_client",
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
fields: ["status"],
|
|
153
|
+
name: "by_status",
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
fields: ["region"],
|
|
157
|
+
name: "by_region",
|
|
158
|
+
},
|
|
159
|
+
],
|
|
160
|
+
materialized: true,
|
|
161
|
+
tableName: "datastudio_sites",
|
|
162
|
+
},
|
|
163
|
+
defaults: {
|
|
164
|
+
fabricationCount: 5,
|
|
165
|
+
seedCount: 10,
|
|
166
|
+
},
|
|
167
|
+
domain: "masterData",
|
|
168
|
+
guidance: [
|
|
169
|
+
"Generate realistic pharmaceutical manufacturing site names",
|
|
170
|
+
"Consider global pharmaceutical company presence",
|
|
171
|
+
"Ensure professional naming conventions",
|
|
172
|
+
"Follow pharmaceutical industry standards",
|
|
173
|
+
],
|
|
174
|
+
notes: "pharmaceutical manufacturing facilities",
|
|
175
|
+
requiresClient: true,
|
|
176
|
+
seeding: {
|
|
177
|
+
order: 2,
|
|
178
|
+
requires: ["datastudio_clients"],
|
|
179
|
+
},
|
|
180
|
+
showInNavigation: true,
|
|
181
|
+
},
|
|
182
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Supplier: import("@nyrra/maker").PrismantixObjectDefinition;
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { defineObject } from "@nyrra/maker";
|
|
2
|
+
import { Client } from "../../externalObjects.mjs";
|
|
3
|
+
import { EpochMillisValueType, IsoTimestampStringValueType, SupplierCategoryValueType, SupplierCertificationStatusValueType, SupplierStatusValueType, SupplierSupplierTypeValueType, } from "../../valueTypes.mjs";
|
|
4
|
+
export const Supplier = defineObject({
|
|
5
|
+
apiName: "Supplier",
|
|
6
|
+
displayName: "Supplier",
|
|
7
|
+
pluralDisplayName: "Suppliers",
|
|
8
|
+
primaryKeyPropertyApiName: "supplierCode",
|
|
9
|
+
titlePropertyApiName: "supplierName",
|
|
10
|
+
description: "Generate realistic pharmaceutical supplier records representing the global supply chain. Each supplier should represent a believable pharmaceutical supply chain partner with: - Professional company names that reflect their industry specialization - Appropriate supplier types covering the full pharmaceutical supply chain - Realistic geographic distribution across major manufacturing regions - Proper certification and audit status reflecting pharmaceutical industry standards - Complete contact information for business relationship management - Quality scores and compliance status appropriate for pharmaceutical suppliers",
|
|
11
|
+
properties: {
|
|
12
|
+
address: {
|
|
13
|
+
displayName: "Address",
|
|
14
|
+
description: "Complete business address for supplier headquarters or primary facility",
|
|
15
|
+
type: "string",
|
|
16
|
+
exampleValues: [
|
|
17
|
+
"14 Schoolhouse Road, Somerset, NJ 08873",
|
|
18
|
+
"Muenchensteinerstrasse 38, Basel 4002",
|
|
19
|
+
"Flagship House, Victory Way, Dartford DA2 6QD",
|
|
20
|
+
"Hattenbergstrasse 10, Mainz 55122",
|
|
21
|
+
"Zone Industrielle les Ulis, Aubagne 13400",
|
|
22
|
+
],
|
|
23
|
+
},
|
|
24
|
+
auditScore: {
|
|
25
|
+
displayName: "Audit Score",
|
|
26
|
+
description: "Supplier audit score as integer between 65-100 (pharmaceutical standards typically require >80)",
|
|
27
|
+
type: "integer",
|
|
28
|
+
exampleValues: [94, 91, 88, 96, 82],
|
|
29
|
+
},
|
|
30
|
+
category: {
|
|
31
|
+
displayName: "Category",
|
|
32
|
+
description: "Criticality classification based on impact to pharmaceutical operations",
|
|
33
|
+
type: SupplierCategoryValueType,
|
|
34
|
+
exampleValues: ["Critical", "Major"],
|
|
35
|
+
},
|
|
36
|
+
certificationStatus: {
|
|
37
|
+
displayName: "Certification Status",
|
|
38
|
+
description: "Current pharmaceutical quality certification status",
|
|
39
|
+
type: SupplierCertificationStatusValueType,
|
|
40
|
+
exampleValues: ["Certified", "Pending"],
|
|
41
|
+
},
|
|
42
|
+
clientId: {
|
|
43
|
+
displayName: "Client ID",
|
|
44
|
+
description: "Reference to client.",
|
|
45
|
+
type: "string",
|
|
46
|
+
reference: Client,
|
|
47
|
+
},
|
|
48
|
+
contactEmail: {
|
|
49
|
+
displayName: "Contact Email",
|
|
50
|
+
description: "Professional business email address for the contact person",
|
|
51
|
+
type: "string",
|
|
52
|
+
exampleValues: [
|
|
53
|
+
"david.richardson@catalent.com",
|
|
54
|
+
"m.zimmermann@lonza.com",
|
|
55
|
+
"james.thompson@colorcon.com",
|
|
56
|
+
"klaus.weber@schott.com",
|
|
57
|
+
"sophie.laurent@sartorius.com",
|
|
58
|
+
],
|
|
59
|
+
},
|
|
60
|
+
contactPerson: {
|
|
61
|
+
displayName: "Contact Person",
|
|
62
|
+
description: "Name of primary business contact or account manager",
|
|
63
|
+
type: "string",
|
|
64
|
+
exampleValues: [
|
|
65
|
+
"David Richardson",
|
|
66
|
+
"Maria Zimmermann",
|
|
67
|
+
"James Thompson",
|
|
68
|
+
"Klaus Weber",
|
|
69
|
+
"Sophie Laurent",
|
|
70
|
+
],
|
|
71
|
+
},
|
|
72
|
+
contactPhone: {
|
|
73
|
+
displayName: "Contact Phone",
|
|
74
|
+
description: "Business phone number including appropriate international format",
|
|
75
|
+
type: "string",
|
|
76
|
+
exampleValues: [
|
|
77
|
+
"+1-732-537-6200",
|
|
78
|
+
"+41-61-316-81-11",
|
|
79
|
+
"+44-1322-293000",
|
|
80
|
+
"+49-6131-66-0",
|
|
81
|
+
"+33-1-60-83-83-83",
|
|
82
|
+
],
|
|
83
|
+
},
|
|
84
|
+
country: {
|
|
85
|
+
displayName: "Country",
|
|
86
|
+
description: "Country where supplier headquarters or primary manufacturing facility is located",
|
|
87
|
+
type: "string",
|
|
88
|
+
exampleValues: [
|
|
89
|
+
"United States",
|
|
90
|
+
"Switzerland",
|
|
91
|
+
"United Kingdom",
|
|
92
|
+
"Germany",
|
|
93
|
+
"France",
|
|
94
|
+
],
|
|
95
|
+
},
|
|
96
|
+
createdAt: {
|
|
97
|
+
displayName: "Created At",
|
|
98
|
+
description: "Created At for the supplier record.",
|
|
99
|
+
type: EpochMillisValueType,
|
|
100
|
+
optional: true,
|
|
101
|
+
},
|
|
102
|
+
lastAuditDate: {
|
|
103
|
+
displayName: "Last Audit Date",
|
|
104
|
+
description: "Date of most recent supplier audit, in ISO 8601 format (within last 3 years)",
|
|
105
|
+
type: IsoTimestampStringValueType,
|
|
106
|
+
exampleValues: [
|
|
107
|
+
"2024-02-15T00:00:00Z",
|
|
108
|
+
"2023-11-20T00:00:00Z",
|
|
109
|
+
"2024-01-10T00:00:00Z",
|
|
110
|
+
"2024-03-05T00:00:00Z",
|
|
111
|
+
"2024-06-15T00:00:00Z",
|
|
112
|
+
],
|
|
113
|
+
},
|
|
114
|
+
qualityAgreement: {
|
|
115
|
+
displayName: "Quality Agreement",
|
|
116
|
+
description: "Whether a formal quality agreement is in place",
|
|
117
|
+
type: "boolean",
|
|
118
|
+
exampleValues: [true, false],
|
|
119
|
+
},
|
|
120
|
+
status: {
|
|
121
|
+
displayName: "Status",
|
|
122
|
+
description: "Current business relationship status",
|
|
123
|
+
type: SupplierStatusValueType,
|
|
124
|
+
exampleValues: ["Active"],
|
|
125
|
+
},
|
|
126
|
+
supplierCode: {
|
|
127
|
+
displayName: "Supplier Code",
|
|
128
|
+
description: "Unique supplier identifier following SUPP### pattern",
|
|
129
|
+
type: "string",
|
|
130
|
+
exampleValues: ["SUPP001", "SUPP002", "SUPP003", "SUPP004", "SUPP005"],
|
|
131
|
+
},
|
|
132
|
+
supplierName: {
|
|
133
|
+
displayName: "Supplier Name",
|
|
134
|
+
description: "Professional pharmaceutical supplier company names that sound like real B2B pharmaceutical service providers",
|
|
135
|
+
type: "string",
|
|
136
|
+
exampleValues: [
|
|
137
|
+
"Catalent Pharma Solutions",
|
|
138
|
+
"Lonza Group AG",
|
|
139
|
+
"Colorcon Ltd.",
|
|
140
|
+
"Schott Pharma AG",
|
|
141
|
+
"Sartorius Stedim Biotech",
|
|
142
|
+
],
|
|
143
|
+
},
|
|
144
|
+
supplierType: {
|
|
145
|
+
displayName: "Supplier Type",
|
|
146
|
+
description: "Primary type of materials or services provided to pharmaceutical manufacturers",
|
|
147
|
+
type: SupplierSupplierTypeValueType,
|
|
148
|
+
exampleValues: ["Services", "API", "Excipient", "Packaging", "Equipment"],
|
|
149
|
+
},
|
|
150
|
+
updatedAt: {
|
|
151
|
+
displayName: "Updated At",
|
|
152
|
+
description: "Updated At for the supplier record.",
|
|
153
|
+
type: EpochMillisValueType,
|
|
154
|
+
optional: true,
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
prismantix: {
|
|
158
|
+
category: "master-data",
|
|
159
|
+
convex: {
|
|
160
|
+
componentName: "ontology",
|
|
161
|
+
indexes: [
|
|
162
|
+
{
|
|
163
|
+
fields: ["supplierCode"],
|
|
164
|
+
name: "by_code",
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
fields: ["clientId"],
|
|
168
|
+
name: "by_client",
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
fields: ["status"],
|
|
172
|
+
name: "by_status",
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
fields: ["category"],
|
|
176
|
+
name: "by_category",
|
|
177
|
+
},
|
|
178
|
+
],
|
|
179
|
+
materialized: true,
|
|
180
|
+
tableName: "datastudio_suppliers",
|
|
181
|
+
},
|
|
182
|
+
defaults: {
|
|
183
|
+
fabricationCount: 10,
|
|
184
|
+
seedCount: 15,
|
|
185
|
+
},
|
|
186
|
+
domain: "masterData",
|
|
187
|
+
guidance: [
|
|
188
|
+
"Generate realistic pharmaceutical supplier company names",
|
|
189
|
+
"Include diverse global suppliers across different specializations",
|
|
190
|
+
"Use professional B2B naming conventions",
|
|
191
|
+
"Represent major pharmaceutical supply chain participants",
|
|
192
|
+
"Ensure geographic diversity for global pharmaceutical operations",
|
|
193
|
+
],
|
|
194
|
+
notes: "pharmaceutical material suppliers",
|
|
195
|
+
requiresClient: true,
|
|
196
|
+
seeding: {
|
|
197
|
+
order: 4,
|
|
198
|
+
requires: ["datastudio_clients"],
|
|
199
|
+
},
|
|
200
|
+
showInNavigation: true,
|
|
201
|
+
},
|
|
202
|
+
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { Batch } from "./Batch.mjs";
|
|
2
|
+
export { Equipment } from "./Equipment.mjs";
|
|
3
|
+
export { Product } from "./Product.mjs";
|
|
4
|
+
export { Site } from "./Site.mjs";
|
|
5
|
+
export { Supplier } from "./Supplier.mjs";
|
|
6
|
+
export declare const MASTER_DATA_OAC_OBJECTS: readonly [import("@nyrra/maker").PrismantixObjectDefinition, import("@nyrra/maker").PrismantixObjectDefinition, import("@nyrra/maker").PrismantixObjectDefinition, import("@nyrra/maker").PrismantixObjectDefinition, import("@nyrra/maker").PrismantixObjectDefinition];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Batch } from "./Batch.mjs";
|
|
2
|
+
import { Equipment } from "./Equipment.mjs";
|
|
3
|
+
import { Product } from "./Product.mjs";
|
|
4
|
+
import { Site } from "./Site.mjs";
|
|
5
|
+
import { Supplier } from "./Supplier.mjs";
|
|
6
|
+
export { Batch } from "./Batch.mjs";
|
|
7
|
+
export { Equipment } from "./Equipment.mjs";
|
|
8
|
+
export { Product } from "./Product.mjs";
|
|
9
|
+
export { Site } from "./Site.mjs";
|
|
10
|
+
export { Supplier } from "./Supplier.mjs";
|
|
11
|
+
export const MASTER_DATA_OAC_OBJECTS = [
|
|
12
|
+
Site,
|
|
13
|
+
Product,
|
|
14
|
+
Equipment,
|
|
15
|
+
Supplier,
|
|
16
|
+
Batch,
|
|
17
|
+
];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ActionItem: import("@nyrra/maker").PrismantixObjectDefinition;
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { defineObject } from "@nyrra/maker";
|
|
2
|
+
import { AppUser, Client } from "../../externalObjects.mjs";
|
|
3
|
+
import { ActionItemStatusValueType, EpochMillisValueType, } from "../../valueTypes.mjs";
|
|
4
|
+
import { Capa } from "./Capa.mjs";
|
|
5
|
+
export const ActionItem = defineObject({
|
|
6
|
+
apiName: "ActionItem",
|
|
7
|
+
displayName: "Action Item",
|
|
8
|
+
pluralDisplayName: "Action Items",
|
|
9
|
+
primaryKeyPropertyApiName: "actionItemId",
|
|
10
|
+
titlePropertyApiName: "title",
|
|
11
|
+
description: "Generate realistic pharmaceutical action items and tasks that would be associated with CAPA implementation. Each action item should represent a specific, actionable task with: - Clear, specific task descriptions that can be completed by one person - Realistic due dates appropriate for the task complexity - Appropriate status based on due date and CAPA timeline - Professional quality management and technical terminology - Tasks that support CAPA objectives and root cause resolution - Varied task types (procedural, technical, training, documentation, verification)",
|
|
12
|
+
properties: {
|
|
13
|
+
actionItemId: {
|
|
14
|
+
displayName: "Action Item ID",
|
|
15
|
+
description: "Unique action item identifier",
|
|
16
|
+
type: "string",
|
|
17
|
+
exampleValues: ["AI-2024-001", "AI-2024-002", "AI-2024-003"],
|
|
18
|
+
},
|
|
19
|
+
assignee: {
|
|
20
|
+
displayName: "Assignee",
|
|
21
|
+
description: "Name or role of person responsible for completing the task",
|
|
22
|
+
type: "string",
|
|
23
|
+
optional: true,
|
|
24
|
+
exampleValues: [
|
|
25
|
+
"Mike Thompson",
|
|
26
|
+
"Quality Assurance Team",
|
|
27
|
+
"Sarah Wilson",
|
|
28
|
+
"Engineering Department",
|
|
29
|
+
"Process Validation Team",
|
|
30
|
+
],
|
|
31
|
+
},
|
|
32
|
+
assigneeUserId: {
|
|
33
|
+
displayName: "Assignee User ID",
|
|
34
|
+
description: "Optional user ID reference (should be undefined for data generation)",
|
|
35
|
+
type: "string",
|
|
36
|
+
optional: true,
|
|
37
|
+
nullable: true,
|
|
38
|
+
reference: AppUser,
|
|
39
|
+
},
|
|
40
|
+
capaId: {
|
|
41
|
+
displayName: "CAPA ID",
|
|
42
|
+
description: "Reference to parent CAPA (will be provided by caller)",
|
|
43
|
+
type: "string",
|
|
44
|
+
reference: Capa,
|
|
45
|
+
},
|
|
46
|
+
clientId: {
|
|
47
|
+
displayName: "Client ID",
|
|
48
|
+
description: "Client reference (will be provided by caller)",
|
|
49
|
+
type: "string",
|
|
50
|
+
optional: true,
|
|
51
|
+
reference: Client,
|
|
52
|
+
},
|
|
53
|
+
dueTs: {
|
|
54
|
+
displayName: "Due Timestamp",
|
|
55
|
+
description: "Realistic due date timestamp in milliseconds since epoch, based on task complexity and CAPA timeline",
|
|
56
|
+
type: EpochMillisValueType,
|
|
57
|
+
exampleValues: [
|
|
58
|
+
1707436800000, 1708041600000, 1708646400000, 1709424000000,
|
|
59
|
+
1710720000000,
|
|
60
|
+
],
|
|
61
|
+
},
|
|
62
|
+
seq: {
|
|
63
|
+
displayName: "Seq",
|
|
64
|
+
description: "Sequential number for ordering tasks within a CAPA (1, 2, 3, etc.)",
|
|
65
|
+
type: "integer",
|
|
66
|
+
optional: true,
|
|
67
|
+
exampleValues: [1, 2, 3, 4, 5],
|
|
68
|
+
},
|
|
69
|
+
status: {
|
|
70
|
+
displayName: "Status",
|
|
71
|
+
description: "Current status of the action item (use 'Late' for past due items)",
|
|
72
|
+
type: ActionItemStatusValueType,
|
|
73
|
+
exampleValues: ["Open", "InProgress"],
|
|
74
|
+
},
|
|
75
|
+
title: {
|
|
76
|
+
displayName: "Title",
|
|
77
|
+
description: "Specific, actionable task description that clearly indicates what needs to be done and can be completed by one person",
|
|
78
|
+
type: "string",
|
|
79
|
+
exampleValues: [
|
|
80
|
+
"Calibrate temperature monitoring system probes according to manufacturer specifications",
|
|
81
|
+
"Update standard operating procedure SOP-014 to include enhanced moisture monitoring requirements",
|
|
82
|
+
"Conduct training session for operators on new moisture control parameters and troubleshooting procedures",
|
|
83
|
+
"Install continuous moisture monitoring system in granulation area with data logging capability",
|
|
84
|
+
"Review and verify effectiveness of moisture control improvements through batch data analysis",
|
|
85
|
+
],
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
prismantix: {
|
|
89
|
+
category: "quality-events",
|
|
90
|
+
convex: {
|
|
91
|
+
componentName: "ontology",
|
|
92
|
+
indexes: [
|
|
93
|
+
{
|
|
94
|
+
fields: ["actionItemId"],
|
|
95
|
+
name: "by_action_item_id",
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
fields: ["capaId"],
|
|
99
|
+
name: "by_capa",
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
fields: ["assigneeUserId"],
|
|
103
|
+
name: "by_assignee_user",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
fields: ["assignee"],
|
|
107
|
+
name: "by_owner",
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
fields: ["status"],
|
|
111
|
+
name: "by_status",
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
fields: ["dueTs"],
|
|
115
|
+
name: "by_due_ts",
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
fields: ["clientId"],
|
|
119
|
+
name: "by_client",
|
|
120
|
+
},
|
|
121
|
+
],
|
|
122
|
+
materialized: true,
|
|
123
|
+
tableName: "datastudio_actionItems",
|
|
124
|
+
},
|
|
125
|
+
defaults: {
|
|
126
|
+
fabricationCount: 40,
|
|
127
|
+
},
|
|
128
|
+
domain: "pharmaQualityOps",
|
|
129
|
+
guidance: [
|
|
130
|
+
"Generate actionable tasks related to pharmaceutical CAPA implementation",
|
|
131
|
+
"Focus on specific, measurable tasks with clear assignments",
|
|
132
|
+
"Use realistic due dates and status tracking",
|
|
133
|
+
"Ensure tasks are specific to CAPA resolution activities",
|
|
134
|
+
"Include both technical and administrative tasks",
|
|
135
|
+
],
|
|
136
|
+
notes: "action items and tasks",
|
|
137
|
+
requiresClient: false,
|
|
138
|
+
seeding: {
|
|
139
|
+
order: 10,
|
|
140
|
+
requires: ["datastudio_capas"],
|
|
141
|
+
},
|
|
142
|
+
showInNavigation: true,
|
|
143
|
+
},
|
|
144
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Capa: import("@nyrra/maker").PrismantixObjectDefinition;
|