@openhi/constructs 0.0.113 → 0.0.115

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/lib/chunk-AHYQFT4N.mjs +212 -0
  2. package/lib/chunk-AHYQFT4N.mjs.map +1 -0
  3. package/lib/{chunk-CUUKXDB2.mjs → chunk-AJQUWHFK.mjs} +460 -54
  4. package/lib/chunk-AJQUWHFK.mjs.map +1 -0
  5. package/lib/{chunk-GBDIGTNV.mjs → chunk-QWWLM452.mjs} +2 -2
  6. package/lib/{chunk-QMBJ4VHC.mjs → chunk-U7L7T4XU.mjs} +25 -25
  7. package/lib/{chunk-QMBJ4VHC.mjs.map → chunk-U7L7T4XU.mjs.map} +1 -1
  8. package/lib/{chunk-NZRW7ROK.mjs → chunk-YYRWDEG4.mjs} +2 -2
  9. package/lib/{chunk-KSFC72TT.mjs → chunk-ZHMHLK3S.mjs} +2 -2
  10. package/lib/{events-DPodvl07.d.mts → events-CMG8xanm.d.mts} +7 -53
  11. package/lib/{events-DPodvl07.d.ts → events-CMG8xanm.d.ts} +7 -53
  12. package/lib/index.d.mts +64 -77
  13. package/lib/index.d.ts +70 -129
  14. package/lib/index.js +499 -241
  15. package/lib/index.js.map +1 -1
  16. package/lib/index.mjs +58 -184
  17. package/lib/index.mjs.map +1 -1
  18. package/lib/pre-token-generation.handler.mjs +3 -3
  19. package/lib/provision-default-workspace.handler.mjs +3 -3
  20. package/lib/rest-api-lambda.handler.mjs +282 -452
  21. package/lib/rest-api-lambda.handler.mjs.map +1 -1
  22. package/lib/seed-demo-data.handler.d.mts +6 -3
  23. package/lib/seed-demo-data.handler.d.ts +6 -3
  24. package/lib/seed-demo-data.handler.js +656 -0
  25. package/lib/seed-demo-data.handler.js.map +1 -1
  26. package/lib/seed-demo-data.handler.mjs +4 -4
  27. package/package.json +8 -8
  28. package/lib/chunk-53OHXLIL.mjs +0 -27
  29. package/lib/chunk-53OHXLIL.mjs.map +0 -1
  30. package/lib/chunk-CUUKXDB2.mjs.map +0 -1
  31. /package/lib/{chunk-GBDIGTNV.mjs.map → chunk-QWWLM452.mjs.map} +0 -0
  32. /package/lib/{chunk-NZRW7ROK.mjs.map → chunk-YYRWDEG4.mjs.map} +0 -0
  33. /package/lib/{chunk-KSFC72TT.mjs.map → chunk-ZHMHLK3S.mjs.map} +0 -0
@@ -5,20 +5,25 @@ import {
5
5
  createRoleOperation
6
6
  } from "./chunk-KO64HPWQ.mjs";
7
7
  import {
8
+ createAccountOperation,
9
+ createEncounterOperation,
10
+ createObservationOperation,
11
+ createPatientOperation,
12
+ createPractitionerOperation,
8
13
  getRoleByIdOperation
9
- } from "./chunk-53OHXLIL.mjs";
14
+ } from "./chunk-AHYQFT4N.mjs";
10
15
  import {
11
16
  listMembershipsOperation,
12
17
  listPractitionerRolesOperation,
13
18
  listRoleAssignmentsOperation
14
- } from "./chunk-KSFC72TT.mjs";
19
+ } from "./chunk-ZHMHLK3S.mjs";
15
20
  import {
16
21
  createMembershipOperation,
17
22
  createRoleAssignmentOperation,
18
23
  createTenantOperation,
19
24
  createWorkspaceOperation,
20
25
  extractDenormalizedReferenceDisplay
21
- } from "./chunk-GBDIGTNV.mjs";
26
+ } from "./chunk-QWWLM452.mjs";
22
27
  import {
23
28
  buildMembershipUserProjectionItem,
24
29
  buildMembershipWorkspaceProjectionItem,
@@ -39,7 +44,7 @@ import {
39
44
  membershipListByUserOperation,
40
45
  switchUserTenantWorkspaceOperation,
41
46
  updateUserOperation
42
- } from "./chunk-NZRW7ROK.mjs";
47
+ } from "./chunk-YYRWDEG4.mjs";
43
48
  import {
44
49
  batchGetWithRetry,
45
50
  buildUpdatedResourceWithAudit,
@@ -53,7 +58,7 @@ import {
53
58
  listDataEntitiesByWorkspace,
54
59
  mergeAuditIntoMeta,
55
60
  updateDataEntityById
56
- } from "./chunk-QMBJ4VHC.mjs";
61
+ } from "./chunk-U7L7T4XU.mjs";
57
62
  import {
58
63
  ForbiddenError,
59
64
  NotFoundError,
@@ -4430,41 +4435,6 @@ router8.get("/:id/Configuration", listWorkspaceConfigurationsRoute);
4430
4435
  // src/data/rest-api/routes/data/account/account.ts
4431
4436
  import express9 from "express";
4432
4437
 
4433
- // src/data/operations/data/account/account-create-operation.ts
4434
- import { ulid as ulid2 } from "ulid";
4435
- async function createAccountOperation(params) {
4436
- const { context, body, tableName } = params;
4437
- const { tenantId, workspaceId, date, actorId, actorName } = context;
4438
- const id = body.id ?? ulid2();
4439
- const meta = {
4440
- ...body.meta ?? {},
4441
- lastUpdated: date,
4442
- versionId: "1"
4443
- };
4444
- const accountWithAudit = {
4445
- ...body,
4446
- resourceType: "Account",
4447
- id,
4448
- meta: mergeAuditIntoMeta(meta, {
4449
- createdDate: date,
4450
- createdById: actorId,
4451
- createdByName: actorName,
4452
- modifiedDate: date,
4453
- modifiedById: actorId,
4454
- modifiedByName: actorName
4455
- })
4456
- };
4457
- const service = getDynamoDataService(tableName);
4458
- return createDataEntityRecord(
4459
- service.entities.account,
4460
- tenantId,
4461
- workspaceId,
4462
- id,
4463
- accountWithAudit,
4464
- date
4465
- );
4466
- }
4467
-
4468
4438
  // src/data/rest-api/routes/data/account/account-create-route.ts
4469
4439
  async function createAccountRoute(req, res) {
4470
4440
  const bodyResult = requireJsonBodyAs(req, res);
@@ -4631,11 +4601,11 @@ router9.delete("/:id", deleteAccountRoute);
4631
4601
  import express10 from "express";
4632
4602
 
4633
4603
  // src/data/operations/data/activitydefinition/activitydefinition-create-operation.ts
4634
- import { ulid as ulid3 } from "ulid";
4604
+ import { ulid as ulid2 } from "ulid";
4635
4605
  async function createActivityDefinitionOperation(params) {
4636
4606
  const { context, body, tableName } = params;
4637
4607
  const { tenantId, workspaceId, date, actorId, actorName } = context;
4638
- const id = body.id ?? ulid3();
4608
+ const id = body.id ?? ulid2();
4639
4609
  const meta = {
4640
4610
  ...body.meta ?? {},
4641
4611
  lastUpdated: date,
@@ -4838,11 +4808,11 @@ router10.delete("/:id", deleteActivityDefinitionRoute);
4838
4808
  import express11 from "express";
4839
4809
 
4840
4810
  // src/data/operations/data/adverseevent/adverseevent-create-operation.ts
4841
- import { ulid as ulid4 } from "ulid";
4811
+ import { ulid as ulid3 } from "ulid";
4842
4812
  async function createAdverseEventOperation(params) {
4843
4813
  const { context, body, tableName } = params;
4844
4814
  const { tenantId, workspaceId, date, actorId, actorName } = context;
4845
- const id = body.id ?? ulid4();
4815
+ const id = body.id ?? ulid3();
4846
4816
  const meta = {
4847
4817
  ...body.meta ?? {},
4848
4818
  lastUpdated: date,
@@ -5038,11 +5008,11 @@ router11.delete("/:id", deleteAdverseEventRoute);
5038
5008
  import express12 from "express";
5039
5009
 
5040
5010
  // src/data/operations/data/allergyintolerance/allergyintolerance-create-operation.ts
5041
- import { ulid as ulid5 } from "ulid";
5011
+ import { ulid as ulid4 } from "ulid";
5042
5012
  async function createAllergyIntoleranceOperation(params) {
5043
5013
  const { context, body, tableName } = params;
5044
5014
  const { tenantId, workspaceId, date, actorId, actorName } = context;
5045
- const id = body.id ?? ulid5();
5015
+ const id = body.id ?? ulid4();
5046
5016
  const meta = {
5047
5017
  ...body.meta ?? {},
5048
5018
  lastUpdated: date,
@@ -5245,11 +5215,11 @@ router12.delete("/:id", deleteAllergyIntoleranceRoute);
5245
5215
  import express13 from "express";
5246
5216
 
5247
5217
  // src/data/operations/data/appointment/appointment-create-operation.ts
5248
- import { ulid as ulid6 } from "ulid";
5218
+ import { ulid as ulid5 } from "ulid";
5249
5219
  async function createAppointmentOperation(params) {
5250
5220
  const { context, body, tableName } = params;
5251
5221
  const { tenantId, workspaceId, date, actorId, actorName } = context;
5252
- const id = body.id ?? ulid6();
5222
+ const id = body.id ?? ulid5();
5253
5223
  const meta = {
5254
5224
  ...body.meta ?? {},
5255
5225
  lastUpdated: date,
@@ -6078,11 +6048,11 @@ router13.delete("/:id", deleteAppointmentRoute);
6078
6048
  import express14 from "express";
6079
6049
 
6080
6050
  // src/data/operations/data/appointmentresponse/appointmentresponse-create-operation.ts
6081
- import { ulid as ulid7 } from "ulid";
6051
+ import { ulid as ulid6 } from "ulid";
6082
6052
  async function createAppointmentResponseOperation(params) {
6083
6053
  const { context, body, tableName } = params;
6084
6054
  const { tenantId, workspaceId, date, actorId, actorName } = context;
6085
- const id = body.id ?? ulid7();
6055
+ const id = body.id ?? ulid6();
6086
6056
  const meta = {
6087
6057
  ...body.meta ?? {},
6088
6058
  lastUpdated: date,
@@ -6285,11 +6255,11 @@ router14.delete("/:id", deleteAppointmentResponseRoute);
6285
6255
  import express15 from "express";
6286
6256
 
6287
6257
  // src/data/operations/data/auditevent/auditevent-create-operation.ts
6288
- import { ulid as ulid8 } from "ulid";
6258
+ import { ulid as ulid7 } from "ulid";
6289
6259
  async function createAuditEventOperation(params) {
6290
6260
  const { context, body, tableName } = params;
6291
6261
  const { tenantId, workspaceId, date, actorId, actorName } = context;
6292
- const id = body.id ?? ulid8();
6262
+ const id = body.id ?? ulid7();
6293
6263
  const meta = {
6294
6264
  ...body.meta ?? {},
6295
6265
  lastUpdated: date,
@@ -6485,11 +6455,11 @@ router15.delete("/:id", deleteAuditEventRoute);
6485
6455
  import express16 from "express";
6486
6456
 
6487
6457
  // src/data/operations/data/basic/basic-create-operation.ts
6488
- import { ulid as ulid9 } from "ulid";
6458
+ import { ulid as ulid8 } from "ulid";
6489
6459
  async function createBasicOperation(params) {
6490
6460
  const { context, body, tableName } = params;
6491
6461
  const { tenantId, workspaceId, date, actorId, actorName } = context;
6492
- const id = body.id ?? ulid9();
6462
+ const id = body.id ?? ulid8();
6493
6463
  const meta = {
6494
6464
  ...body.meta ?? {},
6495
6465
  lastUpdated: date,
@@ -6685,11 +6655,11 @@ router16.delete("/:id", deleteBasicRoute);
6685
6655
  import express17 from "express";
6686
6656
 
6687
6657
  // src/data/operations/data/biologicallyderivedproduct/biologicallyderivedproduct-create-operation.ts
6688
- import { ulid as ulid10 } from "ulid";
6658
+ import { ulid as ulid9 } from "ulid";
6689
6659
  async function createBiologicallyDerivedProductOperation(params) {
6690
6660
  const { context, body, tableName } = params;
6691
6661
  const { tenantId, workspaceId, date, actorId, actorName } = context;
6692
- const id = body.id ?? ulid10();
6662
+ const id = body.id ?? ulid9();
6693
6663
  const meta = {
6694
6664
  ...body.meta ?? {},
6695
6665
  lastUpdated: date,
@@ -6904,11 +6874,11 @@ router17.delete("/:id", deleteBiologicallyDerivedProductRoute);
6904
6874
  import express18 from "express";
6905
6875
 
6906
6876
  // src/data/operations/data/bodystructure/bodystructure-create-operation.ts
6907
- import { ulid as ulid11 } from "ulid";
6877
+ import { ulid as ulid10 } from "ulid";
6908
6878
  async function createBodyStructureOperation(params) {
6909
6879
  const { context, body, tableName } = params;
6910
6880
  const { tenantId, workspaceId, date, actorId, actorName } = context;
6911
- const id = body.id ?? ulid11();
6881
+ const id = body.id ?? ulid10();
6912
6882
  const meta = {
6913
6883
  ...body.meta ?? {},
6914
6884
  lastUpdated: date,
@@ -7104,11 +7074,11 @@ router18.delete("/:id", deleteBodyStructureRoute);
7104
7074
  import express19 from "express";
7105
7075
 
7106
7076
  // src/data/operations/data/capabilitystatement/capabilitystatement-create-operation.ts
7107
- import { ulid as ulid12 } from "ulid";
7077
+ import { ulid as ulid11 } from "ulid";
7108
7078
  async function createCapabilityStatementOperation(params) {
7109
7079
  const { context, body, tableName } = params;
7110
7080
  const { tenantId, workspaceId, date, actorId, actorName } = context;
7111
- const id = body.id ?? ulid12();
7081
+ const id = body.id ?? ulid11();
7112
7082
  const meta = {
7113
7083
  ...body.meta ?? {},
7114
7084
  lastUpdated: date,
@@ -7311,11 +7281,11 @@ router19.delete("/:id", deleteCapabilityStatementRoute);
7311
7281
  import express20 from "express";
7312
7282
 
7313
7283
  // src/data/operations/data/careplan/careplan-create-operation.ts
7314
- import { ulid as ulid13 } from "ulid";
7284
+ import { ulid as ulid12 } from "ulid";
7315
7285
  async function createCarePlanOperation(params) {
7316
7286
  const { context, body, tableName } = params;
7317
7287
  const { tenantId, workspaceId, date, actorId, actorName } = context;
7318
- const id = body.id ?? ulid13();
7288
+ const id = body.id ?? ulid12();
7319
7289
  const meta = {
7320
7290
  ...body.meta ?? {},
7321
7291
  lastUpdated: date,
@@ -7511,11 +7481,11 @@ router20.delete("/:id", deleteCarePlanRoute);
7511
7481
  import express21 from "express";
7512
7482
 
7513
7483
  // src/data/operations/data/careteam/careteam-create-operation.ts
7514
- import { ulid as ulid14 } from "ulid";
7484
+ import { ulid as ulid13 } from "ulid";
7515
7485
  async function createCareTeamOperation(params) {
7516
7486
  const { context, body, tableName } = params;
7517
7487
  const { tenantId, workspaceId, date, actorId, actorName } = context;
7518
- const id = body.id ?? ulid14();
7488
+ const id = body.id ?? ulid13();
7519
7489
  const meta = {
7520
7490
  ...body.meta ?? {},
7521
7491
  lastUpdated: date,
@@ -7711,11 +7681,11 @@ router21.delete("/:id", deleteCareTeamRoute);
7711
7681
  import express22 from "express";
7712
7682
 
7713
7683
  // src/data/operations/data/catalogentry/catalogentry-create-operation.ts
7714
- import { ulid as ulid15 } from "ulid";
7684
+ import { ulid as ulid14 } from "ulid";
7715
7685
  async function createCatalogEntryOperation(params) {
7716
7686
  const { context, body, tableName } = params;
7717
7687
  const { tenantId, workspaceId, date, actorId, actorName } = context;
7718
- const id = body.id ?? ulid15();
7688
+ const id = body.id ?? ulid14();
7719
7689
  const meta = {
7720
7690
  ...body.meta ?? {},
7721
7691
  lastUpdated: date,
@@ -7911,11 +7881,11 @@ router22.delete("/:id", deleteCatalogEntryRoute);
7911
7881
  import express23 from "express";
7912
7882
 
7913
7883
  // src/data/operations/data/chargeitem/chargeitem-create-operation.ts
7914
- import { ulid as ulid16 } from "ulid";
7884
+ import { ulid as ulid15 } from "ulid";
7915
7885
  async function createChargeItemOperation(params) {
7916
7886
  const { context, body, tableName } = params;
7917
7887
  const { tenantId, workspaceId, date, actorId, actorName } = context;
7918
- const id = body.id ?? ulid16();
7888
+ const id = body.id ?? ulid15();
7919
7889
  const meta = {
7920
7890
  ...body.meta ?? {},
7921
7891
  lastUpdated: date,
@@ -8111,11 +8081,11 @@ router23.delete("/:id", deleteChargeItemRoute);
8111
8081
  import express24 from "express";
8112
8082
 
8113
8083
  // src/data/operations/data/chargeitemdefinition/chargeitemdefinition-create-operation.ts
8114
- import { ulid as ulid17 } from "ulid";
8084
+ import { ulid as ulid16 } from "ulid";
8115
8085
  async function createChargeItemDefinitionOperation(params) {
8116
8086
  const { context, body, tableName } = params;
8117
8087
  const { tenantId, workspaceId, date, actorId, actorName } = context;
8118
- const id = body.id ?? ulid17();
8088
+ const id = body.id ?? ulid16();
8119
8089
  const meta = {
8120
8090
  ...body.meta ?? {},
8121
8091
  lastUpdated: date,
@@ -8322,11 +8292,11 @@ router24.delete("/:id", deleteChargeItemDefinitionRoute);
8322
8292
  import express25 from "express";
8323
8293
 
8324
8294
  // src/data/operations/data/claim/claim-create-operation.ts
8325
- import { ulid as ulid18 } from "ulid";
8295
+ import { ulid as ulid17 } from "ulid";
8326
8296
  async function createClaimOperation(params) {
8327
8297
  const { context, body, tableName } = params;
8328
8298
  const { tenantId, workspaceId, date, actorId, actorName } = context;
8329
- const id = body.id ?? ulid18();
8299
+ const id = body.id ?? ulid17();
8330
8300
  const meta = {
8331
8301
  ...body.meta ?? {},
8332
8302
  lastUpdated: date,
@@ -8522,11 +8492,11 @@ router25.delete("/:id", deleteClaimRoute);
8522
8492
  import express26 from "express";
8523
8493
 
8524
8494
  // src/data/operations/data/claimresponse/claimresponse-create-operation.ts
8525
- import { ulid as ulid19 } from "ulid";
8495
+ import { ulid as ulid18 } from "ulid";
8526
8496
  async function createClaimResponseOperation(params) {
8527
8497
  const { context, body, tableName } = params;
8528
8498
  const { tenantId, workspaceId, date, actorId, actorName } = context;
8529
- const id = body.id ?? ulid19();
8499
+ const id = body.id ?? ulid18();
8530
8500
  const meta = {
8531
8501
  ...body.meta ?? {},
8532
8502
  lastUpdated: date,
@@ -8722,11 +8692,11 @@ router26.delete("/:id", deleteClaimResponseRoute);
8722
8692
  import express27 from "express";
8723
8693
 
8724
8694
  // src/data/operations/data/clinicalimpression/clinicalimpression-create-operation.ts
8725
- import { ulid as ulid20 } from "ulid";
8695
+ import { ulid as ulid19 } from "ulid";
8726
8696
  async function createClinicalImpressionOperation(params) {
8727
8697
  const { context, body, tableName } = params;
8728
8698
  const { tenantId, workspaceId, date, actorId, actorName } = context;
8729
- const id = body.id ?? ulid20();
8699
+ const id = body.id ?? ulid19();
8730
8700
  const meta = {
8731
8701
  ...body.meta ?? {},
8732
8702
  lastUpdated: date,
@@ -8929,11 +8899,11 @@ router27.delete("/:id", deleteClinicalImpressionRoute);
8929
8899
  import express28 from "express";
8930
8900
 
8931
8901
  // src/data/operations/data/codesystem/codesystem-create-operation.ts
8932
- import { ulid as ulid21 } from "ulid";
8902
+ import { ulid as ulid20 } from "ulid";
8933
8903
  async function createCodeSystemOperation(params) {
8934
8904
  const { context, body, tableName } = params;
8935
8905
  const { tenantId, workspaceId, date, actorId, actorName } = context;
8936
- const id = body.id ?? ulid21();
8906
+ const id = body.id ?? ulid20();
8937
8907
  const meta = {
8938
8908
  ...body.meta ?? {},
8939
8909
  lastUpdated: date,
@@ -9129,11 +9099,11 @@ router28.delete("/:id", deleteCodeSystemRoute);
9129
9099
  import express29 from "express";
9130
9100
 
9131
9101
  // src/data/operations/data/communication/communication-create-operation.ts
9132
- import { ulid as ulid22 } from "ulid";
9102
+ import { ulid as ulid21 } from "ulid";
9133
9103
  async function createCommunicationOperation(params) {
9134
9104
  const { context, body, tableName } = params;
9135
9105
  const { tenantId, workspaceId, date, actorId, actorName } = context;
9136
- const id = body.id ?? ulid22();
9106
+ const id = body.id ?? ulid21();
9137
9107
  const meta = {
9138
9108
  ...body.meta ?? {},
9139
9109
  lastUpdated: date,
@@ -9329,11 +9299,11 @@ router29.delete("/:id", deleteCommunicationRoute);
9329
9299
  import express30 from "express";
9330
9300
 
9331
9301
  // src/data/operations/data/communicationrequest/communicationrequest-create-operation.ts
9332
- import { ulid as ulid23 } from "ulid";
9302
+ import { ulid as ulid22 } from "ulid";
9333
9303
  async function createCommunicationRequestOperation(params) {
9334
9304
  const { context, body, tableName } = params;
9335
9305
  const { tenantId, workspaceId, date, actorId, actorName } = context;
9336
- const id = body.id ?? ulid23();
9306
+ const id = body.id ?? ulid22();
9337
9307
  const meta = {
9338
9308
  ...body.meta ?? {},
9339
9309
  lastUpdated: date,
@@ -9540,11 +9510,11 @@ router30.delete("/:id", deleteCommunicationRequestRoute);
9540
9510
  import express31 from "express";
9541
9511
 
9542
9512
  // src/data/operations/data/compartmentdefinition/compartmentdefinition-create-operation.ts
9543
- import { ulid as ulid24 } from "ulid";
9513
+ import { ulid as ulid23 } from "ulid";
9544
9514
  async function createCompartmentDefinitionOperation(params) {
9545
9515
  const { context, body, tableName } = params;
9546
9516
  const { tenantId, workspaceId, date, actorId, actorName } = context;
9547
- const id = body.id ?? ulid24();
9517
+ const id = body.id ?? ulid23();
9548
9518
  const meta = {
9549
9519
  ...body.meta ?? {},
9550
9520
  lastUpdated: date,
@@ -9759,11 +9729,11 @@ router31.delete("/:id", deleteCompartmentDefinitionRoute);
9759
9729
  import express32 from "express";
9760
9730
 
9761
9731
  // src/data/operations/data/composition/composition-create-operation.ts
9762
- import { ulid as ulid25 } from "ulid";
9732
+ import { ulid as ulid24 } from "ulid";
9763
9733
  async function createCompositionOperation(params) {
9764
9734
  const { context, body, tableName } = params;
9765
9735
  const { tenantId, workspaceId, date, actorId, actorName } = context;
9766
- const id = body.id ?? ulid25();
9736
+ const id = body.id ?? ulid24();
9767
9737
  const meta = {
9768
9738
  ...body.meta ?? {},
9769
9739
  lastUpdated: date,
@@ -9959,11 +9929,11 @@ router32.delete("/:id", deleteCompositionRoute);
9959
9929
  import express33 from "express";
9960
9930
 
9961
9931
  // src/data/operations/data/conceptmap/conceptmap-create-operation.ts
9962
- import { ulid as ulid26 } from "ulid";
9932
+ import { ulid as ulid25 } from "ulid";
9963
9933
  async function createConceptMapOperation(params) {
9964
9934
  const { context, body, tableName } = params;
9965
9935
  const { tenantId, workspaceId, date, actorId, actorName } = context;
9966
- const id = body.id ?? ulid26();
9936
+ const id = body.id ?? ulid25();
9967
9937
  const meta = {
9968
9938
  ...body.meta ?? {},
9969
9939
  lastUpdated: date,
@@ -10159,11 +10129,11 @@ router33.delete("/:id", deleteConceptMapRoute);
10159
10129
  import express34 from "express";
10160
10130
 
10161
10131
  // src/data/operations/data/condition/condition-create-operation.ts
10162
- import { ulid as ulid27 } from "ulid";
10132
+ import { ulid as ulid26 } from "ulid";
10163
10133
  async function createConditionOperation(params) {
10164
10134
  const { context, body, tableName } = params;
10165
10135
  const { tenantId, workspaceId, date, actorId, actorName } = context;
10166
- const id = body.id ?? ulid27();
10136
+ const id = body.id ?? ulid26();
10167
10137
  const meta = {
10168
10138
  ...body.meta ?? {},
10169
10139
  lastUpdated: date,
@@ -10359,11 +10329,11 @@ router34.delete("/:id", deleteConditionRoute);
10359
10329
  import express35 from "express";
10360
10330
 
10361
10331
  // src/data/operations/data/consent/consent-create-operation.ts
10362
- import { ulid as ulid28 } from "ulid";
10332
+ import { ulid as ulid27 } from "ulid";
10363
10333
  async function createConsentOperation(params) {
10364
10334
  const { context, body, tableName } = params;
10365
10335
  const { tenantId, workspaceId, date, actorId, actorName } = context;
10366
- const id = body.id ?? ulid28();
10336
+ const id = body.id ?? ulid27();
10367
10337
  const meta = {
10368
10338
  ...body.meta ?? {},
10369
10339
  lastUpdated: date,
@@ -10559,11 +10529,11 @@ router35.delete("/:id", deleteConsentRoute);
10559
10529
  import express36 from "express";
10560
10530
 
10561
10531
  // src/data/operations/data/contract/contract-create-operation.ts
10562
- import { ulid as ulid29 } from "ulid";
10532
+ import { ulid as ulid28 } from "ulid";
10563
10533
  async function createContractOperation(params) {
10564
10534
  const { context, body, tableName } = params;
10565
10535
  const { tenantId, workspaceId, date, actorId, actorName } = context;
10566
- const id = body.id ?? ulid29();
10536
+ const id = body.id ?? ulid28();
10567
10537
  const meta = {
10568
10538
  ...body.meta ?? {},
10569
10539
  lastUpdated: date,
@@ -10759,11 +10729,11 @@ router36.delete("/:id", deleteContractRoute);
10759
10729
  import express37 from "express";
10760
10730
 
10761
10731
  // src/data/operations/data/coverage/coverage-create-operation.ts
10762
- import { ulid as ulid30 } from "ulid";
10732
+ import { ulid as ulid29 } from "ulid";
10763
10733
  async function createCoverageOperation(params) {
10764
10734
  const { context, body, tableName } = params;
10765
10735
  const { tenantId, workspaceId, date, actorId, actorName } = context;
10766
- const id = body.id ?? ulid30();
10736
+ const id = body.id ?? ulid29();
10767
10737
  const meta = {
10768
10738
  ...body.meta ?? {},
10769
10739
  lastUpdated: date,
@@ -10962,11 +10932,11 @@ router37.delete("/:id", deleteCoverageRoute);
10962
10932
  import express38 from "express";
10963
10933
 
10964
10934
  // src/data/operations/data/coverageeligibilityrequest/coverageeligibilityrequest-create-operation.ts
10965
- import { ulid as ulid31 } from "ulid";
10935
+ import { ulid as ulid30 } from "ulid";
10966
10936
  async function createCoverageEligibilityRequestOperation(params) {
10967
10937
  const { context, body, tableName } = params;
10968
10938
  const { tenantId, workspaceId, date, actorId, actorName } = context;
10969
- const id = body.id ?? ulid31();
10939
+ const id = body.id ?? ulid30();
10970
10940
  const meta = {
10971
10941
  ...body.meta ?? {},
10972
10942
  lastUpdated: date,
@@ -11181,11 +11151,11 @@ router38.delete("/:id", deleteCoverageEligibilityRequestRoute);
11181
11151
  import express39 from "express";
11182
11152
 
11183
11153
  // src/data/operations/data/coverageeligibilityresponse/coverageeligibilityresponse-create-operation.ts
11184
- import { ulid as ulid32 } from "ulid";
11154
+ import { ulid as ulid31 } from "ulid";
11185
11155
  async function createCoverageEligibilityResponseOperation(params) {
11186
11156
  const { context, body, tableName } = params;
11187
11157
  const { tenantId, workspaceId, date, actorId, actorName } = context;
11188
- const id = body.id ?? ulid32();
11158
+ const id = body.id ?? ulid31();
11189
11159
  const meta = {
11190
11160
  ...body.meta ?? {},
11191
11161
  lastUpdated: date,
@@ -11400,11 +11370,11 @@ router39.delete("/:id", deleteCoverageEligibilityResponseRoute);
11400
11370
  import express40 from "express";
11401
11371
 
11402
11372
  // src/data/operations/data/detectedissue/detectedissue-create-operation.ts
11403
- import { ulid as ulid33 } from "ulid";
11373
+ import { ulid as ulid32 } from "ulid";
11404
11374
  async function createDetectedIssueOperation(params) {
11405
11375
  const { context, body, tableName } = params;
11406
11376
  const { tenantId, workspaceId, date, actorId, actorName } = context;
11407
- const id = body.id ?? ulid33();
11377
+ const id = body.id ?? ulid32();
11408
11378
  const meta = {
11409
11379
  ...body.meta ?? {},
11410
11380
  lastUpdated: date,
@@ -11600,11 +11570,11 @@ router40.delete("/:id", deleteDetectedIssueRoute);
11600
11570
  import express41 from "express";
11601
11571
 
11602
11572
  // src/data/operations/data/device/device-create-operation.ts
11603
- import { ulid as ulid34 } from "ulid";
11573
+ import { ulid as ulid33 } from "ulid";
11604
11574
  async function createDeviceOperation(params) {
11605
11575
  const { context, body, tableName } = params;
11606
11576
  const { tenantId, workspaceId, date, actorId, actorName } = context;
11607
- const id = body.id ?? ulid34();
11577
+ const id = body.id ?? ulid33();
11608
11578
  const meta = {
11609
11579
  ...body.meta ?? {},
11610
11580
  lastUpdated: date,
@@ -11800,11 +11770,11 @@ router41.delete("/:id", deleteDeviceRoute);
11800
11770
  import express42 from "express";
11801
11771
 
11802
11772
  // src/data/operations/data/devicedefinition/devicedefinition-create-operation.ts
11803
- import { ulid as ulid35 } from "ulid";
11773
+ import { ulid as ulid34 } from "ulid";
11804
11774
  async function createDeviceDefinitionOperation(params) {
11805
11775
  const { context, body, tableName } = params;
11806
11776
  const { tenantId, workspaceId, date, actorId, actorName } = context;
11807
- const id = body.id ?? ulid35();
11777
+ const id = body.id ?? ulid34();
11808
11778
  const meta = {
11809
11779
  ...body.meta ?? {},
11810
11780
  lastUpdated: date,
@@ -12000,11 +11970,11 @@ router42.delete("/:id", deleteDeviceDefinitionRoute);
12000
11970
  import express43 from "express";
12001
11971
 
12002
11972
  // src/data/operations/data/devicemetric/devicemetric-create-operation.ts
12003
- import { ulid as ulid36 } from "ulid";
11973
+ import { ulid as ulid35 } from "ulid";
12004
11974
  async function createDeviceMetricOperation(params) {
12005
11975
  const { context, body, tableName } = params;
12006
11976
  const { tenantId, workspaceId, date, actorId, actorName } = context;
12007
- const id = body.id ?? ulid36();
11977
+ const id = body.id ?? ulid35();
12008
11978
  const meta = {
12009
11979
  ...body.meta ?? {},
12010
11980
  lastUpdated: date,
@@ -12200,11 +12170,11 @@ router43.delete("/:id", deleteDeviceMetricRoute);
12200
12170
  import express44 from "express";
12201
12171
 
12202
12172
  // src/data/operations/data/devicerequest/devicerequest-create-operation.ts
12203
- import { ulid as ulid37 } from "ulid";
12173
+ import { ulid as ulid36 } from "ulid";
12204
12174
  async function createDeviceRequestOperation(params) {
12205
12175
  const { context, body, tableName } = params;
12206
12176
  const { tenantId, workspaceId, date, actorId, actorName } = context;
12207
- const id = body.id ?? ulid37();
12177
+ const id = body.id ?? ulid36();
12208
12178
  const meta = {
12209
12179
  ...body.meta ?? {},
12210
12180
  lastUpdated: date,
@@ -12400,11 +12370,11 @@ router44.delete("/:id", deleteDeviceRequestRoute);
12400
12370
  import express45 from "express";
12401
12371
 
12402
12372
  // src/data/operations/data/deviceusestatement/deviceusestatement-create-operation.ts
12403
- import { ulid as ulid38 } from "ulid";
12373
+ import { ulid as ulid37 } from "ulid";
12404
12374
  async function createDeviceUseStatementOperation(params) {
12405
12375
  const { context, body, tableName } = params;
12406
12376
  const { tenantId, workspaceId, date, actorId, actorName } = context;
12407
- const id = body.id ?? ulid38();
12377
+ const id = body.id ?? ulid37();
12408
12378
  const meta = {
12409
12379
  ...body.meta ?? {},
12410
12380
  lastUpdated: date,
@@ -12607,11 +12577,11 @@ router45.delete("/:id", deleteDeviceUseStatementRoute);
12607
12577
  import express46 from "express";
12608
12578
 
12609
12579
  // src/data/operations/data/diagnosticreport/diagnosticreport-create-operation.ts
12610
- import { ulid as ulid39 } from "ulid";
12580
+ import { ulid as ulid38 } from "ulid";
12611
12581
  async function createDiagnosticReportOperation(params) {
12612
12582
  const { context, body, tableName } = params;
12613
12583
  const { tenantId, workspaceId, date, actorId, actorName } = context;
12614
- const id = body.id ?? ulid39();
12584
+ const id = body.id ?? ulid38();
12615
12585
  const meta = {
12616
12586
  ...body.meta ?? {},
12617
12587
  lastUpdated: date,
@@ -12807,11 +12777,11 @@ router46.delete("/:id", deleteDiagnosticReportRoute);
12807
12777
  import express47 from "express";
12808
12778
 
12809
12779
  // src/data/operations/data/documentmanifest/documentmanifest-create-operation.ts
12810
- import { ulid as ulid40 } from "ulid";
12780
+ import { ulid as ulid39 } from "ulid";
12811
12781
  async function createDocumentManifestOperation(params) {
12812
12782
  const { context, body, tableName } = params;
12813
12783
  const { tenantId, workspaceId, date, actorId, actorName } = context;
12814
- const id = body.id ?? ulid40();
12784
+ const id = body.id ?? ulid39();
12815
12785
  const meta = {
12816
12786
  ...body.meta ?? {},
12817
12787
  lastUpdated: date,
@@ -13007,11 +12977,11 @@ router47.delete("/:id", deleteDocumentManifestRoute);
13007
12977
  import express48 from "express";
13008
12978
 
13009
12979
  // src/data/operations/data/documentreference/documentreference-create-operation.ts
13010
- import { ulid as ulid41 } from "ulid";
12980
+ import { ulid as ulid40 } from "ulid";
13011
12981
  async function createDocumentReferenceOperation(params) {
13012
12982
  const { context, body, tableName } = params;
13013
12983
  const { tenantId, workspaceId, date, actorId, actorName } = context;
13014
- const id = body.id ?? ulid41();
12984
+ const id = body.id ?? ulid40();
13015
12985
  const meta = {
13016
12986
  ...body.meta ?? {},
13017
12987
  lastUpdated: date,
@@ -13210,11 +13180,11 @@ router48.delete("/:id", deleteDocumentReferenceRoute);
13210
13180
  import express49 from "express";
13211
13181
 
13212
13182
  // src/data/operations/data/effectevidencesynthesis/effectevidencesynthesis-create-operation.ts
13213
- import { ulid as ulid42 } from "ulid";
13183
+ import { ulid as ulid41 } from "ulid";
13214
13184
  async function createEffectEvidenceSynthesisOperation(params) {
13215
13185
  const { context, body, tableName } = params;
13216
13186
  const { tenantId, workspaceId, date, actorId, actorName } = context;
13217
- const id = body.id ?? ulid42();
13187
+ const id = body.id ?? ulid41();
13218
13188
  const meta = {
13219
13189
  ...body.meta ?? {},
13220
13190
  lastUpdated: date,
@@ -13428,41 +13398,6 @@ router49.delete("/:id", deleteEffectEvidenceSynthesisRoute);
13428
13398
  // src/data/rest-api/routes/data/encounter/encounter.ts
13429
13399
  import express50 from "express";
13430
13400
 
13431
- // src/data/operations/data/encounter/encounter-create-operation.ts
13432
- import { ulid as ulid43 } from "ulid";
13433
- async function createEncounterOperation(params) {
13434
- const { context, body, tableName } = params;
13435
- const { tenantId, workspaceId, date, actorId, actorName } = context;
13436
- const id = body.id ?? ulid43();
13437
- const meta = {
13438
- ...body.meta ?? {},
13439
- lastUpdated: date,
13440
- versionId: "1"
13441
- };
13442
- const encounterWithAudit = {
13443
- ...body,
13444
- resourceType: "Encounter",
13445
- id,
13446
- meta: mergeAuditIntoMeta(meta, {
13447
- createdDate: date,
13448
- createdById: actorId,
13449
- createdByName: actorName,
13450
- modifiedDate: date,
13451
- modifiedById: actorId,
13452
- modifiedByName: actorName
13453
- })
13454
- };
13455
- const service = getDynamoDataService(tableName);
13456
- return createDataEntityRecord(
13457
- service.entities.encounter,
13458
- tenantId,
13459
- workspaceId,
13460
- id,
13461
- encounterWithAudit,
13462
- date
13463
- );
13464
- }
13465
-
13466
13401
  // src/data/rest-api/routes/data/encounter/encounter-create-route.ts
13467
13402
  async function createEncounterRoute(req, res) {
13468
13403
  const bodyResult = requireJsonBodyAs(req, res);
@@ -13859,11 +13794,11 @@ router50.delete("/:id", deleteEncounterRoute);
13859
13794
  import express51 from "express";
13860
13795
 
13861
13796
  // src/data/operations/data/endpoint/endpoint-create-operation.ts
13862
- import { ulid as ulid44 } from "ulid";
13797
+ import { ulid as ulid42 } from "ulid";
13863
13798
  async function createEndpointOperation(params) {
13864
13799
  const { context, body, tableName } = params;
13865
13800
  const { tenantId, workspaceId, date, actorId, actorName } = context;
13866
- const id = body.id ?? ulid44();
13801
+ const id = body.id ?? ulid42();
13867
13802
  const meta = {
13868
13803
  ...body.meta ?? {},
13869
13804
  lastUpdated: date,
@@ -14059,11 +13994,11 @@ router51.delete("/:id", deleteEndpointRoute);
14059
13994
  import express52 from "express";
14060
13995
 
14061
13996
  // src/data/operations/data/enrollmentrequest/enrollmentrequest-create-operation.ts
14062
- import { ulid as ulid45 } from "ulid";
13997
+ import { ulid as ulid43 } from "ulid";
14063
13998
  async function createEnrollmentRequestOperation(params) {
14064
13999
  const { context, body, tableName } = params;
14065
14000
  const { tenantId, workspaceId, date, actorId, actorName } = context;
14066
- const id = body.id ?? ulid45();
14001
+ const id = body.id ?? ulid43();
14067
14002
  const meta = {
14068
14003
  ...body.meta ?? {},
14069
14004
  lastUpdated: date,
@@ -14262,11 +14197,11 @@ router52.delete("/:id", deleteEnrollmentRequestRoute);
14262
14197
  import express53 from "express";
14263
14198
 
14264
14199
  // src/data/operations/data/enrollmentresponse/enrollmentresponse-create-operation.ts
14265
- import { ulid as ulid46 } from "ulid";
14200
+ import { ulid as ulid44 } from "ulid";
14266
14201
  async function createEnrollmentResponseOperation(params) {
14267
14202
  const { context, body, tableName } = params;
14268
14203
  const { tenantId, workspaceId, date, actorId, actorName } = context;
14269
- const id = body.id ?? ulid46();
14204
+ const id = body.id ?? ulid44();
14270
14205
  const meta = {
14271
14206
  ...body.meta ?? {},
14272
14207
  lastUpdated: date,
@@ -14469,11 +14404,11 @@ router53.delete("/:id", deleteEnrollmentResponseRoute);
14469
14404
  import express54 from "express";
14470
14405
 
14471
14406
  // src/data/operations/data/episodeofcare/episodeofcare-create-operation.ts
14472
- import { ulid as ulid47 } from "ulid";
14407
+ import { ulid as ulid45 } from "ulid";
14473
14408
  async function createEpisodeOfCareOperation(params) {
14474
14409
  const { context, body, tableName } = params;
14475
14410
  const { tenantId, workspaceId, date, actorId, actorName } = context;
14476
- const id = body.id ?? ulid47();
14411
+ const id = body.id ?? ulid45();
14477
14412
  const meta = {
14478
14413
  ...body.meta ?? {},
14479
14414
  lastUpdated: date,
@@ -14669,11 +14604,11 @@ router54.delete("/:id", deleteEpisodeOfCareRoute);
14669
14604
  import express55 from "express";
14670
14605
 
14671
14606
  // src/data/operations/data/eventdefinition/eventdefinition-create-operation.ts
14672
- import { ulid as ulid48 } from "ulid";
14607
+ import { ulid as ulid46 } from "ulid";
14673
14608
  async function createEventDefinitionOperation(params) {
14674
14609
  const { context, body, tableName } = params;
14675
14610
  const { tenantId, workspaceId, date, actorId, actorName } = context;
14676
- const id = body.id ?? ulid48();
14611
+ const id = body.id ?? ulid46();
14677
14612
  const meta = {
14678
14613
  ...body.meta ?? {},
14679
14614
  lastUpdated: date,
@@ -14869,11 +14804,11 @@ router55.delete("/:id", deleteEventDefinitionRoute);
14869
14804
  import express56 from "express";
14870
14805
 
14871
14806
  // src/data/operations/data/evidence/evidence-create-operation.ts
14872
- import { ulid as ulid49 } from "ulid";
14807
+ import { ulid as ulid47 } from "ulid";
14873
14808
  async function createEvidenceOperation(params) {
14874
14809
  const { context, body, tableName } = params;
14875
14810
  const { tenantId, workspaceId, date, actorId, actorName } = context;
14876
- const id = body.id ?? ulid49();
14811
+ const id = body.id ?? ulid47();
14877
14812
  const meta = {
14878
14813
  ...body.meta ?? {},
14879
14814
  lastUpdated: date,
@@ -15069,11 +15004,11 @@ router56.delete("/:id", deleteEvidenceRoute);
15069
15004
  import express57 from "express";
15070
15005
 
15071
15006
  // src/data/operations/data/evidencevariable/evidencevariable-create-operation.ts
15072
- import { ulid as ulid50 } from "ulid";
15007
+ import { ulid as ulid48 } from "ulid";
15073
15008
  async function createEvidenceVariableOperation(params) {
15074
15009
  const { context, body, tableName } = params;
15075
15010
  const { tenantId, workspaceId, date, actorId, actorName } = context;
15076
- const id = body.id ?? ulid50();
15011
+ const id = body.id ?? ulid48();
15077
15012
  const meta = {
15078
15013
  ...body.meta ?? {},
15079
15014
  lastUpdated: date,
@@ -15269,11 +15204,11 @@ router57.delete("/:id", deleteEvidenceVariableRoute);
15269
15204
  import express58 from "express";
15270
15205
 
15271
15206
  // src/data/operations/data/examplescenario/examplescenario-create-operation.ts
15272
- import { ulid as ulid51 } from "ulid";
15207
+ import { ulid as ulid49 } from "ulid";
15273
15208
  async function createExampleScenarioOperation(params) {
15274
15209
  const { context, body, tableName } = params;
15275
15210
  const { tenantId, workspaceId, date, actorId, actorName } = context;
15276
- const id = body.id ?? ulid51();
15211
+ const id = body.id ?? ulid49();
15277
15212
  const meta = {
15278
15213
  ...body.meta ?? {},
15279
15214
  lastUpdated: date,
@@ -15469,11 +15404,11 @@ router58.delete("/:id", deleteExampleScenarioRoute);
15469
15404
  import express59 from "express";
15470
15405
 
15471
15406
  // src/data/operations/data/explanationofbenefit/explanationofbenefit-create-operation.ts
15472
- import { ulid as ulid52 } from "ulid";
15407
+ import { ulid as ulid50 } from "ulid";
15473
15408
  async function createExplanationOfBenefitOperation(params) {
15474
15409
  const { context, body, tableName } = params;
15475
15410
  const { tenantId, workspaceId, date, actorId, actorName } = context;
15476
- const id = body.id ?? ulid52();
15411
+ const id = body.id ?? ulid50();
15477
15412
  const meta = {
15478
15413
  ...body.meta ?? {},
15479
15414
  lastUpdated: date,
@@ -15680,11 +15615,11 @@ router59.delete("/:id", deleteExplanationOfBenefitRoute);
15680
15615
  import express60 from "express";
15681
15616
 
15682
15617
  // src/data/operations/data/familymemberhistory/familymemberhistory-create-operation.ts
15683
- import { ulid as ulid53 } from "ulid";
15618
+ import { ulid as ulid51 } from "ulid";
15684
15619
  async function createFamilyMemberHistoryOperation(params) {
15685
15620
  const { context, body, tableName } = params;
15686
15621
  const { tenantId, workspaceId, date, actorId, actorName } = context;
15687
- const id = body.id ?? ulid53();
15622
+ const id = body.id ?? ulid51();
15688
15623
  const meta = {
15689
15624
  ...body.meta ?? {},
15690
15625
  lastUpdated: date,
@@ -15887,11 +15822,11 @@ router60.delete("/:id", deleteFamilyMemberHistoryRoute);
15887
15822
  import express61 from "express";
15888
15823
 
15889
15824
  // src/data/operations/data/flag/flag-create-operation.ts
15890
- import { ulid as ulid54 } from "ulid";
15825
+ import { ulid as ulid52 } from "ulid";
15891
15826
  async function createFlagOperation(params) {
15892
15827
  const { context, body, tableName } = params;
15893
15828
  const { tenantId, workspaceId, date, actorId, actorName } = context;
15894
- const id = body.id ?? ulid54();
15829
+ const id = body.id ?? ulid52();
15895
15830
  const meta = {
15896
15831
  ...body.meta ?? {},
15897
15832
  lastUpdated: date,
@@ -16087,11 +16022,11 @@ router61.delete("/:id", deleteFlagRoute);
16087
16022
  import express62 from "express";
16088
16023
 
16089
16024
  // src/data/operations/data/goal/goal-create-operation.ts
16090
- import { ulid as ulid55 } from "ulid";
16025
+ import { ulid as ulid53 } from "ulid";
16091
16026
  async function createGoalOperation(params) {
16092
16027
  const { context, body, tableName } = params;
16093
16028
  const { tenantId, workspaceId, date, actorId, actorName } = context;
16094
- const id = body.id ?? ulid55();
16029
+ const id = body.id ?? ulid53();
16095
16030
  const meta = {
16096
16031
  ...body.meta ?? {},
16097
16032
  lastUpdated: date,
@@ -16287,11 +16222,11 @@ router62.delete("/:id", deleteGoalRoute);
16287
16222
  import express63 from "express";
16288
16223
 
16289
16224
  // src/data/operations/data/graphdefinition/graphdefinition-create-operation.ts
16290
- import { ulid as ulid56 } from "ulid";
16225
+ import { ulid as ulid54 } from "ulid";
16291
16226
  async function createGraphDefinitionOperation(params) {
16292
16227
  const { context, body, tableName } = params;
16293
16228
  const { tenantId, workspaceId, date, actorId, actorName } = context;
16294
- const id = body.id ?? ulid56();
16229
+ const id = body.id ?? ulid54();
16295
16230
  const meta = {
16296
16231
  ...body.meta ?? {},
16297
16232
  lastUpdated: date,
@@ -16487,11 +16422,11 @@ router63.delete("/:id", deleteGraphDefinitionRoute);
16487
16422
  import express64 from "express";
16488
16423
 
16489
16424
  // src/data/operations/data/group/group-create-operation.ts
16490
- import { ulid as ulid57 } from "ulid";
16425
+ import { ulid as ulid55 } from "ulid";
16491
16426
  async function createGroupOperation(params) {
16492
16427
  const { context, body, tableName } = params;
16493
16428
  const { tenantId, workspaceId, date, actorId, actorName } = context;
16494
- const id = body.id ?? ulid57();
16429
+ const id = body.id ?? ulid55();
16495
16430
  const meta = {
16496
16431
  ...body.meta ?? {},
16497
16432
  lastUpdated: date,
@@ -16687,11 +16622,11 @@ router64.delete("/:id", deleteGroupRoute);
16687
16622
  import express65 from "express";
16688
16623
 
16689
16624
  // src/data/operations/data/guidanceresponse/guidanceresponse-create-operation.ts
16690
- import { ulid as ulid58 } from "ulid";
16625
+ import { ulid as ulid56 } from "ulid";
16691
16626
  async function createGuidanceResponseOperation(params) {
16692
16627
  const { context, body, tableName } = params;
16693
16628
  const { tenantId, workspaceId, date, actorId, actorName } = context;
16694
- const id = body.id ?? ulid58();
16629
+ const id = body.id ?? ulid56();
16695
16630
  const meta = {
16696
16631
  ...body.meta ?? {},
16697
16632
  lastUpdated: date,
@@ -16887,11 +16822,11 @@ router65.delete("/:id", deleteGuidanceResponseRoute);
16887
16822
  import express66 from "express";
16888
16823
 
16889
16824
  // src/data/operations/data/healthcareservice/healthcareservice-create-operation.ts
16890
- import { ulid as ulid59 } from "ulid";
16825
+ import { ulid as ulid57 } from "ulid";
16891
16826
  async function createHealthcareServiceOperation(params) {
16892
16827
  const { context, body, tableName } = params;
16893
16828
  const { tenantId, workspaceId, date, actorId, actorName } = context;
16894
- const id = body.id ?? ulid59();
16829
+ const id = body.id ?? ulid57();
16895
16830
  const meta = {
16896
16831
  ...body.meta ?? {},
16897
16832
  lastUpdated: date,
@@ -17090,11 +17025,11 @@ router66.delete("/:id", deleteHealthcareServiceRoute);
17090
17025
  import express67 from "express";
17091
17026
 
17092
17027
  // src/data/operations/data/imagingstudy/imagingstudy-create-operation.ts
17093
- import { ulid as ulid60 } from "ulid";
17028
+ import { ulid as ulid58 } from "ulid";
17094
17029
  async function createImagingStudyOperation(params) {
17095
17030
  const { context, body, tableName } = params;
17096
17031
  const { tenantId, workspaceId, date, actorId, actorName } = context;
17097
- const id = body.id ?? ulid60();
17032
+ const id = body.id ?? ulid58();
17098
17033
  const meta = {
17099
17034
  ...body.meta ?? {},
17100
17035
  lastUpdated: date,
@@ -17290,11 +17225,11 @@ router67.delete("/:id", deleteImagingStudyRoute);
17290
17225
  import express68 from "express";
17291
17226
 
17292
17227
  // src/data/operations/data/immunization/immunization-create-operation.ts
17293
- import { ulid as ulid61 } from "ulid";
17228
+ import { ulid as ulid59 } from "ulid";
17294
17229
  async function createImmunizationOperation(params) {
17295
17230
  const { context, body, tableName } = params;
17296
17231
  const { tenantId, workspaceId, date, actorId, actorName } = context;
17297
- const id = body.id ?? ulid61();
17232
+ const id = body.id ?? ulid59();
17298
17233
  const meta = {
17299
17234
  ...body.meta ?? {},
17300
17235
  lastUpdated: date,
@@ -17490,11 +17425,11 @@ router68.delete("/:id", deleteImmunizationRoute);
17490
17425
  import express69 from "express";
17491
17426
 
17492
17427
  // src/data/operations/data/immunizationevaluation/immunizationevaluation-create-operation.ts
17493
- import { ulid as ulid62 } from "ulid";
17428
+ import { ulid as ulid60 } from "ulid";
17494
17429
  async function createImmunizationEvaluationOperation(params) {
17495
17430
  const { context, body, tableName } = params;
17496
17431
  const { tenantId, workspaceId, date, actorId, actorName } = context;
17497
- const id = body.id ?? ulid62();
17432
+ const id = body.id ?? ulid60();
17498
17433
  const meta = {
17499
17434
  ...body.meta ?? {},
17500
17435
  lastUpdated: date,
@@ -17709,11 +17644,11 @@ router69.delete("/:id", deleteImmunizationEvaluationRoute);
17709
17644
  import express70 from "express";
17710
17645
 
17711
17646
  // src/data/operations/data/immunizationrecommendation/immunizationrecommendation-create-operation.ts
17712
- import { ulid as ulid63 } from "ulid";
17647
+ import { ulid as ulid61 } from "ulid";
17713
17648
  async function createImmunizationRecommendationOperation(params) {
17714
17649
  const { context, body, tableName } = params;
17715
17650
  const { tenantId, workspaceId, date, actorId, actorName } = context;
17716
- const id = body.id ?? ulid63();
17651
+ const id = body.id ?? ulid61();
17717
17652
  const meta = {
17718
17653
  ...body.meta ?? {},
17719
17654
  lastUpdated: date,
@@ -17928,11 +17863,11 @@ router70.delete("/:id", deleteImmunizationRecommendationRoute);
17928
17863
  import express71 from "express";
17929
17864
 
17930
17865
  // src/data/operations/data/implementationguide/implementationguide-create-operation.ts
17931
- import { ulid as ulid64 } from "ulid";
17866
+ import { ulid as ulid62 } from "ulid";
17932
17867
  async function createImplementationGuideOperation(params) {
17933
17868
  const { context, body, tableName } = params;
17934
17869
  const { tenantId, workspaceId, date, actorId, actorName } = context;
17935
- const id = body.id ?? ulid64();
17870
+ const id = body.id ?? ulid62();
17936
17871
  const meta = {
17937
17872
  ...body.meta ?? {},
17938
17873
  lastUpdated: date,
@@ -18135,11 +18070,11 @@ router71.delete("/:id", deleteImplementationGuideRoute);
18135
18070
  import express72 from "express";
18136
18071
 
18137
18072
  // src/data/operations/data/insuranceplan/insuranceplan-create-operation.ts
18138
- import { ulid as ulid65 } from "ulid";
18073
+ import { ulid as ulid63 } from "ulid";
18139
18074
  async function createInsurancePlanOperation(params) {
18140
18075
  const { context, body, tableName } = params;
18141
18076
  const { tenantId, workspaceId, date, actorId, actorName } = context;
18142
- const id = body.id ?? ulid65();
18077
+ const id = body.id ?? ulid63();
18143
18078
  const meta = {
18144
18079
  ...body.meta ?? {},
18145
18080
  lastUpdated: date,
@@ -18335,11 +18270,11 @@ router72.delete("/:id", deleteInsurancePlanRoute);
18335
18270
  import express73 from "express";
18336
18271
 
18337
18272
  // src/data/operations/data/invoice/invoice-create-operation.ts
18338
- import { ulid as ulid66 } from "ulid";
18273
+ import { ulid as ulid64 } from "ulid";
18339
18274
  async function createInvoiceOperation(params) {
18340
18275
  const { context, body, tableName } = params;
18341
18276
  const { tenantId, workspaceId, date, actorId, actorName } = context;
18342
- const id = body.id ?? ulid66();
18277
+ const id = body.id ?? ulid64();
18343
18278
  const meta = {
18344
18279
  ...body.meta ?? {},
18345
18280
  lastUpdated: date,
@@ -18535,11 +18470,11 @@ router73.delete("/:id", deleteInvoiceRoute);
18535
18470
  import express74 from "express";
18536
18471
 
18537
18472
  // src/data/operations/data/library/library-create-operation.ts
18538
- import { ulid as ulid67 } from "ulid";
18473
+ import { ulid as ulid65 } from "ulid";
18539
18474
  async function createLibraryOperation(params) {
18540
18475
  const { context, body, tableName } = params;
18541
18476
  const { tenantId, workspaceId, date, actorId, actorName } = context;
18542
- const id = body.id ?? ulid67();
18477
+ const id = body.id ?? ulid65();
18543
18478
  const meta = {
18544
18479
  ...body.meta ?? {},
18545
18480
  lastUpdated: date,
@@ -18735,11 +18670,11 @@ router74.delete("/:id", deleteLibraryRoute);
18735
18670
  import express75 from "express";
18736
18671
 
18737
18672
  // src/data/operations/data/linkage/linkage-create-operation.ts
18738
- import { ulid as ulid68 } from "ulid";
18673
+ import { ulid as ulid66 } from "ulid";
18739
18674
  async function createLinkageOperation(params) {
18740
18675
  const { context, body, tableName } = params;
18741
18676
  const { tenantId, workspaceId, date, actorId, actorName } = context;
18742
- const id = body.id ?? ulid68();
18677
+ const id = body.id ?? ulid66();
18743
18678
  const meta = {
18744
18679
  ...body.meta ?? {},
18745
18680
  lastUpdated: date,
@@ -18935,11 +18870,11 @@ router75.delete("/:id", deleteLinkageRoute);
18935
18870
  import express76 from "express";
18936
18871
 
18937
18872
  // src/data/operations/data/list/list-create-operation.ts
18938
- import { ulid as ulid69 } from "ulid";
18873
+ import { ulid as ulid67 } from "ulid";
18939
18874
  async function createListOperation(params) {
18940
18875
  const { context, body, tableName } = params;
18941
18876
  const { tenantId, workspaceId, date, actorId, actorName } = context;
18942
- const id = body.id ?? ulid69();
18877
+ const id = body.id ?? ulid67();
18943
18878
  const meta = {
18944
18879
  ...body.meta ?? {},
18945
18880
  lastUpdated: date,
@@ -19135,11 +19070,11 @@ router76.delete("/:id", deleteListRoute);
19135
19070
  import express77 from "express";
19136
19071
 
19137
19072
  // src/data/operations/data/location/location-create-operation.ts
19138
- import { ulid as ulid70 } from "ulid";
19073
+ import { ulid as ulid68 } from "ulid";
19139
19074
  async function createLocationOperation(params) {
19140
19075
  const { context, body, tableName } = params;
19141
19076
  const { tenantId, workspaceId, date, actorId, actorName } = context;
19142
- const id = body.id ?? ulid70();
19077
+ const id = body.id ?? ulid68();
19143
19078
  const meta = {
19144
19079
  ...body.meta ?? {},
19145
19080
  lastUpdated: date,
@@ -19335,11 +19270,11 @@ router77.delete("/:id", deleteLocationRoute);
19335
19270
  import express78 from "express";
19336
19271
 
19337
19272
  // src/data/operations/data/measure/measure-create-operation.ts
19338
- import { ulid as ulid71 } from "ulid";
19273
+ import { ulid as ulid69 } from "ulid";
19339
19274
  async function createMeasureOperation(params) {
19340
19275
  const { context, body, tableName } = params;
19341
19276
  const { tenantId, workspaceId, date, actorId, actorName } = context;
19342
- const id = body.id ?? ulid71();
19277
+ const id = body.id ?? ulid69();
19343
19278
  const meta = {
19344
19279
  ...body.meta ?? {},
19345
19280
  lastUpdated: date,
@@ -19535,11 +19470,11 @@ router78.delete("/:id", deleteMeasureRoute);
19535
19470
  import express79 from "express";
19536
19471
 
19537
19472
  // src/data/operations/data/measurereport/measurereport-create-operation.ts
19538
- import { ulid as ulid72 } from "ulid";
19473
+ import { ulid as ulid70 } from "ulid";
19539
19474
  async function createMeasureReportOperation(params) {
19540
19475
  const { context, body, tableName } = params;
19541
19476
  const { tenantId, workspaceId, date, actorId, actorName } = context;
19542
- const id = body.id ?? ulid72();
19477
+ const id = body.id ?? ulid70();
19543
19478
  const meta = {
19544
19479
  ...body.meta ?? {},
19545
19480
  lastUpdated: date,
@@ -19735,11 +19670,11 @@ router79.delete("/:id", deleteMeasureReportRoute);
19735
19670
  import express80 from "express";
19736
19671
 
19737
19672
  // src/data/operations/data/media/media-create-operation.ts
19738
- import { ulid as ulid73 } from "ulid";
19673
+ import { ulid as ulid71 } from "ulid";
19739
19674
  async function createMediaOperation(params) {
19740
19675
  const { context, body, tableName } = params;
19741
19676
  const { tenantId, workspaceId, date, actorId, actorName } = context;
19742
- const id = body.id ?? ulid73();
19677
+ const id = body.id ?? ulid71();
19743
19678
  const meta = {
19744
19679
  ...body.meta ?? {},
19745
19680
  lastUpdated: date,
@@ -19935,11 +19870,11 @@ router80.delete("/:id", deleteMediaRoute);
19935
19870
  import express81 from "express";
19936
19871
 
19937
19872
  // src/data/operations/data/medication/medication-create-operation.ts
19938
- import { ulid as ulid74 } from "ulid";
19873
+ import { ulid as ulid72 } from "ulid";
19939
19874
  async function createMedicationOperation(params) {
19940
19875
  const { context, body, tableName } = params;
19941
19876
  const { tenantId, workspaceId, date, actorId, actorName } = context;
19942
- const id = body.id ?? ulid74();
19877
+ const id = body.id ?? ulid72();
19943
19878
  const meta = {
19944
19879
  ...body.meta ?? {},
19945
19880
  lastUpdated: date,
@@ -20135,11 +20070,11 @@ router81.delete("/:id", deleteMedicationRoute);
20135
20070
  import express82 from "express";
20136
20071
 
20137
20072
  // src/data/operations/data/medicationadministration/medicationadministration-create-operation.ts
20138
- import { ulid as ulid75 } from "ulid";
20073
+ import { ulid as ulid73 } from "ulid";
20139
20074
  async function createMedicationAdministrationOperation(params) {
20140
20075
  const { context, body, tableName } = params;
20141
20076
  const { tenantId, workspaceId, date, actorId, actorName } = context;
20142
- const id = body.id ?? ulid75();
20077
+ const id = body.id ?? ulid73();
20143
20078
  const meta = {
20144
20079
  ...body.meta ?? {},
20145
20080
  lastUpdated: date,
@@ -20354,11 +20289,11 @@ router82.delete("/:id", deleteMedicationAdministrationRoute);
20354
20289
  import express83 from "express";
20355
20290
 
20356
20291
  // src/data/operations/data/medicationdispense/medicationdispense-create-operation.ts
20357
- import { ulid as ulid76 } from "ulid";
20292
+ import { ulid as ulid74 } from "ulid";
20358
20293
  async function createMedicationDispenseOperation(params) {
20359
20294
  const { context, body, tableName } = params;
20360
20295
  const { tenantId, workspaceId, date, actorId, actorName } = context;
20361
- const id = body.id ?? ulid76();
20296
+ const id = body.id ?? ulid74();
20362
20297
  const meta = {
20363
20298
  ...body.meta ?? {},
20364
20299
  lastUpdated: date,
@@ -20561,11 +20496,11 @@ router83.delete("/:id", deleteMedicationDispenseRoute);
20561
20496
  import express84 from "express";
20562
20497
 
20563
20498
  // src/data/operations/data/medicationknowledge/medicationknowledge-create-operation.ts
20564
- import { ulid as ulid77 } from "ulid";
20499
+ import { ulid as ulid75 } from "ulid";
20565
20500
  async function createMedicationKnowledgeOperation(params) {
20566
20501
  const { context, body, tableName } = params;
20567
20502
  const { tenantId, workspaceId, date, actorId, actorName } = context;
20568
- const id = body.id ?? ulid77();
20503
+ const id = body.id ?? ulid75();
20569
20504
  const meta = {
20570
20505
  ...body.meta ?? {},
20571
20506
  lastUpdated: date,
@@ -20768,11 +20703,11 @@ router84.delete("/:id", deleteMedicationKnowledgeRoute);
20768
20703
  import express85 from "express";
20769
20704
 
20770
20705
  // src/data/operations/data/medicationrequest/medicationrequest-create-operation.ts
20771
- import { ulid as ulid78 } from "ulid";
20706
+ import { ulid as ulid76 } from "ulid";
20772
20707
  async function createMedicationRequestOperation(params) {
20773
20708
  const { context, body, tableName } = params;
20774
20709
  const { tenantId, workspaceId, date, actorId, actorName } = context;
20775
- const id = body.id ?? ulid78();
20710
+ const id = body.id ?? ulid76();
20776
20711
  const meta = {
20777
20712
  ...body.meta ?? {},
20778
20713
  lastUpdated: date,
@@ -20971,11 +20906,11 @@ router85.delete("/:id", deleteMedicationRequestRoute);
20971
20906
  import express86 from "express";
20972
20907
 
20973
20908
  // src/data/operations/data/medicationstatement/medicationstatement-create-operation.ts
20974
- import { ulid as ulid79 } from "ulid";
20909
+ import { ulid as ulid77 } from "ulid";
20975
20910
  async function createMedicationStatementOperation(params) {
20976
20911
  const { context, body, tableName } = params;
20977
20912
  const { tenantId, workspaceId, date, actorId, actorName } = context;
20978
- const id = body.id ?? ulid79();
20913
+ const id = body.id ?? ulid77();
20979
20914
  const meta = {
20980
20915
  ...body.meta ?? {},
20981
20916
  lastUpdated: date,
@@ -21178,11 +21113,11 @@ router86.delete("/:id", deleteMedicationStatementRoute);
21178
21113
  import express87 from "express";
21179
21114
 
21180
21115
  // src/data/operations/data/medicinalproduct/medicinalproduct-create-operation.ts
21181
- import { ulid as ulid80 } from "ulid";
21116
+ import { ulid as ulid78 } from "ulid";
21182
21117
  async function createMedicinalProductOperation(params) {
21183
21118
  const { context, body, tableName } = params;
21184
21119
  const { tenantId, workspaceId, date, actorId, actorName } = context;
21185
- const id = body.id ?? ulid80();
21120
+ const id = body.id ?? ulid78();
21186
21121
  const meta = {
21187
21122
  ...body.meta ?? {},
21188
21123
  lastUpdated: date,
@@ -21378,11 +21313,11 @@ router87.delete("/:id", deleteMedicinalProductRoute);
21378
21313
  import express88 from "express";
21379
21314
 
21380
21315
  // src/data/operations/data/medicinalproductauthorization/medicinalproductauthorization-create-operation.ts
21381
- import { ulid as ulid81 } from "ulid";
21316
+ import { ulid as ulid79 } from "ulid";
21382
21317
  async function createMedicinalProductAuthorizationOperation(params) {
21383
21318
  const { context, body, tableName } = params;
21384
21319
  const { tenantId, workspaceId, date, actorId, actorName } = context;
21385
- const id = body.id ?? ulid81();
21320
+ const id = body.id ?? ulid79();
21386
21321
  const meta = {
21387
21322
  ...body.meta ?? {},
21388
21323
  lastUpdated: date,
@@ -21597,11 +21532,11 @@ router88.delete("/:id", deleteMedicinalProductAuthorizationRoute);
21597
21532
  import express89 from "express";
21598
21533
 
21599
21534
  // src/data/operations/data/medicinalproductcontraindication/medicinalproductcontraindication-create-operation.ts
21600
- import { ulid as ulid82 } from "ulid";
21535
+ import { ulid as ulid80 } from "ulid";
21601
21536
  async function createMedicinalProductContraindicationOperation(params) {
21602
21537
  const { context, body, tableName } = params;
21603
21538
  const { tenantId, workspaceId, date, actorId, actorName } = context;
21604
- const id = body.id ?? ulid82();
21539
+ const id = body.id ?? ulid80();
21605
21540
  const meta = {
21606
21541
  ...body.meta ?? {},
21607
21542
  lastUpdated: date,
@@ -21822,11 +21757,11 @@ router89.delete("/:id", deleteMedicinalProductContraindicationRoute);
21822
21757
  import express90 from "express";
21823
21758
 
21824
21759
  // src/data/operations/data/medicinalproductindication/medicinalproductindication-create-operation.ts
21825
- import { ulid as ulid83 } from "ulid";
21760
+ import { ulid as ulid81 } from "ulid";
21826
21761
  async function createMedicinalProductIndicationOperation(params) {
21827
21762
  const { context, body, tableName } = params;
21828
21763
  const { tenantId, workspaceId, date, actorId, actorName } = context;
21829
- const id = body.id ?? ulid83();
21764
+ const id = body.id ?? ulid81();
21830
21765
  const meta = {
21831
21766
  ...body.meta ?? {},
21832
21767
  lastUpdated: date,
@@ -22041,11 +21976,11 @@ router90.delete("/:id", deleteMedicinalProductIndicationRoute);
22041
21976
  import express91 from "express";
22042
21977
 
22043
21978
  // src/data/operations/data/medicinalproductingredient/medicinalproductingredient-create-operation.ts
22044
- import { ulid as ulid84 } from "ulid";
21979
+ import { ulid as ulid82 } from "ulid";
22045
21980
  async function createMedicinalProductIngredientOperation(params) {
22046
21981
  const { context, body, tableName } = params;
22047
21982
  const { tenantId, workspaceId, date, actorId, actorName } = context;
22048
- const id = body.id ?? ulid84();
21983
+ const id = body.id ?? ulid82();
22049
21984
  const meta = {
22050
21985
  ...body.meta ?? {},
22051
21986
  lastUpdated: date,
@@ -22260,11 +22195,11 @@ router91.delete("/:id", deleteMedicinalProductIngredientRoute);
22260
22195
  import express92 from "express";
22261
22196
 
22262
22197
  // src/data/operations/data/medicinalproductinteraction/medicinalproductinteraction-create-operation.ts
22263
- import { ulid as ulid85 } from "ulid";
22198
+ import { ulid as ulid83 } from "ulid";
22264
22199
  async function createMedicinalProductInteractionOperation(params) {
22265
22200
  const { context, body, tableName } = params;
22266
22201
  const { tenantId, workspaceId, date, actorId, actorName } = context;
22267
- const id = body.id ?? ulid85();
22202
+ const id = body.id ?? ulid83();
22268
22203
  const meta = {
22269
22204
  ...body.meta ?? {},
22270
22205
  lastUpdated: date,
@@ -22479,11 +22414,11 @@ router92.delete("/:id", deleteMedicinalProductInteractionRoute);
22479
22414
  import express93 from "express";
22480
22415
 
22481
22416
  // src/data/operations/data/medicinalproductmanufactured/medicinalproductmanufactured-create-operation.ts
22482
- import { ulid as ulid86 } from "ulid";
22417
+ import { ulid as ulid84 } from "ulid";
22483
22418
  async function createMedicinalProductManufacturedOperation(params) {
22484
22419
  const { context, body, tableName } = params;
22485
22420
  const { tenantId, workspaceId, date, actorId, actorName } = context;
22486
- const id = body.id ?? ulid86();
22421
+ const id = body.id ?? ulid84();
22487
22422
  const meta = {
22488
22423
  ...body.meta ?? {},
22489
22424
  lastUpdated: date,
@@ -22698,11 +22633,11 @@ router93.delete("/:id", deleteMedicinalProductManufacturedRoute);
22698
22633
  import express94 from "express";
22699
22634
 
22700
22635
  // src/data/operations/data/medicinalproductpackaged/medicinalproductpackaged-create-operation.ts
22701
- import { ulid as ulid87 } from "ulid";
22636
+ import { ulid as ulid85 } from "ulid";
22702
22637
  async function createMedicinalProductPackagedOperation(params) {
22703
22638
  const { context, body, tableName } = params;
22704
22639
  const { tenantId, workspaceId, date, actorId, actorName } = context;
22705
- const id = body.id ?? ulid87();
22640
+ const id = body.id ?? ulid85();
22706
22641
  const meta = {
22707
22642
  ...body.meta ?? {},
22708
22643
  lastUpdated: date,
@@ -22917,11 +22852,11 @@ router94.delete("/:id", deleteMedicinalProductPackagedRoute);
22917
22852
  import express95 from "express";
22918
22853
 
22919
22854
  // src/data/operations/data/medicinalproductpharmaceutical/medicinalproductpharmaceutical-create-operation.ts
22920
- import { ulid as ulid88 } from "ulid";
22855
+ import { ulid as ulid86 } from "ulid";
22921
22856
  async function createMedicinalProductPharmaceuticalOperation(params) {
22922
22857
  const { context, body, tableName } = params;
22923
22858
  const { tenantId, workspaceId, date, actorId, actorName } = context;
22924
- const id = body.id ?? ulid88();
22859
+ const id = body.id ?? ulid86();
22925
22860
  const meta = {
22926
22861
  ...body.meta ?? {},
22927
22862
  lastUpdated: date,
@@ -23142,11 +23077,11 @@ router95.delete("/:id", deleteMedicinalProductPharmaceuticalRoute);
23142
23077
  import express96 from "express";
23143
23078
 
23144
23079
  // src/data/operations/data/medicinalproductundesirableeffect/medicinalproductundesirableeffect-create-operation.ts
23145
- import { ulid as ulid89 } from "ulid";
23080
+ import { ulid as ulid87 } from "ulid";
23146
23081
  async function createMedicinalProductUndesirableEffectOperation(params) {
23147
23082
  const { context, body, tableName } = params;
23148
23083
  const { tenantId, workspaceId, date, actorId, actorName } = context;
23149
- const id = body.id ?? ulid89();
23084
+ const id = body.id ?? ulid87();
23150
23085
  const meta = {
23151
23086
  ...body.meta ?? {},
23152
23087
  lastUpdated: date,
@@ -23370,11 +23305,11 @@ router96.delete("/:id", deleteMedicinalProductUndesirableEffectRoute);
23370
23305
  import express97 from "express";
23371
23306
 
23372
23307
  // src/data/operations/data/messagedefinition/messagedefinition-create-operation.ts
23373
- import { ulid as ulid90 } from "ulid";
23308
+ import { ulid as ulid88 } from "ulid";
23374
23309
  async function createMessageDefinitionOperation(params) {
23375
23310
  const { context, body, tableName } = params;
23376
23311
  const { tenantId, workspaceId, date, actorId, actorName } = context;
23377
- const id = body.id ?? ulid90();
23312
+ const id = body.id ?? ulid88();
23378
23313
  const meta = {
23379
23314
  ...body.meta ?? {},
23380
23315
  lastUpdated: date,
@@ -23573,11 +23508,11 @@ router97.delete("/:id", deleteMessageDefinitionRoute);
23573
23508
  import express98 from "express";
23574
23509
 
23575
23510
  // src/data/operations/data/messageheader/messageheader-create-operation.ts
23576
- import { ulid as ulid91 } from "ulid";
23511
+ import { ulid as ulid89 } from "ulid";
23577
23512
  async function createMessageHeaderOperation(params) {
23578
23513
  const { context, body, tableName } = params;
23579
23514
  const { tenantId, workspaceId, date, actorId, actorName } = context;
23580
- const id = body.id ?? ulid91();
23515
+ const id = body.id ?? ulid89();
23581
23516
  const meta = {
23582
23517
  ...body.meta ?? {},
23583
23518
  lastUpdated: date,
@@ -23773,11 +23708,11 @@ router98.delete("/:id", deleteMessageHeaderRoute);
23773
23708
  import express99 from "express";
23774
23709
 
23775
23710
  // src/data/operations/data/molecularsequence/molecularsequence-create-operation.ts
23776
- import { ulid as ulid92 } from "ulid";
23711
+ import { ulid as ulid90 } from "ulid";
23777
23712
  async function createMolecularSequenceOperation(params) {
23778
23713
  const { context, body, tableName } = params;
23779
23714
  const { tenantId, workspaceId, date, actorId, actorName } = context;
23780
- const id = body.id ?? ulid92();
23715
+ const id = body.id ?? ulid90();
23781
23716
  const meta = {
23782
23717
  ...body.meta ?? {},
23783
23718
  lastUpdated: date,
@@ -23976,11 +23911,11 @@ router99.delete("/:id", deleteMolecularSequenceRoute);
23976
23911
  import express100 from "express";
23977
23912
 
23978
23913
  // src/data/operations/data/namingsystem/namingsystem-create-operation.ts
23979
- import { ulid as ulid93 } from "ulid";
23914
+ import { ulid as ulid91 } from "ulid";
23980
23915
  async function createNamingSystemOperation(params) {
23981
23916
  const { context, body, tableName } = params;
23982
23917
  const { tenantId, workspaceId, date, actorId, actorName } = context;
23983
- const id = body.id ?? ulid93();
23918
+ const id = body.id ?? ulid91();
23984
23919
  const meta = {
23985
23920
  ...body.meta ?? {},
23986
23921
  lastUpdated: date,
@@ -24176,11 +24111,11 @@ router100.delete("/:id", deleteNamingSystemRoute);
24176
24111
  import express101 from "express";
24177
24112
 
24178
24113
  // src/data/operations/data/nutritionorder/nutritionorder-create-operation.ts
24179
- import { ulid as ulid94 } from "ulid";
24114
+ import { ulid as ulid92 } from "ulid";
24180
24115
  async function createNutritionOrderOperation(params) {
24181
24116
  const { context, body, tableName } = params;
24182
24117
  const { tenantId, workspaceId, date, actorId, actorName } = context;
24183
- const id = body.id ?? ulid94();
24118
+ const id = body.id ?? ulid92();
24184
24119
  const meta = {
24185
24120
  ...body.meta ?? {},
24186
24121
  lastUpdated: date,
@@ -24375,41 +24310,6 @@ router101.delete("/:id", deleteNutritionOrderRoute);
24375
24310
  // src/data/rest-api/routes/data/observation/observation.ts
24376
24311
  import express102 from "express";
24377
24312
 
24378
- // src/data/operations/data/observation/observation-create-operation.ts
24379
- import { ulid as ulid95 } from "ulid";
24380
- async function createObservationOperation(params) {
24381
- const { context, body, tableName } = params;
24382
- const { tenantId, workspaceId, date, actorId, actorName } = context;
24383
- const id = body.id ?? ulid95();
24384
- const meta = {
24385
- ...body.meta ?? {},
24386
- lastUpdated: date,
24387
- versionId: "1"
24388
- };
24389
- const resourceWithAudit = {
24390
- ...body,
24391
- resourceType: "Observation",
24392
- id,
24393
- meta: mergeAuditIntoMeta(meta, {
24394
- createdDate: date,
24395
- createdById: actorId,
24396
- createdByName: actorName,
24397
- modifiedDate: date,
24398
- modifiedById: actorId,
24399
- modifiedByName: actorName
24400
- })
24401
- };
24402
- const service = getDynamoDataService(tableName);
24403
- return createDataEntityRecord(
24404
- service.entities.observation,
24405
- tenantId,
24406
- workspaceId,
24407
- id,
24408
- resourceWithAudit,
24409
- date
24410
- );
24411
- }
24412
-
24413
24313
  // src/data/rest-api/routes/data/observation/observation-create-route.ts
24414
24314
  async function createObservationRoute(req, res) {
24415
24315
  const bodyResult = requireJsonBodyAs(req, res);
@@ -24576,11 +24476,11 @@ router102.delete("/:id", deleteObservationRoute);
24576
24476
  import express103 from "express";
24577
24477
 
24578
24478
  // src/data/operations/data/observationdefinition/observationdefinition-create-operation.ts
24579
- import { ulid as ulid96 } from "ulid";
24479
+ import { ulid as ulid93 } from "ulid";
24580
24480
  async function createObservationDefinitionOperation(params) {
24581
24481
  const { context, body, tableName } = params;
24582
24482
  const { tenantId, workspaceId, date, actorId, actorName } = context;
24583
- const id = body.id ?? ulid96();
24483
+ const id = body.id ?? ulid93();
24584
24484
  const meta = {
24585
24485
  ...body.meta ?? {},
24586
24486
  lastUpdated: date,
@@ -24795,11 +24695,11 @@ router103.delete("/:id", deleteObservationDefinitionRoute);
24795
24695
  import express104 from "express";
24796
24696
 
24797
24697
  // src/data/operations/data/operationdefinition/operationdefinition-create-operation.ts
24798
- import { ulid as ulid97 } from "ulid";
24698
+ import { ulid as ulid94 } from "ulid";
24799
24699
  async function createOperationDefinitionOperation(params) {
24800
24700
  const { context, body, tableName } = params;
24801
24701
  const { tenantId, workspaceId, date, actorId, actorName } = context;
24802
- const id = body.id ?? ulid97();
24702
+ const id = body.id ?? ulid94();
24803
24703
  const meta = {
24804
24704
  ...body.meta ?? {},
24805
24705
  lastUpdated: date,
@@ -25002,11 +24902,11 @@ router104.delete("/:id", deleteOperationDefinitionRoute);
25002
24902
  import express105 from "express";
25003
24903
 
25004
24904
  // src/data/operations/data/organization/organization-create-operation.ts
25005
- import { ulid as ulid98 } from "ulid";
24905
+ import { ulid as ulid95 } from "ulid";
25006
24906
  async function createOrganizationOperation(params) {
25007
24907
  const { context, body, tableName } = params;
25008
24908
  const { tenantId, workspaceId, date, actorId, actorName } = context;
25009
- const id = body.id ?? ulid98();
24909
+ const id = body.id ?? ulid95();
25010
24910
  const meta = {
25011
24911
  ...body.meta ?? {},
25012
24912
  lastUpdated: date,
@@ -25175,11 +25075,11 @@ router105.delete("/:id", deleteOrganizationRoute);
25175
25075
  import express106 from "express";
25176
25076
 
25177
25077
  // src/data/operations/data/organizationaffiliation/organizationaffiliation-create-operation.ts
25178
- import { ulid as ulid99 } from "ulid";
25078
+ import { ulid as ulid96 } from "ulid";
25179
25079
  async function createOrganizationAffiliationOperation(params) {
25180
25080
  const { context, body, tableName } = params;
25181
25081
  const { tenantId, workspaceId, date, actorId, actorName } = context;
25182
- const id = body.id ?? ulid99();
25082
+ const id = body.id ?? ulid96();
25183
25083
  const meta = {
25184
25084
  ...body.meta ?? {},
25185
25085
  lastUpdated: date,
@@ -25393,41 +25293,6 @@ router106.delete("/:id", deleteOrganizationAffiliationRoute);
25393
25293
  // src/data/rest-api/routes/data/patient/patient.ts
25394
25294
  import express107 from "express";
25395
25295
 
25396
- // src/data/operations/data/patient/patient-create-operation.ts
25397
- import { ulid as ulid100 } from "ulid";
25398
- async function createPatientOperation(params) {
25399
- const { context, body, tableName } = params;
25400
- const { tenantId, workspaceId, date, actorId, actorName } = context;
25401
- const id = body.id ?? ulid100();
25402
- const meta = {
25403
- ...body.meta ?? {},
25404
- lastUpdated: date,
25405
- versionId: "1"
25406
- };
25407
- const patientWithAudit = {
25408
- ...body,
25409
- resourceType: "Patient",
25410
- id,
25411
- meta: mergeAuditIntoMeta(meta, {
25412
- createdDate: date,
25413
- createdById: actorId,
25414
- createdByName: actorName,
25415
- modifiedDate: date,
25416
- modifiedById: actorId,
25417
- modifiedByName: actorName
25418
- })
25419
- };
25420
- const service = getDynamoDataService(tableName);
25421
- return createDataEntityRecord(
25422
- service.entities.patient,
25423
- tenantId,
25424
- workspaceId,
25425
- id,
25426
- patientWithAudit,
25427
- date
25428
- );
25429
- }
25430
-
25431
25296
  // src/data/rest-api/routes/data/patient/patient-create-route.ts
25432
25297
  async function createPatientRoute(req, res) {
25433
25298
  const bodyResult = requireJsonBodyAs(req, res);
@@ -25677,11 +25542,11 @@ router107.delete("/:id", deletePatientRoute);
25677
25542
  import express108 from "express";
25678
25543
 
25679
25544
  // src/data/operations/data/paymentnotice/paymentnotice-create-operation.ts
25680
- import { ulid as ulid101 } from "ulid";
25545
+ import { ulid as ulid97 } from "ulid";
25681
25546
  async function createPaymentNoticeOperation(params) {
25682
25547
  const { context, body, tableName } = params;
25683
25548
  const { tenantId, workspaceId, date, actorId, actorName } = context;
25684
- const id = body.id ?? ulid101();
25549
+ const id = body.id ?? ulid97();
25685
25550
  const meta = {
25686
25551
  ...body.meta ?? {},
25687
25552
  lastUpdated: date,
@@ -25877,11 +25742,11 @@ router108.delete("/:id", deletePaymentNoticeRoute);
25877
25742
  import express109 from "express";
25878
25743
 
25879
25744
  // src/data/operations/data/paymentreconciliation/paymentreconciliation-create-operation.ts
25880
- import { ulid as ulid102 } from "ulid";
25745
+ import { ulid as ulid98 } from "ulid";
25881
25746
  async function createPaymentReconciliationOperation(params) {
25882
25747
  const { context, body, tableName } = params;
25883
25748
  const { tenantId, workspaceId, date, actorId, actorName } = context;
25884
- const id = body.id ?? ulid102();
25749
+ const id = body.id ?? ulid98();
25885
25750
  const meta = {
25886
25751
  ...body.meta ?? {},
25887
25752
  lastUpdated: date,
@@ -26096,11 +25961,11 @@ router109.delete("/:id", deletePaymentReconciliationRoute);
26096
25961
  import express110 from "express";
26097
25962
 
26098
25963
  // src/data/operations/data/person/person-create-operation.ts
26099
- import { ulid as ulid103 } from "ulid";
25964
+ import { ulid as ulid99 } from "ulid";
26100
25965
  async function createPersonOperation(params) {
26101
25966
  const { context, body, tableName } = params;
26102
25967
  const { tenantId, workspaceId, date, actorId, actorName } = context;
26103
- const id = body.id ?? ulid103();
25968
+ const id = body.id ?? ulid99();
26104
25969
  const meta = {
26105
25970
  ...body.meta ?? {},
26106
25971
  lastUpdated: date,
@@ -26296,11 +26161,11 @@ router110.delete("/:id", deletePersonRoute);
26296
26161
  import express111 from "express";
26297
26162
 
26298
26163
  // src/data/operations/data/plandefinition/plandefinition-create-operation.ts
26299
- import { ulid as ulid104 } from "ulid";
26164
+ import { ulid as ulid100 } from "ulid";
26300
26165
  async function createPlanDefinitionOperation(params) {
26301
26166
  const { context, body, tableName } = params;
26302
26167
  const { tenantId, workspaceId, date, actorId, actorName } = context;
26303
- const id = body.id ?? ulid104();
26168
+ const id = body.id ?? ulid100();
26304
26169
  const meta = {
26305
26170
  ...body.meta ?? {},
26306
26171
  lastUpdated: date,
@@ -26495,41 +26360,6 @@ router111.delete("/:id", deletePlanDefinitionRoute);
26495
26360
  // src/data/rest-api/routes/data/practitioner/practitioner.ts
26496
26361
  import express112 from "express";
26497
26362
 
26498
- // src/data/operations/data/practitioner/practitioner-create-operation.ts
26499
- import { ulid as ulid105 } from "ulid";
26500
- async function createPractitionerOperation(params) {
26501
- const { context, body, tableName } = params;
26502
- const { tenantId, workspaceId, date, actorId, actorName } = context;
26503
- const id = body.id ?? ulid105();
26504
- const meta = {
26505
- ...body.meta ?? {},
26506
- lastUpdated: date,
26507
- versionId: "1"
26508
- };
26509
- const practitionerWithAudit = {
26510
- ...body,
26511
- resourceType: "Practitioner",
26512
- id,
26513
- meta: mergeAuditIntoMeta(meta, {
26514
- createdDate: date,
26515
- createdById: actorId,
26516
- createdByName: actorName,
26517
- modifiedDate: date,
26518
- modifiedById: actorId,
26519
- modifiedByName: actorName
26520
- })
26521
- };
26522
- const service = getDynamoDataService(tableName);
26523
- return createDataEntityRecord(
26524
- service.entities.practitioner,
26525
- tenantId,
26526
- workspaceId,
26527
- id,
26528
- practitionerWithAudit,
26529
- date
26530
- );
26531
- }
26532
-
26533
26363
  // src/data/rest-api/routes/data/practitioner/practitioner-create-route.ts
26534
26364
  async function createPractitionerRoute(req, res) {
26535
26365
  const bodyResult = requireJsonBodyAs(req, res);
@@ -26840,11 +26670,11 @@ router113.delete("/:id", deletePractitionerRoleRoute);
26840
26670
  import express114 from "express";
26841
26671
 
26842
26672
  // src/data/operations/data/procedure/procedure-create-operation.ts
26843
- import { ulid as ulid106 } from "ulid";
26673
+ import { ulid as ulid101 } from "ulid";
26844
26674
  async function createProcedureOperation(params) {
26845
26675
  const { context, body, tableName } = params;
26846
26676
  const { tenantId, workspaceId, date, actorId, actorName } = context;
26847
- const id = body.id ?? ulid106();
26677
+ const id = body.id ?? ulid101();
26848
26678
  const meta = {
26849
26679
  ...body.meta ?? {},
26850
26680
  lastUpdated: date,
@@ -27040,11 +26870,11 @@ router114.delete("/:id", deleteProcedureRoute);
27040
26870
  import express115 from "express";
27041
26871
 
27042
26872
  // src/data/operations/data/provenance/provenance-create-operation.ts
27043
- import { ulid as ulid107 } from "ulid";
26873
+ import { ulid as ulid102 } from "ulid";
27044
26874
  async function createProvenanceOperation(params) {
27045
26875
  const { context, body, tableName } = params;
27046
26876
  const { tenantId, workspaceId, date, actorId, actorName } = context;
27047
- const id = body.id ?? ulid107();
26877
+ const id = body.id ?? ulid102();
27048
26878
  const meta = {
27049
26879
  ...body.meta ?? {},
27050
26880
  lastUpdated: date,
@@ -27240,11 +27070,11 @@ router115.delete("/:id", deleteProvenanceRoute);
27240
27070
  import express116 from "express";
27241
27071
 
27242
27072
  // src/data/operations/data/questionnaire/questionnaire-create-operation.ts
27243
- import { ulid as ulid108 } from "ulid";
27073
+ import { ulid as ulid103 } from "ulid";
27244
27074
  async function createQuestionnaireOperation(params) {
27245
27075
  const { context, body, tableName } = params;
27246
27076
  const { tenantId, workspaceId, date, actorId, actorName } = context;
27247
- const id = body.id ?? ulid108();
27077
+ const id = body.id ?? ulid103();
27248
27078
  const meta = {
27249
27079
  ...body.meta ?? {},
27250
27080
  lastUpdated: date,
@@ -27440,11 +27270,11 @@ router116.delete("/:id", deleteQuestionnaireRoute);
27440
27270
  import express117 from "express";
27441
27271
 
27442
27272
  // src/data/operations/data/questionnaireresponse/questionnaireresponse-create-operation.ts
27443
- import { ulid as ulid109 } from "ulid";
27273
+ import { ulid as ulid104 } from "ulid";
27444
27274
  async function createQuestionnaireResponseOperation(params) {
27445
27275
  const { context, body, tableName } = params;
27446
27276
  const { tenantId, workspaceId, date, actorId, actorName } = context;
27447
- const id = body.id ?? ulid109();
27277
+ const id = body.id ?? ulid104();
27448
27278
  const meta = {
27449
27279
  ...body.meta ?? {},
27450
27280
  lastUpdated: date,
@@ -27659,11 +27489,11 @@ router117.delete("/:id", deleteQuestionnaireResponseRoute);
27659
27489
  import express118 from "express";
27660
27490
 
27661
27491
  // src/data/operations/data/relatedperson/relatedperson-create-operation.ts
27662
- import { ulid as ulid110 } from "ulid";
27492
+ import { ulid as ulid105 } from "ulid";
27663
27493
  async function createRelatedPersonOperation(params) {
27664
27494
  const { context, body, tableName } = params;
27665
27495
  const { tenantId, workspaceId, date, actorId, actorName } = context;
27666
- const id = body.id ?? ulid110();
27496
+ const id = body.id ?? ulid105();
27667
27497
  const meta = {
27668
27498
  ...body.meta ?? {},
27669
27499
  lastUpdated: date,
@@ -27859,11 +27689,11 @@ router118.delete("/:id", deleteRelatedPersonRoute);
27859
27689
  import express119 from "express";
27860
27690
 
27861
27691
  // src/data/operations/data/requestgroup/requestgroup-create-operation.ts
27862
- import { ulid as ulid111 } from "ulid";
27692
+ import { ulid as ulid106 } from "ulid";
27863
27693
  async function createRequestGroupOperation(params) {
27864
27694
  const { context, body, tableName } = params;
27865
27695
  const { tenantId, workspaceId, date, actorId, actorName } = context;
27866
- const id = body.id ?? ulid111();
27696
+ const id = body.id ?? ulid106();
27867
27697
  const meta = {
27868
27698
  ...body.meta ?? {},
27869
27699
  lastUpdated: date,
@@ -28059,11 +27889,11 @@ router119.delete("/:id", deleteRequestGroupRoute);
28059
27889
  import express120 from "express";
28060
27890
 
28061
27891
  // src/data/operations/data/researchdefinition/researchdefinition-create-operation.ts
28062
- import { ulid as ulid112 } from "ulid";
27892
+ import { ulid as ulid107 } from "ulid";
28063
27893
  async function createResearchDefinitionOperation(params) {
28064
27894
  const { context, body, tableName } = params;
28065
27895
  const { tenantId, workspaceId, date, actorId, actorName } = context;
28066
- const id = body.id ?? ulid112();
27896
+ const id = body.id ?? ulid107();
28067
27897
  const meta = {
28068
27898
  ...body.meta ?? {},
28069
27899
  lastUpdated: date,
@@ -28266,11 +28096,11 @@ router120.delete("/:id", deleteResearchDefinitionRoute);
28266
28096
  import express121 from "express";
28267
28097
 
28268
28098
  // src/data/operations/data/researchelementdefinition/researchelementdefinition-create-operation.ts
28269
- import { ulid as ulid113 } from "ulid";
28099
+ import { ulid as ulid108 } from "ulid";
28270
28100
  async function createResearchElementDefinitionOperation(params) {
28271
28101
  const { context, body, tableName } = params;
28272
28102
  const { tenantId, workspaceId, date, actorId, actorName } = context;
28273
- const id = body.id ?? ulid113();
28103
+ const id = body.id ?? ulid108();
28274
28104
  const meta = {
28275
28105
  ...body.meta ?? {},
28276
28106
  lastUpdated: date,
@@ -28485,11 +28315,11 @@ router121.delete("/:id", deleteResearchElementDefinitionRoute);
28485
28315
  import express122 from "express";
28486
28316
 
28487
28317
  // src/data/operations/data/researchstudy/researchstudy-create-operation.ts
28488
- import { ulid as ulid114 } from "ulid";
28318
+ import { ulid as ulid109 } from "ulid";
28489
28319
  async function createResearchStudyOperation(params) {
28490
28320
  const { context, body, tableName } = params;
28491
28321
  const { tenantId, workspaceId, date, actorId, actorName } = context;
28492
- const id = body.id ?? ulid114();
28322
+ const id = body.id ?? ulid109();
28493
28323
  const meta = {
28494
28324
  ...body.meta ?? {},
28495
28325
  lastUpdated: date,
@@ -28685,11 +28515,11 @@ router122.delete("/:id", deleteResearchStudyRoute);
28685
28515
  import express123 from "express";
28686
28516
 
28687
28517
  // src/data/operations/data/researchsubject/researchsubject-create-operation.ts
28688
- import { ulid as ulid115 } from "ulid";
28518
+ import { ulid as ulid110 } from "ulid";
28689
28519
  async function createResearchSubjectOperation(params) {
28690
28520
  const { context, body, tableName } = params;
28691
28521
  const { tenantId, workspaceId, date, actorId, actorName } = context;
28692
- const id = body.id ?? ulid115();
28522
+ const id = body.id ?? ulid110();
28693
28523
  const meta = {
28694
28524
  ...body.meta ?? {},
28695
28525
  lastUpdated: date,
@@ -28885,11 +28715,11 @@ router123.delete("/:id", deleteResearchSubjectRoute);
28885
28715
  import express124 from "express";
28886
28716
 
28887
28717
  // src/data/operations/data/riskassessment/riskassessment-create-operation.ts
28888
- import { ulid as ulid116 } from "ulid";
28718
+ import { ulid as ulid111 } from "ulid";
28889
28719
  async function createRiskAssessmentOperation(params) {
28890
28720
  const { context, body, tableName } = params;
28891
28721
  const { tenantId, workspaceId, date, actorId, actorName } = context;
28892
- const id = body.id ?? ulid116();
28722
+ const id = body.id ?? ulid111();
28893
28723
  const meta = {
28894
28724
  ...body.meta ?? {},
28895
28725
  lastUpdated: date,
@@ -29085,11 +28915,11 @@ router124.delete("/:id", deleteRiskAssessmentRoute);
29085
28915
  import express125 from "express";
29086
28916
 
29087
28917
  // src/data/operations/data/riskevidencesynthesis/riskevidencesynthesis-create-operation.ts
29088
- import { ulid as ulid117 } from "ulid";
28918
+ import { ulid as ulid112 } from "ulid";
29089
28919
  async function createRiskEvidenceSynthesisOperation(params) {
29090
28920
  const { context, body, tableName } = params;
29091
28921
  const { tenantId, workspaceId, date, actorId, actorName } = context;
29092
- const id = body.id ?? ulid117();
28922
+ const id = body.id ?? ulid112();
29093
28923
  const meta = {
29094
28924
  ...body.meta ?? {},
29095
28925
  lastUpdated: date,
@@ -29304,11 +29134,11 @@ router125.delete("/:id", deleteRiskEvidenceSynthesisRoute);
29304
29134
  import express126 from "express";
29305
29135
 
29306
29136
  // src/data/operations/data/schedule/schedule-create-operation.ts
29307
- import { ulid as ulid118 } from "ulid";
29137
+ import { ulid as ulid113 } from "ulid";
29308
29138
  async function createScheduleOperation(params) {
29309
29139
  const { context, body, tableName } = params;
29310
29140
  const { tenantId, workspaceId, date, actorId, actorName } = context;
29311
- const id = body.id ?? ulid118();
29141
+ const id = body.id ?? ulid113();
29312
29142
  const meta = {
29313
29143
  ...body.meta ?? {},
29314
29144
  lastUpdated: date,
@@ -29586,11 +29416,11 @@ router126.delete("/:id", deleteScheduleRoute);
29586
29416
  import express127 from "express";
29587
29417
 
29588
29418
  // src/data/operations/data/searchparameter/searchparameter-create-operation.ts
29589
- import { ulid as ulid119 } from "ulid";
29419
+ import { ulid as ulid114 } from "ulid";
29590
29420
  async function createSearchParameterOperation(params) {
29591
29421
  const { context, body, tableName } = params;
29592
29422
  const { tenantId, workspaceId, date, actorId, actorName } = context;
29593
- const id = body.id ?? ulid119();
29423
+ const id = body.id ?? ulid114();
29594
29424
  const meta = {
29595
29425
  ...body.meta ?? {},
29596
29426
  lastUpdated: date,
@@ -29786,11 +29616,11 @@ router127.delete("/:id", deleteSearchParameterRoute);
29786
29616
  import express128 from "express";
29787
29617
 
29788
29618
  // src/data/operations/data/servicerequest/servicerequest-create-operation.ts
29789
- import { ulid as ulid120 } from "ulid";
29619
+ import { ulid as ulid115 } from "ulid";
29790
29620
  async function createServiceRequestOperation(params) {
29791
29621
  const { context, body, tableName } = params;
29792
29622
  const { tenantId, workspaceId, date, actorId, actorName } = context;
29793
- const id = body.id ?? ulid120();
29623
+ const id = body.id ?? ulid115();
29794
29624
  const meta = {
29795
29625
  ...body.meta ?? {},
29796
29626
  lastUpdated: date,
@@ -29986,11 +29816,11 @@ router128.delete("/:id", deleteServiceRequestRoute);
29986
29816
  import express129 from "express";
29987
29817
 
29988
29818
  // src/data/operations/data/slot/slot-create-operation.ts
29989
- import { ulid as ulid121 } from "ulid";
29819
+ import { ulid as ulid116 } from "ulid";
29990
29820
  async function createSlotOperation(params) {
29991
29821
  const { context, body, tableName } = params;
29992
29822
  const { tenantId, workspaceId, date, actorId, actorName } = context;
29993
- const id = body.id ?? ulid121();
29823
+ const id = body.id ?? ulid116();
29994
29824
  const meta = {
29995
29825
  ...body.meta ?? {},
29996
29826
  lastUpdated: date,
@@ -30186,11 +30016,11 @@ router129.delete("/:id", deleteSlotRoute);
30186
30016
  import express130 from "express";
30187
30017
 
30188
30018
  // src/data/operations/data/specimen/specimen-create-operation.ts
30189
- import { ulid as ulid122 } from "ulid";
30019
+ import { ulid as ulid117 } from "ulid";
30190
30020
  async function createSpecimenOperation(params) {
30191
30021
  const { context, body, tableName } = params;
30192
30022
  const { tenantId, workspaceId, date, actorId, actorName } = context;
30193
- const id = body.id ?? ulid122();
30023
+ const id = body.id ?? ulid117();
30194
30024
  const meta = {
30195
30025
  ...body.meta ?? {},
30196
30026
  lastUpdated: date,
@@ -30386,11 +30216,11 @@ router130.delete("/:id", deleteSpecimenRoute);
30386
30216
  import express131 from "express";
30387
30217
 
30388
30218
  // src/data/operations/data/specimendefinition/specimendefinition-create-operation.ts
30389
- import { ulid as ulid123 } from "ulid";
30219
+ import { ulid as ulid118 } from "ulid";
30390
30220
  async function createSpecimenDefinitionOperation(params) {
30391
30221
  const { context, body, tableName } = params;
30392
30222
  const { tenantId, workspaceId, date, actorId, actorName } = context;
30393
- const id = body.id ?? ulid123();
30223
+ const id = body.id ?? ulid118();
30394
30224
  const meta = {
30395
30225
  ...body.meta ?? {},
30396
30226
  lastUpdated: date,
@@ -30593,11 +30423,11 @@ router131.delete("/:id", deleteSpecimenDefinitionRoute);
30593
30423
  import express132 from "express";
30594
30424
 
30595
30425
  // src/data/operations/data/structuredefinition/structuredefinition-create-operation.ts
30596
- import { ulid as ulid124 } from "ulid";
30426
+ import { ulid as ulid119 } from "ulid";
30597
30427
  async function createStructureDefinitionOperation(params) {
30598
30428
  const { context, body, tableName } = params;
30599
30429
  const { tenantId, workspaceId, date, actorId, actorName } = context;
30600
- const id = body.id ?? ulid124();
30430
+ const id = body.id ?? ulid119();
30601
30431
  const meta = {
30602
30432
  ...body.meta ?? {},
30603
30433
  lastUpdated: date,
@@ -30800,11 +30630,11 @@ router132.delete("/:id", deleteStructureDefinitionRoute);
30800
30630
  import express133 from "express";
30801
30631
 
30802
30632
  // src/data/operations/data/structuremap/structuremap-create-operation.ts
30803
- import { ulid as ulid125 } from "ulid";
30633
+ import { ulid as ulid120 } from "ulid";
30804
30634
  async function createStructureMapOperation(params) {
30805
30635
  const { context, body, tableName } = params;
30806
30636
  const { tenantId, workspaceId, date, actorId, actorName } = context;
30807
- const id = body.id ?? ulid125();
30637
+ const id = body.id ?? ulid120();
30808
30638
  const meta = {
30809
30639
  ...body.meta ?? {},
30810
30640
  lastUpdated: date,
@@ -31000,11 +30830,11 @@ router133.delete("/:id", deleteStructureMapRoute);
31000
30830
  import express134 from "express";
31001
30831
 
31002
30832
  // src/data/operations/data/subscription/subscription-create-operation.ts
31003
- import { ulid as ulid126 } from "ulid";
30833
+ import { ulid as ulid121 } from "ulid";
31004
30834
  async function createSubscriptionOperation(params) {
31005
30835
  const { context, body, tableName } = params;
31006
30836
  const { tenantId, workspaceId, date, actorId, actorName } = context;
31007
- const id = body.id ?? ulid126();
30837
+ const id = body.id ?? ulid121();
31008
30838
  const meta = {
31009
30839
  ...body.meta ?? {},
31010
30840
  lastUpdated: date,
@@ -31200,11 +31030,11 @@ router134.delete("/:id", deleteSubscriptionRoute);
31200
31030
  import express135 from "express";
31201
31031
 
31202
31032
  // src/data/operations/data/substance/substance-create-operation.ts
31203
- import { ulid as ulid127 } from "ulid";
31033
+ import { ulid as ulid122 } from "ulid";
31204
31034
  async function createSubstanceOperation(params) {
31205
31035
  const { context, body, tableName } = params;
31206
31036
  const { tenantId, workspaceId, date, actorId, actorName } = context;
31207
- const id = body.id ?? ulid127();
31037
+ const id = body.id ?? ulid122();
31208
31038
  const meta = {
31209
31039
  ...body.meta ?? {},
31210
31040
  lastUpdated: date,
@@ -31400,11 +31230,11 @@ router135.delete("/:id", deleteSubstanceRoute);
31400
31230
  import express136 from "express";
31401
31231
 
31402
31232
  // src/data/operations/data/substancenucleicacid/substancenucleicacid-create-operation.ts
31403
- import { ulid as ulid128 } from "ulid";
31233
+ import { ulid as ulid123 } from "ulid";
31404
31234
  async function createSubstanceNucleicAcidOperation(params) {
31405
31235
  const { context, body, tableName } = params;
31406
31236
  const { tenantId, workspaceId, date, actorId, actorName } = context;
31407
- const id = body.id ?? ulid128();
31237
+ const id = body.id ?? ulid123();
31408
31238
  const meta = {
31409
31239
  ...body.meta ?? {},
31410
31240
  lastUpdated: date,
@@ -31611,11 +31441,11 @@ router136.delete("/:id", deleteSubstanceNucleicAcidRoute);
31611
31441
  import express137 from "express";
31612
31442
 
31613
31443
  // src/data/operations/data/substancepolymer/substancepolymer-create-operation.ts
31614
- import { ulid as ulid129 } from "ulid";
31444
+ import { ulid as ulid124 } from "ulid";
31615
31445
  async function createSubstancePolymerOperation(params) {
31616
31446
  const { context, body, tableName } = params;
31617
31447
  const { tenantId, workspaceId, date, actorId, actorName } = context;
31618
- const id = body.id ?? ulid129();
31448
+ const id = body.id ?? ulid124();
31619
31449
  const meta = {
31620
31450
  ...body.meta ?? {},
31621
31451
  lastUpdated: date,
@@ -31811,11 +31641,11 @@ router137.delete("/:id", deleteSubstancePolymerRoute);
31811
31641
  import express138 from "express";
31812
31642
 
31813
31643
  // src/data/operations/data/substanceprotein/substanceprotein-create-operation.ts
31814
- import { ulid as ulid130 } from "ulid";
31644
+ import { ulid as ulid125 } from "ulid";
31815
31645
  async function createSubstanceProteinOperation(params) {
31816
31646
  const { context, body, tableName } = params;
31817
31647
  const { tenantId, workspaceId, date, actorId, actorName } = context;
31818
- const id = body.id ?? ulid130();
31648
+ const id = body.id ?? ulid125();
31819
31649
  const meta = {
31820
31650
  ...body.meta ?? {},
31821
31651
  lastUpdated: date,
@@ -32011,11 +31841,11 @@ router138.delete("/:id", deleteSubstanceProteinRoute);
32011
31841
  import express139 from "express";
32012
31842
 
32013
31843
  // src/data/operations/data/substancereferenceinformation/substancereferenceinformation-create-operation.ts
32014
- import { ulid as ulid131 } from "ulid";
31844
+ import { ulid as ulid126 } from "ulid";
32015
31845
  async function createSubstanceReferenceInformationOperation(params) {
32016
31846
  const { context, body, tableName } = params;
32017
31847
  const { tenantId, workspaceId, date, actorId, actorName } = context;
32018
- const id = body.id ?? ulid131();
31848
+ const id = body.id ?? ulid126();
32019
31849
  const meta = {
32020
31850
  ...body.meta ?? {},
32021
31851
  lastUpdated: date,
@@ -32230,11 +32060,11 @@ router139.delete("/:id", deleteSubstanceReferenceInformationRoute);
32230
32060
  import express140 from "express";
32231
32061
 
32232
32062
  // src/data/operations/data/substancesourcematerial/substancesourcematerial-create-operation.ts
32233
- import { ulid as ulid132 } from "ulid";
32063
+ import { ulid as ulid127 } from "ulid";
32234
32064
  async function createSubstanceSourceMaterialOperation(params) {
32235
32065
  const { context, body, tableName } = params;
32236
32066
  const { tenantId, workspaceId, date, actorId, actorName } = context;
32237
- const id = body.id ?? ulid132();
32067
+ const id = body.id ?? ulid127();
32238
32068
  const meta = {
32239
32069
  ...body.meta ?? {},
32240
32070
  lastUpdated: date,
@@ -32449,11 +32279,11 @@ router140.delete("/:id", deleteSubstanceSourceMaterialRoute);
32449
32279
  import express141 from "express";
32450
32280
 
32451
32281
  // src/data/operations/data/substancespecification/substancespecification-create-operation.ts
32452
- import { ulid as ulid133 } from "ulid";
32282
+ import { ulid as ulid128 } from "ulid";
32453
32283
  async function createSubstanceSpecificationOperation(params) {
32454
32284
  const { context, body, tableName } = params;
32455
32285
  const { tenantId, workspaceId, date, actorId, actorName } = context;
32456
- const id = body.id ?? ulid133();
32286
+ const id = body.id ?? ulid128();
32457
32287
  const meta = {
32458
32288
  ...body.meta ?? {},
32459
32289
  lastUpdated: date,
@@ -32668,11 +32498,11 @@ router141.delete("/:id", deleteSubstanceSpecificationRoute);
32668
32498
  import express142 from "express";
32669
32499
 
32670
32500
  // src/data/operations/data/supplydelivery/supplydelivery-create-operation.ts
32671
- import { ulid as ulid134 } from "ulid";
32501
+ import { ulid as ulid129 } from "ulid";
32672
32502
  async function createSupplyDeliveryOperation(params) {
32673
32503
  const { context, body, tableName } = params;
32674
32504
  const { tenantId, workspaceId, date, actorId, actorName } = context;
32675
- const id = body.id ?? ulid134();
32505
+ const id = body.id ?? ulid129();
32676
32506
  const meta = {
32677
32507
  ...body.meta ?? {},
32678
32508
  lastUpdated: date,
@@ -32868,11 +32698,11 @@ router142.delete("/:id", deleteSupplyDeliveryRoute);
32868
32698
  import express143 from "express";
32869
32699
 
32870
32700
  // src/data/operations/data/supplyrequest/supplyrequest-create-operation.ts
32871
- import { ulid as ulid135 } from "ulid";
32701
+ import { ulid as ulid130 } from "ulid";
32872
32702
  async function createSupplyRequestOperation(params) {
32873
32703
  const { context, body, tableName } = params;
32874
32704
  const { tenantId, workspaceId, date, actorId, actorName } = context;
32875
- const id = body.id ?? ulid135();
32705
+ const id = body.id ?? ulid130();
32876
32706
  const meta = {
32877
32707
  ...body.meta ?? {},
32878
32708
  lastUpdated: date,
@@ -33068,11 +32898,11 @@ router143.delete("/:id", deleteSupplyRequestRoute);
33068
32898
  import express144 from "express";
33069
32899
 
33070
32900
  // src/data/operations/data/task/task-create-operation.ts
33071
- import { ulid as ulid136 } from "ulid";
32901
+ import { ulid as ulid131 } from "ulid";
33072
32902
  async function createTaskOperation(params) {
33073
32903
  const { context, body, tableName } = params;
33074
32904
  const { tenantId, workspaceId, date, actorId, actorName } = context;
33075
- const id = body.id ?? ulid136();
32905
+ const id = body.id ?? ulid131();
33076
32906
  const meta = {
33077
32907
  ...body.meta ?? {},
33078
32908
  lastUpdated: date,
@@ -33424,11 +33254,11 @@ router144.delete("/:id", deleteTaskRoute);
33424
33254
  import express145 from "express";
33425
33255
 
33426
33256
  // src/data/operations/data/terminologycapabilities/terminologycapabilities-create-operation.ts
33427
- import { ulid as ulid137 } from "ulid";
33257
+ import { ulid as ulid132 } from "ulid";
33428
33258
  async function createTerminologyCapabilitiesOperation(params) {
33429
33259
  const { context, body, tableName } = params;
33430
33260
  const { tenantId, workspaceId, date, actorId, actorName } = context;
33431
- const id = body.id ?? ulid137();
33261
+ const id = body.id ?? ulid132();
33432
33262
  const meta = {
33433
33263
  ...body.meta ?? {},
33434
33264
  lastUpdated: date,
@@ -33643,11 +33473,11 @@ router145.delete("/:id", deleteTerminologyCapabilitiesRoute);
33643
33473
  import express146 from "express";
33644
33474
 
33645
33475
  // src/data/operations/data/testreport/testreport-create-operation.ts
33646
- import { ulid as ulid138 } from "ulid";
33476
+ import { ulid as ulid133 } from "ulid";
33647
33477
  async function createTestReportOperation(params) {
33648
33478
  const { context, body, tableName } = params;
33649
33479
  const { tenantId, workspaceId, date, actorId, actorName } = context;
33650
- const id = body.id ?? ulid138();
33480
+ const id = body.id ?? ulid133();
33651
33481
  const meta = {
33652
33482
  ...body.meta ?? {},
33653
33483
  lastUpdated: date,
@@ -33843,11 +33673,11 @@ router146.delete("/:id", deleteTestReportRoute);
33843
33673
  import express147 from "express";
33844
33674
 
33845
33675
  // src/data/operations/data/testscript/testscript-create-operation.ts
33846
- import { ulid as ulid139 } from "ulid";
33676
+ import { ulid as ulid134 } from "ulid";
33847
33677
  async function createTestScriptOperation(params) {
33848
33678
  const { context, body, tableName } = params;
33849
33679
  const { tenantId, workspaceId, date, actorId, actorName } = context;
33850
- const id = body.id ?? ulid139();
33680
+ const id = body.id ?? ulid134();
33851
33681
  const meta = {
33852
33682
  ...body.meta ?? {},
33853
33683
  lastUpdated: date,
@@ -34043,11 +33873,11 @@ router147.delete("/:id", deleteTestScriptRoute);
34043
33873
  import express148 from "express";
34044
33874
 
34045
33875
  // src/data/operations/data/valueset/valueset-create-operation.ts
34046
- import { ulid as ulid140 } from "ulid";
33876
+ import { ulid as ulid135 } from "ulid";
34047
33877
  async function createValueSetOperation(params) {
34048
33878
  const { context, body, tableName } = params;
34049
33879
  const { tenantId, workspaceId, date, actorId, actorName } = context;
34050
- const id = body.id ?? ulid140();
33880
+ const id = body.id ?? ulid135();
34051
33881
  const meta = {
34052
33882
  ...body.meta ?? {},
34053
33883
  lastUpdated: date,
@@ -34243,11 +34073,11 @@ router148.delete("/:id", deleteValueSetRoute);
34243
34073
  import express149 from "express";
34244
34074
 
34245
34075
  // src/data/operations/data/verificationresult/verificationresult-create-operation.ts
34246
- import { ulid as ulid141 } from "ulid";
34076
+ import { ulid as ulid136 } from "ulid";
34247
34077
  async function createVerificationResultOperation(params) {
34248
34078
  const { context, body, tableName } = params;
34249
34079
  const { tenantId, workspaceId, date, actorId, actorName } = context;
34250
- const id = body.id ?? ulid141();
34080
+ const id = body.id ?? ulid136();
34251
34081
  const meta = {
34252
34082
  ...body.meta ?? {},
34253
34083
  lastUpdated: date,
@@ -34450,11 +34280,11 @@ router149.delete("/:id", deleteVerificationResultRoute);
34450
34280
  import express150 from "express";
34451
34281
 
34452
34282
  // src/data/operations/data/visionprescription/visionprescription-create-operation.ts
34453
- import { ulid as ulid142 } from "ulid";
34283
+ import { ulid as ulid137 } from "ulid";
34454
34284
  async function createVisionPrescriptionOperation(params) {
34455
34285
  const { context, body, tableName } = params;
34456
34286
  const { tenantId, workspaceId, date, actorId, actorName } = context;
34457
- const id = body.id ?? ulid142();
34287
+ const id = body.id ?? ulid137();
34458
34288
  const meta = {
34459
34289
  ...body.meta ?? {},
34460
34290
  lastUpdated: date,