@openhi/constructs 0.0.107 → 0.0.108
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/lib/{chunk-CHPEQRXU.mjs → chunk-6J7NQ6A4.mjs} +2 -2
- package/lib/{chunk-YU2HRNUP.mjs → chunk-AJ3G3THO.mjs} +2 -2
- package/lib/{chunk-L6UAP4KP.mjs → chunk-EST32BJ2.mjs} +3 -3
- package/lib/chunk-GT7SFZLP.mjs +126 -0
- package/lib/chunk-GT7SFZLP.mjs.map +1 -0
- package/lib/{chunk-36UPY7YQ.mjs → chunk-L3QHWDHB.mjs} +5 -5
- package/lib/chunk-LKG3I536.mjs +1383 -0
- package/lib/chunk-LKG3I536.mjs.map +1 -0
- package/lib/{chunk-VYDIGFIX.mjs → chunk-QR5JVSCF.mjs} +11 -1
- package/lib/chunk-QR5JVSCF.mjs.map +1 -0
- package/lib/{chunk-AO3E22CS.mjs → chunk-WWGJZNXJ.mjs} +74 -4
- package/lib/chunk-WWGJZNXJ.mjs.map +1 -0
- package/lib/chunk-ZGOHB4RA.mjs +96 -0
- package/lib/chunk-ZGOHB4RA.mjs.map +1 -0
- package/lib/index.js +1043 -5
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +5 -5
- package/lib/pre-token-generation.handler.js +1356 -10
- package/lib/pre-token-generation.handler.js.map +1 -1
- package/lib/pre-token-generation.handler.mjs +103 -5
- package/lib/pre-token-generation.handler.mjs.map +1 -1
- package/lib/provision-default-workspace.handler.js +1172 -1
- package/lib/provision-default-workspace.handler.js.map +1 -1
- package/lib/provision-default-workspace.handler.mjs +5 -5
- package/lib/rest-api-lambda.handler.js +2769 -2434
- package/lib/rest-api-lambda.handler.js.map +1 -1
- package/lib/rest-api-lambda.handler.mjs +630 -1464
- package/lib/rest-api-lambda.handler.mjs.map +1 -1
- package/lib/seed-demo-data.handler.js +1173 -9
- package/lib/seed-demo-data.handler.js.map +1 -1
- package/lib/seed-demo-data.handler.mjs +5 -5
- package/lib/seed-system-data.handler.js +10 -0
- package/lib/seed-system-data.handler.js.map +1 -1
- package/lib/seed-system-data.handler.mjs +2 -2
- package/package.json +2 -2
- package/lib/chunk-AO3E22CS.mjs.map +0 -1
- package/lib/chunk-JUNL76HF.mjs +0 -428
- package/lib/chunk-JUNL76HF.mjs.map +0 -1
- package/lib/chunk-VYDIGFIX.mjs.map +0 -1
- package/lib/chunk-YZZDUJHI.mjs +0 -37
- package/lib/chunk-YZZDUJHI.mjs.map +0 -1
- /package/lib/{chunk-CHPEQRXU.mjs.map → chunk-6J7NQ6A4.mjs.map} +0 -0
- /package/lib/{chunk-YU2HRNUP.mjs.map → chunk-AJ3G3THO.mjs.map} +0 -0
- /package/lib/{chunk-L6UAP4KP.mjs.map → chunk-EST32BJ2.mjs.map} +0 -0
- /package/lib/{chunk-36UPY7YQ.mjs.map → chunk-L3QHWDHB.mjs.map} +0 -0
|
@@ -278,6 +278,16 @@ var MembershipEntity = new import_electrodb2.Entity({
|
|
|
278
278
|
msgId: {
|
|
279
279
|
type: "string",
|
|
280
280
|
required: false
|
|
281
|
+
},
|
|
282
|
+
/**
|
|
283
|
+
* Denormalized `linked-data-identity` Reference (e.g. `Practitioner/abc`).
|
|
284
|
+
* Populated from the FHIR extension on the Membership resource at write
|
|
285
|
+
* time so future GSIs can index data-plane identity lookups without
|
|
286
|
+
* deserializing the full resource JSON. See ADR 2026-03-13-02 §6.
|
|
287
|
+
*/
|
|
288
|
+
linkedDataIdentityRef: {
|
|
289
|
+
type: "string",
|
|
290
|
+
required: false
|
|
281
291
|
}
|
|
282
292
|
},
|
|
283
293
|
indexes: {
|
|
@@ -872,6 +882,24 @@ function getDynamoControlService(tableName) {
|
|
|
872
882
|
|
|
873
883
|
// src/data/operations/control/membership/membership-create-operation.ts
|
|
874
884
|
var import_types2 = require("@openhi/types");
|
|
885
|
+
|
|
886
|
+
// src/data/errors/domain-errors.ts
|
|
887
|
+
var DomainError = class extends Error {
|
|
888
|
+
constructor(message, code, options) {
|
|
889
|
+
super(message, options);
|
|
890
|
+
this.name = this.constructor.name;
|
|
891
|
+
this.code = code;
|
|
892
|
+
this.details = options?.details;
|
|
893
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
894
|
+
}
|
|
895
|
+
};
|
|
896
|
+
var ValidationError = class extends DomainError {
|
|
897
|
+
constructor(message, options) {
|
|
898
|
+
super(message, "VALIDATION", options);
|
|
899
|
+
}
|
|
900
|
+
};
|
|
901
|
+
|
|
902
|
+
// src/data/operations/control/membership/membership-create-operation.ts
|
|
875
903
|
async function createMembershipOperation(params) {
|
|
876
904
|
const { context, body, tableName } = params;
|
|
877
905
|
const service = getDynamoControlService(tableName);
|
|
@@ -880,6 +908,18 @@ async function createMembershipOperation(params) {
|
|
|
880
908
|
const lastUpdated = context.date ?? (/* @__PURE__ */ new Date()).toISOString();
|
|
881
909
|
const vid = `1`;
|
|
882
910
|
const resource = { resourceType: "Membership", id, ...parsedResource };
|
|
911
|
+
let linkedDataIdentityRef;
|
|
912
|
+
try {
|
|
913
|
+
const ext = (0, import_types2.assertLinkedDataIdentityCardinality)(
|
|
914
|
+
resource
|
|
915
|
+
);
|
|
916
|
+
linkedDataIdentityRef = ext?.valueReference?.reference;
|
|
917
|
+
} catch (e) {
|
|
918
|
+
if (e instanceof import_types2.LinkedDataIdentityCardinalityError) {
|
|
919
|
+
throw new ValidationError(e.message, { cause: e });
|
|
920
|
+
}
|
|
921
|
+
throw e;
|
|
922
|
+
}
|
|
883
923
|
const summary = JSON.stringify((0, import_types2.extractSummary)(resource));
|
|
884
924
|
await service.entities.membership.put({
|
|
885
925
|
tenantId: context.tenantId,
|
|
@@ -887,7 +927,8 @@ async function createMembershipOperation(params) {
|
|
|
887
927
|
resource: JSON.stringify(resource),
|
|
888
928
|
summary,
|
|
889
929
|
vid,
|
|
890
|
-
lastUpdated
|
|
930
|
+
lastUpdated,
|
|
931
|
+
linkedDataIdentityRef
|
|
891
932
|
}).go();
|
|
892
933
|
return {
|
|
893
934
|
id,
|
|
@@ -969,6 +1010,57 @@ var import_types6 = require("@openhi/types");
|
|
|
969
1010
|
|
|
970
1011
|
// src/lib/compression.ts
|
|
971
1012
|
var import_node_zlib = require("zlib");
|
|
1013
|
+
var ENVELOPE_VERSION = 1;
|
|
1014
|
+
var COMPRESSION_ALGOS = {
|
|
1015
|
+
NONE: "none",
|
|
1016
|
+
GZIP: "gzip",
|
|
1017
|
+
BROTLI: "brotli",
|
|
1018
|
+
DEFLATE: "deflate"
|
|
1019
|
+
};
|
|
1020
|
+
function compressResource(jsonString, options) {
|
|
1021
|
+
const algo = options?.algo ?? COMPRESSION_ALGOS.GZIP;
|
|
1022
|
+
if (algo === COMPRESSION_ALGOS.NONE) {
|
|
1023
|
+
const envelope2 = {
|
|
1024
|
+
v: ENVELOPE_VERSION,
|
|
1025
|
+
algo: COMPRESSION_ALGOS.NONE,
|
|
1026
|
+
payload: jsonString
|
|
1027
|
+
};
|
|
1028
|
+
return JSON.stringify(envelope2);
|
|
1029
|
+
}
|
|
1030
|
+
const buf = Buffer.from(jsonString, "utf-8");
|
|
1031
|
+
const payload = (0, import_node_zlib.gzipSync)(buf).toString("base64");
|
|
1032
|
+
const envelope = {
|
|
1033
|
+
v: ENVELOPE_VERSION,
|
|
1034
|
+
algo: COMPRESSION_ALGOS.GZIP,
|
|
1035
|
+
payload
|
|
1036
|
+
};
|
|
1037
|
+
return JSON.stringify(envelope);
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
// src/data/operations/data-operations-common.ts
|
|
1041
|
+
var DATA_ENTITY_SK = "CURRENT";
|
|
1042
|
+
async function createDataEntityRecord(entity, tenantId, workspaceId, id, resourceWithAudit, fallbackDate) {
|
|
1043
|
+
const lastUpdated = resourceWithAudit.meta?.lastUpdated ?? fallbackDate ?? (/* @__PURE__ */ new Date()).toISOString();
|
|
1044
|
+
const vid = lastUpdated.replace(/[-:T.Z]/g, "").slice(0, 12) || Date.now().toString(36);
|
|
1045
|
+
const resourceLike = resourceWithAudit;
|
|
1046
|
+
const summary = JSON.stringify((0, import_types6.extractSummary)(resourceLike));
|
|
1047
|
+
const gsi1sk = (0, import_types6.extractSortKey)(resourceLike);
|
|
1048
|
+
await entity.put({
|
|
1049
|
+
sk: DATA_ENTITY_SK,
|
|
1050
|
+
tenantId,
|
|
1051
|
+
workspaceId,
|
|
1052
|
+
id,
|
|
1053
|
+
resource: compressResource(JSON.stringify(resourceWithAudit)),
|
|
1054
|
+
summary,
|
|
1055
|
+
vid,
|
|
1056
|
+
lastUpdated,
|
|
1057
|
+
gsi1sk
|
|
1058
|
+
}).go();
|
|
1059
|
+
return {
|
|
1060
|
+
id,
|
|
1061
|
+
resource: resourceWithAudit
|
|
1062
|
+
};
|
|
1063
|
+
}
|
|
972
1064
|
|
|
973
1065
|
// src/data/operations/control/user/user-update-operation.ts
|
|
974
1066
|
var import_types7 = require("@openhi/types");
|
|
@@ -984,6 +1076,1078 @@ function parseUserResource(resource) {
|
|
|
984
1076
|
|
|
985
1077
|
// src/data/operations/control/workspace/workspace-create-operation.ts
|
|
986
1078
|
var import_types8 = require("@openhi/types");
|
|
1079
|
+
|
|
1080
|
+
// src/data/dynamo/dynamo-data-service.ts
|
|
1081
|
+
var import_electrodb10 = require("electrodb");
|
|
1082
|
+
|
|
1083
|
+
// src/data/dynamo/entities/data-entity-common.ts
|
|
1084
|
+
var import_electrodb9 = require("electrodb");
|
|
1085
|
+
var dataEntityAttributes = {
|
|
1086
|
+
/** Sort key. "CURRENT" for current version; version history in S3. */
|
|
1087
|
+
sk: {
|
|
1088
|
+
type: "string",
|
|
1089
|
+
required: true,
|
|
1090
|
+
default: "CURRENT"
|
|
1091
|
+
},
|
|
1092
|
+
tenantId: {
|
|
1093
|
+
type: "string",
|
|
1094
|
+
required: true
|
|
1095
|
+
},
|
|
1096
|
+
workspaceId: {
|
|
1097
|
+
type: "string",
|
|
1098
|
+
required: true
|
|
1099
|
+
},
|
|
1100
|
+
/** FHIR Resource.id; logical id in URL and PK. */
|
|
1101
|
+
id: {
|
|
1102
|
+
type: "string",
|
|
1103
|
+
required: true
|
|
1104
|
+
},
|
|
1105
|
+
/** FHIR resource as JSON string. JSON.stringify(resource) on write; JSON.parse(item.resource) on read. */
|
|
1106
|
+
resource: {
|
|
1107
|
+
type: "string",
|
|
1108
|
+
required: true
|
|
1109
|
+
},
|
|
1110
|
+
/**
|
|
1111
|
+
* Summary projection of the FHIR resource as a JSON string (uncompressed). Populated on every
|
|
1112
|
+
* write via `extractSummary(resource)` so GSI projections can surface list/lookup data without
|
|
1113
|
+
* reading the compressed `resource` blob. Kept uncompressed because the summary is small and
|
|
1114
|
+
* must be fast to retrieve without encode/decode overhead.
|
|
1115
|
+
*
|
|
1116
|
+
* @see sites/www-docs/content/architecture/adr/2026-04-17-02-fhir-summary-projection-for-gsi-access-patterns.md
|
|
1117
|
+
*/
|
|
1118
|
+
summary: {
|
|
1119
|
+
type: "string",
|
|
1120
|
+
required: true
|
|
1121
|
+
},
|
|
1122
|
+
/** Version id (e.g. ULID). Tracks current version; S3 history key. */
|
|
1123
|
+
vid: {
|
|
1124
|
+
type: "string",
|
|
1125
|
+
required: true
|
|
1126
|
+
},
|
|
1127
|
+
lastUpdated: {
|
|
1128
|
+
type: "string",
|
|
1129
|
+
required: true
|
|
1130
|
+
},
|
|
1131
|
+
/**
|
|
1132
|
+
* Shard index segment for the GSI1 partition key. Computed deterministically from `id`
|
|
1133
|
+
* via `computeShard` so updates always land on the same shard. Stored as a string because
|
|
1134
|
+
* it appears as a literal segment in the GSI1 PK template; the underlying value is 0..3.
|
|
1135
|
+
* Not `required` because the value is derived via `watch`/`set`; ElectroDB's required-field
|
|
1136
|
+
* check runs before watch propagation, so callers must not fail validation on a derived field.
|
|
1137
|
+
*
|
|
1138
|
+
* @see sites/www-docs/content/packages/@openhi/constructs/data/dynamo/single-table-design.md — GSI1 (sharded)
|
|
1139
|
+
*/
|
|
1140
|
+
gsi1Shard: {
|
|
1141
|
+
type: "string",
|
|
1142
|
+
watch: ["id"],
|
|
1143
|
+
set: (_val, item) => {
|
|
1144
|
+
if (typeof item?.id !== "string" || item.id.length === 0) {
|
|
1145
|
+
return void 0;
|
|
1146
|
+
}
|
|
1147
|
+
return String(computeShard(item.id));
|
|
1148
|
+
}
|
|
1149
|
+
},
|
|
1150
|
+
/**
|
|
1151
|
+
* GSI1 sort key. Written as the index's SK verbatim so list endpoints can
|
|
1152
|
+
* use `BEGINS_WITH` for prefix queries (e.g. `?name=Sm` against Patient).
|
|
1153
|
+
* Computed at write time via `extractSortKey(resource)` per DR-004:
|
|
1154
|
+
* - Labeled types (LABEL_PATHS): `<normalizedLabel>#<id>`
|
|
1155
|
+
* - Unlabeled types: `<ISO-8601 lastUpdated>#<id>`
|
|
1156
|
+
* The factory deliberately does not derive this from `lastUpdated`/`id`
|
|
1157
|
+
* — that would lock every type into the unlabeled fallback and defeat
|
|
1158
|
+
* label-based BEGINS_WITH on labeled types.
|
|
1159
|
+
*
|
|
1160
|
+
* @see openhi-planning DR-004
|
|
1161
|
+
*/
|
|
1162
|
+
gsi1sk: {
|
|
1163
|
+
type: "string",
|
|
1164
|
+
required: true
|
|
1165
|
+
},
|
|
1166
|
+
deleted: {
|
|
1167
|
+
type: "boolean",
|
|
1168
|
+
required: false
|
|
1169
|
+
},
|
|
1170
|
+
bundleId: {
|
|
1171
|
+
type: "string",
|
|
1172
|
+
required: false
|
|
1173
|
+
},
|
|
1174
|
+
msgId: {
|
|
1175
|
+
type: "string",
|
|
1176
|
+
required: false
|
|
1177
|
+
}
|
|
1178
|
+
};
|
|
1179
|
+
function createDataEntity(entity, resourceTypeLabel) {
|
|
1180
|
+
return new import_electrodb9.Entity({
|
|
1181
|
+
model: {
|
|
1182
|
+
entity,
|
|
1183
|
+
service: "data",
|
|
1184
|
+
version: "01"
|
|
1185
|
+
},
|
|
1186
|
+
attributes: dataEntityAttributes,
|
|
1187
|
+
indexes: {
|
|
1188
|
+
/** Base table: PK, SK (data store key names). PK is built from tenantId, workspaceId, id. */
|
|
1189
|
+
record: {
|
|
1190
|
+
pk: {
|
|
1191
|
+
field: "PK",
|
|
1192
|
+
composite: ["tenantId", "workspaceId", "id"],
|
|
1193
|
+
template: `TID#\${tenantId}#WID#\${workspaceId}#RT#${resourceTypeLabel}#ID#\${id}`
|
|
1194
|
+
},
|
|
1195
|
+
sk: {
|
|
1196
|
+
field: "SK",
|
|
1197
|
+
composite: ["sk"]
|
|
1198
|
+
}
|
|
1199
|
+
},
|
|
1200
|
+
/**
|
|
1201
|
+
* GSI1 — Unified Sharded List: list all resources of this type in a workspace; reads fan
|
|
1202
|
+
* out across the four shards and merge by SK. SK is the writer-supplied `gsi1sk` verbatim
|
|
1203
|
+
* (per DR-004) so labeled types serve `BEGINS_WITH` prefix queries on the natural label.
|
|
1204
|
+
* `casing: "none"` is required on the SK because the writer (`extractSortKey`) already
|
|
1205
|
+
* applies DR-004 normalization — ElectroDB's default lowercasing would mangle the
|
|
1206
|
+
* ISO-8601 unlabeled fallback (`T`/`Z` → `t`/`z`).
|
|
1207
|
+
*/
|
|
1208
|
+
gsi1: {
|
|
1209
|
+
index: "GSI1",
|
|
1210
|
+
pk: {
|
|
1211
|
+
field: "GSI1PK",
|
|
1212
|
+
composite: ["tenantId", "workspaceId", "gsi1Shard"],
|
|
1213
|
+
template: `TID#\${tenantId}#WID#\${workspaceId}#RT#${resourceTypeLabel}#SHARD#\${gsi1Shard}`
|
|
1214
|
+
},
|
|
1215
|
+
sk: {
|
|
1216
|
+
field: "GSI1SK",
|
|
1217
|
+
casing: "none",
|
|
1218
|
+
composite: ["gsi1sk"],
|
|
1219
|
+
template: `\${gsi1sk}`
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
});
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
// src/data/dynamo/entities/data/account-entity.ts
|
|
1227
|
+
var AccountEntity = createDataEntity("account", "Account");
|
|
1228
|
+
|
|
1229
|
+
// src/data/dynamo/entities/data/activity-definition-entity.ts
|
|
1230
|
+
var ActivityDefinitionEntity = createDataEntity(
|
|
1231
|
+
"activitydefinition",
|
|
1232
|
+
"ActivityDefinition"
|
|
1233
|
+
);
|
|
1234
|
+
|
|
1235
|
+
// src/data/dynamo/entities/data/adverse-event-entity.ts
|
|
1236
|
+
var AdverseEventEntity = createDataEntity(
|
|
1237
|
+
"adverseevent",
|
|
1238
|
+
"AdverseEvent"
|
|
1239
|
+
);
|
|
1240
|
+
|
|
1241
|
+
// src/data/dynamo/entities/data/allergy-intolerance-entity.ts
|
|
1242
|
+
var AllergyIntoleranceEntity = createDataEntity(
|
|
1243
|
+
"allergyintolerance",
|
|
1244
|
+
"AllergyIntolerance"
|
|
1245
|
+
);
|
|
1246
|
+
|
|
1247
|
+
// src/data/dynamo/entities/data/appointment-entity.ts
|
|
1248
|
+
var AppointmentEntity = createDataEntity("appointment", "Appointment");
|
|
1249
|
+
|
|
1250
|
+
// src/data/dynamo/entities/data/appointment-response-entity.ts
|
|
1251
|
+
var AppointmentResponseEntity = createDataEntity(
|
|
1252
|
+
"appointmentresponse",
|
|
1253
|
+
"AppointmentResponse"
|
|
1254
|
+
);
|
|
1255
|
+
|
|
1256
|
+
// src/data/dynamo/entities/data/audit-event-entity.ts
|
|
1257
|
+
var AuditEventEntity = createDataEntity("auditevent", "AuditEvent");
|
|
1258
|
+
|
|
1259
|
+
// src/data/dynamo/entities/data/basic-entity.ts
|
|
1260
|
+
var BasicEntity = createDataEntity("basic", "Basic");
|
|
1261
|
+
|
|
1262
|
+
// src/data/dynamo/entities/data/biologically-derived-product-entity.ts
|
|
1263
|
+
var BiologicallyDerivedProductEntity = createDataEntity(
|
|
1264
|
+
"biologicallyderivedproduct",
|
|
1265
|
+
"BiologicallyDerivedProduct"
|
|
1266
|
+
);
|
|
1267
|
+
|
|
1268
|
+
// src/data/dynamo/entities/data/body-structure-entity.ts
|
|
1269
|
+
var BodyStructureEntity = createDataEntity(
|
|
1270
|
+
"bodystructure",
|
|
1271
|
+
"BodyStructure"
|
|
1272
|
+
);
|
|
1273
|
+
|
|
1274
|
+
// src/data/dynamo/entities/data/capability-statement-entity.ts
|
|
1275
|
+
var CapabilityStatementEntity = createDataEntity(
|
|
1276
|
+
"capabilitystatement",
|
|
1277
|
+
"CapabilityStatement"
|
|
1278
|
+
);
|
|
1279
|
+
|
|
1280
|
+
// src/data/dynamo/entities/data/care-plan-entity.ts
|
|
1281
|
+
var CarePlanEntity = createDataEntity("careplan", "CarePlan");
|
|
1282
|
+
|
|
1283
|
+
// src/data/dynamo/entities/data/care-team-entity.ts
|
|
1284
|
+
var CareTeamEntity = createDataEntity("careteam", "CareTeam");
|
|
1285
|
+
|
|
1286
|
+
// src/data/dynamo/entities/data/catalog-entry-entity.ts
|
|
1287
|
+
var CatalogEntryEntity = createDataEntity(
|
|
1288
|
+
"catalogentry",
|
|
1289
|
+
"CatalogEntry"
|
|
1290
|
+
);
|
|
1291
|
+
|
|
1292
|
+
// src/data/dynamo/entities/data/charge-item-definition-entity.ts
|
|
1293
|
+
var ChargeItemDefinitionEntity = createDataEntity(
|
|
1294
|
+
"chargeitemdefinition",
|
|
1295
|
+
"ChargeItemDefinition"
|
|
1296
|
+
);
|
|
1297
|
+
|
|
1298
|
+
// src/data/dynamo/entities/data/charge-item-entity.ts
|
|
1299
|
+
var ChargeItemEntity = createDataEntity("chargeitem", "ChargeItem");
|
|
1300
|
+
|
|
1301
|
+
// src/data/dynamo/entities/data/claim-entity.ts
|
|
1302
|
+
var ClaimEntity = createDataEntity("claim", "Claim");
|
|
1303
|
+
|
|
1304
|
+
// src/data/dynamo/entities/data/claim-response-entity.ts
|
|
1305
|
+
var ClaimResponseEntity = createDataEntity(
|
|
1306
|
+
"claimresponse",
|
|
1307
|
+
"ClaimResponse"
|
|
1308
|
+
);
|
|
1309
|
+
|
|
1310
|
+
// src/data/dynamo/entities/data/clinical-impression-entity.ts
|
|
1311
|
+
var ClinicalImpressionEntity = createDataEntity(
|
|
1312
|
+
"clinicalimpression",
|
|
1313
|
+
"ClinicalImpression"
|
|
1314
|
+
);
|
|
1315
|
+
|
|
1316
|
+
// src/data/dynamo/entities/data/code-system-entity.ts
|
|
1317
|
+
var CodeSystemEntity = createDataEntity("codesystem", "CodeSystem");
|
|
1318
|
+
|
|
1319
|
+
// src/data/dynamo/entities/data/communication-entity.ts
|
|
1320
|
+
var CommunicationEntity = createDataEntity(
|
|
1321
|
+
"communication",
|
|
1322
|
+
"Communication"
|
|
1323
|
+
);
|
|
1324
|
+
|
|
1325
|
+
// src/data/dynamo/entities/data/communication-request-entity.ts
|
|
1326
|
+
var CommunicationRequestEntity = createDataEntity(
|
|
1327
|
+
"communicationrequest",
|
|
1328
|
+
"CommunicationRequest"
|
|
1329
|
+
);
|
|
1330
|
+
|
|
1331
|
+
// src/data/dynamo/entities/data/compartment-definition-entity.ts
|
|
1332
|
+
var CompartmentDefinitionEntity = createDataEntity(
|
|
1333
|
+
"compartmentdefinition",
|
|
1334
|
+
"CompartmentDefinition"
|
|
1335
|
+
);
|
|
1336
|
+
|
|
1337
|
+
// src/data/dynamo/entities/data/composition-entity.ts
|
|
1338
|
+
var CompositionEntity = createDataEntity("composition", "Composition");
|
|
1339
|
+
|
|
1340
|
+
// src/data/dynamo/entities/data/concept-map-entity.ts
|
|
1341
|
+
var ConceptMapEntity = createDataEntity("conceptmap", "ConceptMap");
|
|
1342
|
+
|
|
1343
|
+
// src/data/dynamo/entities/data/condition-entity.ts
|
|
1344
|
+
var ConditionEntity = createDataEntity("condition", "Condition");
|
|
1345
|
+
|
|
1346
|
+
// src/data/dynamo/entities/data/consent-entity.ts
|
|
1347
|
+
var ConsentEntity = createDataEntity("consent", "Consent");
|
|
1348
|
+
|
|
1349
|
+
// src/data/dynamo/entities/data/contract-entity.ts
|
|
1350
|
+
var ContractEntity = createDataEntity("contract", "Contract");
|
|
1351
|
+
|
|
1352
|
+
// src/data/dynamo/entities/data/coverage-eligibility-request-entity.ts
|
|
1353
|
+
var CoverageEligibilityRequestEntity = createDataEntity(
|
|
1354
|
+
"coverageeligibilityrequest",
|
|
1355
|
+
"CoverageEligibilityRequest"
|
|
1356
|
+
);
|
|
1357
|
+
|
|
1358
|
+
// src/data/dynamo/entities/data/coverage-eligibility-response-entity.ts
|
|
1359
|
+
var CoverageEligibilityResponseEntity = createDataEntity(
|
|
1360
|
+
"coverageeligibilityresponse",
|
|
1361
|
+
"CoverageEligibilityResponse"
|
|
1362
|
+
);
|
|
1363
|
+
|
|
1364
|
+
// src/data/dynamo/entities/data/coverage-entity.ts
|
|
1365
|
+
var CoverageEntity = createDataEntity("coverage", "Coverage");
|
|
1366
|
+
|
|
1367
|
+
// src/data/dynamo/entities/data/detected-issue-entity.ts
|
|
1368
|
+
var DetectedIssueEntity = createDataEntity(
|
|
1369
|
+
"detectedissue",
|
|
1370
|
+
"DetectedIssue"
|
|
1371
|
+
);
|
|
1372
|
+
|
|
1373
|
+
// src/data/dynamo/entities/data/device-definition-entity.ts
|
|
1374
|
+
var DeviceDefinitionEntity = createDataEntity(
|
|
1375
|
+
"devicedefinition",
|
|
1376
|
+
"DeviceDefinition"
|
|
1377
|
+
);
|
|
1378
|
+
|
|
1379
|
+
// src/data/dynamo/entities/data/device-entity.ts
|
|
1380
|
+
var DeviceEntity = createDataEntity("device", "Device");
|
|
1381
|
+
|
|
1382
|
+
// src/data/dynamo/entities/data/device-metric-entity.ts
|
|
1383
|
+
var DeviceMetricEntity = createDataEntity(
|
|
1384
|
+
"devicemetric",
|
|
1385
|
+
"DeviceMetric"
|
|
1386
|
+
);
|
|
1387
|
+
|
|
1388
|
+
// src/data/dynamo/entities/data/device-request-entity.ts
|
|
1389
|
+
var DeviceRequestEntity = createDataEntity(
|
|
1390
|
+
"devicerequest",
|
|
1391
|
+
"DeviceRequest"
|
|
1392
|
+
);
|
|
1393
|
+
|
|
1394
|
+
// src/data/dynamo/entities/data/device-use-statement-entity.ts
|
|
1395
|
+
var DeviceUseStatementEntity = createDataEntity(
|
|
1396
|
+
"deviceusestatement",
|
|
1397
|
+
"DeviceUseStatement"
|
|
1398
|
+
);
|
|
1399
|
+
|
|
1400
|
+
// src/data/dynamo/entities/data/diagnostic-report-entity.ts
|
|
1401
|
+
var DiagnosticReportEntity = createDataEntity(
|
|
1402
|
+
"diagnosticreport",
|
|
1403
|
+
"DiagnosticReport"
|
|
1404
|
+
);
|
|
1405
|
+
|
|
1406
|
+
// src/data/dynamo/entities/data/document-manifest-entity.ts
|
|
1407
|
+
var DocumentManifestEntity = createDataEntity(
|
|
1408
|
+
"documentmanifest",
|
|
1409
|
+
"DocumentManifest"
|
|
1410
|
+
);
|
|
1411
|
+
|
|
1412
|
+
// src/data/dynamo/entities/data/document-reference-entity.ts
|
|
1413
|
+
var DocumentReferenceEntity = createDataEntity(
|
|
1414
|
+
"documentreference",
|
|
1415
|
+
"DocumentReference"
|
|
1416
|
+
);
|
|
1417
|
+
|
|
1418
|
+
// src/data/dynamo/entities/data/effect-evidence-synthesis-entity.ts
|
|
1419
|
+
var EffectEvidenceSynthesisEntity = createDataEntity(
|
|
1420
|
+
"effectevidencesynthesis",
|
|
1421
|
+
"EffectEvidenceSynthesis"
|
|
1422
|
+
);
|
|
1423
|
+
|
|
1424
|
+
// src/data/dynamo/entities/data/encounter-entity.ts
|
|
1425
|
+
var EncounterEntity = createDataEntity("encounter", "Encounter");
|
|
1426
|
+
|
|
1427
|
+
// src/data/dynamo/entities/data/endpoint-entity.ts
|
|
1428
|
+
var EndpointEntity = createDataEntity("endpoint", "Endpoint");
|
|
1429
|
+
|
|
1430
|
+
// src/data/dynamo/entities/data/enrollment-request-entity.ts
|
|
1431
|
+
var EnrollmentRequestEntity = createDataEntity(
|
|
1432
|
+
"enrollmentrequest",
|
|
1433
|
+
"EnrollmentRequest"
|
|
1434
|
+
);
|
|
1435
|
+
|
|
1436
|
+
// src/data/dynamo/entities/data/enrollment-response-entity.ts
|
|
1437
|
+
var EnrollmentResponseEntity = createDataEntity(
|
|
1438
|
+
"enrollmentresponse",
|
|
1439
|
+
"EnrollmentResponse"
|
|
1440
|
+
);
|
|
1441
|
+
|
|
1442
|
+
// src/data/dynamo/entities/data/episode-of-care-entity.ts
|
|
1443
|
+
var EpisodeOfCareEntity = createDataEntity(
|
|
1444
|
+
"episodeofcare",
|
|
1445
|
+
"EpisodeOfCare"
|
|
1446
|
+
);
|
|
1447
|
+
|
|
1448
|
+
// src/data/dynamo/entities/data/event-definition-entity.ts
|
|
1449
|
+
var EventDefinitionEntity = createDataEntity(
|
|
1450
|
+
"eventdefinition",
|
|
1451
|
+
"EventDefinition"
|
|
1452
|
+
);
|
|
1453
|
+
|
|
1454
|
+
// src/data/dynamo/entities/data/evidence-entity.ts
|
|
1455
|
+
var EvidenceEntity = createDataEntity("evidence", "Evidence");
|
|
1456
|
+
|
|
1457
|
+
// src/data/dynamo/entities/data/evidence-variable-entity.ts
|
|
1458
|
+
var EvidenceVariableEntity = createDataEntity(
|
|
1459
|
+
"evidencevariable",
|
|
1460
|
+
"EvidenceVariable"
|
|
1461
|
+
);
|
|
1462
|
+
|
|
1463
|
+
// src/data/dynamo/entities/data/example-scenario-entity.ts
|
|
1464
|
+
var ExampleScenarioEntity = createDataEntity(
|
|
1465
|
+
"examplescenario",
|
|
1466
|
+
"ExampleScenario"
|
|
1467
|
+
);
|
|
1468
|
+
|
|
1469
|
+
// src/data/dynamo/entities/data/explanation-of-benefit-entity.ts
|
|
1470
|
+
var ExplanationOfBenefitEntity = createDataEntity(
|
|
1471
|
+
"explanationofbenefit",
|
|
1472
|
+
"ExplanationOfBenefit"
|
|
1473
|
+
);
|
|
1474
|
+
|
|
1475
|
+
// src/data/dynamo/entities/data/family-member-history-entity.ts
|
|
1476
|
+
var FamilyMemberHistoryEntity = createDataEntity(
|
|
1477
|
+
"familymemberhistory",
|
|
1478
|
+
"FamilyMemberHistory"
|
|
1479
|
+
);
|
|
1480
|
+
|
|
1481
|
+
// src/data/dynamo/entities/data/flag-entity.ts
|
|
1482
|
+
var FlagEntity = createDataEntity("flag", "Flag");
|
|
1483
|
+
|
|
1484
|
+
// src/data/dynamo/entities/data/goal-entity.ts
|
|
1485
|
+
var GoalEntity = createDataEntity("goal", "Goal");
|
|
1486
|
+
|
|
1487
|
+
// src/data/dynamo/entities/data/graph-definition-entity.ts
|
|
1488
|
+
var GraphDefinitionEntity = createDataEntity(
|
|
1489
|
+
"graphdefinition",
|
|
1490
|
+
"GraphDefinition"
|
|
1491
|
+
);
|
|
1492
|
+
|
|
1493
|
+
// src/data/dynamo/entities/data/group-entity.ts
|
|
1494
|
+
var GroupEntity = createDataEntity("group", "Group");
|
|
1495
|
+
|
|
1496
|
+
// src/data/dynamo/entities/data/guidance-response-entity.ts
|
|
1497
|
+
var GuidanceResponseEntity = createDataEntity(
|
|
1498
|
+
"guidanceresponse",
|
|
1499
|
+
"GuidanceResponse"
|
|
1500
|
+
);
|
|
1501
|
+
|
|
1502
|
+
// src/data/dynamo/entities/data/healthcare-service-entity.ts
|
|
1503
|
+
var HealthcareServiceEntity = createDataEntity(
|
|
1504
|
+
"healthcareservice",
|
|
1505
|
+
"HealthcareService"
|
|
1506
|
+
);
|
|
1507
|
+
|
|
1508
|
+
// src/data/dynamo/entities/data/imaging-study-entity.ts
|
|
1509
|
+
var ImagingStudyEntity = createDataEntity(
|
|
1510
|
+
"imagingstudy",
|
|
1511
|
+
"ImagingStudy"
|
|
1512
|
+
);
|
|
1513
|
+
|
|
1514
|
+
// src/data/dynamo/entities/data/immunization-entity.ts
|
|
1515
|
+
var ImmunizationEntity = createDataEntity(
|
|
1516
|
+
"immunization",
|
|
1517
|
+
"Immunization"
|
|
1518
|
+
);
|
|
1519
|
+
|
|
1520
|
+
// src/data/dynamo/entities/data/immunization-evaluation-entity.ts
|
|
1521
|
+
var ImmunizationEvaluationEntity = createDataEntity(
|
|
1522
|
+
"immunizationevaluation",
|
|
1523
|
+
"ImmunizationEvaluation"
|
|
1524
|
+
);
|
|
1525
|
+
|
|
1526
|
+
// src/data/dynamo/entities/data/immunization-recommendation-entity.ts
|
|
1527
|
+
var ImmunizationRecommendationEntity = createDataEntity(
|
|
1528
|
+
"immunizationrecommendation",
|
|
1529
|
+
"ImmunizationRecommendation"
|
|
1530
|
+
);
|
|
1531
|
+
|
|
1532
|
+
// src/data/dynamo/entities/data/implementation-guide-entity.ts
|
|
1533
|
+
var ImplementationGuideEntity = createDataEntity(
|
|
1534
|
+
"implementationguide",
|
|
1535
|
+
"ImplementationGuide"
|
|
1536
|
+
);
|
|
1537
|
+
|
|
1538
|
+
// src/data/dynamo/entities/data/insurance-plan-entity.ts
|
|
1539
|
+
var InsurancePlanEntity = createDataEntity(
|
|
1540
|
+
"insuranceplan",
|
|
1541
|
+
"InsurancePlan"
|
|
1542
|
+
);
|
|
1543
|
+
|
|
1544
|
+
// src/data/dynamo/entities/data/invoice-entity.ts
|
|
1545
|
+
var InvoiceEntity = createDataEntity("invoice", "Invoice");
|
|
1546
|
+
|
|
1547
|
+
// src/data/dynamo/entities/data/library-entity.ts
|
|
1548
|
+
var LibraryEntity = createDataEntity("library", "Library");
|
|
1549
|
+
|
|
1550
|
+
// src/data/dynamo/entities/data/linkage-entity.ts
|
|
1551
|
+
var LinkageEntity = createDataEntity("linkage", "Linkage");
|
|
1552
|
+
|
|
1553
|
+
// src/data/dynamo/entities/data/list-entity.ts
|
|
1554
|
+
var ListEntity = createDataEntity("list", "List");
|
|
1555
|
+
|
|
1556
|
+
// src/data/dynamo/entities/data/location-entity.ts
|
|
1557
|
+
var LocationEntity = createDataEntity("location", "Location");
|
|
1558
|
+
|
|
1559
|
+
// src/data/dynamo/entities/data/measure-entity.ts
|
|
1560
|
+
var MeasureEntity = createDataEntity("measure", "Measure");
|
|
1561
|
+
|
|
1562
|
+
// src/data/dynamo/entities/data/measure-report-entity.ts
|
|
1563
|
+
var MeasureReportEntity = createDataEntity(
|
|
1564
|
+
"measurereport",
|
|
1565
|
+
"MeasureReport"
|
|
1566
|
+
);
|
|
1567
|
+
|
|
1568
|
+
// src/data/dynamo/entities/data/media-entity.ts
|
|
1569
|
+
var MediaEntity = createDataEntity("media", "Media");
|
|
1570
|
+
|
|
1571
|
+
// src/data/dynamo/entities/data/medication-administration-entity.ts
|
|
1572
|
+
var MedicationAdministrationEntity = createDataEntity(
|
|
1573
|
+
"medicationadministration",
|
|
1574
|
+
"MedicationAdministration"
|
|
1575
|
+
);
|
|
1576
|
+
|
|
1577
|
+
// src/data/dynamo/entities/data/medication-dispense-entity.ts
|
|
1578
|
+
var MedicationDispenseEntity = createDataEntity(
|
|
1579
|
+
"medicationdispense",
|
|
1580
|
+
"MedicationDispense"
|
|
1581
|
+
);
|
|
1582
|
+
|
|
1583
|
+
// src/data/dynamo/entities/data/medication-entity.ts
|
|
1584
|
+
var MedicationEntity = createDataEntity("medication", "Medication");
|
|
1585
|
+
|
|
1586
|
+
// src/data/dynamo/entities/data/medication-knowledge-entity.ts
|
|
1587
|
+
var MedicationKnowledgeEntity = createDataEntity(
|
|
1588
|
+
"medicationknowledge",
|
|
1589
|
+
"MedicationKnowledge"
|
|
1590
|
+
);
|
|
1591
|
+
|
|
1592
|
+
// src/data/dynamo/entities/data/medication-request-entity.ts
|
|
1593
|
+
var MedicationRequestEntity = createDataEntity(
|
|
1594
|
+
"medicationrequest",
|
|
1595
|
+
"MedicationRequest"
|
|
1596
|
+
);
|
|
1597
|
+
|
|
1598
|
+
// src/data/dynamo/entities/data/medication-statement-entity.ts
|
|
1599
|
+
var MedicationStatementEntity = createDataEntity(
|
|
1600
|
+
"medicationstatement",
|
|
1601
|
+
"MedicationStatement"
|
|
1602
|
+
);
|
|
1603
|
+
|
|
1604
|
+
// src/data/dynamo/entities/data/medicinal-product-authorization-entity.ts
|
|
1605
|
+
var MedicinalProductAuthorizationEntity = createDataEntity(
|
|
1606
|
+
"medicinalproductauthorization",
|
|
1607
|
+
"MedicinalProductAuthorization"
|
|
1608
|
+
);
|
|
1609
|
+
|
|
1610
|
+
// src/data/dynamo/entities/data/medicinal-product-contraindication-entity.ts
|
|
1611
|
+
var MedicinalProductContraindicationEntity = createDataEntity(
|
|
1612
|
+
"medicinalproductcontraindication",
|
|
1613
|
+
"MedicinalProductContraindication"
|
|
1614
|
+
);
|
|
1615
|
+
|
|
1616
|
+
// src/data/dynamo/entities/data/medicinal-product-entity.ts
|
|
1617
|
+
var MedicinalProductEntity = createDataEntity(
|
|
1618
|
+
"medicinalproduct",
|
|
1619
|
+
"MedicinalProduct"
|
|
1620
|
+
);
|
|
1621
|
+
|
|
1622
|
+
// src/data/dynamo/entities/data/medicinal-product-indication-entity.ts
|
|
1623
|
+
var MedicinalProductIndicationEntity = createDataEntity(
|
|
1624
|
+
"medicinalproductindication",
|
|
1625
|
+
"MedicinalProductIndication"
|
|
1626
|
+
);
|
|
1627
|
+
|
|
1628
|
+
// src/data/dynamo/entities/data/medicinal-product-ingredient-entity.ts
|
|
1629
|
+
var MedicinalProductIngredientEntity = createDataEntity(
|
|
1630
|
+
"medicinalproductingredient",
|
|
1631
|
+
"MedicinalProductIngredient"
|
|
1632
|
+
);
|
|
1633
|
+
|
|
1634
|
+
// src/data/dynamo/entities/data/medicinal-product-interaction-entity.ts
|
|
1635
|
+
var MedicinalProductInteractionEntity = createDataEntity(
|
|
1636
|
+
"medicinalproductinteraction",
|
|
1637
|
+
"MedicinalProductInteraction"
|
|
1638
|
+
);
|
|
1639
|
+
|
|
1640
|
+
// src/data/dynamo/entities/data/medicinal-product-manufactured-entity.ts
|
|
1641
|
+
var MedicinalProductManufacturedEntity = createDataEntity(
|
|
1642
|
+
"medicinalproductmanufactured",
|
|
1643
|
+
"MedicinalProductManufactured"
|
|
1644
|
+
);
|
|
1645
|
+
|
|
1646
|
+
// src/data/dynamo/entities/data/medicinal-product-packaged-entity.ts
|
|
1647
|
+
var MedicinalProductPackagedEntity = createDataEntity(
|
|
1648
|
+
"medicinalproductpackaged",
|
|
1649
|
+
"MedicinalProductPackaged"
|
|
1650
|
+
);
|
|
1651
|
+
|
|
1652
|
+
// src/data/dynamo/entities/data/medicinal-product-pharmaceutical-entity.ts
|
|
1653
|
+
var MedicinalProductPharmaceuticalEntity = createDataEntity(
|
|
1654
|
+
"medicinalproductpharmaceutical",
|
|
1655
|
+
"MedicinalProductPharmaceutical"
|
|
1656
|
+
);
|
|
1657
|
+
|
|
1658
|
+
// src/data/dynamo/entities/data/medicinal-product-undesirable-effect-entity.ts
|
|
1659
|
+
var MedicinalProductUndesirableEffectEntity = createDataEntity(
|
|
1660
|
+
"medicinalproductundesirableeffect",
|
|
1661
|
+
"MedicinalProductUndesirableEffect"
|
|
1662
|
+
);
|
|
1663
|
+
|
|
1664
|
+
// src/data/dynamo/entities/data/message-definition-entity.ts
|
|
1665
|
+
var MessageDefinitionEntity = createDataEntity(
|
|
1666
|
+
"messagedefinition",
|
|
1667
|
+
"MessageDefinition"
|
|
1668
|
+
);
|
|
1669
|
+
|
|
1670
|
+
// src/data/dynamo/entities/data/message-header-entity.ts
|
|
1671
|
+
var MessageHeaderEntity = createDataEntity(
|
|
1672
|
+
"messageheader",
|
|
1673
|
+
"MessageHeader"
|
|
1674
|
+
);
|
|
1675
|
+
|
|
1676
|
+
// src/data/dynamo/entities/data/molecular-sequence-entity.ts
|
|
1677
|
+
var MolecularSequenceEntity = createDataEntity(
|
|
1678
|
+
"molecularsequence",
|
|
1679
|
+
"MolecularSequence"
|
|
1680
|
+
);
|
|
1681
|
+
|
|
1682
|
+
// src/data/dynamo/entities/data/naming-system-entity.ts
|
|
1683
|
+
var NamingSystemEntity = createDataEntity(
|
|
1684
|
+
"namingsystem",
|
|
1685
|
+
"NamingSystem"
|
|
1686
|
+
);
|
|
1687
|
+
|
|
1688
|
+
// src/data/dynamo/entities/data/nutrition-order-entity.ts
|
|
1689
|
+
var NutritionOrderEntity = createDataEntity(
|
|
1690
|
+
"nutritionorder",
|
|
1691
|
+
"NutritionOrder"
|
|
1692
|
+
);
|
|
1693
|
+
|
|
1694
|
+
// src/data/dynamo/entities/data/observation-definition-entity.ts
|
|
1695
|
+
var ObservationDefinitionEntity = createDataEntity(
|
|
1696
|
+
"observationdefinition",
|
|
1697
|
+
"ObservationDefinition"
|
|
1698
|
+
);
|
|
1699
|
+
|
|
1700
|
+
// src/data/dynamo/entities/data/observation-entity.ts
|
|
1701
|
+
var ObservationEntity = createDataEntity("observation", "Observation");
|
|
1702
|
+
|
|
1703
|
+
// src/data/dynamo/entities/data/operation-definition-entity.ts
|
|
1704
|
+
var OperationDefinitionEntity = createDataEntity(
|
|
1705
|
+
"operationdefinition",
|
|
1706
|
+
"OperationDefinition"
|
|
1707
|
+
);
|
|
1708
|
+
|
|
1709
|
+
// src/data/dynamo/entities/data/organization-affiliation-entity.ts
|
|
1710
|
+
var OrganizationAffiliationEntity = createDataEntity(
|
|
1711
|
+
"organizationaffiliation",
|
|
1712
|
+
"OrganizationAffiliation"
|
|
1713
|
+
);
|
|
1714
|
+
|
|
1715
|
+
// src/data/dynamo/entities/data/organization-entity.ts
|
|
1716
|
+
var OrganizationEntity = createDataEntity(
|
|
1717
|
+
"organization",
|
|
1718
|
+
"Organization"
|
|
1719
|
+
);
|
|
1720
|
+
|
|
1721
|
+
// src/data/dynamo/entities/data/patient-entity.ts
|
|
1722
|
+
var PatientEntity = createDataEntity("patient", "Patient");
|
|
1723
|
+
|
|
1724
|
+
// src/data/dynamo/entities/data/payment-notice-entity.ts
|
|
1725
|
+
var PaymentNoticeEntity = createDataEntity(
|
|
1726
|
+
"paymentnotice",
|
|
1727
|
+
"PaymentNotice"
|
|
1728
|
+
);
|
|
1729
|
+
|
|
1730
|
+
// src/data/dynamo/entities/data/payment-reconciliation-entity.ts
|
|
1731
|
+
var PaymentReconciliationEntity = createDataEntity(
|
|
1732
|
+
"paymentreconciliation",
|
|
1733
|
+
"PaymentReconciliation"
|
|
1734
|
+
);
|
|
1735
|
+
|
|
1736
|
+
// src/data/dynamo/entities/data/person-entity.ts
|
|
1737
|
+
var PersonEntity = createDataEntity("person", "Person");
|
|
1738
|
+
|
|
1739
|
+
// src/data/dynamo/entities/data/plan-definition-entity.ts
|
|
1740
|
+
var PlanDefinitionEntity = createDataEntity(
|
|
1741
|
+
"plandefinition",
|
|
1742
|
+
"PlanDefinition"
|
|
1743
|
+
);
|
|
1744
|
+
|
|
1745
|
+
// src/data/dynamo/entities/data/practitioner-entity.ts
|
|
1746
|
+
var PractitionerEntity = createDataEntity(
|
|
1747
|
+
"practitioner",
|
|
1748
|
+
"Practitioner"
|
|
1749
|
+
);
|
|
1750
|
+
|
|
1751
|
+
// src/data/dynamo/entities/data/practitioner-role-entity.ts
|
|
1752
|
+
var PractitionerRoleEntity = createDataEntity(
|
|
1753
|
+
"practitionerrole",
|
|
1754
|
+
"PractitionerRole"
|
|
1755
|
+
);
|
|
1756
|
+
|
|
1757
|
+
// src/data/dynamo/entities/data/procedure-entity.ts
|
|
1758
|
+
var ProcedureEntity = createDataEntity("procedure", "Procedure");
|
|
1759
|
+
|
|
1760
|
+
// src/data/dynamo/entities/data/provenance-entity.ts
|
|
1761
|
+
var ProvenanceEntity = createDataEntity("provenance", "Provenance");
|
|
1762
|
+
|
|
1763
|
+
// src/data/dynamo/entities/data/questionnaire-entity.ts
|
|
1764
|
+
var QuestionnaireEntity = createDataEntity(
|
|
1765
|
+
"questionnaire",
|
|
1766
|
+
"Questionnaire"
|
|
1767
|
+
);
|
|
1768
|
+
|
|
1769
|
+
// src/data/dynamo/entities/data/questionnaire-response-entity.ts
|
|
1770
|
+
var QuestionnaireResponseEntity = createDataEntity(
|
|
1771
|
+
"questionnaireresponse",
|
|
1772
|
+
"QuestionnaireResponse"
|
|
1773
|
+
);
|
|
1774
|
+
|
|
1775
|
+
// src/data/dynamo/entities/data/related-person-entity.ts
|
|
1776
|
+
var RelatedPersonEntity = createDataEntity(
|
|
1777
|
+
"relatedperson",
|
|
1778
|
+
"RelatedPerson"
|
|
1779
|
+
);
|
|
1780
|
+
|
|
1781
|
+
// src/data/dynamo/entities/data/request-group-entity.ts
|
|
1782
|
+
var RequestGroupEntity = createDataEntity(
|
|
1783
|
+
"requestgroup",
|
|
1784
|
+
"RequestGroup"
|
|
1785
|
+
);
|
|
1786
|
+
|
|
1787
|
+
// src/data/dynamo/entities/data/research-definition-entity.ts
|
|
1788
|
+
var ResearchDefinitionEntity = createDataEntity(
|
|
1789
|
+
"researchdefinition",
|
|
1790
|
+
"ResearchDefinition"
|
|
1791
|
+
);
|
|
1792
|
+
|
|
1793
|
+
// src/data/dynamo/entities/data/research-element-definition-entity.ts
|
|
1794
|
+
var ResearchElementDefinitionEntity = createDataEntity(
|
|
1795
|
+
"researchelementdefinition",
|
|
1796
|
+
"ResearchElementDefinition"
|
|
1797
|
+
);
|
|
1798
|
+
|
|
1799
|
+
// src/data/dynamo/entities/data/research-study-entity.ts
|
|
1800
|
+
var ResearchStudyEntity = createDataEntity(
|
|
1801
|
+
"researchstudy",
|
|
1802
|
+
"ResearchStudy"
|
|
1803
|
+
);
|
|
1804
|
+
|
|
1805
|
+
// src/data/dynamo/entities/data/research-subject-entity.ts
|
|
1806
|
+
var ResearchSubjectEntity = createDataEntity(
|
|
1807
|
+
"researchsubject",
|
|
1808
|
+
"ResearchSubject"
|
|
1809
|
+
);
|
|
1810
|
+
|
|
1811
|
+
// src/data/dynamo/entities/data/risk-assessment-entity.ts
|
|
1812
|
+
var RiskAssessmentEntity = createDataEntity(
|
|
1813
|
+
"riskassessment",
|
|
1814
|
+
"RiskAssessment"
|
|
1815
|
+
);
|
|
1816
|
+
|
|
1817
|
+
// src/data/dynamo/entities/data/risk-evidence-synthesis-entity.ts
|
|
1818
|
+
var RiskEvidenceSynthesisEntity = createDataEntity(
|
|
1819
|
+
"riskevidencesynthesis",
|
|
1820
|
+
"RiskEvidenceSynthesis"
|
|
1821
|
+
);
|
|
1822
|
+
|
|
1823
|
+
// src/data/dynamo/entities/data/schedule-entity.ts
|
|
1824
|
+
var ScheduleEntity = createDataEntity("schedule", "Schedule");
|
|
1825
|
+
|
|
1826
|
+
// src/data/dynamo/entities/data/search-parameter-entity.ts
|
|
1827
|
+
var SearchParameterEntity = createDataEntity(
|
|
1828
|
+
"searchparameter",
|
|
1829
|
+
"SearchParameter"
|
|
1830
|
+
);
|
|
1831
|
+
|
|
1832
|
+
// src/data/dynamo/entities/data/service-request-entity.ts
|
|
1833
|
+
var ServiceRequestEntity = createDataEntity(
|
|
1834
|
+
"servicerequest",
|
|
1835
|
+
"ServiceRequest"
|
|
1836
|
+
);
|
|
1837
|
+
|
|
1838
|
+
// src/data/dynamo/entities/data/slot-entity.ts
|
|
1839
|
+
var SlotEntity = createDataEntity("slot", "Slot");
|
|
1840
|
+
|
|
1841
|
+
// src/data/dynamo/entities/data/specimen-definition-entity.ts
|
|
1842
|
+
var SpecimenDefinitionEntity = createDataEntity(
|
|
1843
|
+
"specimendefinition",
|
|
1844
|
+
"SpecimenDefinition"
|
|
1845
|
+
);
|
|
1846
|
+
|
|
1847
|
+
// src/data/dynamo/entities/data/specimen-entity.ts
|
|
1848
|
+
var SpecimenEntity = createDataEntity("specimen", "Specimen");
|
|
1849
|
+
|
|
1850
|
+
// src/data/dynamo/entities/data/structure-definition-entity.ts
|
|
1851
|
+
var StructureDefinitionEntity = createDataEntity(
|
|
1852
|
+
"structuredefinition",
|
|
1853
|
+
"StructureDefinition"
|
|
1854
|
+
);
|
|
1855
|
+
|
|
1856
|
+
// src/data/dynamo/entities/data/structure-map-entity.ts
|
|
1857
|
+
var StructureMapEntity = createDataEntity(
|
|
1858
|
+
"structuremap",
|
|
1859
|
+
"StructureMap"
|
|
1860
|
+
);
|
|
1861
|
+
|
|
1862
|
+
// src/data/dynamo/entities/data/subscription-entity.ts
|
|
1863
|
+
var SubscriptionEntity = createDataEntity(
|
|
1864
|
+
"subscription",
|
|
1865
|
+
"Subscription"
|
|
1866
|
+
);
|
|
1867
|
+
|
|
1868
|
+
// src/data/dynamo/entities/data/substance-entity.ts
|
|
1869
|
+
var SubstanceEntity = createDataEntity("substance", "Substance");
|
|
1870
|
+
|
|
1871
|
+
// src/data/dynamo/entities/data/substance-nucleic-acid-entity.ts
|
|
1872
|
+
var SubstanceNucleicAcidEntity = createDataEntity(
|
|
1873
|
+
"substancenucleicacid",
|
|
1874
|
+
"SubstanceNucleicAcid"
|
|
1875
|
+
);
|
|
1876
|
+
|
|
1877
|
+
// src/data/dynamo/entities/data/substance-polymer-entity.ts
|
|
1878
|
+
var SubstancePolymerEntity = createDataEntity(
|
|
1879
|
+
"substancepolymer",
|
|
1880
|
+
"SubstancePolymer"
|
|
1881
|
+
);
|
|
1882
|
+
|
|
1883
|
+
// src/data/dynamo/entities/data/substance-protein-entity.ts
|
|
1884
|
+
var SubstanceProteinEntity = createDataEntity(
|
|
1885
|
+
"substanceprotein",
|
|
1886
|
+
"SubstanceProtein"
|
|
1887
|
+
);
|
|
1888
|
+
|
|
1889
|
+
// src/data/dynamo/entities/data/substance-reference-information-entity.ts
|
|
1890
|
+
var SubstanceReferenceInformationEntity = createDataEntity(
|
|
1891
|
+
"substancereferenceinformation",
|
|
1892
|
+
"SubstanceReferenceInformation"
|
|
1893
|
+
);
|
|
1894
|
+
|
|
1895
|
+
// src/data/dynamo/entities/data/substance-source-material-entity.ts
|
|
1896
|
+
var SubstanceSourceMaterialEntity = createDataEntity(
|
|
1897
|
+
"substancesourcematerial",
|
|
1898
|
+
"SubstanceSourceMaterial"
|
|
1899
|
+
);
|
|
1900
|
+
|
|
1901
|
+
// src/data/dynamo/entities/data/substance-specification-entity.ts
|
|
1902
|
+
var SubstanceSpecificationEntity = createDataEntity(
|
|
1903
|
+
"substancespecification",
|
|
1904
|
+
"SubstanceSpecification"
|
|
1905
|
+
);
|
|
1906
|
+
|
|
1907
|
+
// src/data/dynamo/entities/data/supply-delivery-entity.ts
|
|
1908
|
+
var SupplyDeliveryEntity = createDataEntity(
|
|
1909
|
+
"supplydelivery",
|
|
1910
|
+
"SupplyDelivery"
|
|
1911
|
+
);
|
|
1912
|
+
|
|
1913
|
+
// src/data/dynamo/entities/data/supply-request-entity.ts
|
|
1914
|
+
var SupplyRequestEntity = createDataEntity(
|
|
1915
|
+
"supplyrequest",
|
|
1916
|
+
"SupplyRequest"
|
|
1917
|
+
);
|
|
1918
|
+
|
|
1919
|
+
// src/data/dynamo/entities/data/task-entity.ts
|
|
1920
|
+
var TaskEntity = createDataEntity("task", "Task");
|
|
1921
|
+
|
|
1922
|
+
// src/data/dynamo/entities/data/terminology-capabilities-entity.ts
|
|
1923
|
+
var TerminologyCapabilitiesEntity = createDataEntity(
|
|
1924
|
+
"terminologycapabilities",
|
|
1925
|
+
"TerminologyCapabilities"
|
|
1926
|
+
);
|
|
1927
|
+
|
|
1928
|
+
// src/data/dynamo/entities/data/test-report-entity.ts
|
|
1929
|
+
var TestReportEntity = createDataEntity("testreport", "TestReport");
|
|
1930
|
+
|
|
1931
|
+
// src/data/dynamo/entities/data/test-script-entity.ts
|
|
1932
|
+
var TestScriptEntity = createDataEntity("testscript", "TestScript");
|
|
1933
|
+
|
|
1934
|
+
// src/data/dynamo/entities/data/value-set-entity.ts
|
|
1935
|
+
var ValueSetEntity = createDataEntity("valueset", "ValueSet");
|
|
1936
|
+
|
|
1937
|
+
// src/data/dynamo/entities/data/verification-result-entity.ts
|
|
1938
|
+
var VerificationResultEntity = createDataEntity(
|
|
1939
|
+
"verificationresult",
|
|
1940
|
+
"VerificationResult"
|
|
1941
|
+
);
|
|
1942
|
+
|
|
1943
|
+
// src/data/dynamo/entities/data/vision-prescription-entity.ts
|
|
1944
|
+
var VisionPrescriptionEntity = createDataEntity(
|
|
1945
|
+
"visionprescription",
|
|
1946
|
+
"VisionPrescription"
|
|
1947
|
+
);
|
|
1948
|
+
|
|
1949
|
+
// src/data/dynamo/dynamo-data-service.ts
|
|
1950
|
+
var dataPlaneEntities = {
|
|
1951
|
+
account: AccountEntity,
|
|
1952
|
+
activitydefinition: ActivityDefinitionEntity,
|
|
1953
|
+
adverseevent: AdverseEventEntity,
|
|
1954
|
+
allergyintolerance: AllergyIntoleranceEntity,
|
|
1955
|
+
appointment: AppointmentEntity,
|
|
1956
|
+
appointmentresponse: AppointmentResponseEntity,
|
|
1957
|
+
auditevent: AuditEventEntity,
|
|
1958
|
+
basic: BasicEntity,
|
|
1959
|
+
biologicallyderivedproduct: BiologicallyDerivedProductEntity,
|
|
1960
|
+
bodystructure: BodyStructureEntity,
|
|
1961
|
+
capabilitystatement: CapabilityStatementEntity,
|
|
1962
|
+
careplan: CarePlanEntity,
|
|
1963
|
+
careteam: CareTeamEntity,
|
|
1964
|
+
catalogentry: CatalogEntryEntity,
|
|
1965
|
+
codesystem: CodeSystemEntity,
|
|
1966
|
+
chargeitem: ChargeItemEntity,
|
|
1967
|
+
chargeitemdefinition: ChargeItemDefinitionEntity,
|
|
1968
|
+
claim: ClaimEntity,
|
|
1969
|
+
claimresponse: ClaimResponseEntity,
|
|
1970
|
+
clinicalimpression: ClinicalImpressionEntity,
|
|
1971
|
+
communication: CommunicationEntity,
|
|
1972
|
+
communicationrequest: CommunicationRequestEntity,
|
|
1973
|
+
compartmentdefinition: CompartmentDefinitionEntity,
|
|
1974
|
+
composition: CompositionEntity,
|
|
1975
|
+
conceptmap: ConceptMapEntity,
|
|
1976
|
+
condition: ConditionEntity,
|
|
1977
|
+
consent: ConsentEntity,
|
|
1978
|
+
contract: ContractEntity,
|
|
1979
|
+
coverage: CoverageEntity,
|
|
1980
|
+
coverageeligibilityrequest: CoverageEligibilityRequestEntity,
|
|
1981
|
+
coverageeligibilityresponse: CoverageEligibilityResponseEntity,
|
|
1982
|
+
detectedissue: DetectedIssueEntity,
|
|
1983
|
+
device: DeviceEntity,
|
|
1984
|
+
devicedefinition: DeviceDefinitionEntity,
|
|
1985
|
+
devicemetric: DeviceMetricEntity,
|
|
1986
|
+
devicerequest: DeviceRequestEntity,
|
|
1987
|
+
deviceusestatement: DeviceUseStatementEntity,
|
|
1988
|
+
diagnosticreport: DiagnosticReportEntity,
|
|
1989
|
+
documentmanifest: DocumentManifestEntity,
|
|
1990
|
+
documentreference: DocumentReferenceEntity,
|
|
1991
|
+
effectevidencesynthesis: EffectEvidenceSynthesisEntity,
|
|
1992
|
+
encounter: EncounterEntity,
|
|
1993
|
+
examplescenario: ExampleScenarioEntity,
|
|
1994
|
+
endpoint: EndpointEntity,
|
|
1995
|
+
enrollmentrequest: EnrollmentRequestEntity,
|
|
1996
|
+
enrollmentresponse: EnrollmentResponseEntity,
|
|
1997
|
+
episodeofcare: EpisodeOfCareEntity,
|
|
1998
|
+
eventdefinition: EventDefinitionEntity,
|
|
1999
|
+
evidence: EvidenceEntity,
|
|
2000
|
+
evidencevariable: EvidenceVariableEntity,
|
|
2001
|
+
explanationofbenefit: ExplanationOfBenefitEntity,
|
|
2002
|
+
familymemberhistory: FamilyMemberHistoryEntity,
|
|
2003
|
+
flag: FlagEntity,
|
|
2004
|
+
goal: GoalEntity,
|
|
2005
|
+
graphdefinition: GraphDefinitionEntity,
|
|
2006
|
+
group: GroupEntity,
|
|
2007
|
+
guidanceresponse: GuidanceResponseEntity,
|
|
2008
|
+
healthcareservice: HealthcareServiceEntity,
|
|
2009
|
+
immunization: ImmunizationEntity,
|
|
2010
|
+
immunizationevaluation: ImmunizationEvaluationEntity,
|
|
2011
|
+
immunizationrecommendation: ImmunizationRecommendationEntity,
|
|
2012
|
+
imagingstudy: ImagingStudyEntity,
|
|
2013
|
+
implementationguide: ImplementationGuideEntity,
|
|
2014
|
+
insuranceplan: InsurancePlanEntity,
|
|
2015
|
+
invoice: InvoiceEntity,
|
|
2016
|
+
library: LibraryEntity,
|
|
2017
|
+
linkage: LinkageEntity,
|
|
2018
|
+
list: ListEntity,
|
|
2019
|
+
location: LocationEntity,
|
|
2020
|
+
medication: MedicationEntity,
|
|
2021
|
+
medicationadministration: MedicationAdministrationEntity,
|
|
2022
|
+
medicationdispense: MedicationDispenseEntity,
|
|
2023
|
+
medicationknowledge: MedicationKnowledgeEntity,
|
|
2024
|
+
medicationrequest: MedicationRequestEntity,
|
|
2025
|
+
medicationstatement: MedicationStatementEntity,
|
|
2026
|
+
medicinalproduct: MedicinalProductEntity,
|
|
2027
|
+
medicinalproductauthorization: MedicinalProductAuthorizationEntity,
|
|
2028
|
+
medicinalproductcontraindication: MedicinalProductContraindicationEntity,
|
|
2029
|
+
medicinalproductingredient: MedicinalProductIngredientEntity,
|
|
2030
|
+
medicinalproductindication: MedicinalProductIndicationEntity,
|
|
2031
|
+
medicinalproductinteraction: MedicinalProductInteractionEntity,
|
|
2032
|
+
medicinalproductmanufactured: MedicinalProductManufacturedEntity,
|
|
2033
|
+
medicinalproductpackaged: MedicinalProductPackagedEntity,
|
|
2034
|
+
medicinalproductpharmaceutical: MedicinalProductPharmaceuticalEntity,
|
|
2035
|
+
medicinalproductundesirableeffect: MedicinalProductUndesirableEffectEntity,
|
|
2036
|
+
media: MediaEntity,
|
|
2037
|
+
measure: MeasureEntity,
|
|
2038
|
+
measurereport: MeasureReportEntity,
|
|
2039
|
+
messagedefinition: MessageDefinitionEntity,
|
|
2040
|
+
messageheader: MessageHeaderEntity,
|
|
2041
|
+
molecularsequence: MolecularSequenceEntity,
|
|
2042
|
+
namingsystem: NamingSystemEntity,
|
|
2043
|
+
nutritionorder: NutritionOrderEntity,
|
|
2044
|
+
observation: ObservationEntity,
|
|
2045
|
+
observationdefinition: ObservationDefinitionEntity,
|
|
2046
|
+
operationdefinition: OperationDefinitionEntity,
|
|
2047
|
+
organization: OrganizationEntity,
|
|
2048
|
+
organizationaffiliation: OrganizationAffiliationEntity,
|
|
2049
|
+
patient: PatientEntity,
|
|
2050
|
+
paymentnotice: PaymentNoticeEntity,
|
|
2051
|
+
paymentreconciliation: PaymentReconciliationEntity,
|
|
2052
|
+
person: PersonEntity,
|
|
2053
|
+
plandefinition: PlanDefinitionEntity,
|
|
2054
|
+
practitioner: PractitionerEntity,
|
|
2055
|
+
practitionerrole: PractitionerRoleEntity,
|
|
2056
|
+
procedure: ProcedureEntity,
|
|
2057
|
+
provenance: ProvenanceEntity,
|
|
2058
|
+
questionnaire: QuestionnaireEntity,
|
|
2059
|
+
questionnaireresponse: QuestionnaireResponseEntity,
|
|
2060
|
+
requestgroup: RequestGroupEntity,
|
|
2061
|
+
relatedperson: RelatedPersonEntity,
|
|
2062
|
+
researchdefinition: ResearchDefinitionEntity,
|
|
2063
|
+
researchelementdefinition: ResearchElementDefinitionEntity,
|
|
2064
|
+
researchstudy: ResearchStudyEntity,
|
|
2065
|
+
researchsubject: ResearchSubjectEntity,
|
|
2066
|
+
riskassessment: RiskAssessmentEntity,
|
|
2067
|
+
riskevidencesynthesis: RiskEvidenceSynthesisEntity,
|
|
2068
|
+
schedule: ScheduleEntity,
|
|
2069
|
+
searchparameter: SearchParameterEntity,
|
|
2070
|
+
servicerequest: ServiceRequestEntity,
|
|
2071
|
+
specimen: SpecimenEntity,
|
|
2072
|
+
specimendefinition: SpecimenDefinitionEntity,
|
|
2073
|
+
structuredefinition: StructureDefinitionEntity,
|
|
2074
|
+
structuremap: StructureMapEntity,
|
|
2075
|
+
substance: SubstanceEntity,
|
|
2076
|
+
substancenucleicacid: SubstanceNucleicAcidEntity,
|
|
2077
|
+
substancepolymer: SubstancePolymerEntity,
|
|
2078
|
+
substanceprotein: SubstanceProteinEntity,
|
|
2079
|
+
substancereferenceinformation: SubstanceReferenceInformationEntity,
|
|
2080
|
+
substancespecification: SubstanceSpecificationEntity,
|
|
2081
|
+
substancesourcematerial: SubstanceSourceMaterialEntity,
|
|
2082
|
+
subscription: SubscriptionEntity,
|
|
2083
|
+
terminologycapabilities: TerminologyCapabilitiesEntity,
|
|
2084
|
+
testreport: TestReportEntity,
|
|
2085
|
+
testscript: TestScriptEntity,
|
|
2086
|
+
valueset: ValueSetEntity,
|
|
2087
|
+
supplydelivery: SupplyDeliveryEntity,
|
|
2088
|
+
supplyrequest: SupplyRequestEntity,
|
|
2089
|
+
slot: SlotEntity,
|
|
2090
|
+
task: TaskEntity,
|
|
2091
|
+
visionprescription: VisionPrescriptionEntity,
|
|
2092
|
+
verificationresult: VerificationResultEntity
|
|
2093
|
+
};
|
|
2094
|
+
var dataPlaneService = new import_electrodb10.Service(dataPlaneEntities, {
|
|
2095
|
+
table: defaultTableName,
|
|
2096
|
+
client: dynamoClient
|
|
2097
|
+
});
|
|
2098
|
+
var DynamoDataService = {
|
|
2099
|
+
entities: dataPlaneService.entities
|
|
2100
|
+
};
|
|
2101
|
+
function getDynamoDataService(tableName) {
|
|
2102
|
+
const resolved = tableName ?? defaultTableName;
|
|
2103
|
+
const service = new import_electrodb10.Service(dataPlaneEntities, {
|
|
2104
|
+
table: resolved,
|
|
2105
|
+
client: dynamoClient
|
|
2106
|
+
});
|
|
2107
|
+
return {
|
|
2108
|
+
entities: service.entities
|
|
2109
|
+
};
|
|
2110
|
+
}
|
|
2111
|
+
|
|
2112
|
+
// src/data/operations/data/organization/organization-provision-for-workspace-operation.ts
|
|
2113
|
+
async function provisionOrganizationForWorkspaceOperation(params) {
|
|
2114
|
+
const { context, workspaceId, workspaceName, tableName } = params;
|
|
2115
|
+
const { tenantId, date } = context;
|
|
2116
|
+
const service = getDynamoDataService(tableName);
|
|
2117
|
+
const partOf = await resolveTenantOrganizationReference(service, tenantId);
|
|
2118
|
+
const resource = {
|
|
2119
|
+
resourceType: "Organization",
|
|
2120
|
+
id: workspaceId,
|
|
2121
|
+
...workspaceName !== void 0 && workspaceName !== "" ? { name: workspaceName } : {},
|
|
2122
|
+
...partOf !== void 0 ? { partOf } : {},
|
|
2123
|
+
meta: {
|
|
2124
|
+
lastUpdated: date,
|
|
2125
|
+
versionId: "1"
|
|
2126
|
+
}
|
|
2127
|
+
};
|
|
2128
|
+
return createDataEntityRecord(
|
|
2129
|
+
service.entities.organization,
|
|
2130
|
+
tenantId,
|
|
2131
|
+
workspaceId,
|
|
2132
|
+
workspaceId,
|
|
2133
|
+
resource,
|
|
2134
|
+
date
|
|
2135
|
+
);
|
|
2136
|
+
}
|
|
2137
|
+
async function resolveTenantOrganizationReference(service, tenantId) {
|
|
2138
|
+
const result = await service.entities.organization.get({
|
|
2139
|
+
tenantId,
|
|
2140
|
+
workspaceId: tenantId,
|
|
2141
|
+
id: tenantId,
|
|
2142
|
+
sk: DATA_ENTITY_SK
|
|
2143
|
+
}).go();
|
|
2144
|
+
if (result.data === null || result.data === void 0) {
|
|
2145
|
+
return void 0;
|
|
2146
|
+
}
|
|
2147
|
+
return { reference: `Organization/${tenantId}` };
|
|
2148
|
+
}
|
|
2149
|
+
|
|
2150
|
+
// src/data/operations/control/workspace/workspace-create-operation.ts
|
|
987
2151
|
async function createWorkspaceOperation(params) {
|
|
988
2152
|
const { context, body, tableName } = params;
|
|
989
2153
|
const { tenantId } = context;
|
|
@@ -1002,6 +2166,13 @@ async function createWorkspaceOperation(params) {
|
|
|
1002
2166
|
vid,
|
|
1003
2167
|
lastUpdated
|
|
1004
2168
|
}).go();
|
|
2169
|
+
const workspaceName = typeof parsedResource.name === "string" ? parsedResource.name : void 0;
|
|
2170
|
+
await provisionOrganizationForWorkspaceOperation({
|
|
2171
|
+
context,
|
|
2172
|
+
workspaceId: id,
|
|
2173
|
+
workspaceName,
|
|
2174
|
+
tableName
|
|
2175
|
+
});
|
|
1005
2176
|
return { id, resource, meta: { lastUpdated, versionId: vid } };
|
|
1006
2177
|
}
|
|
1007
2178
|
|