@openhi/constructs 0.0.121 → 0.0.123
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.mts +169 -14
- package/lib/index.d.ts +170 -15
- package/lib/index.js +174 -38
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +174 -38
- package/lib/index.mjs.map +1 -1
- package/lib/rest-api-lambda.handler.js +1394 -1328
- package/lib/rest-api-lambda.handler.js.map +1 -1
- package/lib/rest-api-lambda.handler.mjs +1394 -1328
- package/lib/rest-api-lambda.handler.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -78,7 +78,7 @@ import serverlessExpress from "@codegenie/serverless-express";
|
|
|
78
78
|
|
|
79
79
|
// src/data/rest-api/rest-api.ts
|
|
80
80
|
import path from "path";
|
|
81
|
-
import
|
|
81
|
+
import express152 from "express";
|
|
82
82
|
|
|
83
83
|
// src/data/middleware/normalize-json-body.ts
|
|
84
84
|
function normalizeJsonBodyMiddleware(req, _res, next) {
|
|
@@ -2489,8 +2489,43 @@ router4.post("/", createRoleAssignmentRoute);
|
|
|
2489
2489
|
router4.put("/:id", updateRoleAssignmentRoute);
|
|
2490
2490
|
router4.delete("/:id", deleteRoleAssignmentRoute);
|
|
2491
2491
|
|
|
2492
|
-
// src/data/rest-api/routes/control/
|
|
2492
|
+
// src/data/rest-api/routes/control/runtime-config/runtime-config.ts
|
|
2493
2493
|
import express5 from "express";
|
|
2494
|
+
var ENV_VAR_NAMES = [
|
|
2495
|
+
"OPENHI_RUNTIME_CONFIG_COGNITO_USER_POOL_ID",
|
|
2496
|
+
"OPENHI_RUNTIME_CONFIG_COGNITO_USER_POOL_CLIENT_ID",
|
|
2497
|
+
"OPENHI_RUNTIME_CONFIG_COGNITO_DOMAIN",
|
|
2498
|
+
"OPENHI_RUNTIME_CONFIG_COGNITO_REDIRECT_URI",
|
|
2499
|
+
"OPENHI_RUNTIME_CONFIG_API_BASE_URL"
|
|
2500
|
+
];
|
|
2501
|
+
var CACHE_CONTROL_HEADER = "public, max-age=300, s-maxage=300";
|
|
2502
|
+
function runtimeConfigGetRoute(_req, res) {
|
|
2503
|
+
const missing = ENV_VAR_NAMES.filter(
|
|
2504
|
+
(name) => !isNonEmptyString(process.env[name])
|
|
2505
|
+
);
|
|
2506
|
+
if (missing.length > 0) {
|
|
2507
|
+
const message = `Missing runtime config env vars: ${missing.join(", ")}`;
|
|
2508
|
+
console.warn(`GET /control/runtime-config: ${message}`);
|
|
2509
|
+
return res.status(500).json({ error: message });
|
|
2510
|
+
}
|
|
2511
|
+
const body = {
|
|
2512
|
+
cognitoUserPoolId: process.env.OPENHI_RUNTIME_CONFIG_COGNITO_USER_POOL_ID,
|
|
2513
|
+
cognitoUserPoolClientId: process.env.OPENHI_RUNTIME_CONFIG_COGNITO_USER_POOL_CLIENT_ID,
|
|
2514
|
+
cognitoDomain: process.env.OPENHI_RUNTIME_CONFIG_COGNITO_DOMAIN,
|
|
2515
|
+
cognitoRedirectUri: process.env.OPENHI_RUNTIME_CONFIG_COGNITO_REDIRECT_URI,
|
|
2516
|
+
apiBaseUrl: process.env.OPENHI_RUNTIME_CONFIG_API_BASE_URL
|
|
2517
|
+
};
|
|
2518
|
+
res.setHeader("Cache-Control", CACHE_CONTROL_HEADER);
|
|
2519
|
+
return res.json(body);
|
|
2520
|
+
}
|
|
2521
|
+
function isNonEmptyString(value) {
|
|
2522
|
+
return typeof value === "string" && value.trim().length > 0;
|
|
2523
|
+
}
|
|
2524
|
+
var router5 = express5.Router();
|
|
2525
|
+
router5.get("/", runtimeConfigGetRoute);
|
|
2526
|
+
|
|
2527
|
+
// src/data/rest-api/routes/control/tenant/tenant.ts
|
|
2528
|
+
import express6 from "express";
|
|
2494
2529
|
|
|
2495
2530
|
// src/data/rest-api/routes/control/tenant/tenant-create-route.ts
|
|
2496
2531
|
async function createTenantRoute(req, res) {
|
|
@@ -2702,15 +2737,15 @@ async function updateTenantRoute(req, res) {
|
|
|
2702
2737
|
}
|
|
2703
2738
|
|
|
2704
2739
|
// src/data/rest-api/routes/control/tenant/tenant.ts
|
|
2705
|
-
var
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2740
|
+
var router6 = express6.Router();
|
|
2741
|
+
router6.get("/", listTenantsRoute);
|
|
2742
|
+
router6.get("/:id", getTenantByIdRoute);
|
|
2743
|
+
router6.post("/", createTenantRoute);
|
|
2744
|
+
router6.put("/:id", updateTenantRoute);
|
|
2745
|
+
router6.delete("/:id", deleteTenantRoute);
|
|
2711
2746
|
|
|
2712
2747
|
// src/data/rest-api/routes/control/user/user.ts
|
|
2713
|
-
import
|
|
2748
|
+
import express7 from "express";
|
|
2714
2749
|
|
|
2715
2750
|
// src/data/rest-api/routes/control/user/user-create-route.ts
|
|
2716
2751
|
async function createUserRoute(req, res) {
|
|
@@ -3600,18 +3635,18 @@ async function updateUserRoute(req, res) {
|
|
|
3600
3635
|
}
|
|
3601
3636
|
|
|
3602
3637
|
// src/data/rest-api/routes/control/user/user.ts
|
|
3603
|
-
var
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3638
|
+
var router7 = express7.Router();
|
|
3639
|
+
router7.get("/", listUsersRoute);
|
|
3640
|
+
router7.get("/:id", getUserByIdRoute);
|
|
3641
|
+
router7.post("/", createUserRoute);
|
|
3642
|
+
router7.put("/:id", updateUserRoute);
|
|
3643
|
+
router7.delete("/:id", deleteUserRoute);
|
|
3644
|
+
router7.get("/:id/Membership", listUserMembershipsRoute);
|
|
3645
|
+
router7.get("/:id/RoleAssignment", listUserRoleAssignmentsRoute);
|
|
3646
|
+
router7.get("/:id/Configuration", listUserConfigurationsRoute);
|
|
3612
3647
|
|
|
3613
3648
|
// src/data/rest-api/routes/control/user/user-operations.ts
|
|
3614
|
-
import
|
|
3649
|
+
import express8 from "express";
|
|
3615
3650
|
|
|
3616
3651
|
// src/data/rest-api/routes/control/user/user-operation-helpers.ts
|
|
3617
3652
|
import { getCurrentInvoke as getCurrentInvoke2 } from "@codegenie/serverless-express";
|
|
@@ -4018,12 +4053,12 @@ function sendInvalid(res, diagnostics) {
|
|
|
4018
4053
|
}
|
|
4019
4054
|
|
|
4020
4055
|
// src/data/rest-api/routes/control/user/user-operations.ts
|
|
4021
|
-
var
|
|
4022
|
-
|
|
4023
|
-
|
|
4056
|
+
var router8 = express8.Router();
|
|
4057
|
+
router8.get("/$current", userCurrentRoute);
|
|
4058
|
+
router8.post("/$switch", userSwitchRoute);
|
|
4024
4059
|
|
|
4025
4060
|
// src/data/rest-api/routes/control/workspace/workspace.ts
|
|
4026
|
-
import
|
|
4061
|
+
import express9 from "express";
|
|
4027
4062
|
|
|
4028
4063
|
// src/data/rest-api/routes/control/workspace/workspace-create-route.ts
|
|
4029
4064
|
async function createWorkspaceRoute(req, res) {
|
|
@@ -4455,18 +4490,18 @@ async function updateWorkspaceRoute(req, res) {
|
|
|
4455
4490
|
}
|
|
4456
4491
|
|
|
4457
4492
|
// src/data/rest-api/routes/control/workspace/workspace.ts
|
|
4458
|
-
var
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4493
|
+
var router9 = express9.Router();
|
|
4494
|
+
router9.get("/", listWorkspacesRoute);
|
|
4495
|
+
router9.get("/:id", getWorkspaceByIdRoute);
|
|
4496
|
+
router9.post("/", createWorkspaceRoute);
|
|
4497
|
+
router9.put("/:id", updateWorkspaceRoute);
|
|
4498
|
+
router9.delete("/:id", deleteWorkspaceRoute);
|
|
4499
|
+
router9.get("/:id/Membership", listWorkspaceMembershipsRoute);
|
|
4500
|
+
router9.get("/:id/RoleAssignment", listWorkspaceRoleAssignmentsRoute);
|
|
4501
|
+
router9.get("/:id/Configuration", listWorkspaceConfigurationsRoute);
|
|
4467
4502
|
|
|
4468
4503
|
// src/data/rest-api/routes/data/account/account.ts
|
|
4469
|
-
import
|
|
4504
|
+
import express10 from "express";
|
|
4470
4505
|
|
|
4471
4506
|
// src/data/rest-api/routes/data/account/account-create-route.ts
|
|
4472
4507
|
async function createAccountRoute(req, res) {
|
|
@@ -4623,15 +4658,15 @@ async function updateAccountRoute(req, res) {
|
|
|
4623
4658
|
}
|
|
4624
4659
|
|
|
4625
4660
|
// src/data/rest-api/routes/data/account/account.ts
|
|
4626
|
-
var
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4661
|
+
var router10 = express10.Router();
|
|
4662
|
+
router10.get("/", listAccountsRoute);
|
|
4663
|
+
router10.get("/:id", getAccountByIdRoute);
|
|
4664
|
+
router10.post("/", createAccountRoute);
|
|
4665
|
+
router10.put("/:id", updateAccountRoute);
|
|
4666
|
+
router10.delete("/:id", deleteAccountRoute);
|
|
4632
4667
|
|
|
4633
4668
|
// src/data/rest-api/routes/data/activitydefinition/activitydefinition.ts
|
|
4634
|
-
import
|
|
4669
|
+
import express11 from "express";
|
|
4635
4670
|
|
|
4636
4671
|
// src/data/operations/data/activitydefinition/activitydefinition-create-operation.ts
|
|
4637
4672
|
import { ulid as ulid2 } from "ulid";
|
|
@@ -4830,15 +4865,15 @@ async function updateActivityDefinitionRoute(req, res) {
|
|
|
4830
4865
|
}
|
|
4831
4866
|
|
|
4832
4867
|
// src/data/rest-api/routes/data/activitydefinition/activitydefinition.ts
|
|
4833
|
-
var
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4868
|
+
var router11 = express11.Router();
|
|
4869
|
+
router11.get("/", listActivityDefinitionsRoute);
|
|
4870
|
+
router11.get("/:id", getActivityDefinitionByIdRoute);
|
|
4871
|
+
router11.post("/", createActivityDefinitionRoute);
|
|
4872
|
+
router11.put("/:id", updateActivityDefinitionRoute);
|
|
4873
|
+
router11.delete("/:id", deleteActivityDefinitionRoute);
|
|
4839
4874
|
|
|
4840
4875
|
// src/data/rest-api/routes/data/adverseevent/adverseevent.ts
|
|
4841
|
-
import
|
|
4876
|
+
import express12 from "express";
|
|
4842
4877
|
|
|
4843
4878
|
// src/data/operations/data/adverseevent/adverseevent-create-operation.ts
|
|
4844
4879
|
import { ulid as ulid3 } from "ulid";
|
|
@@ -5030,15 +5065,15 @@ async function updateAdverseEventRoute(req, res) {
|
|
|
5030
5065
|
}
|
|
5031
5066
|
|
|
5032
5067
|
// src/data/rest-api/routes/data/adverseevent/adverseevent.ts
|
|
5033
|
-
var
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5068
|
+
var router12 = express12.Router();
|
|
5069
|
+
router12.get("/", listAdverseEventsRoute);
|
|
5070
|
+
router12.get("/:id", getAdverseEventByIdRoute);
|
|
5071
|
+
router12.post("/", createAdverseEventRoute);
|
|
5072
|
+
router12.put("/:id", updateAdverseEventRoute);
|
|
5073
|
+
router12.delete("/:id", deleteAdverseEventRoute);
|
|
5039
5074
|
|
|
5040
5075
|
// src/data/rest-api/routes/data/allergyintolerance/allergyintolerance.ts
|
|
5041
|
-
import
|
|
5076
|
+
import express13 from "express";
|
|
5042
5077
|
|
|
5043
5078
|
// src/data/operations/data/allergyintolerance/allergyintolerance-create-operation.ts
|
|
5044
5079
|
import { ulid as ulid4 } from "ulid";
|
|
@@ -5237,15 +5272,15 @@ async function updateAllergyIntoleranceRoute(req, res) {
|
|
|
5237
5272
|
}
|
|
5238
5273
|
|
|
5239
5274
|
// src/data/rest-api/routes/data/allergyintolerance/allergyintolerance.ts
|
|
5240
|
-
var
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5275
|
+
var router13 = express13.Router();
|
|
5276
|
+
router13.get("/", listAllergyIntolerancesRoute);
|
|
5277
|
+
router13.get("/:id", getAllergyIntoleranceByIdRoute);
|
|
5278
|
+
router13.post("/", createAllergyIntoleranceRoute);
|
|
5279
|
+
router13.put("/:id", updateAllergyIntoleranceRoute);
|
|
5280
|
+
router13.delete("/:id", deleteAllergyIntoleranceRoute);
|
|
5246
5281
|
|
|
5247
5282
|
// src/data/rest-api/routes/data/appointment/appointment.ts
|
|
5248
|
-
import
|
|
5283
|
+
import express14 from "express";
|
|
5249
5284
|
|
|
5250
5285
|
// src/data/operations/data/appointment/appointment-create-operation.ts
|
|
5251
5286
|
import { ulid as ulid5 } from "ulid";
|
|
@@ -5359,59 +5394,6 @@ async function getAppointmentByIdRoute(req, res) {
|
|
|
5359
5394
|
}
|
|
5360
5395
|
}
|
|
5361
5396
|
|
|
5362
|
-
// src/data/operations/data/appointment/appointment-date-search-predicate.ts
|
|
5363
|
-
var APPOINTMENT_DATE_SEARCH_PREFIXES = [
|
|
5364
|
-
"gt",
|
|
5365
|
-
"lt",
|
|
5366
|
-
"ge",
|
|
5367
|
-
"le",
|
|
5368
|
-
"sa",
|
|
5369
|
-
"eb"
|
|
5370
|
-
];
|
|
5371
|
-
function isAppointmentDateSearchPrefix(s) {
|
|
5372
|
-
return APPOINTMENT_DATE_SEARCH_PREFIXES.includes(
|
|
5373
|
-
s
|
|
5374
|
-
);
|
|
5375
|
-
}
|
|
5376
|
-
var APPT_START = "resource->>'start'";
|
|
5377
|
-
var APPT_END = "resource->>'end'";
|
|
5378
|
-
var HAS_ANY_BOUND_GUARD = `(${APPT_START} IS NOT NULL OR ${APPT_END} IS NOT NULL)`;
|
|
5379
|
-
function buildSinglePredicateSql(prefix, paramName) {
|
|
5380
|
-
switch (prefix) {
|
|
5381
|
-
case "gt":
|
|
5382
|
-
return `(${APPT_END} IS NULL OR ${APPT_END} > :${paramName})`;
|
|
5383
|
-
case "lt":
|
|
5384
|
-
return `(${APPT_START} IS NULL OR ${APPT_START} < :${paramName})`;
|
|
5385
|
-
case "ge":
|
|
5386
|
-
return `(${APPT_END} IS NULL OR ${APPT_END} >= :${paramName})`;
|
|
5387
|
-
case "le":
|
|
5388
|
-
return `(${APPT_START} IS NULL OR ${APPT_START} <= :${paramName})`;
|
|
5389
|
-
case "sa":
|
|
5390
|
-
return `(${APPT_START} IS NOT NULL AND ${APPT_START} > :${paramName})`;
|
|
5391
|
-
case "eb":
|
|
5392
|
-
return `(${APPT_END} IS NOT NULL AND ${APPT_END} < :${paramName})`;
|
|
5393
|
-
}
|
|
5394
|
-
}
|
|
5395
|
-
function appointmentDateConstraintParamName(index) {
|
|
5396
|
-
return `apptDateConstraint${index}`;
|
|
5397
|
-
}
|
|
5398
|
-
function buildAppointmentDateSearchPredicateSql(constraints) {
|
|
5399
|
-
if (constraints.length === 0) {
|
|
5400
|
-
return [];
|
|
5401
|
-
}
|
|
5402
|
-
const fragments = constraints.map(
|
|
5403
|
-
(c, i) => buildSinglePredicateSql(c.prefix, appointmentDateConstraintParamName(i))
|
|
5404
|
-
);
|
|
5405
|
-
fragments.push(HAS_ANY_BOUND_GUARD);
|
|
5406
|
-
return fragments;
|
|
5407
|
-
}
|
|
5408
|
-
function buildAppointmentDateSearchPredicateParams(constraints) {
|
|
5409
|
-
return constraints.map((c, i) => ({
|
|
5410
|
-
name: appointmentDateConstraintParamName(i),
|
|
5411
|
-
value: c.value
|
|
5412
|
-
}));
|
|
5413
|
-
}
|
|
5414
|
-
|
|
5415
5397
|
// src/data/operations/data/appointment/appointment-list-operation.ts
|
|
5416
5398
|
async function listAppointmentsOperation(params) {
|
|
5417
5399
|
const { context, tableName, mode } = params;
|
|
@@ -5549,123 +5531,93 @@ function getDefaultPostgresQueryRunner() {
|
|
|
5549
5531
|
return cached;
|
|
5550
5532
|
}
|
|
5551
5533
|
|
|
5552
|
-
// src/data/
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
]
|
|
5561
|
-
function isPeriodSearchPrefix(s) {
|
|
5562
|
-
return PERIOD_SEARCH_PREFIXES.includes(s);
|
|
5534
|
+
// src/data/search/engine/date-predicate.ts
|
|
5535
|
+
function flatJsonbExtract(jsonbPath) {
|
|
5536
|
+
const match = /^\$\.([A-Za-z_][A-Za-z0-9_]*)$/.exec(jsonbPath);
|
|
5537
|
+
if (!match) {
|
|
5538
|
+
throw new Error(
|
|
5539
|
+
`Generic date predicate requires a flat top-level JSONPath like "$.fieldName"; received "${jsonbPath}".`
|
|
5540
|
+
);
|
|
5541
|
+
}
|
|
5542
|
+
return `resource->>'${match[1]}'`;
|
|
5563
5543
|
}
|
|
5564
|
-
var
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5544
|
+
var DEFAULT_INTERVAL_PARAM_PREFIX = "intervalDateConstraint";
|
|
5545
|
+
function intervalConstraintParamName(prefix, index) {
|
|
5546
|
+
return `${prefix}${index}`;
|
|
5547
|
+
}
|
|
5548
|
+
function buildIntervalSingleSql(prefix, startExtract, endExtract, paramName) {
|
|
5568
5549
|
switch (prefix) {
|
|
5550
|
+
case "eq":
|
|
5551
|
+
return `(${startExtract} IS NOT NULL AND ${startExtract} = :${paramName})`;
|
|
5569
5552
|
case "gt":
|
|
5570
|
-
return `(${
|
|
5553
|
+
return `(${endExtract} IS NULL OR ${endExtract} > :${paramName})`;
|
|
5571
5554
|
case "lt":
|
|
5572
|
-
return `(${
|
|
5555
|
+
return `(${startExtract} IS NULL OR ${startExtract} < :${paramName})`;
|
|
5573
5556
|
case "ge":
|
|
5574
|
-
return `(${
|
|
5557
|
+
return `(${endExtract} IS NULL OR ${endExtract} >= :${paramName})`;
|
|
5575
5558
|
case "le":
|
|
5576
|
-
return `(${
|
|
5559
|
+
return `(${startExtract} IS NULL OR ${startExtract} <= :${paramName})`;
|
|
5577
5560
|
case "sa":
|
|
5578
|
-
return `(${
|
|
5561
|
+
return `(${startExtract} IS NOT NULL AND ${startExtract} > :${paramName})`;
|
|
5579
5562
|
case "eb":
|
|
5580
|
-
return `(${
|
|
5563
|
+
return `(${endExtract} IS NOT NULL AND ${endExtract} < :${paramName})`;
|
|
5581
5564
|
}
|
|
5582
5565
|
}
|
|
5583
|
-
function
|
|
5584
|
-
return `periodConstraint${index}`;
|
|
5585
|
-
}
|
|
5586
|
-
function buildPeriodSearchPredicateSql(constraints) {
|
|
5566
|
+
function buildIntervalDateSearchPredicateSql(constraints, opts) {
|
|
5587
5567
|
if (constraints.length === 0) {
|
|
5588
5568
|
return [];
|
|
5589
5569
|
}
|
|
5570
|
+
const paramPrefix = opts.paramNamePrefix ?? DEFAULT_INTERVAL_PARAM_PREFIX;
|
|
5571
|
+
const startExtract = flatJsonbExtract(opts.startPath);
|
|
5572
|
+
const endExtract = flatJsonbExtract(opts.endPath);
|
|
5590
5573
|
const fragments = constraints.map(
|
|
5591
|
-
(c, i) =>
|
|
5574
|
+
(c, i) => buildIntervalSingleSql(
|
|
5575
|
+
c.prefix,
|
|
5576
|
+
startExtract,
|
|
5577
|
+
endExtract,
|
|
5578
|
+
intervalConstraintParamName(paramPrefix, i)
|
|
5579
|
+
)
|
|
5592
5580
|
);
|
|
5593
|
-
fragments.push(
|
|
5581
|
+
fragments.push(`(${startExtract} IS NOT NULL OR ${endExtract} IS NOT NULL)`);
|
|
5594
5582
|
return fragments;
|
|
5595
5583
|
}
|
|
5596
|
-
function
|
|
5584
|
+
function buildIntervalDateSearchPredicateParams(constraints, opts) {
|
|
5585
|
+
const paramPrefix = opts?.paramNamePrefix ?? DEFAULT_INTERVAL_PARAM_PREFIX;
|
|
5597
5586
|
return constraints.map((c, i) => ({
|
|
5598
|
-
name:
|
|
5587
|
+
name: intervalConstraintParamName(paramPrefix, i),
|
|
5599
5588
|
value: c.value
|
|
5600
5589
|
}));
|
|
5601
5590
|
}
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
|
|
5591
|
+
var APPOINTMENT_DATE_SEARCH_PREFIXES = [
|
|
5592
|
+
"gt",
|
|
5593
|
+
"lt",
|
|
5594
|
+
"ge",
|
|
5595
|
+
"le",
|
|
5596
|
+
"sa",
|
|
5597
|
+
"eb"
|
|
5598
|
+
];
|
|
5599
|
+
function isAppointmentDateSearchPrefix(s) {
|
|
5600
|
+
return APPOINTMENT_DATE_SEARCH_PREFIXES.includes(
|
|
5601
|
+
s
|
|
5611
5602
|
);
|
|
5612
|
-
const lines = [
|
|
5613
|
-
"SELECT resource_id AS id, resource",
|
|
5614
|
-
"FROM resources",
|
|
5615
|
-
"WHERE tenant_id = :tenantId",
|
|
5616
|
-
" AND workspace_id = :workspaceId",
|
|
5617
|
-
" AND resource_type = 'Encounter'",
|
|
5618
|
-
" AND deleted_at IS NULL",
|
|
5619
|
-
" AND (resource @> :containmentRelative::jsonb",
|
|
5620
|
-
" OR resource @> :containmentUrn::jsonb)"
|
|
5621
|
-
];
|
|
5622
|
-
for (const fragment of periodPredicates) {
|
|
5623
|
-
lines.push(` AND ${fragment}`);
|
|
5624
|
-
}
|
|
5625
|
-
lines.push("ORDER BY last_updated DESC");
|
|
5626
|
-
lines.push("LIMIT :limit;");
|
|
5627
|
-
return lines.join("\n");
|
|
5628
5603
|
}
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
const limit = params.limit ?? DEFAULT_LIMIT;
|
|
5635
|
-
const containmentRelative = JSON.stringify({
|
|
5636
|
-
subject: { reference: `Patient/${patientId}` }
|
|
5604
|
+
function buildAppointmentDateSearchPredicateSql(constraints) {
|
|
5605
|
+
return buildIntervalDateSearchPredicateSql(constraints, {
|
|
5606
|
+
startPath: "$.start",
|
|
5607
|
+
endPath: "$.end",
|
|
5608
|
+
paramNamePrefix: "apptDateConstraint"
|
|
5637
5609
|
});
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
workspaceId,
|
|
5643
|
-
resourceType: "Patient",
|
|
5644
|
-
resourceId: patientId
|
|
5645
|
-
})
|
|
5646
|
-
}
|
|
5610
|
+
}
|
|
5611
|
+
function buildAppointmentDateSearchPredicateParams(constraints) {
|
|
5612
|
+
return buildIntervalDateSearchPredicateParams(constraints, {
|
|
5613
|
+
paramNamePrefix: "apptDateConstraint"
|
|
5647
5614
|
});
|
|
5648
|
-
const sql = buildSearchEncountersByPatientSql({ periodConstraints });
|
|
5649
|
-
const queryParams = [
|
|
5650
|
-
{ name: "tenantId", value: tenantId },
|
|
5651
|
-
{ name: "workspaceId", value: workspaceId },
|
|
5652
|
-
{ name: "containmentRelative", value: containmentRelative },
|
|
5653
|
-
{ name: "containmentUrn", value: containmentUrn },
|
|
5654
|
-
{ name: "limit", value: limit },
|
|
5655
|
-
...buildPeriodSearchPredicateParams(periodConstraints)
|
|
5656
|
-
];
|
|
5657
|
-
const rows = await runner.query(sql, queryParams);
|
|
5658
|
-
const entries = rows.map((row) => ({
|
|
5659
|
-
id: row.id,
|
|
5660
|
-
resource: {
|
|
5661
|
-
...row.resource,
|
|
5662
|
-
id: row.id
|
|
5663
|
-
}
|
|
5664
|
-
}));
|
|
5665
|
-
return { entries, total: entries.length };
|
|
5666
5615
|
}
|
|
5667
5616
|
|
|
5668
|
-
// src/data/
|
|
5617
|
+
// src/data/search/engine/reference-predicate.ts
|
|
5618
|
+
function buildOpenHiResourceUrn(opts) {
|
|
5619
|
+
return `urn:ohi:${opts.tenantId}:${opts.workspaceId}:${opts.resourceType}:${opts.resourceId}`;
|
|
5620
|
+
}
|
|
5669
5621
|
var REFERENCE_CONTAINMENT_SQL_FRAGMENT = "(resource @> :containmentRelative::jsonb OR resource @> :containmentUrn::jsonb)";
|
|
5670
5622
|
function parseTypedReference(s) {
|
|
5671
5623
|
const match = /^([A-Za-z][A-Za-z0-9_]*)\/([^\s/]+)$/.exec(s);
|
|
@@ -5706,7 +5658,7 @@ function buildReferenceContainmentPayload(params) {
|
|
|
5706
5658
|
}
|
|
5707
5659
|
|
|
5708
5660
|
// src/data/operations/data/appointment/appointment-search-by-actor-operation.ts
|
|
5709
|
-
var
|
|
5661
|
+
var DEFAULT_LIMIT = 100;
|
|
5710
5662
|
function buildSearchAppointmentsByActorSql(opts) {
|
|
5711
5663
|
const datePredicates = buildAppointmentDateSearchPredicateSql(
|
|
5712
5664
|
opts?.dateConstraints ?? []
|
|
@@ -5732,7 +5684,7 @@ async function searchAppointmentsByActorOperation(params) {
|
|
|
5732
5684
|
const dateConstraints = params.dateConstraints ?? [];
|
|
5733
5685
|
const { tenantId, workspaceId } = context;
|
|
5734
5686
|
const runner = params.runner ?? getDefaultPostgresQueryRunner();
|
|
5735
|
-
const limit = params.limit ??
|
|
5687
|
+
const limit = params.limit ?? DEFAULT_LIMIT;
|
|
5736
5688
|
const { containmentRelative, containmentUrn } = buildReferenceContainmentPayload({
|
|
5737
5689
|
shape: {
|
|
5738
5690
|
kind: "array-of-objects",
|
|
@@ -5764,7 +5716,7 @@ async function searchAppointmentsByActorOperation(params) {
|
|
|
5764
5716
|
}
|
|
5765
5717
|
|
|
5766
5718
|
// src/data/operations/data/appointment/appointment-search-by-date-operation.ts
|
|
5767
|
-
var
|
|
5719
|
+
var DEFAULT_LIMIT2 = 100;
|
|
5768
5720
|
function buildSearchAppointmentsByDateSql(opts) {
|
|
5769
5721
|
const datePredicates = buildAppointmentDateSearchPredicateSql(
|
|
5770
5722
|
opts.dateConstraints
|
|
@@ -5793,7 +5745,7 @@ async function searchAppointmentsByDateOperation(params) {
|
|
|
5793
5745
|
}
|
|
5794
5746
|
const { tenantId, workspaceId } = context;
|
|
5795
5747
|
const runner = params.runner ?? getDefaultPostgresQueryRunner();
|
|
5796
|
-
const limit = params.limit ??
|
|
5748
|
+
const limit = params.limit ?? DEFAULT_LIMIT2;
|
|
5797
5749
|
const sql = buildSearchAppointmentsByDateSql({ dateConstraints });
|
|
5798
5750
|
const queryParams = [
|
|
5799
5751
|
{ name: "tenantId", value: tenantId },
|
|
@@ -5813,7 +5765,7 @@ async function searchAppointmentsByDateOperation(params) {
|
|
|
5813
5765
|
}
|
|
5814
5766
|
|
|
5815
5767
|
// src/data/operations/data/appointment/appointment-search-by-patient-operation.ts
|
|
5816
|
-
var
|
|
5768
|
+
var DEFAULT_LIMIT3 = 100;
|
|
5817
5769
|
function buildSearchAppointmentsByPatientSql(opts) {
|
|
5818
5770
|
const datePredicates = buildAppointmentDateSearchPredicateSql(
|
|
5819
5771
|
opts?.dateConstraints ?? []
|
|
@@ -5840,7 +5792,7 @@ async function searchAppointmentsByPatientOperation(params) {
|
|
|
5840
5792
|
const dateConstraints = params.dateConstraints ?? [];
|
|
5841
5793
|
const { tenantId, workspaceId } = context;
|
|
5842
5794
|
const runner = params.runner ?? getDefaultPostgresQueryRunner();
|
|
5843
|
-
const limit = params.limit ??
|
|
5795
|
+
const limit = params.limit ?? DEFAULT_LIMIT3;
|
|
5844
5796
|
const containmentRelative = JSON.stringify({
|
|
5845
5797
|
participant: [{ actor: { reference: `Patient/${patientId}` } }]
|
|
5846
5798
|
});
|
|
@@ -6070,15 +6022,15 @@ async function updateAppointmentRoute(req, res) {
|
|
|
6070
6022
|
}
|
|
6071
6023
|
|
|
6072
6024
|
// src/data/rest-api/routes/data/appointment/appointment.ts
|
|
6073
|
-
var
|
|
6074
|
-
|
|
6075
|
-
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
|
|
6025
|
+
var router14 = express14.Router();
|
|
6026
|
+
router14.get("/", listAppointmentsRoute);
|
|
6027
|
+
router14.get("/:id", getAppointmentByIdRoute);
|
|
6028
|
+
router14.post("/", createAppointmentRoute);
|
|
6029
|
+
router14.put("/:id", updateAppointmentRoute);
|
|
6030
|
+
router14.delete("/:id", deleteAppointmentRoute);
|
|
6079
6031
|
|
|
6080
6032
|
// src/data/rest-api/routes/data/appointmentresponse/appointmentresponse.ts
|
|
6081
|
-
import
|
|
6033
|
+
import express15 from "express";
|
|
6082
6034
|
|
|
6083
6035
|
// src/data/operations/data/appointmentresponse/appointmentresponse-create-operation.ts
|
|
6084
6036
|
import { ulid as ulid6 } from "ulid";
|
|
@@ -6277,15 +6229,15 @@ async function updateAppointmentResponseRoute(req, res) {
|
|
|
6277
6229
|
}
|
|
6278
6230
|
|
|
6279
6231
|
// src/data/rest-api/routes/data/appointmentresponse/appointmentresponse.ts
|
|
6280
|
-
var
|
|
6281
|
-
|
|
6282
|
-
|
|
6283
|
-
|
|
6284
|
-
|
|
6285
|
-
|
|
6232
|
+
var router15 = express15.Router();
|
|
6233
|
+
router15.get("/", listAppointmentResponsesRoute);
|
|
6234
|
+
router15.get("/:id", getAppointmentResponseByIdRoute);
|
|
6235
|
+
router15.post("/", createAppointmentResponseRoute);
|
|
6236
|
+
router15.put("/:id", updateAppointmentResponseRoute);
|
|
6237
|
+
router15.delete("/:id", deleteAppointmentResponseRoute);
|
|
6286
6238
|
|
|
6287
6239
|
// src/data/rest-api/routes/data/auditevent/auditevent.ts
|
|
6288
|
-
import
|
|
6240
|
+
import express16 from "express";
|
|
6289
6241
|
|
|
6290
6242
|
// src/data/operations/data/auditevent/auditevent-create-operation.ts
|
|
6291
6243
|
import { ulid as ulid7 } from "ulid";
|
|
@@ -6477,15 +6429,15 @@ async function updateAuditEventRoute(req, res) {
|
|
|
6477
6429
|
}
|
|
6478
6430
|
|
|
6479
6431
|
// src/data/rest-api/routes/data/auditevent/auditevent.ts
|
|
6480
|
-
var
|
|
6481
|
-
|
|
6482
|
-
|
|
6483
|
-
|
|
6484
|
-
|
|
6485
|
-
|
|
6432
|
+
var router16 = express16.Router();
|
|
6433
|
+
router16.get("/", listAuditEventsRoute);
|
|
6434
|
+
router16.get("/:id", getAuditEventByIdRoute);
|
|
6435
|
+
router16.post("/", createAuditEventRoute);
|
|
6436
|
+
router16.put("/:id", updateAuditEventRoute);
|
|
6437
|
+
router16.delete("/:id", deleteAuditEventRoute);
|
|
6486
6438
|
|
|
6487
6439
|
// src/data/rest-api/routes/data/basic/basic.ts
|
|
6488
|
-
import
|
|
6440
|
+
import express17 from "express";
|
|
6489
6441
|
|
|
6490
6442
|
// src/data/operations/data/basic/basic-create-operation.ts
|
|
6491
6443
|
import { ulid as ulid8 } from "ulid";
|
|
@@ -6677,15 +6629,15 @@ async function updateBasicRoute(req, res) {
|
|
|
6677
6629
|
}
|
|
6678
6630
|
|
|
6679
6631
|
// src/data/rest-api/routes/data/basic/basic.ts
|
|
6680
|
-
var
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
-
|
|
6632
|
+
var router17 = express17.Router();
|
|
6633
|
+
router17.get("/", listBasicsRoute);
|
|
6634
|
+
router17.get("/:id", getBasicByIdRoute);
|
|
6635
|
+
router17.post("/", createBasicRoute);
|
|
6636
|
+
router17.put("/:id", updateBasicRoute);
|
|
6637
|
+
router17.delete("/:id", deleteBasicRoute);
|
|
6686
6638
|
|
|
6687
6639
|
// src/data/rest-api/routes/data/biologicallyderivedproduct/biologicallyderivedproduct.ts
|
|
6688
|
-
import
|
|
6640
|
+
import express18 from "express";
|
|
6689
6641
|
|
|
6690
6642
|
// src/data/operations/data/biologicallyderivedproduct/biologicallyderivedproduct-create-operation.ts
|
|
6691
6643
|
import { ulid as ulid9 } from "ulid";
|
|
@@ -6896,15 +6848,15 @@ async function updateBiologicallyDerivedProductRoute(req, res) {
|
|
|
6896
6848
|
}
|
|
6897
6849
|
|
|
6898
6850
|
// src/data/rest-api/routes/data/biologicallyderivedproduct/biologicallyderivedproduct.ts
|
|
6899
|
-
var
|
|
6900
|
-
|
|
6901
|
-
|
|
6902
|
-
|
|
6903
|
-
|
|
6904
|
-
|
|
6851
|
+
var router18 = express18.Router();
|
|
6852
|
+
router18.get("/", listBiologicallyDerivedProductsRoute);
|
|
6853
|
+
router18.get("/:id", getBiologicallyDerivedProductByIdRoute);
|
|
6854
|
+
router18.post("/", createBiologicallyDerivedProductRoute);
|
|
6855
|
+
router18.put("/:id", updateBiologicallyDerivedProductRoute);
|
|
6856
|
+
router18.delete("/:id", deleteBiologicallyDerivedProductRoute);
|
|
6905
6857
|
|
|
6906
6858
|
// src/data/rest-api/routes/data/bodystructure/bodystructure.ts
|
|
6907
|
-
import
|
|
6859
|
+
import express19 from "express";
|
|
6908
6860
|
|
|
6909
6861
|
// src/data/operations/data/bodystructure/bodystructure-create-operation.ts
|
|
6910
6862
|
import { ulid as ulid10 } from "ulid";
|
|
@@ -7096,15 +7048,15 @@ async function updateBodyStructureRoute(req, res) {
|
|
|
7096
7048
|
}
|
|
7097
7049
|
|
|
7098
7050
|
// src/data/rest-api/routes/data/bodystructure/bodystructure.ts
|
|
7099
|
-
var
|
|
7100
|
-
|
|
7101
|
-
|
|
7102
|
-
|
|
7103
|
-
|
|
7104
|
-
|
|
7051
|
+
var router19 = express19.Router();
|
|
7052
|
+
router19.get("/", listBodyStructuresRoute);
|
|
7053
|
+
router19.get("/:id", getBodyStructureByIdRoute);
|
|
7054
|
+
router19.post("/", createBodyStructureRoute);
|
|
7055
|
+
router19.put("/:id", updateBodyStructureRoute);
|
|
7056
|
+
router19.delete("/:id", deleteBodyStructureRoute);
|
|
7105
7057
|
|
|
7106
7058
|
// src/data/rest-api/routes/data/capabilitystatement/capabilitystatement.ts
|
|
7107
|
-
import
|
|
7059
|
+
import express20 from "express";
|
|
7108
7060
|
|
|
7109
7061
|
// src/data/operations/data/capabilitystatement/capabilitystatement-create-operation.ts
|
|
7110
7062
|
import { ulid as ulid11 } from "ulid";
|
|
@@ -7303,15 +7255,15 @@ async function updateCapabilityStatementRoute(req, res) {
|
|
|
7303
7255
|
}
|
|
7304
7256
|
|
|
7305
7257
|
// src/data/rest-api/routes/data/capabilitystatement/capabilitystatement.ts
|
|
7306
|
-
var
|
|
7307
|
-
|
|
7308
|
-
|
|
7309
|
-
|
|
7310
|
-
|
|
7311
|
-
|
|
7258
|
+
var router20 = express20.Router();
|
|
7259
|
+
router20.get("/", listCapabilityStatementsRoute);
|
|
7260
|
+
router20.get("/:id", getCapabilityStatementByIdRoute);
|
|
7261
|
+
router20.post("/", createCapabilityStatementRoute);
|
|
7262
|
+
router20.put("/:id", updateCapabilityStatementRoute);
|
|
7263
|
+
router20.delete("/:id", deleteCapabilityStatementRoute);
|
|
7312
7264
|
|
|
7313
7265
|
// src/data/rest-api/routes/data/careplan/careplan.ts
|
|
7314
|
-
import
|
|
7266
|
+
import express21 from "express";
|
|
7315
7267
|
|
|
7316
7268
|
// src/data/operations/data/careplan/careplan-create-operation.ts
|
|
7317
7269
|
import { ulid as ulid12 } from "ulid";
|
|
@@ -7503,15 +7455,15 @@ async function updateCarePlanRoute(req, res) {
|
|
|
7503
7455
|
}
|
|
7504
7456
|
|
|
7505
7457
|
// src/data/rest-api/routes/data/careplan/careplan.ts
|
|
7506
|
-
var
|
|
7507
|
-
|
|
7508
|
-
|
|
7509
|
-
|
|
7510
|
-
|
|
7511
|
-
|
|
7458
|
+
var router21 = express21.Router();
|
|
7459
|
+
router21.get("/", listCarePlansRoute);
|
|
7460
|
+
router21.get("/:id", getCarePlanByIdRoute);
|
|
7461
|
+
router21.post("/", createCarePlanRoute);
|
|
7462
|
+
router21.put("/:id", updateCarePlanRoute);
|
|
7463
|
+
router21.delete("/:id", deleteCarePlanRoute);
|
|
7512
7464
|
|
|
7513
7465
|
// src/data/rest-api/routes/data/careteam/careteam.ts
|
|
7514
|
-
import
|
|
7466
|
+
import express22 from "express";
|
|
7515
7467
|
|
|
7516
7468
|
// src/data/operations/data/careteam/careteam-create-operation.ts
|
|
7517
7469
|
import { ulid as ulid13 } from "ulid";
|
|
@@ -7703,15 +7655,15 @@ async function updateCareTeamRoute(req, res) {
|
|
|
7703
7655
|
}
|
|
7704
7656
|
|
|
7705
7657
|
// src/data/rest-api/routes/data/careteam/careteam.ts
|
|
7706
|
-
var
|
|
7707
|
-
|
|
7708
|
-
|
|
7709
|
-
|
|
7710
|
-
|
|
7711
|
-
|
|
7658
|
+
var router22 = express22.Router();
|
|
7659
|
+
router22.get("/", listCareTeamsRoute);
|
|
7660
|
+
router22.get("/:id", getCareTeamByIdRoute);
|
|
7661
|
+
router22.post("/", createCareTeamRoute);
|
|
7662
|
+
router22.put("/:id", updateCareTeamRoute);
|
|
7663
|
+
router22.delete("/:id", deleteCareTeamRoute);
|
|
7712
7664
|
|
|
7713
7665
|
// src/data/rest-api/routes/data/catalogentry/catalogentry.ts
|
|
7714
|
-
import
|
|
7666
|
+
import express23 from "express";
|
|
7715
7667
|
|
|
7716
7668
|
// src/data/operations/data/catalogentry/catalogentry-create-operation.ts
|
|
7717
7669
|
import { ulid as ulid14 } from "ulid";
|
|
@@ -7903,15 +7855,15 @@ async function updateCatalogEntryRoute(req, res) {
|
|
|
7903
7855
|
}
|
|
7904
7856
|
|
|
7905
7857
|
// src/data/rest-api/routes/data/catalogentry/catalogentry.ts
|
|
7906
|
-
var
|
|
7907
|
-
|
|
7908
|
-
|
|
7909
|
-
|
|
7910
|
-
|
|
7911
|
-
|
|
7858
|
+
var router23 = express23.Router();
|
|
7859
|
+
router23.get("/", listCatalogEntrysRoute);
|
|
7860
|
+
router23.get("/:id", getCatalogEntryByIdRoute);
|
|
7861
|
+
router23.post("/", createCatalogEntryRoute);
|
|
7862
|
+
router23.put("/:id", updateCatalogEntryRoute);
|
|
7863
|
+
router23.delete("/:id", deleteCatalogEntryRoute);
|
|
7912
7864
|
|
|
7913
7865
|
// src/data/rest-api/routes/data/chargeitem/chargeitem.ts
|
|
7914
|
-
import
|
|
7866
|
+
import express24 from "express";
|
|
7915
7867
|
|
|
7916
7868
|
// src/data/operations/data/chargeitem/chargeitem-create-operation.ts
|
|
7917
7869
|
import { ulid as ulid15 } from "ulid";
|
|
@@ -8103,15 +8055,15 @@ async function updateChargeItemRoute(req, res) {
|
|
|
8103
8055
|
}
|
|
8104
8056
|
|
|
8105
8057
|
// src/data/rest-api/routes/data/chargeitem/chargeitem.ts
|
|
8106
|
-
var
|
|
8107
|
-
|
|
8108
|
-
|
|
8109
|
-
|
|
8110
|
-
|
|
8111
|
-
|
|
8058
|
+
var router24 = express24.Router();
|
|
8059
|
+
router24.get("/", listChargeItemsRoute);
|
|
8060
|
+
router24.get("/:id", getChargeItemByIdRoute);
|
|
8061
|
+
router24.post("/", createChargeItemRoute);
|
|
8062
|
+
router24.put("/:id", updateChargeItemRoute);
|
|
8063
|
+
router24.delete("/:id", deleteChargeItemRoute);
|
|
8112
8064
|
|
|
8113
8065
|
// src/data/rest-api/routes/data/chargeitemdefinition/chargeitemdefinition.ts
|
|
8114
|
-
import
|
|
8066
|
+
import express25 from "express";
|
|
8115
8067
|
|
|
8116
8068
|
// src/data/operations/data/chargeitemdefinition/chargeitemdefinition-create-operation.ts
|
|
8117
8069
|
import { ulid as ulid16 } from "ulid";
|
|
@@ -8314,15 +8266,15 @@ async function updateChargeItemDefinitionRoute(req, res) {
|
|
|
8314
8266
|
}
|
|
8315
8267
|
|
|
8316
8268
|
// src/data/rest-api/routes/data/chargeitemdefinition/chargeitemdefinition.ts
|
|
8317
|
-
var
|
|
8318
|
-
|
|
8319
|
-
|
|
8320
|
-
|
|
8321
|
-
|
|
8322
|
-
|
|
8269
|
+
var router25 = express25.Router();
|
|
8270
|
+
router25.get("/", listChargeItemDefinitionsRoute);
|
|
8271
|
+
router25.get("/:id", getChargeItemDefinitionByIdRoute);
|
|
8272
|
+
router25.post("/", createChargeItemDefinitionRoute);
|
|
8273
|
+
router25.put("/:id", updateChargeItemDefinitionRoute);
|
|
8274
|
+
router25.delete("/:id", deleteChargeItemDefinitionRoute);
|
|
8323
8275
|
|
|
8324
8276
|
// src/data/rest-api/routes/data/claim/claim.ts
|
|
8325
|
-
import
|
|
8277
|
+
import express26 from "express";
|
|
8326
8278
|
|
|
8327
8279
|
// src/data/operations/data/claim/claim-create-operation.ts
|
|
8328
8280
|
import { ulid as ulid17 } from "ulid";
|
|
@@ -8514,15 +8466,15 @@ async function updateClaimRoute(req, res) {
|
|
|
8514
8466
|
}
|
|
8515
8467
|
|
|
8516
8468
|
// src/data/rest-api/routes/data/claim/claim.ts
|
|
8517
|
-
var
|
|
8518
|
-
|
|
8519
|
-
|
|
8520
|
-
|
|
8521
|
-
|
|
8522
|
-
|
|
8469
|
+
var router26 = express26.Router();
|
|
8470
|
+
router26.get("/", listClaimsRoute);
|
|
8471
|
+
router26.get("/:id", getClaimByIdRoute);
|
|
8472
|
+
router26.post("/", createClaimRoute);
|
|
8473
|
+
router26.put("/:id", updateClaimRoute);
|
|
8474
|
+
router26.delete("/:id", deleteClaimRoute);
|
|
8523
8475
|
|
|
8524
8476
|
// src/data/rest-api/routes/data/claimresponse/claimresponse.ts
|
|
8525
|
-
import
|
|
8477
|
+
import express27 from "express";
|
|
8526
8478
|
|
|
8527
8479
|
// src/data/operations/data/claimresponse/claimresponse-create-operation.ts
|
|
8528
8480
|
import { ulid as ulid18 } from "ulid";
|
|
@@ -8714,15 +8666,15 @@ async function updateClaimResponseRoute(req, res) {
|
|
|
8714
8666
|
}
|
|
8715
8667
|
|
|
8716
8668
|
// src/data/rest-api/routes/data/claimresponse/claimresponse.ts
|
|
8717
|
-
var
|
|
8718
|
-
|
|
8719
|
-
|
|
8720
|
-
|
|
8721
|
-
|
|
8722
|
-
|
|
8669
|
+
var router27 = express27.Router();
|
|
8670
|
+
router27.get("/", listClaimResponsesRoute);
|
|
8671
|
+
router27.get("/:id", getClaimResponseByIdRoute);
|
|
8672
|
+
router27.post("/", createClaimResponseRoute);
|
|
8673
|
+
router27.put("/:id", updateClaimResponseRoute);
|
|
8674
|
+
router27.delete("/:id", deleteClaimResponseRoute);
|
|
8723
8675
|
|
|
8724
8676
|
// src/data/rest-api/routes/data/clinicalimpression/clinicalimpression.ts
|
|
8725
|
-
import
|
|
8677
|
+
import express28 from "express";
|
|
8726
8678
|
|
|
8727
8679
|
// src/data/operations/data/clinicalimpression/clinicalimpression-create-operation.ts
|
|
8728
8680
|
import { ulid as ulid19 } from "ulid";
|
|
@@ -8921,15 +8873,15 @@ async function updateClinicalImpressionRoute(req, res) {
|
|
|
8921
8873
|
}
|
|
8922
8874
|
|
|
8923
8875
|
// src/data/rest-api/routes/data/clinicalimpression/clinicalimpression.ts
|
|
8924
|
-
var
|
|
8925
|
-
|
|
8926
|
-
|
|
8927
|
-
|
|
8928
|
-
|
|
8929
|
-
|
|
8876
|
+
var router28 = express28.Router();
|
|
8877
|
+
router28.get("/", listClinicalImpressionsRoute);
|
|
8878
|
+
router28.get("/:id", getClinicalImpressionByIdRoute);
|
|
8879
|
+
router28.post("/", createClinicalImpressionRoute);
|
|
8880
|
+
router28.put("/:id", updateClinicalImpressionRoute);
|
|
8881
|
+
router28.delete("/:id", deleteClinicalImpressionRoute);
|
|
8930
8882
|
|
|
8931
8883
|
// src/data/rest-api/routes/data/codesystem/codesystem.ts
|
|
8932
|
-
import
|
|
8884
|
+
import express29 from "express";
|
|
8933
8885
|
|
|
8934
8886
|
// src/data/operations/data/codesystem/codesystem-create-operation.ts
|
|
8935
8887
|
import { ulid as ulid20 } from "ulid";
|
|
@@ -9121,15 +9073,15 @@ async function updateCodeSystemRoute(req, res) {
|
|
|
9121
9073
|
}
|
|
9122
9074
|
|
|
9123
9075
|
// src/data/rest-api/routes/data/codesystem/codesystem.ts
|
|
9124
|
-
var
|
|
9125
|
-
|
|
9126
|
-
|
|
9127
|
-
|
|
9128
|
-
|
|
9129
|
-
|
|
9076
|
+
var router29 = express29.Router();
|
|
9077
|
+
router29.get("/", listCodeSystemsRoute);
|
|
9078
|
+
router29.get("/:id", getCodeSystemByIdRoute);
|
|
9079
|
+
router29.post("/", createCodeSystemRoute);
|
|
9080
|
+
router29.put("/:id", updateCodeSystemRoute);
|
|
9081
|
+
router29.delete("/:id", deleteCodeSystemRoute);
|
|
9130
9082
|
|
|
9131
9083
|
// src/data/rest-api/routes/data/communication/communication.ts
|
|
9132
|
-
import
|
|
9084
|
+
import express30 from "express";
|
|
9133
9085
|
|
|
9134
9086
|
// src/data/operations/data/communication/communication-create-operation.ts
|
|
9135
9087
|
import { ulid as ulid21 } from "ulid";
|
|
@@ -9321,15 +9273,15 @@ async function updateCommunicationRoute(req, res) {
|
|
|
9321
9273
|
}
|
|
9322
9274
|
|
|
9323
9275
|
// src/data/rest-api/routes/data/communication/communication.ts
|
|
9324
|
-
var
|
|
9325
|
-
|
|
9326
|
-
|
|
9327
|
-
|
|
9328
|
-
|
|
9329
|
-
|
|
9276
|
+
var router30 = express30.Router();
|
|
9277
|
+
router30.get("/", listCommunicationsRoute);
|
|
9278
|
+
router30.get("/:id", getCommunicationByIdRoute);
|
|
9279
|
+
router30.post("/", createCommunicationRoute);
|
|
9280
|
+
router30.put("/:id", updateCommunicationRoute);
|
|
9281
|
+
router30.delete("/:id", deleteCommunicationRoute);
|
|
9330
9282
|
|
|
9331
9283
|
// src/data/rest-api/routes/data/communicationrequest/communicationrequest.ts
|
|
9332
|
-
import
|
|
9284
|
+
import express31 from "express";
|
|
9333
9285
|
|
|
9334
9286
|
// src/data/operations/data/communicationrequest/communicationrequest-create-operation.ts
|
|
9335
9287
|
import { ulid as ulid22 } from "ulid";
|
|
@@ -9532,15 +9484,15 @@ async function updateCommunicationRequestRoute(req, res) {
|
|
|
9532
9484
|
}
|
|
9533
9485
|
|
|
9534
9486
|
// src/data/rest-api/routes/data/communicationrequest/communicationrequest.ts
|
|
9535
|
-
var
|
|
9536
|
-
|
|
9537
|
-
|
|
9538
|
-
|
|
9539
|
-
|
|
9540
|
-
|
|
9487
|
+
var router31 = express31.Router();
|
|
9488
|
+
router31.get("/", listCommunicationRequestsRoute);
|
|
9489
|
+
router31.get("/:id", getCommunicationRequestByIdRoute);
|
|
9490
|
+
router31.post("/", createCommunicationRequestRoute);
|
|
9491
|
+
router31.put("/:id", updateCommunicationRequestRoute);
|
|
9492
|
+
router31.delete("/:id", deleteCommunicationRequestRoute);
|
|
9541
9493
|
|
|
9542
9494
|
// src/data/rest-api/routes/data/compartmentdefinition/compartmentdefinition.ts
|
|
9543
|
-
import
|
|
9495
|
+
import express32 from "express";
|
|
9544
9496
|
|
|
9545
9497
|
// src/data/operations/data/compartmentdefinition/compartmentdefinition-create-operation.ts
|
|
9546
9498
|
import { ulid as ulid23 } from "ulid";
|
|
@@ -9751,15 +9703,15 @@ async function updateCompartmentDefinitionRoute(req, res) {
|
|
|
9751
9703
|
}
|
|
9752
9704
|
|
|
9753
9705
|
// src/data/rest-api/routes/data/compartmentdefinition/compartmentdefinition.ts
|
|
9754
|
-
var
|
|
9755
|
-
|
|
9756
|
-
|
|
9757
|
-
|
|
9758
|
-
|
|
9759
|
-
|
|
9706
|
+
var router32 = express32.Router();
|
|
9707
|
+
router32.get("/", listCompartmentDefinitionsRoute);
|
|
9708
|
+
router32.get("/:id", getCompartmentDefinitionByIdRoute);
|
|
9709
|
+
router32.post("/", createCompartmentDefinitionRoute);
|
|
9710
|
+
router32.put("/:id", updateCompartmentDefinitionRoute);
|
|
9711
|
+
router32.delete("/:id", deleteCompartmentDefinitionRoute);
|
|
9760
9712
|
|
|
9761
9713
|
// src/data/rest-api/routes/data/composition/composition.ts
|
|
9762
|
-
import
|
|
9714
|
+
import express33 from "express";
|
|
9763
9715
|
|
|
9764
9716
|
// src/data/operations/data/composition/composition-create-operation.ts
|
|
9765
9717
|
import { ulid as ulid24 } from "ulid";
|
|
@@ -9951,15 +9903,15 @@ async function updateCompositionRoute(req, res) {
|
|
|
9951
9903
|
}
|
|
9952
9904
|
|
|
9953
9905
|
// src/data/rest-api/routes/data/composition/composition.ts
|
|
9954
|
-
var
|
|
9955
|
-
|
|
9956
|
-
|
|
9957
|
-
|
|
9958
|
-
|
|
9959
|
-
|
|
9906
|
+
var router33 = express33.Router();
|
|
9907
|
+
router33.get("/", listCompositionsRoute);
|
|
9908
|
+
router33.get("/:id", getCompositionByIdRoute);
|
|
9909
|
+
router33.post("/", createCompositionRoute);
|
|
9910
|
+
router33.put("/:id", updateCompositionRoute);
|
|
9911
|
+
router33.delete("/:id", deleteCompositionRoute);
|
|
9960
9912
|
|
|
9961
9913
|
// src/data/rest-api/routes/data/conceptmap/conceptmap.ts
|
|
9962
|
-
import
|
|
9914
|
+
import express34 from "express";
|
|
9963
9915
|
|
|
9964
9916
|
// src/data/operations/data/conceptmap/conceptmap-create-operation.ts
|
|
9965
9917
|
import { ulid as ulid25 } from "ulid";
|
|
@@ -10151,15 +10103,15 @@ async function updateConceptMapRoute(req, res) {
|
|
|
10151
10103
|
}
|
|
10152
10104
|
|
|
10153
10105
|
// src/data/rest-api/routes/data/conceptmap/conceptmap.ts
|
|
10154
|
-
var
|
|
10155
|
-
|
|
10156
|
-
|
|
10157
|
-
|
|
10158
|
-
|
|
10159
|
-
|
|
10106
|
+
var router34 = express34.Router();
|
|
10107
|
+
router34.get("/", listConceptMapsRoute);
|
|
10108
|
+
router34.get("/:id", getConceptMapByIdRoute);
|
|
10109
|
+
router34.post("/", createConceptMapRoute);
|
|
10110
|
+
router34.put("/:id", updateConceptMapRoute);
|
|
10111
|
+
router34.delete("/:id", deleteConceptMapRoute);
|
|
10160
10112
|
|
|
10161
10113
|
// src/data/rest-api/routes/data/condition/condition.ts
|
|
10162
|
-
import
|
|
10114
|
+
import express35 from "express";
|
|
10163
10115
|
|
|
10164
10116
|
// src/data/operations/data/condition/condition-create-operation.ts
|
|
10165
10117
|
import { ulid as ulid26 } from "ulid";
|
|
@@ -10351,15 +10303,15 @@ async function updateConditionRoute(req, res) {
|
|
|
10351
10303
|
}
|
|
10352
10304
|
|
|
10353
10305
|
// src/data/rest-api/routes/data/condition/condition.ts
|
|
10354
|
-
var
|
|
10355
|
-
|
|
10356
|
-
|
|
10357
|
-
|
|
10358
|
-
|
|
10359
|
-
|
|
10306
|
+
var router35 = express35.Router();
|
|
10307
|
+
router35.get("/", listConditionsRoute);
|
|
10308
|
+
router35.get("/:id", getConditionByIdRoute);
|
|
10309
|
+
router35.post("/", createConditionRoute);
|
|
10310
|
+
router35.put("/:id", updateConditionRoute);
|
|
10311
|
+
router35.delete("/:id", deleteConditionRoute);
|
|
10360
10312
|
|
|
10361
10313
|
// src/data/rest-api/routes/data/consent/consent.ts
|
|
10362
|
-
import
|
|
10314
|
+
import express36 from "express";
|
|
10363
10315
|
|
|
10364
10316
|
// src/data/operations/data/consent/consent-create-operation.ts
|
|
10365
10317
|
import { ulid as ulid27 } from "ulid";
|
|
@@ -10551,15 +10503,15 @@ async function updateConsentRoute(req, res) {
|
|
|
10551
10503
|
}
|
|
10552
10504
|
|
|
10553
10505
|
// src/data/rest-api/routes/data/consent/consent.ts
|
|
10554
|
-
var
|
|
10555
|
-
|
|
10556
|
-
|
|
10557
|
-
|
|
10558
|
-
|
|
10559
|
-
|
|
10506
|
+
var router36 = express36.Router();
|
|
10507
|
+
router36.get("/", listConsentsRoute);
|
|
10508
|
+
router36.get("/:id", getConsentByIdRoute);
|
|
10509
|
+
router36.post("/", createConsentRoute);
|
|
10510
|
+
router36.put("/:id", updateConsentRoute);
|
|
10511
|
+
router36.delete("/:id", deleteConsentRoute);
|
|
10560
10512
|
|
|
10561
10513
|
// src/data/rest-api/routes/data/contract/contract.ts
|
|
10562
|
-
import
|
|
10514
|
+
import express37 from "express";
|
|
10563
10515
|
|
|
10564
10516
|
// src/data/operations/data/contract/contract-create-operation.ts
|
|
10565
10517
|
import { ulid as ulid28 } from "ulid";
|
|
@@ -10751,15 +10703,15 @@ async function updateContractRoute(req, res) {
|
|
|
10751
10703
|
}
|
|
10752
10704
|
|
|
10753
10705
|
// src/data/rest-api/routes/data/contract/contract.ts
|
|
10754
|
-
var
|
|
10755
|
-
|
|
10756
|
-
|
|
10757
|
-
|
|
10758
|
-
|
|
10759
|
-
|
|
10706
|
+
var router37 = express37.Router();
|
|
10707
|
+
router37.get("/", listContractsRoute);
|
|
10708
|
+
router37.get("/:id", getContractByIdRoute);
|
|
10709
|
+
router37.post("/", createContractRoute);
|
|
10710
|
+
router37.put("/:id", updateContractRoute);
|
|
10711
|
+
router37.delete("/:id", deleteContractRoute);
|
|
10760
10712
|
|
|
10761
10713
|
// src/data/rest-api/routes/data/coverage/coverage.ts
|
|
10762
|
-
import
|
|
10714
|
+
import express38 from "express";
|
|
10763
10715
|
|
|
10764
10716
|
// src/data/operations/data/coverage/coverage-create-operation.ts
|
|
10765
10717
|
import { ulid as ulid29 } from "ulid";
|
|
@@ -10954,15 +10906,15 @@ async function updateCoverageRoute(req, res) {
|
|
|
10954
10906
|
}
|
|
10955
10907
|
|
|
10956
10908
|
// src/data/rest-api/routes/data/coverage/coverage.ts
|
|
10957
|
-
var
|
|
10958
|
-
|
|
10959
|
-
|
|
10960
|
-
|
|
10961
|
-
|
|
10962
|
-
|
|
10909
|
+
var router38 = express38.Router();
|
|
10910
|
+
router38.get("/", listCoveragesRoute);
|
|
10911
|
+
router38.get("/:id", getCoverageByIdRoute);
|
|
10912
|
+
router38.post("/", createCoverageRoute);
|
|
10913
|
+
router38.put("/:id", updateCoverageRoute);
|
|
10914
|
+
router38.delete("/:id", deleteCoverageRoute);
|
|
10963
10915
|
|
|
10964
10916
|
// src/data/rest-api/routes/data/coverageeligibilityrequest/coverageeligibilityrequest.ts
|
|
10965
|
-
import
|
|
10917
|
+
import express39 from "express";
|
|
10966
10918
|
|
|
10967
10919
|
// src/data/operations/data/coverageeligibilityrequest/coverageeligibilityrequest-create-operation.ts
|
|
10968
10920
|
import { ulid as ulid30 } from "ulid";
|
|
@@ -11173,15 +11125,15 @@ async function updateCoverageEligibilityRequestRoute(req, res) {
|
|
|
11173
11125
|
}
|
|
11174
11126
|
|
|
11175
11127
|
// src/data/rest-api/routes/data/coverageeligibilityrequest/coverageeligibilityrequest.ts
|
|
11176
|
-
var
|
|
11177
|
-
|
|
11178
|
-
|
|
11179
|
-
|
|
11180
|
-
|
|
11181
|
-
|
|
11128
|
+
var router39 = express39.Router();
|
|
11129
|
+
router39.get("/", listCoverageEligibilityRequestsRoute);
|
|
11130
|
+
router39.get("/:id", getCoverageEligibilityRequestByIdRoute);
|
|
11131
|
+
router39.post("/", createCoverageEligibilityRequestRoute);
|
|
11132
|
+
router39.put("/:id", updateCoverageEligibilityRequestRoute);
|
|
11133
|
+
router39.delete("/:id", deleteCoverageEligibilityRequestRoute);
|
|
11182
11134
|
|
|
11183
11135
|
// src/data/rest-api/routes/data/coverageeligibilityresponse/coverageeligibilityresponse.ts
|
|
11184
|
-
import
|
|
11136
|
+
import express40 from "express";
|
|
11185
11137
|
|
|
11186
11138
|
// src/data/operations/data/coverageeligibilityresponse/coverageeligibilityresponse-create-operation.ts
|
|
11187
11139
|
import { ulid as ulid31 } from "ulid";
|
|
@@ -11392,15 +11344,15 @@ async function updateCoverageEligibilityResponseRoute(req, res) {
|
|
|
11392
11344
|
}
|
|
11393
11345
|
|
|
11394
11346
|
// src/data/rest-api/routes/data/coverageeligibilityresponse/coverageeligibilityresponse.ts
|
|
11395
|
-
var
|
|
11396
|
-
|
|
11397
|
-
|
|
11398
|
-
|
|
11399
|
-
|
|
11400
|
-
|
|
11347
|
+
var router40 = express40.Router();
|
|
11348
|
+
router40.get("/", listCoverageEligibilityResponsesRoute);
|
|
11349
|
+
router40.get("/:id", getCoverageEligibilityResponseByIdRoute);
|
|
11350
|
+
router40.post("/", createCoverageEligibilityResponseRoute);
|
|
11351
|
+
router40.put("/:id", updateCoverageEligibilityResponseRoute);
|
|
11352
|
+
router40.delete("/:id", deleteCoverageEligibilityResponseRoute);
|
|
11401
11353
|
|
|
11402
11354
|
// src/data/rest-api/routes/data/detectedissue/detectedissue.ts
|
|
11403
|
-
import
|
|
11355
|
+
import express41 from "express";
|
|
11404
11356
|
|
|
11405
11357
|
// src/data/operations/data/detectedissue/detectedissue-create-operation.ts
|
|
11406
11358
|
import { ulid as ulid32 } from "ulid";
|
|
@@ -11592,15 +11544,15 @@ async function updateDetectedIssueRoute(req, res) {
|
|
|
11592
11544
|
}
|
|
11593
11545
|
|
|
11594
11546
|
// src/data/rest-api/routes/data/detectedissue/detectedissue.ts
|
|
11595
|
-
var
|
|
11596
|
-
|
|
11597
|
-
|
|
11598
|
-
|
|
11599
|
-
|
|
11600
|
-
|
|
11547
|
+
var router41 = express41.Router();
|
|
11548
|
+
router41.get("/", listDetectedIssuesRoute);
|
|
11549
|
+
router41.get("/:id", getDetectedIssueByIdRoute);
|
|
11550
|
+
router41.post("/", createDetectedIssueRoute);
|
|
11551
|
+
router41.put("/:id", updateDetectedIssueRoute);
|
|
11552
|
+
router41.delete("/:id", deleteDetectedIssueRoute);
|
|
11601
11553
|
|
|
11602
11554
|
// src/data/rest-api/routes/data/device/device.ts
|
|
11603
|
-
import
|
|
11555
|
+
import express42 from "express";
|
|
11604
11556
|
|
|
11605
11557
|
// src/data/operations/data/device/device-create-operation.ts
|
|
11606
11558
|
import { ulid as ulid33 } from "ulid";
|
|
@@ -11792,15 +11744,15 @@ async function updateDeviceRoute(req, res) {
|
|
|
11792
11744
|
}
|
|
11793
11745
|
|
|
11794
11746
|
// src/data/rest-api/routes/data/device/device.ts
|
|
11795
|
-
var
|
|
11796
|
-
|
|
11797
|
-
|
|
11798
|
-
|
|
11799
|
-
|
|
11800
|
-
|
|
11747
|
+
var router42 = express42.Router();
|
|
11748
|
+
router42.get("/", listDevicesRoute);
|
|
11749
|
+
router42.get("/:id", getDeviceByIdRoute);
|
|
11750
|
+
router42.post("/", createDeviceRoute);
|
|
11751
|
+
router42.put("/:id", updateDeviceRoute);
|
|
11752
|
+
router42.delete("/:id", deleteDeviceRoute);
|
|
11801
11753
|
|
|
11802
11754
|
// src/data/rest-api/routes/data/devicedefinition/devicedefinition.ts
|
|
11803
|
-
import
|
|
11755
|
+
import express43 from "express";
|
|
11804
11756
|
|
|
11805
11757
|
// src/data/operations/data/devicedefinition/devicedefinition-create-operation.ts
|
|
11806
11758
|
import { ulid as ulid34 } from "ulid";
|
|
@@ -11992,15 +11944,15 @@ async function updateDeviceDefinitionRoute(req, res) {
|
|
|
11992
11944
|
}
|
|
11993
11945
|
|
|
11994
11946
|
// src/data/rest-api/routes/data/devicedefinition/devicedefinition.ts
|
|
11995
|
-
var
|
|
11996
|
-
|
|
11997
|
-
|
|
11998
|
-
|
|
11999
|
-
|
|
12000
|
-
|
|
11947
|
+
var router43 = express43.Router();
|
|
11948
|
+
router43.get("/", listDeviceDefinitionsRoute);
|
|
11949
|
+
router43.get("/:id", getDeviceDefinitionByIdRoute);
|
|
11950
|
+
router43.post("/", createDeviceDefinitionRoute);
|
|
11951
|
+
router43.put("/:id", updateDeviceDefinitionRoute);
|
|
11952
|
+
router43.delete("/:id", deleteDeviceDefinitionRoute);
|
|
12001
11953
|
|
|
12002
11954
|
// src/data/rest-api/routes/data/devicemetric/devicemetric.ts
|
|
12003
|
-
import
|
|
11955
|
+
import express44 from "express";
|
|
12004
11956
|
|
|
12005
11957
|
// src/data/operations/data/devicemetric/devicemetric-create-operation.ts
|
|
12006
11958
|
import { ulid as ulid35 } from "ulid";
|
|
@@ -12192,15 +12144,15 @@ async function updateDeviceMetricRoute(req, res) {
|
|
|
12192
12144
|
}
|
|
12193
12145
|
|
|
12194
12146
|
// src/data/rest-api/routes/data/devicemetric/devicemetric.ts
|
|
12195
|
-
var
|
|
12196
|
-
|
|
12197
|
-
|
|
12198
|
-
|
|
12199
|
-
|
|
12200
|
-
|
|
12147
|
+
var router44 = express44.Router();
|
|
12148
|
+
router44.get("/", listDeviceMetricsRoute);
|
|
12149
|
+
router44.get("/:id", getDeviceMetricByIdRoute);
|
|
12150
|
+
router44.post("/", createDeviceMetricRoute);
|
|
12151
|
+
router44.put("/:id", updateDeviceMetricRoute);
|
|
12152
|
+
router44.delete("/:id", deleteDeviceMetricRoute);
|
|
12201
12153
|
|
|
12202
12154
|
// src/data/rest-api/routes/data/devicerequest/devicerequest.ts
|
|
12203
|
-
import
|
|
12155
|
+
import express45 from "express";
|
|
12204
12156
|
|
|
12205
12157
|
// src/data/operations/data/devicerequest/devicerequest-create-operation.ts
|
|
12206
12158
|
import { ulid as ulid36 } from "ulid";
|
|
@@ -12392,15 +12344,15 @@ async function updateDeviceRequestRoute(req, res) {
|
|
|
12392
12344
|
}
|
|
12393
12345
|
|
|
12394
12346
|
// src/data/rest-api/routes/data/devicerequest/devicerequest.ts
|
|
12395
|
-
var
|
|
12396
|
-
|
|
12397
|
-
|
|
12398
|
-
|
|
12399
|
-
|
|
12400
|
-
|
|
12347
|
+
var router45 = express45.Router();
|
|
12348
|
+
router45.get("/", listDeviceRequestsRoute);
|
|
12349
|
+
router45.get("/:id", getDeviceRequestByIdRoute);
|
|
12350
|
+
router45.post("/", createDeviceRequestRoute);
|
|
12351
|
+
router45.put("/:id", updateDeviceRequestRoute);
|
|
12352
|
+
router45.delete("/:id", deleteDeviceRequestRoute);
|
|
12401
12353
|
|
|
12402
12354
|
// src/data/rest-api/routes/data/deviceusestatement/deviceusestatement.ts
|
|
12403
|
-
import
|
|
12355
|
+
import express46 from "express";
|
|
12404
12356
|
|
|
12405
12357
|
// src/data/operations/data/deviceusestatement/deviceusestatement-create-operation.ts
|
|
12406
12358
|
import { ulid as ulid37 } from "ulid";
|
|
@@ -12599,15 +12551,15 @@ async function updateDeviceUseStatementRoute(req, res) {
|
|
|
12599
12551
|
}
|
|
12600
12552
|
|
|
12601
12553
|
// src/data/rest-api/routes/data/deviceusestatement/deviceusestatement.ts
|
|
12602
|
-
var
|
|
12603
|
-
|
|
12604
|
-
|
|
12605
|
-
|
|
12606
|
-
|
|
12607
|
-
|
|
12554
|
+
var router46 = express46.Router();
|
|
12555
|
+
router46.get("/", listDeviceUseStatementsRoute);
|
|
12556
|
+
router46.get("/:id", getDeviceUseStatementByIdRoute);
|
|
12557
|
+
router46.post("/", createDeviceUseStatementRoute);
|
|
12558
|
+
router46.put("/:id", updateDeviceUseStatementRoute);
|
|
12559
|
+
router46.delete("/:id", deleteDeviceUseStatementRoute);
|
|
12608
12560
|
|
|
12609
12561
|
// src/data/rest-api/routes/data/diagnosticreport/diagnosticreport.ts
|
|
12610
|
-
import
|
|
12562
|
+
import express47 from "express";
|
|
12611
12563
|
|
|
12612
12564
|
// src/data/operations/data/diagnosticreport/diagnosticreport-create-operation.ts
|
|
12613
12565
|
import { ulid as ulid38 } from "ulid";
|
|
@@ -12799,15 +12751,15 @@ async function updateDiagnosticReportRoute(req, res) {
|
|
|
12799
12751
|
}
|
|
12800
12752
|
|
|
12801
12753
|
// src/data/rest-api/routes/data/diagnosticreport/diagnosticreport.ts
|
|
12802
|
-
var
|
|
12803
|
-
|
|
12804
|
-
|
|
12805
|
-
|
|
12806
|
-
|
|
12807
|
-
|
|
12754
|
+
var router47 = express47.Router();
|
|
12755
|
+
router47.get("/", listDiagnosticReportsRoute);
|
|
12756
|
+
router47.get("/:id", getDiagnosticReportByIdRoute);
|
|
12757
|
+
router47.post("/", createDiagnosticReportRoute);
|
|
12758
|
+
router47.put("/:id", updateDiagnosticReportRoute);
|
|
12759
|
+
router47.delete("/:id", deleteDiagnosticReportRoute);
|
|
12808
12760
|
|
|
12809
12761
|
// src/data/rest-api/routes/data/documentmanifest/documentmanifest.ts
|
|
12810
|
-
import
|
|
12762
|
+
import express48 from "express";
|
|
12811
12763
|
|
|
12812
12764
|
// src/data/operations/data/documentmanifest/documentmanifest-create-operation.ts
|
|
12813
12765
|
import { ulid as ulid39 } from "ulid";
|
|
@@ -12999,15 +12951,15 @@ async function updateDocumentManifestRoute(req, res) {
|
|
|
12999
12951
|
}
|
|
13000
12952
|
|
|
13001
12953
|
// src/data/rest-api/routes/data/documentmanifest/documentmanifest.ts
|
|
13002
|
-
var
|
|
13003
|
-
|
|
13004
|
-
|
|
13005
|
-
|
|
13006
|
-
|
|
13007
|
-
|
|
12954
|
+
var router48 = express48.Router();
|
|
12955
|
+
router48.get("/", listDocumentManifestsRoute);
|
|
12956
|
+
router48.get("/:id", getDocumentManifestByIdRoute);
|
|
12957
|
+
router48.post("/", createDocumentManifestRoute);
|
|
12958
|
+
router48.put("/:id", updateDocumentManifestRoute);
|
|
12959
|
+
router48.delete("/:id", deleteDocumentManifestRoute);
|
|
13008
12960
|
|
|
13009
12961
|
// src/data/rest-api/routes/data/documentreference/documentreference.ts
|
|
13010
|
-
import
|
|
12962
|
+
import express49 from "express";
|
|
13011
12963
|
|
|
13012
12964
|
// src/data/operations/data/documentreference/documentreference-create-operation.ts
|
|
13013
12965
|
import { ulid as ulid40 } from "ulid";
|
|
@@ -13202,15 +13154,15 @@ async function updateDocumentReferenceRoute(req, res) {
|
|
|
13202
13154
|
}
|
|
13203
13155
|
|
|
13204
13156
|
// src/data/rest-api/routes/data/documentreference/documentreference.ts
|
|
13205
|
-
var
|
|
13206
|
-
|
|
13207
|
-
|
|
13208
|
-
|
|
13209
|
-
|
|
13210
|
-
|
|
13157
|
+
var router49 = express49.Router();
|
|
13158
|
+
router49.get("/", listDocumentReferencesRoute);
|
|
13159
|
+
router49.get("/:id", getDocumentReferenceByIdRoute);
|
|
13160
|
+
router49.post("/", createDocumentReferenceRoute);
|
|
13161
|
+
router49.put("/:id", updateDocumentReferenceRoute);
|
|
13162
|
+
router49.delete("/:id", deleteDocumentReferenceRoute);
|
|
13211
13163
|
|
|
13212
13164
|
// src/data/rest-api/routes/data/effectevidencesynthesis/effectevidencesynthesis.ts
|
|
13213
|
-
import
|
|
13165
|
+
import express50 from "express";
|
|
13214
13166
|
|
|
13215
13167
|
// src/data/operations/data/effectevidencesynthesis/effectevidencesynthesis-create-operation.ts
|
|
13216
13168
|
import { ulid as ulid41 } from "ulid";
|
|
@@ -13421,15 +13373,15 @@ async function updateEffectEvidenceSynthesisRoute(req, res) {
|
|
|
13421
13373
|
}
|
|
13422
13374
|
|
|
13423
13375
|
// src/data/rest-api/routes/data/effectevidencesynthesis/effectevidencesynthesis.ts
|
|
13424
|
-
var
|
|
13425
|
-
|
|
13426
|
-
|
|
13427
|
-
|
|
13428
|
-
|
|
13429
|
-
|
|
13376
|
+
var router50 = express50.Router();
|
|
13377
|
+
router50.get("/", listEffectEvidenceSynthesissRoute);
|
|
13378
|
+
router50.get("/:id", getEffectEvidenceSynthesisByIdRoute);
|
|
13379
|
+
router50.post("/", createEffectEvidenceSynthesisRoute);
|
|
13380
|
+
router50.put("/:id", updateEffectEvidenceSynthesisRoute);
|
|
13381
|
+
router50.delete("/:id", deleteEffectEvidenceSynthesisRoute);
|
|
13430
13382
|
|
|
13431
13383
|
// src/data/rest-api/routes/data/encounter/encounter.ts
|
|
13432
|
-
import
|
|
13384
|
+
import express51 from "express";
|
|
13433
13385
|
|
|
13434
13386
|
// src/data/rest-api/routes/data/encounter/encounter-create-route.ts
|
|
13435
13387
|
async function createEncounterRoute(req, res) {
|
|
@@ -13521,8 +13473,59 @@ async function listEncountersOperation(params) {
|
|
|
13521
13473
|
);
|
|
13522
13474
|
}
|
|
13523
13475
|
|
|
13476
|
+
// src/data/operations/data/encounter/encounter-period-search-predicate.ts
|
|
13477
|
+
var PERIOD_SEARCH_PREFIXES = [
|
|
13478
|
+
"gt",
|
|
13479
|
+
"lt",
|
|
13480
|
+
"ge",
|
|
13481
|
+
"le",
|
|
13482
|
+
"sa",
|
|
13483
|
+
"eb"
|
|
13484
|
+
];
|
|
13485
|
+
function isPeriodSearchPrefix(s) {
|
|
13486
|
+
return PERIOD_SEARCH_PREFIXES.includes(s);
|
|
13487
|
+
}
|
|
13488
|
+
var PERIOD_START = "resource->'period'->>'start'";
|
|
13489
|
+
var PERIOD_END = "resource->'period'->>'end'";
|
|
13490
|
+
var HAS_ANY_BOUND_GUARD = `(${PERIOD_START} IS NOT NULL OR ${PERIOD_END} IS NOT NULL)`;
|
|
13491
|
+
function buildSinglePredicateSql(prefix, paramName) {
|
|
13492
|
+
switch (prefix) {
|
|
13493
|
+
case "gt":
|
|
13494
|
+
return `(${PERIOD_END} IS NULL OR ${PERIOD_END} > :${paramName})`;
|
|
13495
|
+
case "lt":
|
|
13496
|
+
return `(${PERIOD_START} IS NULL OR ${PERIOD_START} < :${paramName})`;
|
|
13497
|
+
case "ge":
|
|
13498
|
+
return `(${PERIOD_END} IS NULL OR ${PERIOD_END} >= :${paramName})`;
|
|
13499
|
+
case "le":
|
|
13500
|
+
return `(${PERIOD_START} IS NULL OR ${PERIOD_START} <= :${paramName})`;
|
|
13501
|
+
case "sa":
|
|
13502
|
+
return `(${PERIOD_START} IS NOT NULL AND ${PERIOD_START} > :${paramName})`;
|
|
13503
|
+
case "eb":
|
|
13504
|
+
return `(${PERIOD_END} IS NOT NULL AND ${PERIOD_END} < :${paramName})`;
|
|
13505
|
+
}
|
|
13506
|
+
}
|
|
13507
|
+
function periodConstraintParamName(index) {
|
|
13508
|
+
return `periodConstraint${index}`;
|
|
13509
|
+
}
|
|
13510
|
+
function buildPeriodSearchPredicateSql(constraints) {
|
|
13511
|
+
if (constraints.length === 0) {
|
|
13512
|
+
return [];
|
|
13513
|
+
}
|
|
13514
|
+
const fragments = constraints.map(
|
|
13515
|
+
(c, i) => buildSinglePredicateSql(c.prefix, periodConstraintParamName(i))
|
|
13516
|
+
);
|
|
13517
|
+
fragments.push(HAS_ANY_BOUND_GUARD);
|
|
13518
|
+
return fragments;
|
|
13519
|
+
}
|
|
13520
|
+
function buildPeriodSearchPredicateParams(constraints) {
|
|
13521
|
+
return constraints.map((c, i) => ({
|
|
13522
|
+
name: periodConstraintParamName(i),
|
|
13523
|
+
value: c.value
|
|
13524
|
+
}));
|
|
13525
|
+
}
|
|
13526
|
+
|
|
13524
13527
|
// src/data/operations/data/encounter/encounter-search-by-date-operation.ts
|
|
13525
|
-
var
|
|
13528
|
+
var DEFAULT_LIMIT4 = 100;
|
|
13526
13529
|
function buildSearchEncountersByDateSql(opts) {
|
|
13527
13530
|
const periodPredicates = buildPeriodSearchPredicateSql(
|
|
13528
13531
|
opts.periodConstraints
|
|
@@ -13551,7 +13554,7 @@ async function searchEncountersByDateOperation(params) {
|
|
|
13551
13554
|
}
|
|
13552
13555
|
const { tenantId, workspaceId } = context;
|
|
13553
13556
|
const runner = params.runner ?? getDefaultPostgresQueryRunner();
|
|
13554
|
-
const limit = params.limit ??
|
|
13557
|
+
const limit = params.limit ?? DEFAULT_LIMIT4;
|
|
13555
13558
|
const sql = buildSearchEncountersByDateSql({ periodConstraints });
|
|
13556
13559
|
const queryParams = [
|
|
13557
13560
|
{ name: "tenantId", value: tenantId },
|
|
@@ -13571,7 +13574,7 @@ async function searchEncountersByDateOperation(params) {
|
|
|
13571
13574
|
}
|
|
13572
13575
|
|
|
13573
13576
|
// src/data/operations/data/encounter/encounter-search-by-participant-operation.ts
|
|
13574
|
-
var
|
|
13577
|
+
var DEFAULT_LIMIT5 = 100;
|
|
13575
13578
|
function buildSearchEncountersByParticipantSql(opts) {
|
|
13576
13579
|
const periodPredicates = buildPeriodSearchPredicateSql(
|
|
13577
13580
|
opts?.periodConstraints ?? []
|
|
@@ -13597,7 +13600,7 @@ async function searchEncountersByParticipantOperation(params) {
|
|
|
13597
13600
|
const periodConstraints = params.periodConstraints ?? [];
|
|
13598
13601
|
const { tenantId, workspaceId } = context;
|
|
13599
13602
|
const runner = params.runner ?? getDefaultPostgresQueryRunner();
|
|
13600
|
-
const limit = params.limit ??
|
|
13603
|
+
const limit = params.limit ?? DEFAULT_LIMIT5;
|
|
13601
13604
|
const { containmentRelative, containmentUrn } = buildReferenceContainmentPayload({
|
|
13602
13605
|
shape: {
|
|
13603
13606
|
kind: "array-of-objects",
|
|
@@ -13628,6 +13631,68 @@ async function searchEncountersByParticipantOperation(params) {
|
|
|
13628
13631
|
return { entries, total: entries.length };
|
|
13629
13632
|
}
|
|
13630
13633
|
|
|
13634
|
+
// src/data/operations/data/encounter/encounter-search-by-patient-operation.ts
|
|
13635
|
+
var DEFAULT_LIMIT6 = 100;
|
|
13636
|
+
function buildSearchEncountersByPatientSql(opts) {
|
|
13637
|
+
const periodPredicates = buildPeriodSearchPredicateSql(
|
|
13638
|
+
opts?.periodConstraints ?? []
|
|
13639
|
+
);
|
|
13640
|
+
const lines = [
|
|
13641
|
+
"SELECT resource_id AS id, resource",
|
|
13642
|
+
"FROM resources",
|
|
13643
|
+
"WHERE tenant_id = :tenantId",
|
|
13644
|
+
" AND workspace_id = :workspaceId",
|
|
13645
|
+
" AND resource_type = 'Encounter'",
|
|
13646
|
+
" AND deleted_at IS NULL",
|
|
13647
|
+
" AND (resource @> :containmentRelative::jsonb",
|
|
13648
|
+
" OR resource @> :containmentUrn::jsonb)"
|
|
13649
|
+
];
|
|
13650
|
+
for (const fragment of periodPredicates) {
|
|
13651
|
+
lines.push(` AND ${fragment}`);
|
|
13652
|
+
}
|
|
13653
|
+
lines.push("ORDER BY last_updated DESC");
|
|
13654
|
+
lines.push("LIMIT :limit;");
|
|
13655
|
+
return lines.join("\n");
|
|
13656
|
+
}
|
|
13657
|
+
async function searchEncountersByPatientOperation(params) {
|
|
13658
|
+
const { context, patientId } = params;
|
|
13659
|
+
const periodConstraints = params.periodConstraints ?? [];
|
|
13660
|
+
const { tenantId, workspaceId } = context;
|
|
13661
|
+
const runner = params.runner ?? getDefaultPostgresQueryRunner();
|
|
13662
|
+
const limit = params.limit ?? DEFAULT_LIMIT6;
|
|
13663
|
+
const containmentRelative = JSON.stringify({
|
|
13664
|
+
subject: { reference: `Patient/${patientId}` }
|
|
13665
|
+
});
|
|
13666
|
+
const containmentUrn = JSON.stringify({
|
|
13667
|
+
subject: {
|
|
13668
|
+
reference: buildOpenHiResourceUrn({
|
|
13669
|
+
tenantId,
|
|
13670
|
+
workspaceId,
|
|
13671
|
+
resourceType: "Patient",
|
|
13672
|
+
resourceId: patientId
|
|
13673
|
+
})
|
|
13674
|
+
}
|
|
13675
|
+
});
|
|
13676
|
+
const sql = buildSearchEncountersByPatientSql({ periodConstraints });
|
|
13677
|
+
const queryParams = [
|
|
13678
|
+
{ name: "tenantId", value: tenantId },
|
|
13679
|
+
{ name: "workspaceId", value: workspaceId },
|
|
13680
|
+
{ name: "containmentRelative", value: containmentRelative },
|
|
13681
|
+
{ name: "containmentUrn", value: containmentUrn },
|
|
13682
|
+
{ name: "limit", value: limit },
|
|
13683
|
+
...buildPeriodSearchPredicateParams(periodConstraints)
|
|
13684
|
+
];
|
|
13685
|
+
const rows = await runner.query(sql, queryParams);
|
|
13686
|
+
const entries = rows.map((row) => ({
|
|
13687
|
+
id: row.id,
|
|
13688
|
+
resource: {
|
|
13689
|
+
...row.resource,
|
|
13690
|
+
id: row.id
|
|
13691
|
+
}
|
|
13692
|
+
}));
|
|
13693
|
+
return { entries, total: entries.length };
|
|
13694
|
+
}
|
|
13695
|
+
|
|
13631
13696
|
// src/data/rest-api/routes/data/encounter/encounter-list-route.ts
|
|
13632
13697
|
function singleStringQueryParam2(req, name) {
|
|
13633
13698
|
const v = req.query[name];
|
|
@@ -13816,15 +13881,15 @@ async function updateEncounterRoute(req, res) {
|
|
|
13816
13881
|
}
|
|
13817
13882
|
|
|
13818
13883
|
// src/data/rest-api/routes/data/encounter/encounter.ts
|
|
13819
|
-
var
|
|
13820
|
-
|
|
13821
|
-
|
|
13822
|
-
|
|
13823
|
-
|
|
13824
|
-
|
|
13884
|
+
var router51 = express51.Router();
|
|
13885
|
+
router51.get("/", listEncountersRoute);
|
|
13886
|
+
router51.get("/:id", getEncounterByIdRoute);
|
|
13887
|
+
router51.post("/", createEncounterRoute);
|
|
13888
|
+
router51.put("/:id", updateEncounterRoute);
|
|
13889
|
+
router51.delete("/:id", deleteEncounterRoute);
|
|
13825
13890
|
|
|
13826
13891
|
// src/data/rest-api/routes/data/endpoint/endpoint.ts
|
|
13827
|
-
import
|
|
13892
|
+
import express52 from "express";
|
|
13828
13893
|
|
|
13829
13894
|
// src/data/operations/data/endpoint/endpoint-create-operation.ts
|
|
13830
13895
|
import { ulid as ulid42 } from "ulid";
|
|
@@ -14016,15 +14081,15 @@ async function updateEndpointRoute(req, res) {
|
|
|
14016
14081
|
}
|
|
14017
14082
|
|
|
14018
14083
|
// src/data/rest-api/routes/data/endpoint/endpoint.ts
|
|
14019
|
-
var
|
|
14020
|
-
|
|
14021
|
-
|
|
14022
|
-
|
|
14023
|
-
|
|
14024
|
-
|
|
14084
|
+
var router52 = express52.Router();
|
|
14085
|
+
router52.get("/", listEndpointsRoute);
|
|
14086
|
+
router52.get("/:id", getEndpointByIdRoute);
|
|
14087
|
+
router52.post("/", createEndpointRoute);
|
|
14088
|
+
router52.put("/:id", updateEndpointRoute);
|
|
14089
|
+
router52.delete("/:id", deleteEndpointRoute);
|
|
14025
14090
|
|
|
14026
14091
|
// src/data/rest-api/routes/data/enrollmentrequest/enrollmentrequest.ts
|
|
14027
|
-
import
|
|
14092
|
+
import express53 from "express";
|
|
14028
14093
|
|
|
14029
14094
|
// src/data/operations/data/enrollmentrequest/enrollmentrequest-create-operation.ts
|
|
14030
14095
|
import { ulid as ulid43 } from "ulid";
|
|
@@ -14219,15 +14284,15 @@ async function updateEnrollmentRequestRoute(req, res) {
|
|
|
14219
14284
|
}
|
|
14220
14285
|
|
|
14221
14286
|
// src/data/rest-api/routes/data/enrollmentrequest/enrollmentrequest.ts
|
|
14222
|
-
var
|
|
14223
|
-
|
|
14224
|
-
|
|
14225
|
-
|
|
14226
|
-
|
|
14227
|
-
|
|
14287
|
+
var router53 = express53.Router();
|
|
14288
|
+
router53.get("/", listEnrollmentRequestsRoute);
|
|
14289
|
+
router53.get("/:id", getEnrollmentRequestByIdRoute);
|
|
14290
|
+
router53.post("/", createEnrollmentRequestRoute);
|
|
14291
|
+
router53.put("/:id", updateEnrollmentRequestRoute);
|
|
14292
|
+
router53.delete("/:id", deleteEnrollmentRequestRoute);
|
|
14228
14293
|
|
|
14229
14294
|
// src/data/rest-api/routes/data/enrollmentresponse/enrollmentresponse.ts
|
|
14230
|
-
import
|
|
14295
|
+
import express54 from "express";
|
|
14231
14296
|
|
|
14232
14297
|
// src/data/operations/data/enrollmentresponse/enrollmentresponse-create-operation.ts
|
|
14233
14298
|
import { ulid as ulid44 } from "ulid";
|
|
@@ -14426,15 +14491,15 @@ async function updateEnrollmentResponseRoute(req, res) {
|
|
|
14426
14491
|
}
|
|
14427
14492
|
|
|
14428
14493
|
// src/data/rest-api/routes/data/enrollmentresponse/enrollmentresponse.ts
|
|
14429
|
-
var
|
|
14430
|
-
|
|
14431
|
-
|
|
14432
|
-
|
|
14433
|
-
|
|
14434
|
-
|
|
14494
|
+
var router54 = express54.Router();
|
|
14495
|
+
router54.get("/", listEnrollmentResponsesRoute);
|
|
14496
|
+
router54.get("/:id", getEnrollmentResponseByIdRoute);
|
|
14497
|
+
router54.post("/", createEnrollmentResponseRoute);
|
|
14498
|
+
router54.put("/:id", updateEnrollmentResponseRoute);
|
|
14499
|
+
router54.delete("/:id", deleteEnrollmentResponseRoute);
|
|
14435
14500
|
|
|
14436
14501
|
// src/data/rest-api/routes/data/episodeofcare/episodeofcare.ts
|
|
14437
|
-
import
|
|
14502
|
+
import express55 from "express";
|
|
14438
14503
|
|
|
14439
14504
|
// src/data/operations/data/episodeofcare/episodeofcare-create-operation.ts
|
|
14440
14505
|
import { ulid as ulid45 } from "ulid";
|
|
@@ -14626,15 +14691,15 @@ async function updateEpisodeOfCareRoute(req, res) {
|
|
|
14626
14691
|
}
|
|
14627
14692
|
|
|
14628
14693
|
// src/data/rest-api/routes/data/episodeofcare/episodeofcare.ts
|
|
14629
|
-
var
|
|
14630
|
-
|
|
14631
|
-
|
|
14632
|
-
|
|
14633
|
-
|
|
14634
|
-
|
|
14694
|
+
var router55 = express55.Router();
|
|
14695
|
+
router55.get("/", listEpisodeOfCaresRoute);
|
|
14696
|
+
router55.get("/:id", getEpisodeOfCareByIdRoute);
|
|
14697
|
+
router55.post("/", createEpisodeOfCareRoute);
|
|
14698
|
+
router55.put("/:id", updateEpisodeOfCareRoute);
|
|
14699
|
+
router55.delete("/:id", deleteEpisodeOfCareRoute);
|
|
14635
14700
|
|
|
14636
14701
|
// src/data/rest-api/routes/data/eventdefinition/eventdefinition.ts
|
|
14637
|
-
import
|
|
14702
|
+
import express56 from "express";
|
|
14638
14703
|
|
|
14639
14704
|
// src/data/operations/data/eventdefinition/eventdefinition-create-operation.ts
|
|
14640
14705
|
import { ulid as ulid46 } from "ulid";
|
|
@@ -14826,15 +14891,15 @@ async function updateEventDefinitionRoute(req, res) {
|
|
|
14826
14891
|
}
|
|
14827
14892
|
|
|
14828
14893
|
// src/data/rest-api/routes/data/eventdefinition/eventdefinition.ts
|
|
14829
|
-
var
|
|
14830
|
-
|
|
14831
|
-
|
|
14832
|
-
|
|
14833
|
-
|
|
14834
|
-
|
|
14894
|
+
var router56 = express56.Router();
|
|
14895
|
+
router56.get("/", listEventDefinitionsRoute);
|
|
14896
|
+
router56.get("/:id", getEventDefinitionByIdRoute);
|
|
14897
|
+
router56.post("/", createEventDefinitionRoute);
|
|
14898
|
+
router56.put("/:id", updateEventDefinitionRoute);
|
|
14899
|
+
router56.delete("/:id", deleteEventDefinitionRoute);
|
|
14835
14900
|
|
|
14836
14901
|
// src/data/rest-api/routes/data/evidence/evidence.ts
|
|
14837
|
-
import
|
|
14902
|
+
import express57 from "express";
|
|
14838
14903
|
|
|
14839
14904
|
// src/data/operations/data/evidence/evidence-create-operation.ts
|
|
14840
14905
|
import { ulid as ulid47 } from "ulid";
|
|
@@ -15026,15 +15091,15 @@ async function updateEvidenceRoute(req, res) {
|
|
|
15026
15091
|
}
|
|
15027
15092
|
|
|
15028
15093
|
// src/data/rest-api/routes/data/evidence/evidence.ts
|
|
15029
|
-
var
|
|
15030
|
-
|
|
15031
|
-
|
|
15032
|
-
|
|
15033
|
-
|
|
15034
|
-
|
|
15094
|
+
var router57 = express57.Router();
|
|
15095
|
+
router57.get("/", listEvidencesRoute);
|
|
15096
|
+
router57.get("/:id", getEvidenceByIdRoute);
|
|
15097
|
+
router57.post("/", createEvidenceRoute);
|
|
15098
|
+
router57.put("/:id", updateEvidenceRoute);
|
|
15099
|
+
router57.delete("/:id", deleteEvidenceRoute);
|
|
15035
15100
|
|
|
15036
15101
|
// src/data/rest-api/routes/data/evidencevariable/evidencevariable.ts
|
|
15037
|
-
import
|
|
15102
|
+
import express58 from "express";
|
|
15038
15103
|
|
|
15039
15104
|
// src/data/operations/data/evidencevariable/evidencevariable-create-operation.ts
|
|
15040
15105
|
import { ulid as ulid48 } from "ulid";
|
|
@@ -15226,15 +15291,15 @@ async function updateEvidenceVariableRoute(req, res) {
|
|
|
15226
15291
|
}
|
|
15227
15292
|
|
|
15228
15293
|
// src/data/rest-api/routes/data/evidencevariable/evidencevariable.ts
|
|
15229
|
-
var
|
|
15230
|
-
|
|
15231
|
-
|
|
15232
|
-
|
|
15233
|
-
|
|
15234
|
-
|
|
15294
|
+
var router58 = express58.Router();
|
|
15295
|
+
router58.get("/", listEvidenceVariablesRoute);
|
|
15296
|
+
router58.get("/:id", getEvidenceVariableByIdRoute);
|
|
15297
|
+
router58.post("/", createEvidenceVariableRoute);
|
|
15298
|
+
router58.put("/:id", updateEvidenceVariableRoute);
|
|
15299
|
+
router58.delete("/:id", deleteEvidenceVariableRoute);
|
|
15235
15300
|
|
|
15236
15301
|
// src/data/rest-api/routes/data/examplescenario/examplescenario.ts
|
|
15237
|
-
import
|
|
15302
|
+
import express59 from "express";
|
|
15238
15303
|
|
|
15239
15304
|
// src/data/operations/data/examplescenario/examplescenario-create-operation.ts
|
|
15240
15305
|
import { ulid as ulid49 } from "ulid";
|
|
@@ -15426,15 +15491,15 @@ async function updateExampleScenarioRoute(req, res) {
|
|
|
15426
15491
|
}
|
|
15427
15492
|
|
|
15428
15493
|
// src/data/rest-api/routes/data/examplescenario/examplescenario.ts
|
|
15429
|
-
var
|
|
15430
|
-
|
|
15431
|
-
|
|
15432
|
-
|
|
15433
|
-
|
|
15434
|
-
|
|
15494
|
+
var router59 = express59.Router();
|
|
15495
|
+
router59.get("/", listExampleScenariosRoute);
|
|
15496
|
+
router59.get("/:id", getExampleScenarioByIdRoute);
|
|
15497
|
+
router59.post("/", createExampleScenarioRoute);
|
|
15498
|
+
router59.put("/:id", updateExampleScenarioRoute);
|
|
15499
|
+
router59.delete("/:id", deleteExampleScenarioRoute);
|
|
15435
15500
|
|
|
15436
15501
|
// src/data/rest-api/routes/data/explanationofbenefit/explanationofbenefit.ts
|
|
15437
|
-
import
|
|
15502
|
+
import express60 from "express";
|
|
15438
15503
|
|
|
15439
15504
|
// src/data/operations/data/explanationofbenefit/explanationofbenefit-create-operation.ts
|
|
15440
15505
|
import { ulid as ulid50 } from "ulid";
|
|
@@ -15637,15 +15702,15 @@ async function updateExplanationOfBenefitRoute(req, res) {
|
|
|
15637
15702
|
}
|
|
15638
15703
|
|
|
15639
15704
|
// src/data/rest-api/routes/data/explanationofbenefit/explanationofbenefit.ts
|
|
15640
|
-
var
|
|
15641
|
-
|
|
15642
|
-
|
|
15643
|
-
|
|
15644
|
-
|
|
15645
|
-
|
|
15705
|
+
var router60 = express60.Router();
|
|
15706
|
+
router60.get("/", listExplanationOfBenefitsRoute);
|
|
15707
|
+
router60.get("/:id", getExplanationOfBenefitByIdRoute);
|
|
15708
|
+
router60.post("/", createExplanationOfBenefitRoute);
|
|
15709
|
+
router60.put("/:id", updateExplanationOfBenefitRoute);
|
|
15710
|
+
router60.delete("/:id", deleteExplanationOfBenefitRoute);
|
|
15646
15711
|
|
|
15647
15712
|
// src/data/rest-api/routes/data/familymemberhistory/familymemberhistory.ts
|
|
15648
|
-
import
|
|
15713
|
+
import express61 from "express";
|
|
15649
15714
|
|
|
15650
15715
|
// src/data/operations/data/familymemberhistory/familymemberhistory-create-operation.ts
|
|
15651
15716
|
import { ulid as ulid51 } from "ulid";
|
|
@@ -15844,15 +15909,15 @@ async function updateFamilyMemberHistoryRoute(req, res) {
|
|
|
15844
15909
|
}
|
|
15845
15910
|
|
|
15846
15911
|
// src/data/rest-api/routes/data/familymemberhistory/familymemberhistory.ts
|
|
15847
|
-
var
|
|
15848
|
-
|
|
15849
|
-
|
|
15850
|
-
|
|
15851
|
-
|
|
15852
|
-
|
|
15912
|
+
var router61 = express61.Router();
|
|
15913
|
+
router61.get("/", listFamilyMemberHistorysRoute);
|
|
15914
|
+
router61.get("/:id", getFamilyMemberHistoryByIdRoute);
|
|
15915
|
+
router61.post("/", createFamilyMemberHistoryRoute);
|
|
15916
|
+
router61.put("/:id", updateFamilyMemberHistoryRoute);
|
|
15917
|
+
router61.delete("/:id", deleteFamilyMemberHistoryRoute);
|
|
15853
15918
|
|
|
15854
15919
|
// src/data/rest-api/routes/data/flag/flag.ts
|
|
15855
|
-
import
|
|
15920
|
+
import express62 from "express";
|
|
15856
15921
|
|
|
15857
15922
|
// src/data/operations/data/flag/flag-create-operation.ts
|
|
15858
15923
|
import { ulid as ulid52 } from "ulid";
|
|
@@ -16044,15 +16109,15 @@ async function updateFlagRoute(req, res) {
|
|
|
16044
16109
|
}
|
|
16045
16110
|
|
|
16046
16111
|
// src/data/rest-api/routes/data/flag/flag.ts
|
|
16047
|
-
var
|
|
16048
|
-
|
|
16049
|
-
|
|
16050
|
-
|
|
16051
|
-
|
|
16052
|
-
|
|
16112
|
+
var router62 = express62.Router();
|
|
16113
|
+
router62.get("/", listFlagsRoute);
|
|
16114
|
+
router62.get("/:id", getFlagByIdRoute);
|
|
16115
|
+
router62.post("/", createFlagRoute);
|
|
16116
|
+
router62.put("/:id", updateFlagRoute);
|
|
16117
|
+
router62.delete("/:id", deleteFlagRoute);
|
|
16053
16118
|
|
|
16054
16119
|
// src/data/rest-api/routes/data/goal/goal.ts
|
|
16055
|
-
import
|
|
16120
|
+
import express63 from "express";
|
|
16056
16121
|
|
|
16057
16122
|
// src/data/operations/data/goal/goal-create-operation.ts
|
|
16058
16123
|
import { ulid as ulid53 } from "ulid";
|
|
@@ -16244,15 +16309,15 @@ async function updateGoalRoute(req, res) {
|
|
|
16244
16309
|
}
|
|
16245
16310
|
|
|
16246
16311
|
// src/data/rest-api/routes/data/goal/goal.ts
|
|
16247
|
-
var
|
|
16248
|
-
|
|
16249
|
-
|
|
16250
|
-
|
|
16251
|
-
|
|
16252
|
-
|
|
16312
|
+
var router63 = express63.Router();
|
|
16313
|
+
router63.get("/", listGoalsRoute);
|
|
16314
|
+
router63.get("/:id", getGoalByIdRoute);
|
|
16315
|
+
router63.post("/", createGoalRoute);
|
|
16316
|
+
router63.put("/:id", updateGoalRoute);
|
|
16317
|
+
router63.delete("/:id", deleteGoalRoute);
|
|
16253
16318
|
|
|
16254
16319
|
// src/data/rest-api/routes/data/graphdefinition/graphdefinition.ts
|
|
16255
|
-
import
|
|
16320
|
+
import express64 from "express";
|
|
16256
16321
|
|
|
16257
16322
|
// src/data/operations/data/graphdefinition/graphdefinition-create-operation.ts
|
|
16258
16323
|
import { ulid as ulid54 } from "ulid";
|
|
@@ -16444,15 +16509,15 @@ async function updateGraphDefinitionRoute(req, res) {
|
|
|
16444
16509
|
}
|
|
16445
16510
|
|
|
16446
16511
|
// src/data/rest-api/routes/data/graphdefinition/graphdefinition.ts
|
|
16447
|
-
var
|
|
16448
|
-
|
|
16449
|
-
|
|
16450
|
-
|
|
16451
|
-
|
|
16452
|
-
|
|
16512
|
+
var router64 = express64.Router();
|
|
16513
|
+
router64.get("/", listGraphDefinitionsRoute);
|
|
16514
|
+
router64.get("/:id", getGraphDefinitionByIdRoute);
|
|
16515
|
+
router64.post("/", createGraphDefinitionRoute);
|
|
16516
|
+
router64.put("/:id", updateGraphDefinitionRoute);
|
|
16517
|
+
router64.delete("/:id", deleteGraphDefinitionRoute);
|
|
16453
16518
|
|
|
16454
16519
|
// src/data/rest-api/routes/data/group/group.ts
|
|
16455
|
-
import
|
|
16520
|
+
import express65 from "express";
|
|
16456
16521
|
|
|
16457
16522
|
// src/data/operations/data/group/group-create-operation.ts
|
|
16458
16523
|
import { ulid as ulid55 } from "ulid";
|
|
@@ -16644,15 +16709,15 @@ async function updateGroupRoute(req, res) {
|
|
|
16644
16709
|
}
|
|
16645
16710
|
|
|
16646
16711
|
// src/data/rest-api/routes/data/group/group.ts
|
|
16647
|
-
var
|
|
16648
|
-
|
|
16649
|
-
|
|
16650
|
-
|
|
16651
|
-
|
|
16652
|
-
|
|
16712
|
+
var router65 = express65.Router();
|
|
16713
|
+
router65.get("/", listGroupsRoute);
|
|
16714
|
+
router65.get("/:id", getGroupByIdRoute);
|
|
16715
|
+
router65.post("/", createGroupRoute);
|
|
16716
|
+
router65.put("/:id", updateGroupRoute);
|
|
16717
|
+
router65.delete("/:id", deleteGroupRoute);
|
|
16653
16718
|
|
|
16654
16719
|
// src/data/rest-api/routes/data/guidanceresponse/guidanceresponse.ts
|
|
16655
|
-
import
|
|
16720
|
+
import express66 from "express";
|
|
16656
16721
|
|
|
16657
16722
|
// src/data/operations/data/guidanceresponse/guidanceresponse-create-operation.ts
|
|
16658
16723
|
import { ulid as ulid56 } from "ulid";
|
|
@@ -16844,15 +16909,15 @@ async function updateGuidanceResponseRoute(req, res) {
|
|
|
16844
16909
|
}
|
|
16845
16910
|
|
|
16846
16911
|
// src/data/rest-api/routes/data/guidanceresponse/guidanceresponse.ts
|
|
16847
|
-
var
|
|
16848
|
-
|
|
16849
|
-
|
|
16850
|
-
|
|
16851
|
-
|
|
16852
|
-
|
|
16912
|
+
var router66 = express66.Router();
|
|
16913
|
+
router66.get("/", listGuidanceResponsesRoute);
|
|
16914
|
+
router66.get("/:id", getGuidanceResponseByIdRoute);
|
|
16915
|
+
router66.post("/", createGuidanceResponseRoute);
|
|
16916
|
+
router66.put("/:id", updateGuidanceResponseRoute);
|
|
16917
|
+
router66.delete("/:id", deleteGuidanceResponseRoute);
|
|
16853
16918
|
|
|
16854
16919
|
// src/data/rest-api/routes/data/healthcareservice/healthcareservice.ts
|
|
16855
|
-
import
|
|
16920
|
+
import express67 from "express";
|
|
16856
16921
|
|
|
16857
16922
|
// src/data/operations/data/healthcareservice/healthcareservice-create-operation.ts
|
|
16858
16923
|
import { ulid as ulid57 } from "ulid";
|
|
@@ -17047,15 +17112,15 @@ async function updateHealthcareServiceRoute(req, res) {
|
|
|
17047
17112
|
}
|
|
17048
17113
|
|
|
17049
17114
|
// src/data/rest-api/routes/data/healthcareservice/healthcareservice.ts
|
|
17050
|
-
var
|
|
17051
|
-
|
|
17052
|
-
|
|
17053
|
-
|
|
17054
|
-
|
|
17055
|
-
|
|
17115
|
+
var router67 = express67.Router();
|
|
17116
|
+
router67.get("/", listHealthcareServicesRoute);
|
|
17117
|
+
router67.get("/:id", getHealthcareServiceByIdRoute);
|
|
17118
|
+
router67.post("/", createHealthcareServiceRoute);
|
|
17119
|
+
router67.put("/:id", updateHealthcareServiceRoute);
|
|
17120
|
+
router67.delete("/:id", deleteHealthcareServiceRoute);
|
|
17056
17121
|
|
|
17057
17122
|
// src/data/rest-api/routes/data/imagingstudy/imagingstudy.ts
|
|
17058
|
-
import
|
|
17123
|
+
import express68 from "express";
|
|
17059
17124
|
|
|
17060
17125
|
// src/data/operations/data/imagingstudy/imagingstudy-create-operation.ts
|
|
17061
17126
|
import { ulid as ulid58 } from "ulid";
|
|
@@ -17247,15 +17312,15 @@ async function updateImagingStudyRoute(req, res) {
|
|
|
17247
17312
|
}
|
|
17248
17313
|
|
|
17249
17314
|
// src/data/rest-api/routes/data/imagingstudy/imagingstudy.ts
|
|
17250
|
-
var
|
|
17251
|
-
|
|
17252
|
-
|
|
17253
|
-
|
|
17254
|
-
|
|
17255
|
-
|
|
17315
|
+
var router68 = express68.Router();
|
|
17316
|
+
router68.get("/", listImagingStudysRoute);
|
|
17317
|
+
router68.get("/:id", getImagingStudyByIdRoute);
|
|
17318
|
+
router68.post("/", createImagingStudyRoute);
|
|
17319
|
+
router68.put("/:id", updateImagingStudyRoute);
|
|
17320
|
+
router68.delete("/:id", deleteImagingStudyRoute);
|
|
17256
17321
|
|
|
17257
17322
|
// src/data/rest-api/routes/data/immunization/immunization.ts
|
|
17258
|
-
import
|
|
17323
|
+
import express69 from "express";
|
|
17259
17324
|
|
|
17260
17325
|
// src/data/operations/data/immunization/immunization-create-operation.ts
|
|
17261
17326
|
import { ulid as ulid59 } from "ulid";
|
|
@@ -17447,15 +17512,15 @@ async function updateImmunizationRoute(req, res) {
|
|
|
17447
17512
|
}
|
|
17448
17513
|
|
|
17449
17514
|
// src/data/rest-api/routes/data/immunization/immunization.ts
|
|
17450
|
-
var
|
|
17451
|
-
|
|
17452
|
-
|
|
17453
|
-
|
|
17454
|
-
|
|
17455
|
-
|
|
17515
|
+
var router69 = express69.Router();
|
|
17516
|
+
router69.get("/", listImmunizationsRoute);
|
|
17517
|
+
router69.get("/:id", getImmunizationByIdRoute);
|
|
17518
|
+
router69.post("/", createImmunizationRoute);
|
|
17519
|
+
router69.put("/:id", updateImmunizationRoute);
|
|
17520
|
+
router69.delete("/:id", deleteImmunizationRoute);
|
|
17456
17521
|
|
|
17457
17522
|
// src/data/rest-api/routes/data/immunizationevaluation/immunizationevaluation.ts
|
|
17458
|
-
import
|
|
17523
|
+
import express70 from "express";
|
|
17459
17524
|
|
|
17460
17525
|
// src/data/operations/data/immunizationevaluation/immunizationevaluation-create-operation.ts
|
|
17461
17526
|
import { ulid as ulid60 } from "ulid";
|
|
@@ -17666,15 +17731,15 @@ async function updateImmunizationEvaluationRoute(req, res) {
|
|
|
17666
17731
|
}
|
|
17667
17732
|
|
|
17668
17733
|
// src/data/rest-api/routes/data/immunizationevaluation/immunizationevaluation.ts
|
|
17669
|
-
var
|
|
17670
|
-
|
|
17671
|
-
|
|
17672
|
-
|
|
17673
|
-
|
|
17674
|
-
|
|
17734
|
+
var router70 = express70.Router();
|
|
17735
|
+
router70.get("/", listImmunizationEvaluationsRoute);
|
|
17736
|
+
router70.get("/:id", getImmunizationEvaluationByIdRoute);
|
|
17737
|
+
router70.post("/", createImmunizationEvaluationRoute);
|
|
17738
|
+
router70.put("/:id", updateImmunizationEvaluationRoute);
|
|
17739
|
+
router70.delete("/:id", deleteImmunizationEvaluationRoute);
|
|
17675
17740
|
|
|
17676
17741
|
// src/data/rest-api/routes/data/immunizationrecommendation/immunizationrecommendation.ts
|
|
17677
|
-
import
|
|
17742
|
+
import express71 from "express";
|
|
17678
17743
|
|
|
17679
17744
|
// src/data/operations/data/immunizationrecommendation/immunizationrecommendation-create-operation.ts
|
|
17680
17745
|
import { ulid as ulid61 } from "ulid";
|
|
@@ -17885,15 +17950,15 @@ async function updateImmunizationRecommendationRoute(req, res) {
|
|
|
17885
17950
|
}
|
|
17886
17951
|
|
|
17887
17952
|
// src/data/rest-api/routes/data/immunizationrecommendation/immunizationrecommendation.ts
|
|
17888
|
-
var
|
|
17889
|
-
|
|
17890
|
-
|
|
17891
|
-
|
|
17892
|
-
|
|
17893
|
-
|
|
17953
|
+
var router71 = express71.Router();
|
|
17954
|
+
router71.get("/", listImmunizationRecommendationsRoute);
|
|
17955
|
+
router71.get("/:id", getImmunizationRecommendationByIdRoute);
|
|
17956
|
+
router71.post("/", createImmunizationRecommendationRoute);
|
|
17957
|
+
router71.put("/:id", updateImmunizationRecommendationRoute);
|
|
17958
|
+
router71.delete("/:id", deleteImmunizationRecommendationRoute);
|
|
17894
17959
|
|
|
17895
17960
|
// src/data/rest-api/routes/data/implementationguide/implementationguide.ts
|
|
17896
|
-
import
|
|
17961
|
+
import express72 from "express";
|
|
17897
17962
|
|
|
17898
17963
|
// src/data/operations/data/implementationguide/implementationguide-create-operation.ts
|
|
17899
17964
|
import { ulid as ulid62 } from "ulid";
|
|
@@ -18092,15 +18157,15 @@ async function updateImplementationGuideRoute(req, res) {
|
|
|
18092
18157
|
}
|
|
18093
18158
|
|
|
18094
18159
|
// src/data/rest-api/routes/data/implementationguide/implementationguide.ts
|
|
18095
|
-
var
|
|
18096
|
-
|
|
18097
|
-
|
|
18098
|
-
|
|
18099
|
-
|
|
18100
|
-
|
|
18160
|
+
var router72 = express72.Router();
|
|
18161
|
+
router72.get("/", listImplementationGuidesRoute);
|
|
18162
|
+
router72.get("/:id", getImplementationGuideByIdRoute);
|
|
18163
|
+
router72.post("/", createImplementationGuideRoute);
|
|
18164
|
+
router72.put("/:id", updateImplementationGuideRoute);
|
|
18165
|
+
router72.delete("/:id", deleteImplementationGuideRoute);
|
|
18101
18166
|
|
|
18102
18167
|
// src/data/rest-api/routes/data/insuranceplan/insuranceplan.ts
|
|
18103
|
-
import
|
|
18168
|
+
import express73 from "express";
|
|
18104
18169
|
|
|
18105
18170
|
// src/data/operations/data/insuranceplan/insuranceplan-create-operation.ts
|
|
18106
18171
|
import { ulid as ulid63 } from "ulid";
|
|
@@ -18292,15 +18357,15 @@ async function updateInsurancePlanRoute(req, res) {
|
|
|
18292
18357
|
}
|
|
18293
18358
|
|
|
18294
18359
|
// src/data/rest-api/routes/data/insuranceplan/insuranceplan.ts
|
|
18295
|
-
var
|
|
18296
|
-
|
|
18297
|
-
|
|
18298
|
-
|
|
18299
|
-
|
|
18300
|
-
|
|
18360
|
+
var router73 = express73.Router();
|
|
18361
|
+
router73.get("/", listInsurancePlansRoute);
|
|
18362
|
+
router73.get("/:id", getInsurancePlanByIdRoute);
|
|
18363
|
+
router73.post("/", createInsurancePlanRoute);
|
|
18364
|
+
router73.put("/:id", updateInsurancePlanRoute);
|
|
18365
|
+
router73.delete("/:id", deleteInsurancePlanRoute);
|
|
18301
18366
|
|
|
18302
18367
|
// src/data/rest-api/routes/data/invoice/invoice.ts
|
|
18303
|
-
import
|
|
18368
|
+
import express74 from "express";
|
|
18304
18369
|
|
|
18305
18370
|
// src/data/operations/data/invoice/invoice-create-operation.ts
|
|
18306
18371
|
import { ulid as ulid64 } from "ulid";
|
|
@@ -18492,15 +18557,15 @@ async function updateInvoiceRoute(req, res) {
|
|
|
18492
18557
|
}
|
|
18493
18558
|
|
|
18494
18559
|
// src/data/rest-api/routes/data/invoice/invoice.ts
|
|
18495
|
-
var
|
|
18496
|
-
|
|
18497
|
-
|
|
18498
|
-
|
|
18499
|
-
|
|
18500
|
-
|
|
18560
|
+
var router74 = express74.Router();
|
|
18561
|
+
router74.get("/", listInvoicesRoute);
|
|
18562
|
+
router74.get("/:id", getInvoiceByIdRoute);
|
|
18563
|
+
router74.post("/", createInvoiceRoute);
|
|
18564
|
+
router74.put("/:id", updateInvoiceRoute);
|
|
18565
|
+
router74.delete("/:id", deleteInvoiceRoute);
|
|
18501
18566
|
|
|
18502
18567
|
// src/data/rest-api/routes/data/library/library.ts
|
|
18503
|
-
import
|
|
18568
|
+
import express75 from "express";
|
|
18504
18569
|
|
|
18505
18570
|
// src/data/operations/data/library/library-create-operation.ts
|
|
18506
18571
|
import { ulid as ulid65 } from "ulid";
|
|
@@ -18692,15 +18757,15 @@ async function updateLibraryRoute(req, res) {
|
|
|
18692
18757
|
}
|
|
18693
18758
|
|
|
18694
18759
|
// src/data/rest-api/routes/data/library/library.ts
|
|
18695
|
-
var
|
|
18696
|
-
|
|
18697
|
-
|
|
18698
|
-
|
|
18699
|
-
|
|
18700
|
-
|
|
18760
|
+
var router75 = express75.Router();
|
|
18761
|
+
router75.get("/", listLibrarysRoute);
|
|
18762
|
+
router75.get("/:id", getLibraryByIdRoute);
|
|
18763
|
+
router75.post("/", createLibraryRoute);
|
|
18764
|
+
router75.put("/:id", updateLibraryRoute);
|
|
18765
|
+
router75.delete("/:id", deleteLibraryRoute);
|
|
18701
18766
|
|
|
18702
18767
|
// src/data/rest-api/routes/data/linkage/linkage.ts
|
|
18703
|
-
import
|
|
18768
|
+
import express76 from "express";
|
|
18704
18769
|
|
|
18705
18770
|
// src/data/operations/data/linkage/linkage-create-operation.ts
|
|
18706
18771
|
import { ulid as ulid66 } from "ulid";
|
|
@@ -18892,15 +18957,15 @@ async function updateLinkageRoute(req, res) {
|
|
|
18892
18957
|
}
|
|
18893
18958
|
|
|
18894
18959
|
// src/data/rest-api/routes/data/linkage/linkage.ts
|
|
18895
|
-
var
|
|
18896
|
-
|
|
18897
|
-
|
|
18898
|
-
|
|
18899
|
-
|
|
18900
|
-
|
|
18960
|
+
var router76 = express76.Router();
|
|
18961
|
+
router76.get("/", listLinkagesRoute);
|
|
18962
|
+
router76.get("/:id", getLinkageByIdRoute);
|
|
18963
|
+
router76.post("/", createLinkageRoute);
|
|
18964
|
+
router76.put("/:id", updateLinkageRoute);
|
|
18965
|
+
router76.delete("/:id", deleteLinkageRoute);
|
|
18901
18966
|
|
|
18902
18967
|
// src/data/rest-api/routes/data/list/list.ts
|
|
18903
|
-
import
|
|
18968
|
+
import express77 from "express";
|
|
18904
18969
|
|
|
18905
18970
|
// src/data/operations/data/list/list-create-operation.ts
|
|
18906
18971
|
import { ulid as ulid67 } from "ulid";
|
|
@@ -19092,15 +19157,15 @@ async function updateListRoute(req, res) {
|
|
|
19092
19157
|
}
|
|
19093
19158
|
|
|
19094
19159
|
// src/data/rest-api/routes/data/list/list.ts
|
|
19095
|
-
var
|
|
19096
|
-
|
|
19097
|
-
|
|
19098
|
-
|
|
19099
|
-
|
|
19100
|
-
|
|
19160
|
+
var router77 = express77.Router();
|
|
19161
|
+
router77.get("/", listListsRoute);
|
|
19162
|
+
router77.get("/:id", getListByIdRoute);
|
|
19163
|
+
router77.post("/", createListRoute);
|
|
19164
|
+
router77.put("/:id", updateListRoute);
|
|
19165
|
+
router77.delete("/:id", deleteListRoute);
|
|
19101
19166
|
|
|
19102
19167
|
// src/data/rest-api/routes/data/location/location.ts
|
|
19103
|
-
import
|
|
19168
|
+
import express78 from "express";
|
|
19104
19169
|
|
|
19105
19170
|
// src/data/operations/data/location/location-create-operation.ts
|
|
19106
19171
|
import { ulid as ulid68 } from "ulid";
|
|
@@ -19292,15 +19357,15 @@ async function updateLocationRoute(req, res) {
|
|
|
19292
19357
|
}
|
|
19293
19358
|
|
|
19294
19359
|
// src/data/rest-api/routes/data/location/location.ts
|
|
19295
|
-
var
|
|
19296
|
-
|
|
19297
|
-
|
|
19298
|
-
|
|
19299
|
-
|
|
19300
|
-
|
|
19360
|
+
var router78 = express78.Router();
|
|
19361
|
+
router78.get("/", listLocationsRoute);
|
|
19362
|
+
router78.get("/:id", getLocationByIdRoute);
|
|
19363
|
+
router78.post("/", createLocationRoute);
|
|
19364
|
+
router78.put("/:id", updateLocationRoute);
|
|
19365
|
+
router78.delete("/:id", deleteLocationRoute);
|
|
19301
19366
|
|
|
19302
19367
|
// src/data/rest-api/routes/data/measure/measure.ts
|
|
19303
|
-
import
|
|
19368
|
+
import express79 from "express";
|
|
19304
19369
|
|
|
19305
19370
|
// src/data/operations/data/measure/measure-create-operation.ts
|
|
19306
19371
|
import { ulid as ulid69 } from "ulid";
|
|
@@ -19492,15 +19557,15 @@ async function updateMeasureRoute(req, res) {
|
|
|
19492
19557
|
}
|
|
19493
19558
|
|
|
19494
19559
|
// src/data/rest-api/routes/data/measure/measure.ts
|
|
19495
|
-
var
|
|
19496
|
-
|
|
19497
|
-
|
|
19498
|
-
|
|
19499
|
-
|
|
19500
|
-
|
|
19560
|
+
var router79 = express79.Router();
|
|
19561
|
+
router79.get("/", listMeasuresRoute);
|
|
19562
|
+
router79.get("/:id", getMeasureByIdRoute);
|
|
19563
|
+
router79.post("/", createMeasureRoute);
|
|
19564
|
+
router79.put("/:id", updateMeasureRoute);
|
|
19565
|
+
router79.delete("/:id", deleteMeasureRoute);
|
|
19501
19566
|
|
|
19502
19567
|
// src/data/rest-api/routes/data/measurereport/measurereport.ts
|
|
19503
|
-
import
|
|
19568
|
+
import express80 from "express";
|
|
19504
19569
|
|
|
19505
19570
|
// src/data/operations/data/measurereport/measurereport-create-operation.ts
|
|
19506
19571
|
import { ulid as ulid70 } from "ulid";
|
|
@@ -19692,15 +19757,15 @@ async function updateMeasureReportRoute(req, res) {
|
|
|
19692
19757
|
}
|
|
19693
19758
|
|
|
19694
19759
|
// src/data/rest-api/routes/data/measurereport/measurereport.ts
|
|
19695
|
-
var
|
|
19696
|
-
|
|
19697
|
-
|
|
19698
|
-
|
|
19699
|
-
|
|
19700
|
-
|
|
19760
|
+
var router80 = express80.Router();
|
|
19761
|
+
router80.get("/", listMeasureReportsRoute);
|
|
19762
|
+
router80.get("/:id", getMeasureReportByIdRoute);
|
|
19763
|
+
router80.post("/", createMeasureReportRoute);
|
|
19764
|
+
router80.put("/:id", updateMeasureReportRoute);
|
|
19765
|
+
router80.delete("/:id", deleteMeasureReportRoute);
|
|
19701
19766
|
|
|
19702
19767
|
// src/data/rest-api/routes/data/media/media.ts
|
|
19703
|
-
import
|
|
19768
|
+
import express81 from "express";
|
|
19704
19769
|
|
|
19705
19770
|
// src/data/operations/data/media/media-create-operation.ts
|
|
19706
19771
|
import { ulid as ulid71 } from "ulid";
|
|
@@ -19892,15 +19957,15 @@ async function updateMediaRoute(req, res) {
|
|
|
19892
19957
|
}
|
|
19893
19958
|
|
|
19894
19959
|
// src/data/rest-api/routes/data/media/media.ts
|
|
19895
|
-
var
|
|
19896
|
-
|
|
19897
|
-
|
|
19898
|
-
|
|
19899
|
-
|
|
19900
|
-
|
|
19960
|
+
var router81 = express81.Router();
|
|
19961
|
+
router81.get("/", listMediasRoute);
|
|
19962
|
+
router81.get("/:id", getMediaByIdRoute);
|
|
19963
|
+
router81.post("/", createMediaRoute);
|
|
19964
|
+
router81.put("/:id", updateMediaRoute);
|
|
19965
|
+
router81.delete("/:id", deleteMediaRoute);
|
|
19901
19966
|
|
|
19902
19967
|
// src/data/rest-api/routes/data/medication/medication.ts
|
|
19903
|
-
import
|
|
19968
|
+
import express82 from "express";
|
|
19904
19969
|
|
|
19905
19970
|
// src/data/operations/data/medication/medication-create-operation.ts
|
|
19906
19971
|
import { ulid as ulid72 } from "ulid";
|
|
@@ -20092,15 +20157,15 @@ async function updateMedicationRoute(req, res) {
|
|
|
20092
20157
|
}
|
|
20093
20158
|
|
|
20094
20159
|
// src/data/rest-api/routes/data/medication/medication.ts
|
|
20095
|
-
var
|
|
20096
|
-
|
|
20097
|
-
|
|
20098
|
-
|
|
20099
|
-
|
|
20100
|
-
|
|
20160
|
+
var router82 = express82.Router();
|
|
20161
|
+
router82.get("/", listMedicationsRoute);
|
|
20162
|
+
router82.get("/:id", getMedicationByIdRoute);
|
|
20163
|
+
router82.post("/", createMedicationRoute);
|
|
20164
|
+
router82.put("/:id", updateMedicationRoute);
|
|
20165
|
+
router82.delete("/:id", deleteMedicationRoute);
|
|
20101
20166
|
|
|
20102
20167
|
// src/data/rest-api/routes/data/medicationadministration/medicationadministration.ts
|
|
20103
|
-
import
|
|
20168
|
+
import express83 from "express";
|
|
20104
20169
|
|
|
20105
20170
|
// src/data/operations/data/medicationadministration/medicationadministration-create-operation.ts
|
|
20106
20171
|
import { ulid as ulid73 } from "ulid";
|
|
@@ -20311,15 +20376,15 @@ async function updateMedicationAdministrationRoute(req, res) {
|
|
|
20311
20376
|
}
|
|
20312
20377
|
|
|
20313
20378
|
// src/data/rest-api/routes/data/medicationadministration/medicationadministration.ts
|
|
20314
|
-
var
|
|
20315
|
-
|
|
20316
|
-
|
|
20317
|
-
|
|
20318
|
-
|
|
20319
|
-
|
|
20379
|
+
var router83 = express83.Router();
|
|
20380
|
+
router83.get("/", listMedicationAdministrationsRoute);
|
|
20381
|
+
router83.get("/:id", getMedicationAdministrationByIdRoute);
|
|
20382
|
+
router83.post("/", createMedicationAdministrationRoute);
|
|
20383
|
+
router83.put("/:id", updateMedicationAdministrationRoute);
|
|
20384
|
+
router83.delete("/:id", deleteMedicationAdministrationRoute);
|
|
20320
20385
|
|
|
20321
20386
|
// src/data/rest-api/routes/data/medicationdispense/medicationdispense.ts
|
|
20322
|
-
import
|
|
20387
|
+
import express84 from "express";
|
|
20323
20388
|
|
|
20324
20389
|
// src/data/operations/data/medicationdispense/medicationdispense-create-operation.ts
|
|
20325
20390
|
import { ulid as ulid74 } from "ulid";
|
|
@@ -20518,15 +20583,15 @@ async function updateMedicationDispenseRoute(req, res) {
|
|
|
20518
20583
|
}
|
|
20519
20584
|
|
|
20520
20585
|
// src/data/rest-api/routes/data/medicationdispense/medicationdispense.ts
|
|
20521
|
-
var
|
|
20522
|
-
|
|
20523
|
-
|
|
20524
|
-
|
|
20525
|
-
|
|
20526
|
-
|
|
20586
|
+
var router84 = express84.Router();
|
|
20587
|
+
router84.get("/", listMedicationDispensesRoute);
|
|
20588
|
+
router84.get("/:id", getMedicationDispenseByIdRoute);
|
|
20589
|
+
router84.post("/", createMedicationDispenseRoute);
|
|
20590
|
+
router84.put("/:id", updateMedicationDispenseRoute);
|
|
20591
|
+
router84.delete("/:id", deleteMedicationDispenseRoute);
|
|
20527
20592
|
|
|
20528
20593
|
// src/data/rest-api/routes/data/medicationknowledge/medicationknowledge.ts
|
|
20529
|
-
import
|
|
20594
|
+
import express85 from "express";
|
|
20530
20595
|
|
|
20531
20596
|
// src/data/operations/data/medicationknowledge/medicationknowledge-create-operation.ts
|
|
20532
20597
|
import { ulid as ulid75 } from "ulid";
|
|
@@ -20725,15 +20790,15 @@ async function updateMedicationKnowledgeRoute(req, res) {
|
|
|
20725
20790
|
}
|
|
20726
20791
|
|
|
20727
20792
|
// src/data/rest-api/routes/data/medicationknowledge/medicationknowledge.ts
|
|
20728
|
-
var
|
|
20729
|
-
|
|
20730
|
-
|
|
20731
|
-
|
|
20732
|
-
|
|
20733
|
-
|
|
20793
|
+
var router85 = express85.Router();
|
|
20794
|
+
router85.get("/", listMedicationKnowledgesRoute);
|
|
20795
|
+
router85.get("/:id", getMedicationKnowledgeByIdRoute);
|
|
20796
|
+
router85.post("/", createMedicationKnowledgeRoute);
|
|
20797
|
+
router85.put("/:id", updateMedicationKnowledgeRoute);
|
|
20798
|
+
router85.delete("/:id", deleteMedicationKnowledgeRoute);
|
|
20734
20799
|
|
|
20735
20800
|
// src/data/rest-api/routes/data/medicationrequest/medicationrequest.ts
|
|
20736
|
-
import
|
|
20801
|
+
import express86 from "express";
|
|
20737
20802
|
|
|
20738
20803
|
// src/data/operations/data/medicationrequest/medicationrequest-create-operation.ts
|
|
20739
20804
|
import { ulid as ulid76 } from "ulid";
|
|
@@ -20928,15 +20993,15 @@ async function updateMedicationRequestRoute(req, res) {
|
|
|
20928
20993
|
}
|
|
20929
20994
|
|
|
20930
20995
|
// src/data/rest-api/routes/data/medicationrequest/medicationrequest.ts
|
|
20931
|
-
var
|
|
20932
|
-
|
|
20933
|
-
|
|
20934
|
-
|
|
20935
|
-
|
|
20936
|
-
|
|
20996
|
+
var router86 = express86.Router();
|
|
20997
|
+
router86.get("/", listMedicationRequestsRoute);
|
|
20998
|
+
router86.get("/:id", getMedicationRequestByIdRoute);
|
|
20999
|
+
router86.post("/", createMedicationRequestRoute);
|
|
21000
|
+
router86.put("/:id", updateMedicationRequestRoute);
|
|
21001
|
+
router86.delete("/:id", deleteMedicationRequestRoute);
|
|
20937
21002
|
|
|
20938
21003
|
// src/data/rest-api/routes/data/medicationstatement/medicationstatement.ts
|
|
20939
|
-
import
|
|
21004
|
+
import express87 from "express";
|
|
20940
21005
|
|
|
20941
21006
|
// src/data/operations/data/medicationstatement/medicationstatement-create-operation.ts
|
|
20942
21007
|
import { ulid as ulid77 } from "ulid";
|
|
@@ -21135,15 +21200,15 @@ async function updateMedicationStatementRoute(req, res) {
|
|
|
21135
21200
|
}
|
|
21136
21201
|
|
|
21137
21202
|
// src/data/rest-api/routes/data/medicationstatement/medicationstatement.ts
|
|
21138
|
-
var
|
|
21139
|
-
|
|
21140
|
-
|
|
21141
|
-
|
|
21142
|
-
|
|
21143
|
-
|
|
21203
|
+
var router87 = express87.Router();
|
|
21204
|
+
router87.get("/", listMedicationStatementsRoute);
|
|
21205
|
+
router87.get("/:id", getMedicationStatementByIdRoute);
|
|
21206
|
+
router87.post("/", createMedicationStatementRoute);
|
|
21207
|
+
router87.put("/:id", updateMedicationStatementRoute);
|
|
21208
|
+
router87.delete("/:id", deleteMedicationStatementRoute);
|
|
21144
21209
|
|
|
21145
21210
|
// src/data/rest-api/routes/data/medicinalproduct/medicinalproduct.ts
|
|
21146
|
-
import
|
|
21211
|
+
import express88 from "express";
|
|
21147
21212
|
|
|
21148
21213
|
// src/data/operations/data/medicinalproduct/medicinalproduct-create-operation.ts
|
|
21149
21214
|
import { ulid as ulid78 } from "ulid";
|
|
@@ -21335,15 +21400,15 @@ async function updateMedicinalProductRoute(req, res) {
|
|
|
21335
21400
|
}
|
|
21336
21401
|
|
|
21337
21402
|
// src/data/rest-api/routes/data/medicinalproduct/medicinalproduct.ts
|
|
21338
|
-
var
|
|
21339
|
-
|
|
21340
|
-
|
|
21341
|
-
|
|
21342
|
-
|
|
21343
|
-
|
|
21403
|
+
var router88 = express88.Router();
|
|
21404
|
+
router88.get("/", listMedicinalProductsRoute);
|
|
21405
|
+
router88.get("/:id", getMedicinalProductByIdRoute);
|
|
21406
|
+
router88.post("/", createMedicinalProductRoute);
|
|
21407
|
+
router88.put("/:id", updateMedicinalProductRoute);
|
|
21408
|
+
router88.delete("/:id", deleteMedicinalProductRoute);
|
|
21344
21409
|
|
|
21345
21410
|
// src/data/rest-api/routes/data/medicinalproductauthorization/medicinalproductauthorization.ts
|
|
21346
|
-
import
|
|
21411
|
+
import express89 from "express";
|
|
21347
21412
|
|
|
21348
21413
|
// src/data/operations/data/medicinalproductauthorization/medicinalproductauthorization-create-operation.ts
|
|
21349
21414
|
import { ulid as ulid79 } from "ulid";
|
|
@@ -21554,15 +21619,15 @@ async function updateMedicinalProductAuthorizationRoute(req, res) {
|
|
|
21554
21619
|
}
|
|
21555
21620
|
|
|
21556
21621
|
// src/data/rest-api/routes/data/medicinalproductauthorization/medicinalproductauthorization.ts
|
|
21557
|
-
var
|
|
21558
|
-
|
|
21559
|
-
|
|
21560
|
-
|
|
21561
|
-
|
|
21562
|
-
|
|
21622
|
+
var router89 = express89.Router();
|
|
21623
|
+
router89.get("/", listMedicinalProductAuthorizationsRoute);
|
|
21624
|
+
router89.get("/:id", getMedicinalProductAuthorizationByIdRoute);
|
|
21625
|
+
router89.post("/", createMedicinalProductAuthorizationRoute);
|
|
21626
|
+
router89.put("/:id", updateMedicinalProductAuthorizationRoute);
|
|
21627
|
+
router89.delete("/:id", deleteMedicinalProductAuthorizationRoute);
|
|
21563
21628
|
|
|
21564
21629
|
// src/data/rest-api/routes/data/medicinalproductcontraindication/medicinalproductcontraindication.ts
|
|
21565
|
-
import
|
|
21630
|
+
import express90 from "express";
|
|
21566
21631
|
|
|
21567
21632
|
// src/data/operations/data/medicinalproductcontraindication/medicinalproductcontraindication-create-operation.ts
|
|
21568
21633
|
import { ulid as ulid80 } from "ulid";
|
|
@@ -21779,15 +21844,15 @@ async function updateMedicinalProductContraindicationRoute(req, res) {
|
|
|
21779
21844
|
}
|
|
21780
21845
|
|
|
21781
21846
|
// src/data/rest-api/routes/data/medicinalproductcontraindication/medicinalproductcontraindication.ts
|
|
21782
|
-
var
|
|
21783
|
-
|
|
21784
|
-
|
|
21785
|
-
|
|
21786
|
-
|
|
21787
|
-
|
|
21847
|
+
var router90 = express90.Router();
|
|
21848
|
+
router90.get("/", listMedicinalProductContraindicationsRoute);
|
|
21849
|
+
router90.get("/:id", getMedicinalProductContraindicationByIdRoute);
|
|
21850
|
+
router90.post("/", createMedicinalProductContraindicationRoute);
|
|
21851
|
+
router90.put("/:id", updateMedicinalProductContraindicationRoute);
|
|
21852
|
+
router90.delete("/:id", deleteMedicinalProductContraindicationRoute);
|
|
21788
21853
|
|
|
21789
21854
|
// src/data/rest-api/routes/data/medicinalproductindication/medicinalproductindication.ts
|
|
21790
|
-
import
|
|
21855
|
+
import express91 from "express";
|
|
21791
21856
|
|
|
21792
21857
|
// src/data/operations/data/medicinalproductindication/medicinalproductindication-create-operation.ts
|
|
21793
21858
|
import { ulid as ulid81 } from "ulid";
|
|
@@ -21998,15 +22063,15 @@ async function updateMedicinalProductIndicationRoute(req, res) {
|
|
|
21998
22063
|
}
|
|
21999
22064
|
|
|
22000
22065
|
// src/data/rest-api/routes/data/medicinalproductindication/medicinalproductindication.ts
|
|
22001
|
-
var
|
|
22002
|
-
|
|
22003
|
-
|
|
22004
|
-
|
|
22005
|
-
|
|
22006
|
-
|
|
22066
|
+
var router91 = express91.Router();
|
|
22067
|
+
router91.get("/", listMedicinalProductIndicationsRoute);
|
|
22068
|
+
router91.get("/:id", getMedicinalProductIndicationByIdRoute);
|
|
22069
|
+
router91.post("/", createMedicinalProductIndicationRoute);
|
|
22070
|
+
router91.put("/:id", updateMedicinalProductIndicationRoute);
|
|
22071
|
+
router91.delete("/:id", deleteMedicinalProductIndicationRoute);
|
|
22007
22072
|
|
|
22008
22073
|
// src/data/rest-api/routes/data/medicinalproductingredient/medicinalproductingredient.ts
|
|
22009
|
-
import
|
|
22074
|
+
import express92 from "express";
|
|
22010
22075
|
|
|
22011
22076
|
// src/data/operations/data/medicinalproductingredient/medicinalproductingredient-create-operation.ts
|
|
22012
22077
|
import { ulid as ulid82 } from "ulid";
|
|
@@ -22217,15 +22282,15 @@ async function updateMedicinalProductIngredientRoute(req, res) {
|
|
|
22217
22282
|
}
|
|
22218
22283
|
|
|
22219
22284
|
// src/data/rest-api/routes/data/medicinalproductingredient/medicinalproductingredient.ts
|
|
22220
|
-
var
|
|
22221
|
-
|
|
22222
|
-
|
|
22223
|
-
|
|
22224
|
-
|
|
22225
|
-
|
|
22285
|
+
var router92 = express92.Router();
|
|
22286
|
+
router92.get("/", listMedicinalProductIngredientsRoute);
|
|
22287
|
+
router92.get("/:id", getMedicinalProductIngredientByIdRoute);
|
|
22288
|
+
router92.post("/", createMedicinalProductIngredientRoute);
|
|
22289
|
+
router92.put("/:id", updateMedicinalProductIngredientRoute);
|
|
22290
|
+
router92.delete("/:id", deleteMedicinalProductIngredientRoute);
|
|
22226
22291
|
|
|
22227
22292
|
// src/data/rest-api/routes/data/medicinalproductinteraction/medicinalproductinteraction.ts
|
|
22228
|
-
import
|
|
22293
|
+
import express93 from "express";
|
|
22229
22294
|
|
|
22230
22295
|
// src/data/operations/data/medicinalproductinteraction/medicinalproductinteraction-create-operation.ts
|
|
22231
22296
|
import { ulid as ulid83 } from "ulid";
|
|
@@ -22436,15 +22501,15 @@ async function updateMedicinalProductInteractionRoute(req, res) {
|
|
|
22436
22501
|
}
|
|
22437
22502
|
|
|
22438
22503
|
// src/data/rest-api/routes/data/medicinalproductinteraction/medicinalproductinteraction.ts
|
|
22439
|
-
var
|
|
22440
|
-
|
|
22441
|
-
|
|
22442
|
-
|
|
22443
|
-
|
|
22444
|
-
|
|
22504
|
+
var router93 = express93.Router();
|
|
22505
|
+
router93.get("/", listMedicinalProductInteractionsRoute);
|
|
22506
|
+
router93.get("/:id", getMedicinalProductInteractionByIdRoute);
|
|
22507
|
+
router93.post("/", createMedicinalProductInteractionRoute);
|
|
22508
|
+
router93.put("/:id", updateMedicinalProductInteractionRoute);
|
|
22509
|
+
router93.delete("/:id", deleteMedicinalProductInteractionRoute);
|
|
22445
22510
|
|
|
22446
22511
|
// src/data/rest-api/routes/data/medicinalproductmanufactured/medicinalproductmanufactured.ts
|
|
22447
|
-
import
|
|
22512
|
+
import express94 from "express";
|
|
22448
22513
|
|
|
22449
22514
|
// src/data/operations/data/medicinalproductmanufactured/medicinalproductmanufactured-create-operation.ts
|
|
22450
22515
|
import { ulid as ulid84 } from "ulid";
|
|
@@ -22655,15 +22720,15 @@ async function updateMedicinalProductManufacturedRoute(req, res) {
|
|
|
22655
22720
|
}
|
|
22656
22721
|
|
|
22657
22722
|
// src/data/rest-api/routes/data/medicinalproductmanufactured/medicinalproductmanufactured.ts
|
|
22658
|
-
var
|
|
22659
|
-
|
|
22660
|
-
|
|
22661
|
-
|
|
22662
|
-
|
|
22663
|
-
|
|
22723
|
+
var router94 = express94.Router();
|
|
22724
|
+
router94.get("/", listMedicinalProductManufacturedsRoute);
|
|
22725
|
+
router94.get("/:id", getMedicinalProductManufacturedByIdRoute);
|
|
22726
|
+
router94.post("/", createMedicinalProductManufacturedRoute);
|
|
22727
|
+
router94.put("/:id", updateMedicinalProductManufacturedRoute);
|
|
22728
|
+
router94.delete("/:id", deleteMedicinalProductManufacturedRoute);
|
|
22664
22729
|
|
|
22665
22730
|
// src/data/rest-api/routes/data/medicinalproductpackaged/medicinalproductpackaged.ts
|
|
22666
|
-
import
|
|
22731
|
+
import express95 from "express";
|
|
22667
22732
|
|
|
22668
22733
|
// src/data/operations/data/medicinalproductpackaged/medicinalproductpackaged-create-operation.ts
|
|
22669
22734
|
import { ulid as ulid85 } from "ulid";
|
|
@@ -22874,15 +22939,15 @@ async function updateMedicinalProductPackagedRoute(req, res) {
|
|
|
22874
22939
|
}
|
|
22875
22940
|
|
|
22876
22941
|
// src/data/rest-api/routes/data/medicinalproductpackaged/medicinalproductpackaged.ts
|
|
22877
|
-
var
|
|
22878
|
-
|
|
22879
|
-
|
|
22880
|
-
|
|
22881
|
-
|
|
22882
|
-
|
|
22942
|
+
var router95 = express95.Router();
|
|
22943
|
+
router95.get("/", listMedicinalProductPackagedsRoute);
|
|
22944
|
+
router95.get("/:id", getMedicinalProductPackagedByIdRoute);
|
|
22945
|
+
router95.post("/", createMedicinalProductPackagedRoute);
|
|
22946
|
+
router95.put("/:id", updateMedicinalProductPackagedRoute);
|
|
22947
|
+
router95.delete("/:id", deleteMedicinalProductPackagedRoute);
|
|
22883
22948
|
|
|
22884
22949
|
// src/data/rest-api/routes/data/medicinalproductpharmaceutical/medicinalproductpharmaceutical.ts
|
|
22885
|
-
import
|
|
22950
|
+
import express96 from "express";
|
|
22886
22951
|
|
|
22887
22952
|
// src/data/operations/data/medicinalproductpharmaceutical/medicinalproductpharmaceutical-create-operation.ts
|
|
22888
22953
|
import { ulid as ulid86 } from "ulid";
|
|
@@ -23099,15 +23164,15 @@ async function updateMedicinalProductPharmaceuticalRoute(req, res) {
|
|
|
23099
23164
|
}
|
|
23100
23165
|
|
|
23101
23166
|
// src/data/rest-api/routes/data/medicinalproductpharmaceutical/medicinalproductpharmaceutical.ts
|
|
23102
|
-
var
|
|
23103
|
-
|
|
23104
|
-
|
|
23105
|
-
|
|
23106
|
-
|
|
23107
|
-
|
|
23167
|
+
var router96 = express96.Router();
|
|
23168
|
+
router96.get("/", listMedicinalProductPharmaceuticalsRoute);
|
|
23169
|
+
router96.get("/:id", getMedicinalProductPharmaceuticalByIdRoute);
|
|
23170
|
+
router96.post("/", createMedicinalProductPharmaceuticalRoute);
|
|
23171
|
+
router96.put("/:id", updateMedicinalProductPharmaceuticalRoute);
|
|
23172
|
+
router96.delete("/:id", deleteMedicinalProductPharmaceuticalRoute);
|
|
23108
23173
|
|
|
23109
23174
|
// src/data/rest-api/routes/data/medicinalproductundesirableeffect/medicinalproductundesirableeffect.ts
|
|
23110
|
-
import
|
|
23175
|
+
import express97 from "express";
|
|
23111
23176
|
|
|
23112
23177
|
// src/data/operations/data/medicinalproductundesirableeffect/medicinalproductundesirableeffect-create-operation.ts
|
|
23113
23178
|
import { ulid as ulid87 } from "ulid";
|
|
@@ -23327,15 +23392,15 @@ async function updateMedicinalProductUndesirableEffectRoute(req, res) {
|
|
|
23327
23392
|
}
|
|
23328
23393
|
|
|
23329
23394
|
// src/data/rest-api/routes/data/medicinalproductundesirableeffect/medicinalproductundesirableeffect.ts
|
|
23330
|
-
var
|
|
23331
|
-
|
|
23332
|
-
|
|
23333
|
-
|
|
23334
|
-
|
|
23335
|
-
|
|
23395
|
+
var router97 = express97.Router();
|
|
23396
|
+
router97.get("/", listMedicinalProductUndesirableEffectsRoute);
|
|
23397
|
+
router97.get("/:id", getMedicinalProductUndesirableEffectByIdRoute);
|
|
23398
|
+
router97.post("/", createMedicinalProductUndesirableEffectRoute);
|
|
23399
|
+
router97.put("/:id", updateMedicinalProductUndesirableEffectRoute);
|
|
23400
|
+
router97.delete("/:id", deleteMedicinalProductUndesirableEffectRoute);
|
|
23336
23401
|
|
|
23337
23402
|
// src/data/rest-api/routes/data/messagedefinition/messagedefinition.ts
|
|
23338
|
-
import
|
|
23403
|
+
import express98 from "express";
|
|
23339
23404
|
|
|
23340
23405
|
// src/data/operations/data/messagedefinition/messagedefinition-create-operation.ts
|
|
23341
23406
|
import { ulid as ulid88 } from "ulid";
|
|
@@ -23530,15 +23595,15 @@ async function updateMessageDefinitionRoute(req, res) {
|
|
|
23530
23595
|
}
|
|
23531
23596
|
|
|
23532
23597
|
// src/data/rest-api/routes/data/messagedefinition/messagedefinition.ts
|
|
23533
|
-
var
|
|
23534
|
-
|
|
23535
|
-
|
|
23536
|
-
|
|
23537
|
-
|
|
23538
|
-
|
|
23598
|
+
var router98 = express98.Router();
|
|
23599
|
+
router98.get("/", listMessageDefinitionsRoute);
|
|
23600
|
+
router98.get("/:id", getMessageDefinitionByIdRoute);
|
|
23601
|
+
router98.post("/", createMessageDefinitionRoute);
|
|
23602
|
+
router98.put("/:id", updateMessageDefinitionRoute);
|
|
23603
|
+
router98.delete("/:id", deleteMessageDefinitionRoute);
|
|
23539
23604
|
|
|
23540
23605
|
// src/data/rest-api/routes/data/messageheader/messageheader.ts
|
|
23541
|
-
import
|
|
23606
|
+
import express99 from "express";
|
|
23542
23607
|
|
|
23543
23608
|
// src/data/operations/data/messageheader/messageheader-create-operation.ts
|
|
23544
23609
|
import { ulid as ulid89 } from "ulid";
|
|
@@ -23730,15 +23795,15 @@ async function updateMessageHeaderRoute(req, res) {
|
|
|
23730
23795
|
}
|
|
23731
23796
|
|
|
23732
23797
|
// src/data/rest-api/routes/data/messageheader/messageheader.ts
|
|
23733
|
-
var
|
|
23734
|
-
|
|
23735
|
-
|
|
23736
|
-
|
|
23737
|
-
|
|
23738
|
-
|
|
23798
|
+
var router99 = express99.Router();
|
|
23799
|
+
router99.get("/", listMessageHeadersRoute);
|
|
23800
|
+
router99.get("/:id", getMessageHeaderByIdRoute);
|
|
23801
|
+
router99.post("/", createMessageHeaderRoute);
|
|
23802
|
+
router99.put("/:id", updateMessageHeaderRoute);
|
|
23803
|
+
router99.delete("/:id", deleteMessageHeaderRoute);
|
|
23739
23804
|
|
|
23740
23805
|
// src/data/rest-api/routes/data/molecularsequence/molecularsequence.ts
|
|
23741
|
-
import
|
|
23806
|
+
import express100 from "express";
|
|
23742
23807
|
|
|
23743
23808
|
// src/data/operations/data/molecularsequence/molecularsequence-create-operation.ts
|
|
23744
23809
|
import { ulid as ulid90 } from "ulid";
|
|
@@ -23933,15 +23998,15 @@ async function updateMolecularSequenceRoute(req, res) {
|
|
|
23933
23998
|
}
|
|
23934
23999
|
|
|
23935
24000
|
// src/data/rest-api/routes/data/molecularsequence/molecularsequence.ts
|
|
23936
|
-
var
|
|
23937
|
-
|
|
23938
|
-
|
|
23939
|
-
|
|
23940
|
-
|
|
23941
|
-
|
|
24001
|
+
var router100 = express100.Router();
|
|
24002
|
+
router100.get("/", listMolecularSequencesRoute);
|
|
24003
|
+
router100.get("/:id", getMolecularSequenceByIdRoute);
|
|
24004
|
+
router100.post("/", createMolecularSequenceRoute);
|
|
24005
|
+
router100.put("/:id", updateMolecularSequenceRoute);
|
|
24006
|
+
router100.delete("/:id", deleteMolecularSequenceRoute);
|
|
23942
24007
|
|
|
23943
24008
|
// src/data/rest-api/routes/data/namingsystem/namingsystem.ts
|
|
23944
|
-
import
|
|
24009
|
+
import express101 from "express";
|
|
23945
24010
|
|
|
23946
24011
|
// src/data/operations/data/namingsystem/namingsystem-create-operation.ts
|
|
23947
24012
|
import { ulid as ulid91 } from "ulid";
|
|
@@ -24133,15 +24198,15 @@ async function updateNamingSystemRoute(req, res) {
|
|
|
24133
24198
|
}
|
|
24134
24199
|
|
|
24135
24200
|
// src/data/rest-api/routes/data/namingsystem/namingsystem.ts
|
|
24136
|
-
var
|
|
24137
|
-
|
|
24138
|
-
|
|
24139
|
-
|
|
24140
|
-
|
|
24141
|
-
|
|
24201
|
+
var router101 = express101.Router();
|
|
24202
|
+
router101.get("/", listNamingSystemsRoute);
|
|
24203
|
+
router101.get("/:id", getNamingSystemByIdRoute);
|
|
24204
|
+
router101.post("/", createNamingSystemRoute);
|
|
24205
|
+
router101.put("/:id", updateNamingSystemRoute);
|
|
24206
|
+
router101.delete("/:id", deleteNamingSystemRoute);
|
|
24142
24207
|
|
|
24143
24208
|
// src/data/rest-api/routes/data/nutritionorder/nutritionorder.ts
|
|
24144
|
-
import
|
|
24209
|
+
import express102 from "express";
|
|
24145
24210
|
|
|
24146
24211
|
// src/data/operations/data/nutritionorder/nutritionorder-create-operation.ts
|
|
24147
24212
|
import { ulid as ulid92 } from "ulid";
|
|
@@ -24333,15 +24398,15 @@ async function updateNutritionOrderRoute(req, res) {
|
|
|
24333
24398
|
}
|
|
24334
24399
|
|
|
24335
24400
|
// src/data/rest-api/routes/data/nutritionorder/nutritionorder.ts
|
|
24336
|
-
var
|
|
24337
|
-
|
|
24338
|
-
|
|
24339
|
-
|
|
24340
|
-
|
|
24341
|
-
|
|
24401
|
+
var router102 = express102.Router();
|
|
24402
|
+
router102.get("/", listNutritionOrdersRoute);
|
|
24403
|
+
router102.get("/:id", getNutritionOrderByIdRoute);
|
|
24404
|
+
router102.post("/", createNutritionOrderRoute);
|
|
24405
|
+
router102.put("/:id", updateNutritionOrderRoute);
|
|
24406
|
+
router102.delete("/:id", deleteNutritionOrderRoute);
|
|
24342
24407
|
|
|
24343
24408
|
// src/data/rest-api/routes/data/observation/observation.ts
|
|
24344
|
-
import
|
|
24409
|
+
import express103 from "express";
|
|
24345
24410
|
|
|
24346
24411
|
// src/data/rest-api/routes/data/observation/observation-create-route.ts
|
|
24347
24412
|
async function createObservationRoute(req, res) {
|
|
@@ -24498,15 +24563,15 @@ async function updateObservationRoute(req, res) {
|
|
|
24498
24563
|
}
|
|
24499
24564
|
|
|
24500
24565
|
// src/data/rest-api/routes/data/observation/observation.ts
|
|
24501
|
-
var
|
|
24502
|
-
|
|
24503
|
-
|
|
24504
|
-
|
|
24505
|
-
|
|
24506
|
-
|
|
24566
|
+
var router103 = express103.Router();
|
|
24567
|
+
router103.get("/", listObservationsRoute);
|
|
24568
|
+
router103.get("/:id", getObservationByIdRoute);
|
|
24569
|
+
router103.post("/", createObservationRoute);
|
|
24570
|
+
router103.put("/:id", updateObservationRoute);
|
|
24571
|
+
router103.delete("/:id", deleteObservationRoute);
|
|
24507
24572
|
|
|
24508
24573
|
// src/data/rest-api/routes/data/observationdefinition/observationdefinition.ts
|
|
24509
|
-
import
|
|
24574
|
+
import express104 from "express";
|
|
24510
24575
|
|
|
24511
24576
|
// src/data/operations/data/observationdefinition/observationdefinition-create-operation.ts
|
|
24512
24577
|
import { ulid as ulid93 } from "ulid";
|
|
@@ -24717,15 +24782,15 @@ async function updateObservationDefinitionRoute(req, res) {
|
|
|
24717
24782
|
}
|
|
24718
24783
|
|
|
24719
24784
|
// src/data/rest-api/routes/data/observationdefinition/observationdefinition.ts
|
|
24720
|
-
var
|
|
24721
|
-
|
|
24722
|
-
|
|
24723
|
-
|
|
24724
|
-
|
|
24725
|
-
|
|
24785
|
+
var router104 = express104.Router();
|
|
24786
|
+
router104.get("/", listObservationDefinitionsRoute);
|
|
24787
|
+
router104.get("/:id", getObservationDefinitionByIdRoute);
|
|
24788
|
+
router104.post("/", createObservationDefinitionRoute);
|
|
24789
|
+
router104.put("/:id", updateObservationDefinitionRoute);
|
|
24790
|
+
router104.delete("/:id", deleteObservationDefinitionRoute);
|
|
24726
24791
|
|
|
24727
24792
|
// src/data/rest-api/routes/data/operationdefinition/operationdefinition.ts
|
|
24728
|
-
import
|
|
24793
|
+
import express105 from "express";
|
|
24729
24794
|
|
|
24730
24795
|
// src/data/operations/data/operationdefinition/operationdefinition-create-operation.ts
|
|
24731
24796
|
import { ulid as ulid94 } from "ulid";
|
|
@@ -24924,15 +24989,15 @@ async function updateOperationDefinitionRoute(req, res) {
|
|
|
24924
24989
|
}
|
|
24925
24990
|
|
|
24926
24991
|
// src/data/rest-api/routes/data/operationdefinition/operationdefinition.ts
|
|
24927
|
-
var
|
|
24928
|
-
|
|
24929
|
-
|
|
24930
|
-
|
|
24931
|
-
|
|
24932
|
-
|
|
24992
|
+
var router105 = express105.Router();
|
|
24993
|
+
router105.get("/", listOperationDefinitionsRoute);
|
|
24994
|
+
router105.get("/:id", getOperationDefinitionByIdRoute);
|
|
24995
|
+
router105.post("/", createOperationDefinitionRoute);
|
|
24996
|
+
router105.put("/:id", updateOperationDefinitionRoute);
|
|
24997
|
+
router105.delete("/:id", deleteOperationDefinitionRoute);
|
|
24933
24998
|
|
|
24934
24999
|
// src/data/rest-api/routes/data/organization/organization.ts
|
|
24935
|
-
import
|
|
25000
|
+
import express106 from "express";
|
|
24936
25001
|
|
|
24937
25002
|
// src/data/operations/data/organization/organization-create-operation.ts
|
|
24938
25003
|
import { ulid as ulid95 } from "ulid";
|
|
@@ -25097,15 +25162,15 @@ async function updateOrganizationRoute(req, res) {
|
|
|
25097
25162
|
}
|
|
25098
25163
|
|
|
25099
25164
|
// src/data/rest-api/routes/data/organization/organization.ts
|
|
25100
|
-
var
|
|
25101
|
-
|
|
25102
|
-
|
|
25103
|
-
|
|
25104
|
-
|
|
25105
|
-
|
|
25165
|
+
var router106 = express106.Router();
|
|
25166
|
+
router106.get("/", listOrganizationsRoute);
|
|
25167
|
+
router106.get("/:id", getOrganizationByIdRoute);
|
|
25168
|
+
router106.post("/", createOrganizationRoute);
|
|
25169
|
+
router106.put("/:id", updateOrganizationRoute);
|
|
25170
|
+
router106.delete("/:id", deleteOrganizationRoute);
|
|
25106
25171
|
|
|
25107
25172
|
// src/data/rest-api/routes/data/organizationaffiliation/organizationaffiliation.ts
|
|
25108
|
-
import
|
|
25173
|
+
import express107 from "express";
|
|
25109
25174
|
|
|
25110
25175
|
// src/data/operations/data/organizationaffiliation/organizationaffiliation-create-operation.ts
|
|
25111
25176
|
import { ulid as ulid96 } from "ulid";
|
|
@@ -25316,15 +25381,15 @@ async function updateOrganizationAffiliationRoute(req, res) {
|
|
|
25316
25381
|
}
|
|
25317
25382
|
|
|
25318
25383
|
// src/data/rest-api/routes/data/organizationaffiliation/organizationaffiliation.ts
|
|
25319
|
-
var
|
|
25320
|
-
|
|
25321
|
-
|
|
25322
|
-
|
|
25323
|
-
|
|
25324
|
-
|
|
25384
|
+
var router107 = express107.Router();
|
|
25385
|
+
router107.get("/", listOrganizationAffiliationsRoute);
|
|
25386
|
+
router107.get("/:id", getOrganizationAffiliationByIdRoute);
|
|
25387
|
+
router107.post("/", createOrganizationAffiliationRoute);
|
|
25388
|
+
router107.put("/:id", updateOrganizationAffiliationRoute);
|
|
25389
|
+
router107.delete("/:id", deleteOrganizationAffiliationRoute);
|
|
25325
25390
|
|
|
25326
25391
|
// src/data/rest-api/routes/data/patient/patient.ts
|
|
25327
|
-
import
|
|
25392
|
+
import express108 from "express";
|
|
25328
25393
|
|
|
25329
25394
|
// src/data/rest-api/routes/data/patient/patient-create-route.ts
|
|
25330
25395
|
async function createPatientRoute(req, res) {
|
|
@@ -25564,15 +25629,15 @@ async function updatePatientRoute(req, res) {
|
|
|
25564
25629
|
}
|
|
25565
25630
|
|
|
25566
25631
|
// src/data/rest-api/routes/data/patient/patient.ts
|
|
25567
|
-
var
|
|
25568
|
-
|
|
25569
|
-
|
|
25570
|
-
|
|
25571
|
-
|
|
25572
|
-
|
|
25632
|
+
var router108 = express108.Router();
|
|
25633
|
+
router108.get("/", listPatientsRoute);
|
|
25634
|
+
router108.get("/:id", getPatientByIdRoute);
|
|
25635
|
+
router108.post("/", createPatientRoute);
|
|
25636
|
+
router108.put("/:id", updatePatientRoute);
|
|
25637
|
+
router108.delete("/:id", deletePatientRoute);
|
|
25573
25638
|
|
|
25574
25639
|
// src/data/rest-api/routes/data/paymentnotice/paymentnotice.ts
|
|
25575
|
-
import
|
|
25640
|
+
import express109 from "express";
|
|
25576
25641
|
|
|
25577
25642
|
// src/data/operations/data/paymentnotice/paymentnotice-create-operation.ts
|
|
25578
25643
|
import { ulid as ulid97 } from "ulid";
|
|
@@ -25764,15 +25829,15 @@ async function updatePaymentNoticeRoute(req, res) {
|
|
|
25764
25829
|
}
|
|
25765
25830
|
|
|
25766
25831
|
// src/data/rest-api/routes/data/paymentnotice/paymentnotice.ts
|
|
25767
|
-
var
|
|
25768
|
-
|
|
25769
|
-
|
|
25770
|
-
|
|
25771
|
-
|
|
25772
|
-
|
|
25832
|
+
var router109 = express109.Router();
|
|
25833
|
+
router109.get("/", listPaymentNoticesRoute);
|
|
25834
|
+
router109.get("/:id", getPaymentNoticeByIdRoute);
|
|
25835
|
+
router109.post("/", createPaymentNoticeRoute);
|
|
25836
|
+
router109.put("/:id", updatePaymentNoticeRoute);
|
|
25837
|
+
router109.delete("/:id", deletePaymentNoticeRoute);
|
|
25773
25838
|
|
|
25774
25839
|
// src/data/rest-api/routes/data/paymentreconciliation/paymentreconciliation.ts
|
|
25775
|
-
import
|
|
25840
|
+
import express110 from "express";
|
|
25776
25841
|
|
|
25777
25842
|
// src/data/operations/data/paymentreconciliation/paymentreconciliation-create-operation.ts
|
|
25778
25843
|
import { ulid as ulid98 } from "ulid";
|
|
@@ -25983,15 +26048,15 @@ async function updatePaymentReconciliationRoute(req, res) {
|
|
|
25983
26048
|
}
|
|
25984
26049
|
|
|
25985
26050
|
// src/data/rest-api/routes/data/paymentreconciliation/paymentreconciliation.ts
|
|
25986
|
-
var
|
|
25987
|
-
|
|
25988
|
-
|
|
25989
|
-
|
|
25990
|
-
|
|
25991
|
-
|
|
26051
|
+
var router110 = express110.Router();
|
|
26052
|
+
router110.get("/", listPaymentReconciliationsRoute);
|
|
26053
|
+
router110.get("/:id", getPaymentReconciliationByIdRoute);
|
|
26054
|
+
router110.post("/", createPaymentReconciliationRoute);
|
|
26055
|
+
router110.put("/:id", updatePaymentReconciliationRoute);
|
|
26056
|
+
router110.delete("/:id", deletePaymentReconciliationRoute);
|
|
25992
26057
|
|
|
25993
26058
|
// src/data/rest-api/routes/data/person/person.ts
|
|
25994
|
-
import
|
|
26059
|
+
import express111 from "express";
|
|
25995
26060
|
|
|
25996
26061
|
// src/data/operations/data/person/person-create-operation.ts
|
|
25997
26062
|
import { ulid as ulid99 } from "ulid";
|
|
@@ -26183,15 +26248,15 @@ async function updatePersonRoute(req, res) {
|
|
|
26183
26248
|
}
|
|
26184
26249
|
|
|
26185
26250
|
// src/data/rest-api/routes/data/person/person.ts
|
|
26186
|
-
var
|
|
26187
|
-
|
|
26188
|
-
|
|
26189
|
-
|
|
26190
|
-
|
|
26191
|
-
|
|
26251
|
+
var router111 = express111.Router();
|
|
26252
|
+
router111.get("/", listPersonsRoute);
|
|
26253
|
+
router111.get("/:id", getPersonByIdRoute);
|
|
26254
|
+
router111.post("/", createPersonRoute);
|
|
26255
|
+
router111.put("/:id", updatePersonRoute);
|
|
26256
|
+
router111.delete("/:id", deletePersonRoute);
|
|
26192
26257
|
|
|
26193
26258
|
// src/data/rest-api/routes/data/plandefinition/plandefinition.ts
|
|
26194
|
-
import
|
|
26259
|
+
import express112 from "express";
|
|
26195
26260
|
|
|
26196
26261
|
// src/data/operations/data/plandefinition/plandefinition-create-operation.ts
|
|
26197
26262
|
import { ulid as ulid100 } from "ulid";
|
|
@@ -26383,15 +26448,15 @@ async function updatePlanDefinitionRoute(req, res) {
|
|
|
26383
26448
|
}
|
|
26384
26449
|
|
|
26385
26450
|
// src/data/rest-api/routes/data/plandefinition/plandefinition.ts
|
|
26386
|
-
var
|
|
26387
|
-
|
|
26388
|
-
|
|
26389
|
-
|
|
26390
|
-
|
|
26391
|
-
|
|
26451
|
+
var router112 = express112.Router();
|
|
26452
|
+
router112.get("/", listPlanDefinitionsRoute);
|
|
26453
|
+
router112.get("/:id", getPlanDefinitionByIdRoute);
|
|
26454
|
+
router112.post("/", createPlanDefinitionRoute);
|
|
26455
|
+
router112.put("/:id", updatePlanDefinitionRoute);
|
|
26456
|
+
router112.delete("/:id", deletePlanDefinitionRoute);
|
|
26392
26457
|
|
|
26393
26458
|
// src/data/rest-api/routes/data/practitioner/practitioner.ts
|
|
26394
|
-
import
|
|
26459
|
+
import express113 from "express";
|
|
26395
26460
|
|
|
26396
26461
|
// src/data/rest-api/routes/data/practitioner/practitioner-create-route.ts
|
|
26397
26462
|
async function createPractitionerRoute(req, res) {
|
|
@@ -26553,15 +26618,15 @@ async function updatePractitionerRoute(req, res) {
|
|
|
26553
26618
|
}
|
|
26554
26619
|
|
|
26555
26620
|
// src/data/rest-api/routes/data/practitioner/practitioner.ts
|
|
26556
|
-
var
|
|
26557
|
-
|
|
26558
|
-
|
|
26559
|
-
|
|
26560
|
-
|
|
26561
|
-
|
|
26621
|
+
var router113 = express113.Router();
|
|
26622
|
+
router113.get("/", listPractitionersRoute);
|
|
26623
|
+
router113.get("/:id", getPractitionerByIdRoute);
|
|
26624
|
+
router113.post("/", createPractitionerRoute);
|
|
26625
|
+
router113.put("/:id", updatePractitionerRoute);
|
|
26626
|
+
router113.delete("/:id", deletePractitionerRoute);
|
|
26562
26627
|
|
|
26563
26628
|
// src/data/rest-api/routes/data/practitionerrole/practitionerrole.ts
|
|
26564
|
-
import
|
|
26629
|
+
import express114 from "express";
|
|
26565
26630
|
|
|
26566
26631
|
// src/data/rest-api/routes/data/practitionerrole/practitionerrole-create-route.ts
|
|
26567
26632
|
async function createPractitionerRoleRoute(req, res) {
|
|
@@ -26692,15 +26757,15 @@ async function updatePractitionerRoleRoute(req, res) {
|
|
|
26692
26757
|
}
|
|
26693
26758
|
|
|
26694
26759
|
// src/data/rest-api/routes/data/practitionerrole/practitionerrole.ts
|
|
26695
|
-
var
|
|
26696
|
-
|
|
26697
|
-
|
|
26698
|
-
|
|
26699
|
-
|
|
26700
|
-
|
|
26760
|
+
var router114 = express114.Router();
|
|
26761
|
+
router114.get("/", listPractitionerRolesRoute);
|
|
26762
|
+
router114.get("/:id", getPractitionerRoleByIdRoute);
|
|
26763
|
+
router114.post("/", createPractitionerRoleRoute);
|
|
26764
|
+
router114.put("/:id", updatePractitionerRoleRoute);
|
|
26765
|
+
router114.delete("/:id", deletePractitionerRoleRoute);
|
|
26701
26766
|
|
|
26702
26767
|
// src/data/rest-api/routes/data/procedure/procedure.ts
|
|
26703
|
-
import
|
|
26768
|
+
import express115 from "express";
|
|
26704
26769
|
|
|
26705
26770
|
// src/data/operations/data/procedure/procedure-create-operation.ts
|
|
26706
26771
|
import { ulid as ulid101 } from "ulid";
|
|
@@ -26892,15 +26957,15 @@ async function updateProcedureRoute(req, res) {
|
|
|
26892
26957
|
}
|
|
26893
26958
|
|
|
26894
26959
|
// src/data/rest-api/routes/data/procedure/procedure.ts
|
|
26895
|
-
var
|
|
26896
|
-
|
|
26897
|
-
|
|
26898
|
-
|
|
26899
|
-
|
|
26900
|
-
|
|
26960
|
+
var router115 = express115.Router();
|
|
26961
|
+
router115.get("/", listProceduresRoute);
|
|
26962
|
+
router115.get("/:id", getProcedureByIdRoute);
|
|
26963
|
+
router115.post("/", createProcedureRoute);
|
|
26964
|
+
router115.put("/:id", updateProcedureRoute);
|
|
26965
|
+
router115.delete("/:id", deleteProcedureRoute);
|
|
26901
26966
|
|
|
26902
26967
|
// src/data/rest-api/routes/data/provenance/provenance.ts
|
|
26903
|
-
import
|
|
26968
|
+
import express116 from "express";
|
|
26904
26969
|
|
|
26905
26970
|
// src/data/operations/data/provenance/provenance-create-operation.ts
|
|
26906
26971
|
import { ulid as ulid102 } from "ulid";
|
|
@@ -27092,15 +27157,15 @@ async function updateProvenanceRoute(req, res) {
|
|
|
27092
27157
|
}
|
|
27093
27158
|
|
|
27094
27159
|
// src/data/rest-api/routes/data/provenance/provenance.ts
|
|
27095
|
-
var
|
|
27096
|
-
|
|
27097
|
-
|
|
27098
|
-
|
|
27099
|
-
|
|
27100
|
-
|
|
27160
|
+
var router116 = express116.Router();
|
|
27161
|
+
router116.get("/", listProvenancesRoute);
|
|
27162
|
+
router116.get("/:id", getProvenanceByIdRoute);
|
|
27163
|
+
router116.post("/", createProvenanceRoute);
|
|
27164
|
+
router116.put("/:id", updateProvenanceRoute);
|
|
27165
|
+
router116.delete("/:id", deleteProvenanceRoute);
|
|
27101
27166
|
|
|
27102
27167
|
// src/data/rest-api/routes/data/questionnaire/questionnaire.ts
|
|
27103
|
-
import
|
|
27168
|
+
import express117 from "express";
|
|
27104
27169
|
|
|
27105
27170
|
// src/data/operations/data/questionnaire/questionnaire-create-operation.ts
|
|
27106
27171
|
import { ulid as ulid103 } from "ulid";
|
|
@@ -27292,15 +27357,15 @@ async function updateQuestionnaireRoute(req, res) {
|
|
|
27292
27357
|
}
|
|
27293
27358
|
|
|
27294
27359
|
// src/data/rest-api/routes/data/questionnaire/questionnaire.ts
|
|
27295
|
-
var
|
|
27296
|
-
|
|
27297
|
-
|
|
27298
|
-
|
|
27299
|
-
|
|
27300
|
-
|
|
27360
|
+
var router117 = express117.Router();
|
|
27361
|
+
router117.get("/", listQuestionnairesRoute);
|
|
27362
|
+
router117.get("/:id", getQuestionnaireByIdRoute);
|
|
27363
|
+
router117.post("/", createQuestionnaireRoute);
|
|
27364
|
+
router117.put("/:id", updateQuestionnaireRoute);
|
|
27365
|
+
router117.delete("/:id", deleteQuestionnaireRoute);
|
|
27301
27366
|
|
|
27302
27367
|
// src/data/rest-api/routes/data/questionnaireresponse/questionnaireresponse.ts
|
|
27303
|
-
import
|
|
27368
|
+
import express118 from "express";
|
|
27304
27369
|
|
|
27305
27370
|
// src/data/operations/data/questionnaireresponse/questionnaireresponse-create-operation.ts
|
|
27306
27371
|
import { ulid as ulid104 } from "ulid";
|
|
@@ -27511,15 +27576,15 @@ async function updateQuestionnaireResponseRoute(req, res) {
|
|
|
27511
27576
|
}
|
|
27512
27577
|
|
|
27513
27578
|
// src/data/rest-api/routes/data/questionnaireresponse/questionnaireresponse.ts
|
|
27514
|
-
var
|
|
27515
|
-
|
|
27516
|
-
|
|
27517
|
-
|
|
27518
|
-
|
|
27519
|
-
|
|
27579
|
+
var router118 = express118.Router();
|
|
27580
|
+
router118.get("/", listQuestionnaireResponsesRoute);
|
|
27581
|
+
router118.get("/:id", getQuestionnaireResponseByIdRoute);
|
|
27582
|
+
router118.post("/", createQuestionnaireResponseRoute);
|
|
27583
|
+
router118.put("/:id", updateQuestionnaireResponseRoute);
|
|
27584
|
+
router118.delete("/:id", deleteQuestionnaireResponseRoute);
|
|
27520
27585
|
|
|
27521
27586
|
// src/data/rest-api/routes/data/relatedperson/relatedperson.ts
|
|
27522
|
-
import
|
|
27587
|
+
import express119 from "express";
|
|
27523
27588
|
|
|
27524
27589
|
// src/data/operations/data/relatedperson/relatedperson-create-operation.ts
|
|
27525
27590
|
import { ulid as ulid105 } from "ulid";
|
|
@@ -27711,15 +27776,15 @@ async function updateRelatedPersonRoute(req, res) {
|
|
|
27711
27776
|
}
|
|
27712
27777
|
|
|
27713
27778
|
// src/data/rest-api/routes/data/relatedperson/relatedperson.ts
|
|
27714
|
-
var
|
|
27715
|
-
|
|
27716
|
-
|
|
27717
|
-
|
|
27718
|
-
|
|
27719
|
-
|
|
27779
|
+
var router119 = express119.Router();
|
|
27780
|
+
router119.get("/", listRelatedPersonsRoute);
|
|
27781
|
+
router119.get("/:id", getRelatedPersonByIdRoute);
|
|
27782
|
+
router119.post("/", createRelatedPersonRoute);
|
|
27783
|
+
router119.put("/:id", updateRelatedPersonRoute);
|
|
27784
|
+
router119.delete("/:id", deleteRelatedPersonRoute);
|
|
27720
27785
|
|
|
27721
27786
|
// src/data/rest-api/routes/data/requestgroup/requestgroup.ts
|
|
27722
|
-
import
|
|
27787
|
+
import express120 from "express";
|
|
27723
27788
|
|
|
27724
27789
|
// src/data/operations/data/requestgroup/requestgroup-create-operation.ts
|
|
27725
27790
|
import { ulid as ulid106 } from "ulid";
|
|
@@ -27911,15 +27976,15 @@ async function updateRequestGroupRoute(req, res) {
|
|
|
27911
27976
|
}
|
|
27912
27977
|
|
|
27913
27978
|
// src/data/rest-api/routes/data/requestgroup/requestgroup.ts
|
|
27914
|
-
var
|
|
27915
|
-
|
|
27916
|
-
|
|
27917
|
-
|
|
27918
|
-
|
|
27919
|
-
|
|
27979
|
+
var router120 = express120.Router();
|
|
27980
|
+
router120.get("/", listRequestGroupsRoute);
|
|
27981
|
+
router120.get("/:id", getRequestGroupByIdRoute);
|
|
27982
|
+
router120.post("/", createRequestGroupRoute);
|
|
27983
|
+
router120.put("/:id", updateRequestGroupRoute);
|
|
27984
|
+
router120.delete("/:id", deleteRequestGroupRoute);
|
|
27920
27985
|
|
|
27921
27986
|
// src/data/rest-api/routes/data/researchdefinition/researchdefinition.ts
|
|
27922
|
-
import
|
|
27987
|
+
import express121 from "express";
|
|
27923
27988
|
|
|
27924
27989
|
// src/data/operations/data/researchdefinition/researchdefinition-create-operation.ts
|
|
27925
27990
|
import { ulid as ulid107 } from "ulid";
|
|
@@ -28118,15 +28183,15 @@ async function updateResearchDefinitionRoute(req, res) {
|
|
|
28118
28183
|
}
|
|
28119
28184
|
|
|
28120
28185
|
// src/data/rest-api/routes/data/researchdefinition/researchdefinition.ts
|
|
28121
|
-
var
|
|
28122
|
-
|
|
28123
|
-
|
|
28124
|
-
|
|
28125
|
-
|
|
28126
|
-
|
|
28186
|
+
var router121 = express121.Router();
|
|
28187
|
+
router121.get("/", listResearchDefinitionsRoute);
|
|
28188
|
+
router121.get("/:id", getResearchDefinitionByIdRoute);
|
|
28189
|
+
router121.post("/", createResearchDefinitionRoute);
|
|
28190
|
+
router121.put("/:id", updateResearchDefinitionRoute);
|
|
28191
|
+
router121.delete("/:id", deleteResearchDefinitionRoute);
|
|
28127
28192
|
|
|
28128
28193
|
// src/data/rest-api/routes/data/researchelementdefinition/researchelementdefinition.ts
|
|
28129
|
-
import
|
|
28194
|
+
import express122 from "express";
|
|
28130
28195
|
|
|
28131
28196
|
// src/data/operations/data/researchelementdefinition/researchelementdefinition-create-operation.ts
|
|
28132
28197
|
import { ulid as ulid108 } from "ulid";
|
|
@@ -28337,15 +28402,15 @@ async function updateResearchElementDefinitionRoute(req, res) {
|
|
|
28337
28402
|
}
|
|
28338
28403
|
|
|
28339
28404
|
// src/data/rest-api/routes/data/researchelementdefinition/researchelementdefinition.ts
|
|
28340
|
-
var
|
|
28341
|
-
|
|
28342
|
-
|
|
28343
|
-
|
|
28344
|
-
|
|
28345
|
-
|
|
28405
|
+
var router122 = express122.Router();
|
|
28406
|
+
router122.get("/", listResearchElementDefinitionsRoute);
|
|
28407
|
+
router122.get("/:id", getResearchElementDefinitionByIdRoute);
|
|
28408
|
+
router122.post("/", createResearchElementDefinitionRoute);
|
|
28409
|
+
router122.put("/:id", updateResearchElementDefinitionRoute);
|
|
28410
|
+
router122.delete("/:id", deleteResearchElementDefinitionRoute);
|
|
28346
28411
|
|
|
28347
28412
|
// src/data/rest-api/routes/data/researchstudy/researchstudy.ts
|
|
28348
|
-
import
|
|
28413
|
+
import express123 from "express";
|
|
28349
28414
|
|
|
28350
28415
|
// src/data/operations/data/researchstudy/researchstudy-create-operation.ts
|
|
28351
28416
|
import { ulid as ulid109 } from "ulid";
|
|
@@ -28537,15 +28602,15 @@ async function updateResearchStudyRoute(req, res) {
|
|
|
28537
28602
|
}
|
|
28538
28603
|
|
|
28539
28604
|
// src/data/rest-api/routes/data/researchstudy/researchstudy.ts
|
|
28540
|
-
var
|
|
28541
|
-
|
|
28542
|
-
|
|
28543
|
-
|
|
28544
|
-
|
|
28545
|
-
|
|
28605
|
+
var router123 = express123.Router();
|
|
28606
|
+
router123.get("/", listResearchStudysRoute);
|
|
28607
|
+
router123.get("/:id", getResearchStudyByIdRoute);
|
|
28608
|
+
router123.post("/", createResearchStudyRoute);
|
|
28609
|
+
router123.put("/:id", updateResearchStudyRoute);
|
|
28610
|
+
router123.delete("/:id", deleteResearchStudyRoute);
|
|
28546
28611
|
|
|
28547
28612
|
// src/data/rest-api/routes/data/researchsubject/researchsubject.ts
|
|
28548
|
-
import
|
|
28613
|
+
import express124 from "express";
|
|
28549
28614
|
|
|
28550
28615
|
// src/data/operations/data/researchsubject/researchsubject-create-operation.ts
|
|
28551
28616
|
import { ulid as ulid110 } from "ulid";
|
|
@@ -28737,15 +28802,15 @@ async function updateResearchSubjectRoute(req, res) {
|
|
|
28737
28802
|
}
|
|
28738
28803
|
|
|
28739
28804
|
// src/data/rest-api/routes/data/researchsubject/researchsubject.ts
|
|
28740
|
-
var
|
|
28741
|
-
|
|
28742
|
-
|
|
28743
|
-
|
|
28744
|
-
|
|
28745
|
-
|
|
28805
|
+
var router124 = express124.Router();
|
|
28806
|
+
router124.get("/", listResearchSubjectsRoute);
|
|
28807
|
+
router124.get("/:id", getResearchSubjectByIdRoute);
|
|
28808
|
+
router124.post("/", createResearchSubjectRoute);
|
|
28809
|
+
router124.put("/:id", updateResearchSubjectRoute);
|
|
28810
|
+
router124.delete("/:id", deleteResearchSubjectRoute);
|
|
28746
28811
|
|
|
28747
28812
|
// src/data/rest-api/routes/data/riskassessment/riskassessment.ts
|
|
28748
|
-
import
|
|
28813
|
+
import express125 from "express";
|
|
28749
28814
|
|
|
28750
28815
|
// src/data/operations/data/riskassessment/riskassessment-create-operation.ts
|
|
28751
28816
|
import { ulid as ulid111 } from "ulid";
|
|
@@ -28937,15 +29002,15 @@ async function updateRiskAssessmentRoute(req, res) {
|
|
|
28937
29002
|
}
|
|
28938
29003
|
|
|
28939
29004
|
// src/data/rest-api/routes/data/riskassessment/riskassessment.ts
|
|
28940
|
-
var
|
|
28941
|
-
|
|
28942
|
-
|
|
28943
|
-
|
|
28944
|
-
|
|
28945
|
-
|
|
29005
|
+
var router125 = express125.Router();
|
|
29006
|
+
router125.get("/", listRiskAssessmentsRoute);
|
|
29007
|
+
router125.get("/:id", getRiskAssessmentByIdRoute);
|
|
29008
|
+
router125.post("/", createRiskAssessmentRoute);
|
|
29009
|
+
router125.put("/:id", updateRiskAssessmentRoute);
|
|
29010
|
+
router125.delete("/:id", deleteRiskAssessmentRoute);
|
|
28946
29011
|
|
|
28947
29012
|
// src/data/rest-api/routes/data/riskevidencesynthesis/riskevidencesynthesis.ts
|
|
28948
|
-
import
|
|
29013
|
+
import express126 from "express";
|
|
28949
29014
|
|
|
28950
29015
|
// src/data/operations/data/riskevidencesynthesis/riskevidencesynthesis-create-operation.ts
|
|
28951
29016
|
import { ulid as ulid112 } from "ulid";
|
|
@@ -29156,15 +29221,15 @@ async function updateRiskEvidenceSynthesisRoute(req, res) {
|
|
|
29156
29221
|
}
|
|
29157
29222
|
|
|
29158
29223
|
// src/data/rest-api/routes/data/riskevidencesynthesis/riskevidencesynthesis.ts
|
|
29159
|
-
var
|
|
29160
|
-
|
|
29161
|
-
|
|
29162
|
-
|
|
29163
|
-
|
|
29164
|
-
|
|
29224
|
+
var router126 = express126.Router();
|
|
29225
|
+
router126.get("/", listRiskEvidenceSynthesissRoute);
|
|
29226
|
+
router126.get("/:id", getRiskEvidenceSynthesisByIdRoute);
|
|
29227
|
+
router126.post("/", createRiskEvidenceSynthesisRoute);
|
|
29228
|
+
router126.put("/:id", updateRiskEvidenceSynthesisRoute);
|
|
29229
|
+
router126.delete("/:id", deleteRiskEvidenceSynthesisRoute);
|
|
29165
29230
|
|
|
29166
29231
|
// src/data/rest-api/routes/data/schedule/schedule.ts
|
|
29167
|
-
import
|
|
29232
|
+
import express127 from "express";
|
|
29168
29233
|
|
|
29169
29234
|
// src/data/operations/data/schedule/schedule-create-operation.ts
|
|
29170
29235
|
import { ulid as ulid113 } from "ulid";
|
|
@@ -29438,15 +29503,15 @@ async function updateScheduleRoute(req, res) {
|
|
|
29438
29503
|
}
|
|
29439
29504
|
|
|
29440
29505
|
// src/data/rest-api/routes/data/schedule/schedule.ts
|
|
29441
|
-
var
|
|
29442
|
-
|
|
29443
|
-
|
|
29444
|
-
|
|
29445
|
-
|
|
29446
|
-
|
|
29506
|
+
var router127 = express127.Router();
|
|
29507
|
+
router127.get("/", listSchedulesRoute);
|
|
29508
|
+
router127.get("/:id", getScheduleByIdRoute);
|
|
29509
|
+
router127.post("/", createScheduleRoute);
|
|
29510
|
+
router127.put("/:id", updateScheduleRoute);
|
|
29511
|
+
router127.delete("/:id", deleteScheduleRoute);
|
|
29447
29512
|
|
|
29448
29513
|
// src/data/rest-api/routes/data/searchparameter/searchparameter.ts
|
|
29449
|
-
import
|
|
29514
|
+
import express128 from "express";
|
|
29450
29515
|
|
|
29451
29516
|
// src/data/operations/data/searchparameter/searchparameter-create-operation.ts
|
|
29452
29517
|
import { ulid as ulid114 } from "ulid";
|
|
@@ -29638,15 +29703,15 @@ async function updateSearchParameterRoute(req, res) {
|
|
|
29638
29703
|
}
|
|
29639
29704
|
|
|
29640
29705
|
// src/data/rest-api/routes/data/searchparameter/searchparameter.ts
|
|
29641
|
-
var
|
|
29642
|
-
|
|
29643
|
-
|
|
29644
|
-
|
|
29645
|
-
|
|
29646
|
-
|
|
29706
|
+
var router128 = express128.Router();
|
|
29707
|
+
router128.get("/", listSearchParametersRoute);
|
|
29708
|
+
router128.get("/:id", getSearchParameterByIdRoute);
|
|
29709
|
+
router128.post("/", createSearchParameterRoute);
|
|
29710
|
+
router128.put("/:id", updateSearchParameterRoute);
|
|
29711
|
+
router128.delete("/:id", deleteSearchParameterRoute);
|
|
29647
29712
|
|
|
29648
29713
|
// src/data/rest-api/routes/data/servicerequest/servicerequest.ts
|
|
29649
|
-
import
|
|
29714
|
+
import express129 from "express";
|
|
29650
29715
|
|
|
29651
29716
|
// src/data/operations/data/servicerequest/servicerequest-create-operation.ts
|
|
29652
29717
|
import { ulid as ulid115 } from "ulid";
|
|
@@ -29838,15 +29903,15 @@ async function updateServiceRequestRoute(req, res) {
|
|
|
29838
29903
|
}
|
|
29839
29904
|
|
|
29840
29905
|
// src/data/rest-api/routes/data/servicerequest/servicerequest.ts
|
|
29841
|
-
var
|
|
29842
|
-
|
|
29843
|
-
|
|
29844
|
-
|
|
29845
|
-
|
|
29846
|
-
|
|
29906
|
+
var router129 = express129.Router();
|
|
29907
|
+
router129.get("/", listServiceRequestsRoute);
|
|
29908
|
+
router129.get("/:id", getServiceRequestByIdRoute);
|
|
29909
|
+
router129.post("/", createServiceRequestRoute);
|
|
29910
|
+
router129.put("/:id", updateServiceRequestRoute);
|
|
29911
|
+
router129.delete("/:id", deleteServiceRequestRoute);
|
|
29847
29912
|
|
|
29848
29913
|
// src/data/rest-api/routes/data/slot/slot.ts
|
|
29849
|
-
import
|
|
29914
|
+
import express130 from "express";
|
|
29850
29915
|
|
|
29851
29916
|
// src/data/operations/data/slot/slot-create-operation.ts
|
|
29852
29917
|
import { ulid as ulid116 } from "ulid";
|
|
@@ -30038,15 +30103,15 @@ async function updateSlotRoute(req, res) {
|
|
|
30038
30103
|
}
|
|
30039
30104
|
|
|
30040
30105
|
// src/data/rest-api/routes/data/slot/slot.ts
|
|
30041
|
-
var
|
|
30042
|
-
|
|
30043
|
-
|
|
30044
|
-
|
|
30045
|
-
|
|
30046
|
-
|
|
30106
|
+
var router130 = express130.Router();
|
|
30107
|
+
router130.get("/", listSlotsRoute);
|
|
30108
|
+
router130.get("/:id", getSlotByIdRoute);
|
|
30109
|
+
router130.post("/", createSlotRoute);
|
|
30110
|
+
router130.put("/:id", updateSlotRoute);
|
|
30111
|
+
router130.delete("/:id", deleteSlotRoute);
|
|
30047
30112
|
|
|
30048
30113
|
// src/data/rest-api/routes/data/specimen/specimen.ts
|
|
30049
|
-
import
|
|
30114
|
+
import express131 from "express";
|
|
30050
30115
|
|
|
30051
30116
|
// src/data/operations/data/specimen/specimen-create-operation.ts
|
|
30052
30117
|
import { ulid as ulid117 } from "ulid";
|
|
@@ -30238,15 +30303,15 @@ async function updateSpecimenRoute(req, res) {
|
|
|
30238
30303
|
}
|
|
30239
30304
|
|
|
30240
30305
|
// src/data/rest-api/routes/data/specimen/specimen.ts
|
|
30241
|
-
var
|
|
30242
|
-
|
|
30243
|
-
|
|
30244
|
-
|
|
30245
|
-
|
|
30246
|
-
|
|
30306
|
+
var router131 = express131.Router();
|
|
30307
|
+
router131.get("/", listSpecimensRoute);
|
|
30308
|
+
router131.get("/:id", getSpecimenByIdRoute);
|
|
30309
|
+
router131.post("/", createSpecimenRoute);
|
|
30310
|
+
router131.put("/:id", updateSpecimenRoute);
|
|
30311
|
+
router131.delete("/:id", deleteSpecimenRoute);
|
|
30247
30312
|
|
|
30248
30313
|
// src/data/rest-api/routes/data/specimendefinition/specimendefinition.ts
|
|
30249
|
-
import
|
|
30314
|
+
import express132 from "express";
|
|
30250
30315
|
|
|
30251
30316
|
// src/data/operations/data/specimendefinition/specimendefinition-create-operation.ts
|
|
30252
30317
|
import { ulid as ulid118 } from "ulid";
|
|
@@ -30445,15 +30510,15 @@ async function updateSpecimenDefinitionRoute(req, res) {
|
|
|
30445
30510
|
}
|
|
30446
30511
|
|
|
30447
30512
|
// src/data/rest-api/routes/data/specimendefinition/specimendefinition.ts
|
|
30448
|
-
var
|
|
30449
|
-
|
|
30450
|
-
|
|
30451
|
-
|
|
30452
|
-
|
|
30453
|
-
|
|
30513
|
+
var router132 = express132.Router();
|
|
30514
|
+
router132.get("/", listSpecimenDefinitionsRoute);
|
|
30515
|
+
router132.get("/:id", getSpecimenDefinitionByIdRoute);
|
|
30516
|
+
router132.post("/", createSpecimenDefinitionRoute);
|
|
30517
|
+
router132.put("/:id", updateSpecimenDefinitionRoute);
|
|
30518
|
+
router132.delete("/:id", deleteSpecimenDefinitionRoute);
|
|
30454
30519
|
|
|
30455
30520
|
// src/data/rest-api/routes/data/structuredefinition/structuredefinition.ts
|
|
30456
|
-
import
|
|
30521
|
+
import express133 from "express";
|
|
30457
30522
|
|
|
30458
30523
|
// src/data/operations/data/structuredefinition/structuredefinition-create-operation.ts
|
|
30459
30524
|
import { ulid as ulid119 } from "ulid";
|
|
@@ -30652,15 +30717,15 @@ async function updateStructureDefinitionRoute(req, res) {
|
|
|
30652
30717
|
}
|
|
30653
30718
|
|
|
30654
30719
|
// src/data/rest-api/routes/data/structuredefinition/structuredefinition.ts
|
|
30655
|
-
var
|
|
30656
|
-
|
|
30657
|
-
|
|
30658
|
-
|
|
30659
|
-
|
|
30660
|
-
|
|
30720
|
+
var router133 = express133.Router();
|
|
30721
|
+
router133.get("/", listStructureDefinitionsRoute);
|
|
30722
|
+
router133.get("/:id", getStructureDefinitionByIdRoute);
|
|
30723
|
+
router133.post("/", createStructureDefinitionRoute);
|
|
30724
|
+
router133.put("/:id", updateStructureDefinitionRoute);
|
|
30725
|
+
router133.delete("/:id", deleteStructureDefinitionRoute);
|
|
30661
30726
|
|
|
30662
30727
|
// src/data/rest-api/routes/data/structuremap/structuremap.ts
|
|
30663
|
-
import
|
|
30728
|
+
import express134 from "express";
|
|
30664
30729
|
|
|
30665
30730
|
// src/data/operations/data/structuremap/structuremap-create-operation.ts
|
|
30666
30731
|
import { ulid as ulid120 } from "ulid";
|
|
@@ -30852,15 +30917,15 @@ async function updateStructureMapRoute(req, res) {
|
|
|
30852
30917
|
}
|
|
30853
30918
|
|
|
30854
30919
|
// src/data/rest-api/routes/data/structuremap/structuremap.ts
|
|
30855
|
-
var
|
|
30856
|
-
|
|
30857
|
-
|
|
30858
|
-
|
|
30859
|
-
|
|
30860
|
-
|
|
30920
|
+
var router134 = express134.Router();
|
|
30921
|
+
router134.get("/", listStructureMapsRoute);
|
|
30922
|
+
router134.get("/:id", getStructureMapByIdRoute);
|
|
30923
|
+
router134.post("/", createStructureMapRoute);
|
|
30924
|
+
router134.put("/:id", updateStructureMapRoute);
|
|
30925
|
+
router134.delete("/:id", deleteStructureMapRoute);
|
|
30861
30926
|
|
|
30862
30927
|
// src/data/rest-api/routes/data/subscription/subscription.ts
|
|
30863
|
-
import
|
|
30928
|
+
import express135 from "express";
|
|
30864
30929
|
|
|
30865
30930
|
// src/data/operations/data/subscription/subscription-create-operation.ts
|
|
30866
30931
|
import { ulid as ulid121 } from "ulid";
|
|
@@ -31052,15 +31117,15 @@ async function updateSubscriptionRoute(req, res) {
|
|
|
31052
31117
|
}
|
|
31053
31118
|
|
|
31054
31119
|
// src/data/rest-api/routes/data/subscription/subscription.ts
|
|
31055
|
-
var
|
|
31056
|
-
|
|
31057
|
-
|
|
31058
|
-
|
|
31059
|
-
|
|
31060
|
-
|
|
31120
|
+
var router135 = express135.Router();
|
|
31121
|
+
router135.get("/", listSubscriptionsRoute);
|
|
31122
|
+
router135.get("/:id", getSubscriptionByIdRoute);
|
|
31123
|
+
router135.post("/", createSubscriptionRoute);
|
|
31124
|
+
router135.put("/:id", updateSubscriptionRoute);
|
|
31125
|
+
router135.delete("/:id", deleteSubscriptionRoute);
|
|
31061
31126
|
|
|
31062
31127
|
// src/data/rest-api/routes/data/substance/substance.ts
|
|
31063
|
-
import
|
|
31128
|
+
import express136 from "express";
|
|
31064
31129
|
|
|
31065
31130
|
// src/data/operations/data/substance/substance-create-operation.ts
|
|
31066
31131
|
import { ulid as ulid122 } from "ulid";
|
|
@@ -31252,15 +31317,15 @@ async function updateSubstanceRoute(req, res) {
|
|
|
31252
31317
|
}
|
|
31253
31318
|
|
|
31254
31319
|
// src/data/rest-api/routes/data/substance/substance.ts
|
|
31255
|
-
var
|
|
31256
|
-
|
|
31257
|
-
|
|
31258
|
-
|
|
31259
|
-
|
|
31260
|
-
|
|
31320
|
+
var router136 = express136.Router();
|
|
31321
|
+
router136.get("/", listSubstancesRoute);
|
|
31322
|
+
router136.get("/:id", getSubstanceByIdRoute);
|
|
31323
|
+
router136.post("/", createSubstanceRoute);
|
|
31324
|
+
router136.put("/:id", updateSubstanceRoute);
|
|
31325
|
+
router136.delete("/:id", deleteSubstanceRoute);
|
|
31261
31326
|
|
|
31262
31327
|
// src/data/rest-api/routes/data/substancenucleicacid/substancenucleicacid.ts
|
|
31263
|
-
import
|
|
31328
|
+
import express137 from "express";
|
|
31264
31329
|
|
|
31265
31330
|
// src/data/operations/data/substancenucleicacid/substancenucleicacid-create-operation.ts
|
|
31266
31331
|
import { ulid as ulid123 } from "ulid";
|
|
@@ -31463,15 +31528,15 @@ async function updateSubstanceNucleicAcidRoute(req, res) {
|
|
|
31463
31528
|
}
|
|
31464
31529
|
|
|
31465
31530
|
// src/data/rest-api/routes/data/substancenucleicacid/substancenucleicacid.ts
|
|
31466
|
-
var
|
|
31467
|
-
|
|
31468
|
-
|
|
31469
|
-
|
|
31470
|
-
|
|
31471
|
-
|
|
31531
|
+
var router137 = express137.Router();
|
|
31532
|
+
router137.get("/", listSubstanceNucleicAcidsRoute);
|
|
31533
|
+
router137.get("/:id", getSubstanceNucleicAcidByIdRoute);
|
|
31534
|
+
router137.post("/", createSubstanceNucleicAcidRoute);
|
|
31535
|
+
router137.put("/:id", updateSubstanceNucleicAcidRoute);
|
|
31536
|
+
router137.delete("/:id", deleteSubstanceNucleicAcidRoute);
|
|
31472
31537
|
|
|
31473
31538
|
// src/data/rest-api/routes/data/substancepolymer/substancepolymer.ts
|
|
31474
|
-
import
|
|
31539
|
+
import express138 from "express";
|
|
31475
31540
|
|
|
31476
31541
|
// src/data/operations/data/substancepolymer/substancepolymer-create-operation.ts
|
|
31477
31542
|
import { ulid as ulid124 } from "ulid";
|
|
@@ -31663,15 +31728,15 @@ async function updateSubstancePolymerRoute(req, res) {
|
|
|
31663
31728
|
}
|
|
31664
31729
|
|
|
31665
31730
|
// src/data/rest-api/routes/data/substancepolymer/substancepolymer.ts
|
|
31666
|
-
var
|
|
31667
|
-
|
|
31668
|
-
|
|
31669
|
-
|
|
31670
|
-
|
|
31671
|
-
|
|
31731
|
+
var router138 = express138.Router();
|
|
31732
|
+
router138.get("/", listSubstancePolymersRoute);
|
|
31733
|
+
router138.get("/:id", getSubstancePolymerByIdRoute);
|
|
31734
|
+
router138.post("/", createSubstancePolymerRoute);
|
|
31735
|
+
router138.put("/:id", updateSubstancePolymerRoute);
|
|
31736
|
+
router138.delete("/:id", deleteSubstancePolymerRoute);
|
|
31672
31737
|
|
|
31673
31738
|
// src/data/rest-api/routes/data/substanceprotein/substanceprotein.ts
|
|
31674
|
-
import
|
|
31739
|
+
import express139 from "express";
|
|
31675
31740
|
|
|
31676
31741
|
// src/data/operations/data/substanceprotein/substanceprotein-create-operation.ts
|
|
31677
31742
|
import { ulid as ulid125 } from "ulid";
|
|
@@ -31863,15 +31928,15 @@ async function updateSubstanceProteinRoute(req, res) {
|
|
|
31863
31928
|
}
|
|
31864
31929
|
|
|
31865
31930
|
// src/data/rest-api/routes/data/substanceprotein/substanceprotein.ts
|
|
31866
|
-
var
|
|
31867
|
-
|
|
31868
|
-
|
|
31869
|
-
|
|
31870
|
-
|
|
31871
|
-
|
|
31931
|
+
var router139 = express139.Router();
|
|
31932
|
+
router139.get("/", listSubstanceProteinsRoute);
|
|
31933
|
+
router139.get("/:id", getSubstanceProteinByIdRoute);
|
|
31934
|
+
router139.post("/", createSubstanceProteinRoute);
|
|
31935
|
+
router139.put("/:id", updateSubstanceProteinRoute);
|
|
31936
|
+
router139.delete("/:id", deleteSubstanceProteinRoute);
|
|
31872
31937
|
|
|
31873
31938
|
// src/data/rest-api/routes/data/substancereferenceinformation/substancereferenceinformation.ts
|
|
31874
|
-
import
|
|
31939
|
+
import express140 from "express";
|
|
31875
31940
|
|
|
31876
31941
|
// src/data/operations/data/substancereferenceinformation/substancereferenceinformation-create-operation.ts
|
|
31877
31942
|
import { ulid as ulid126 } from "ulid";
|
|
@@ -32082,15 +32147,15 @@ async function updateSubstanceReferenceInformationRoute(req, res) {
|
|
|
32082
32147
|
}
|
|
32083
32148
|
|
|
32084
32149
|
// src/data/rest-api/routes/data/substancereferenceinformation/substancereferenceinformation.ts
|
|
32085
|
-
var
|
|
32086
|
-
|
|
32087
|
-
|
|
32088
|
-
|
|
32089
|
-
|
|
32090
|
-
|
|
32150
|
+
var router140 = express140.Router();
|
|
32151
|
+
router140.get("/", listSubstanceReferenceInformationsRoute);
|
|
32152
|
+
router140.get("/:id", getSubstanceReferenceInformationByIdRoute);
|
|
32153
|
+
router140.post("/", createSubstanceReferenceInformationRoute);
|
|
32154
|
+
router140.put("/:id", updateSubstanceReferenceInformationRoute);
|
|
32155
|
+
router140.delete("/:id", deleteSubstanceReferenceInformationRoute);
|
|
32091
32156
|
|
|
32092
32157
|
// src/data/rest-api/routes/data/substancesourcematerial/substancesourcematerial.ts
|
|
32093
|
-
import
|
|
32158
|
+
import express141 from "express";
|
|
32094
32159
|
|
|
32095
32160
|
// src/data/operations/data/substancesourcematerial/substancesourcematerial-create-operation.ts
|
|
32096
32161
|
import { ulid as ulid127 } from "ulid";
|
|
@@ -32301,15 +32366,15 @@ async function updateSubstanceSourceMaterialRoute(req, res) {
|
|
|
32301
32366
|
}
|
|
32302
32367
|
|
|
32303
32368
|
// src/data/rest-api/routes/data/substancesourcematerial/substancesourcematerial.ts
|
|
32304
|
-
var
|
|
32305
|
-
|
|
32306
|
-
|
|
32307
|
-
|
|
32308
|
-
|
|
32309
|
-
|
|
32369
|
+
var router141 = express141.Router();
|
|
32370
|
+
router141.get("/", listSubstanceSourceMaterialsRoute);
|
|
32371
|
+
router141.get("/:id", getSubstanceSourceMaterialByIdRoute);
|
|
32372
|
+
router141.post("/", createSubstanceSourceMaterialRoute);
|
|
32373
|
+
router141.put("/:id", updateSubstanceSourceMaterialRoute);
|
|
32374
|
+
router141.delete("/:id", deleteSubstanceSourceMaterialRoute);
|
|
32310
32375
|
|
|
32311
32376
|
// src/data/rest-api/routes/data/substancespecification/substancespecification.ts
|
|
32312
|
-
import
|
|
32377
|
+
import express142 from "express";
|
|
32313
32378
|
|
|
32314
32379
|
// src/data/operations/data/substancespecification/substancespecification-create-operation.ts
|
|
32315
32380
|
import { ulid as ulid128 } from "ulid";
|
|
@@ -32520,15 +32585,15 @@ async function updateSubstanceSpecificationRoute(req, res) {
|
|
|
32520
32585
|
}
|
|
32521
32586
|
|
|
32522
32587
|
// src/data/rest-api/routes/data/substancespecification/substancespecification.ts
|
|
32523
|
-
var
|
|
32524
|
-
|
|
32525
|
-
|
|
32526
|
-
|
|
32527
|
-
|
|
32528
|
-
|
|
32588
|
+
var router142 = express142.Router();
|
|
32589
|
+
router142.get("/", listSubstanceSpecificationsRoute);
|
|
32590
|
+
router142.get("/:id", getSubstanceSpecificationByIdRoute);
|
|
32591
|
+
router142.post("/", createSubstanceSpecificationRoute);
|
|
32592
|
+
router142.put("/:id", updateSubstanceSpecificationRoute);
|
|
32593
|
+
router142.delete("/:id", deleteSubstanceSpecificationRoute);
|
|
32529
32594
|
|
|
32530
32595
|
// src/data/rest-api/routes/data/supplydelivery/supplydelivery.ts
|
|
32531
|
-
import
|
|
32596
|
+
import express143 from "express";
|
|
32532
32597
|
|
|
32533
32598
|
// src/data/operations/data/supplydelivery/supplydelivery-create-operation.ts
|
|
32534
32599
|
import { ulid as ulid129 } from "ulid";
|
|
@@ -32720,15 +32785,15 @@ async function updateSupplyDeliveryRoute(req, res) {
|
|
|
32720
32785
|
}
|
|
32721
32786
|
|
|
32722
32787
|
// src/data/rest-api/routes/data/supplydelivery/supplydelivery.ts
|
|
32723
|
-
var
|
|
32724
|
-
|
|
32725
|
-
|
|
32726
|
-
|
|
32727
|
-
|
|
32728
|
-
|
|
32788
|
+
var router143 = express143.Router();
|
|
32789
|
+
router143.get("/", listSupplyDeliverysRoute);
|
|
32790
|
+
router143.get("/:id", getSupplyDeliveryByIdRoute);
|
|
32791
|
+
router143.post("/", createSupplyDeliveryRoute);
|
|
32792
|
+
router143.put("/:id", updateSupplyDeliveryRoute);
|
|
32793
|
+
router143.delete("/:id", deleteSupplyDeliveryRoute);
|
|
32729
32794
|
|
|
32730
32795
|
// src/data/rest-api/routes/data/supplyrequest/supplyrequest.ts
|
|
32731
|
-
import
|
|
32796
|
+
import express144 from "express";
|
|
32732
32797
|
|
|
32733
32798
|
// src/data/operations/data/supplyrequest/supplyrequest-create-operation.ts
|
|
32734
32799
|
import { ulid as ulid130 } from "ulid";
|
|
@@ -32920,15 +32985,15 @@ async function updateSupplyRequestRoute(req, res) {
|
|
|
32920
32985
|
}
|
|
32921
32986
|
|
|
32922
32987
|
// src/data/rest-api/routes/data/supplyrequest/supplyrequest.ts
|
|
32923
|
-
var
|
|
32924
|
-
|
|
32925
|
-
|
|
32926
|
-
|
|
32927
|
-
|
|
32928
|
-
|
|
32988
|
+
var router144 = express144.Router();
|
|
32989
|
+
router144.get("/", listSupplyRequestsRoute);
|
|
32990
|
+
router144.get("/:id", getSupplyRequestByIdRoute);
|
|
32991
|
+
router144.post("/", createSupplyRequestRoute);
|
|
32992
|
+
router144.put("/:id", updateSupplyRequestRoute);
|
|
32993
|
+
router144.delete("/:id", deleteSupplyRequestRoute);
|
|
32929
32994
|
|
|
32930
32995
|
// src/data/rest-api/routes/data/task/task.ts
|
|
32931
|
-
import
|
|
32996
|
+
import express145 from "express";
|
|
32932
32997
|
|
|
32933
32998
|
// src/data/operations/data/task/task-create-operation.ts
|
|
32934
32999
|
import { ulid as ulid131 } from "ulid";
|
|
@@ -33276,15 +33341,15 @@ async function updateTaskRoute(req, res) {
|
|
|
33276
33341
|
}
|
|
33277
33342
|
|
|
33278
33343
|
// src/data/rest-api/routes/data/task/task.ts
|
|
33279
|
-
var
|
|
33280
|
-
|
|
33281
|
-
|
|
33282
|
-
|
|
33283
|
-
|
|
33284
|
-
|
|
33344
|
+
var router145 = express145.Router();
|
|
33345
|
+
router145.get("/", listTasksRoute);
|
|
33346
|
+
router145.get("/:id", getTaskByIdRoute);
|
|
33347
|
+
router145.post("/", createTaskRoute);
|
|
33348
|
+
router145.put("/:id", updateTaskRoute);
|
|
33349
|
+
router145.delete("/:id", deleteTaskRoute);
|
|
33285
33350
|
|
|
33286
33351
|
// src/data/rest-api/routes/data/terminologycapabilities/terminologycapabilities.ts
|
|
33287
|
-
import
|
|
33352
|
+
import express146 from "express";
|
|
33288
33353
|
|
|
33289
33354
|
// src/data/operations/data/terminologycapabilities/terminologycapabilities-create-operation.ts
|
|
33290
33355
|
import { ulid as ulid132 } from "ulid";
|
|
@@ -33495,15 +33560,15 @@ async function updateTerminologyCapabilitiesRoute(req, res) {
|
|
|
33495
33560
|
}
|
|
33496
33561
|
|
|
33497
33562
|
// src/data/rest-api/routes/data/terminologycapabilities/terminologycapabilities.ts
|
|
33498
|
-
var
|
|
33499
|
-
|
|
33500
|
-
|
|
33501
|
-
|
|
33502
|
-
|
|
33503
|
-
|
|
33563
|
+
var router146 = express146.Router();
|
|
33564
|
+
router146.get("/", listTerminologyCapabilitiessRoute);
|
|
33565
|
+
router146.get("/:id", getTerminologyCapabilitiesByIdRoute);
|
|
33566
|
+
router146.post("/", createTerminologyCapabilitiesRoute);
|
|
33567
|
+
router146.put("/:id", updateTerminologyCapabilitiesRoute);
|
|
33568
|
+
router146.delete("/:id", deleteTerminologyCapabilitiesRoute);
|
|
33504
33569
|
|
|
33505
33570
|
// src/data/rest-api/routes/data/testreport/testreport.ts
|
|
33506
|
-
import
|
|
33571
|
+
import express147 from "express";
|
|
33507
33572
|
|
|
33508
33573
|
// src/data/operations/data/testreport/testreport-create-operation.ts
|
|
33509
33574
|
import { ulid as ulid133 } from "ulid";
|
|
@@ -33695,15 +33760,15 @@ async function updateTestReportRoute(req, res) {
|
|
|
33695
33760
|
}
|
|
33696
33761
|
|
|
33697
33762
|
// src/data/rest-api/routes/data/testreport/testreport.ts
|
|
33698
|
-
var
|
|
33699
|
-
|
|
33700
|
-
|
|
33701
|
-
|
|
33702
|
-
|
|
33703
|
-
|
|
33763
|
+
var router147 = express147.Router();
|
|
33764
|
+
router147.get("/", listTestReportsRoute);
|
|
33765
|
+
router147.get("/:id", getTestReportByIdRoute);
|
|
33766
|
+
router147.post("/", createTestReportRoute);
|
|
33767
|
+
router147.put("/:id", updateTestReportRoute);
|
|
33768
|
+
router147.delete("/:id", deleteTestReportRoute);
|
|
33704
33769
|
|
|
33705
33770
|
// src/data/rest-api/routes/data/testscript/testscript.ts
|
|
33706
|
-
import
|
|
33771
|
+
import express148 from "express";
|
|
33707
33772
|
|
|
33708
33773
|
// src/data/operations/data/testscript/testscript-create-operation.ts
|
|
33709
33774
|
import { ulid as ulid134 } from "ulid";
|
|
@@ -33895,15 +33960,15 @@ async function updateTestScriptRoute(req, res) {
|
|
|
33895
33960
|
}
|
|
33896
33961
|
|
|
33897
33962
|
// src/data/rest-api/routes/data/testscript/testscript.ts
|
|
33898
|
-
var
|
|
33899
|
-
|
|
33900
|
-
|
|
33901
|
-
|
|
33902
|
-
|
|
33903
|
-
|
|
33963
|
+
var router148 = express148.Router();
|
|
33964
|
+
router148.get("/", listTestScriptsRoute);
|
|
33965
|
+
router148.get("/:id", getTestScriptByIdRoute);
|
|
33966
|
+
router148.post("/", createTestScriptRoute);
|
|
33967
|
+
router148.put("/:id", updateTestScriptRoute);
|
|
33968
|
+
router148.delete("/:id", deleteTestScriptRoute);
|
|
33904
33969
|
|
|
33905
33970
|
// src/data/rest-api/routes/data/valueset/valueset.ts
|
|
33906
|
-
import
|
|
33971
|
+
import express149 from "express";
|
|
33907
33972
|
|
|
33908
33973
|
// src/data/operations/data/valueset/valueset-create-operation.ts
|
|
33909
33974
|
import { ulid as ulid135 } from "ulid";
|
|
@@ -34095,15 +34160,15 @@ async function updateValueSetRoute(req, res) {
|
|
|
34095
34160
|
}
|
|
34096
34161
|
|
|
34097
34162
|
// src/data/rest-api/routes/data/valueset/valueset.ts
|
|
34098
|
-
var
|
|
34099
|
-
|
|
34100
|
-
|
|
34101
|
-
|
|
34102
|
-
|
|
34103
|
-
|
|
34163
|
+
var router149 = express149.Router();
|
|
34164
|
+
router149.get("/", listValueSetsRoute);
|
|
34165
|
+
router149.get("/:id", getValueSetByIdRoute);
|
|
34166
|
+
router149.post("/", createValueSetRoute);
|
|
34167
|
+
router149.put("/:id", updateValueSetRoute);
|
|
34168
|
+
router149.delete("/:id", deleteValueSetRoute);
|
|
34104
34169
|
|
|
34105
34170
|
// src/data/rest-api/routes/data/verificationresult/verificationresult.ts
|
|
34106
|
-
import
|
|
34171
|
+
import express150 from "express";
|
|
34107
34172
|
|
|
34108
34173
|
// src/data/operations/data/verificationresult/verificationresult-create-operation.ts
|
|
34109
34174
|
import { ulid as ulid136 } from "ulid";
|
|
@@ -34302,15 +34367,15 @@ async function updateVerificationResultRoute(req, res) {
|
|
|
34302
34367
|
}
|
|
34303
34368
|
|
|
34304
34369
|
// src/data/rest-api/routes/data/verificationresult/verificationresult.ts
|
|
34305
|
-
var
|
|
34306
|
-
|
|
34307
|
-
|
|
34308
|
-
|
|
34309
|
-
|
|
34310
|
-
|
|
34370
|
+
var router150 = express150.Router();
|
|
34371
|
+
router150.get("/", listVerificationResultsRoute);
|
|
34372
|
+
router150.get("/:id", getVerificationResultByIdRoute);
|
|
34373
|
+
router150.post("/", createVerificationResultRoute);
|
|
34374
|
+
router150.put("/:id", updateVerificationResultRoute);
|
|
34375
|
+
router150.delete("/:id", deleteVerificationResultRoute);
|
|
34311
34376
|
|
|
34312
34377
|
// src/data/rest-api/routes/data/visionprescription/visionprescription.ts
|
|
34313
|
-
import
|
|
34378
|
+
import express151 from "express";
|
|
34314
34379
|
|
|
34315
34380
|
// src/data/operations/data/visionprescription/visionprescription-create-operation.ts
|
|
34316
34381
|
import { ulid as ulid137 } from "ulid";
|
|
@@ -34509,24 +34574,25 @@ async function updateVisionPrescriptionRoute(req, res) {
|
|
|
34509
34574
|
}
|
|
34510
34575
|
|
|
34511
34576
|
// src/data/rest-api/routes/data/visionprescription/visionprescription.ts
|
|
34512
|
-
var
|
|
34513
|
-
|
|
34514
|
-
|
|
34515
|
-
|
|
34516
|
-
|
|
34517
|
-
|
|
34577
|
+
var router151 = express151.Router();
|
|
34578
|
+
router151.get("/", listVisionPrescriptionsRoute);
|
|
34579
|
+
router151.get("/:id", getVisionPrescriptionByIdRoute);
|
|
34580
|
+
router151.post("/", createVisionPrescriptionRoute);
|
|
34581
|
+
router151.put("/:id", updateVisionPrescriptionRoute);
|
|
34582
|
+
router151.delete("/:id", deleteVisionPrescriptionRoute);
|
|
34518
34583
|
|
|
34519
34584
|
// src/data/rest-api/rest-api.ts
|
|
34520
|
-
var app =
|
|
34585
|
+
var app = express152();
|
|
34521
34586
|
app.set("view engine", "ejs");
|
|
34522
34587
|
app.set("views", path.join(__dirname, "views"));
|
|
34523
|
-
app.use(
|
|
34524
|
-
app.use(
|
|
34588
|
+
app.use(express152.json());
|
|
34589
|
+
app.use(express152.urlencoded({ extended: true }));
|
|
34525
34590
|
app.use(normalizeJsonBodyMiddleware);
|
|
34526
34591
|
app.get("/", (_req, res) => {
|
|
34527
34592
|
return res.status(200).json({ message: "POC App is running" });
|
|
34528
34593
|
});
|
|
34529
|
-
app.use("/User",
|
|
34594
|
+
app.use("/User", router8);
|
|
34595
|
+
app.use("/control/runtime-config", router5);
|
|
34530
34596
|
app.use(
|
|
34531
34597
|
[
|
|
34532
34598
|
"/Account",
|
|
@@ -34681,164 +34747,164 @@ app.use(
|
|
|
34681
34747
|
],
|
|
34682
34748
|
openHiContextMiddleware
|
|
34683
34749
|
);
|
|
34684
|
-
app.use("/Account",
|
|
34685
|
-
app.use("/ActivityDefinition",
|
|
34686
|
-
app.use("/AdverseEvent",
|
|
34687
|
-
app.use("/AllergyIntolerance",
|
|
34688
|
-
app.use("/Appointment",
|
|
34689
|
-
app.use("/AppointmentResponse",
|
|
34690
|
-
app.use("/AuditEvent",
|
|
34691
|
-
app.use("/Basic",
|
|
34692
|
-
app.use("/BiologicallyDerivedProduct",
|
|
34693
|
-
app.use("/BodyStructure",
|
|
34694
|
-
app.use("/CapabilityStatement",
|
|
34695
|
-
app.use("/CarePlan",
|
|
34696
|
-
app.use("/CareTeam",
|
|
34697
|
-
app.use("/CatalogEntry",
|
|
34698
|
-
app.use("/ChargeItem",
|
|
34699
|
-
app.use("/ChargeItemDefinition",
|
|
34700
|
-
app.use("/Claim",
|
|
34701
|
-
app.use("/ClaimResponse",
|
|
34702
|
-
app.use("/ClinicalImpression",
|
|
34703
|
-
app.use("/CodeSystem",
|
|
34704
|
-
app.use("/CompartmentDefinition",
|
|
34705
|
-
app.use("/Communication",
|
|
34706
|
-
app.use("/CommunicationRequest",
|
|
34707
|
-
app.use("/Composition",
|
|
34708
|
-
app.use("/ConceptMap",
|
|
34709
|
-
app.use("/Condition",
|
|
34710
|
-
app.use("/Consent",
|
|
34711
|
-
app.use("/Contract",
|
|
34712
|
-
app.use("/Coverage",
|
|
34713
|
-
app.use("/CoverageEligibilityRequest",
|
|
34714
|
-
app.use("/CoverageEligibilityResponse",
|
|
34715
|
-
app.use("/DetectedIssue",
|
|
34716
|
-
app.use("/Device",
|
|
34717
|
-
app.use("/DeviceDefinition",
|
|
34718
|
-
app.use("/DeviceMetric",
|
|
34719
|
-
app.use("/DeviceRequest",
|
|
34720
|
-
app.use("/DeviceUseStatement",
|
|
34721
|
-
app.use("/DiagnosticReport",
|
|
34722
|
-
app.use("/DocumentManifest",
|
|
34723
|
-
app.use("/DocumentReference",
|
|
34724
|
-
app.use("/EffectEvidenceSynthesis",
|
|
34725
|
-
app.use("/Encounter",
|
|
34726
|
-
app.use("/Endpoint",
|
|
34727
|
-
app.use("/EnrollmentRequest",
|
|
34728
|
-
app.use("/EnrollmentResponse",
|
|
34729
|
-
app.use("/EpisodeOfCare",
|
|
34730
|
-
app.use("/EventDefinition",
|
|
34731
|
-
app.use("/Evidence",
|
|
34732
|
-
app.use("/EvidenceVariable",
|
|
34733
|
-
app.use("/ExampleScenario",
|
|
34734
|
-
app.use("/ExplanationOfBenefit",
|
|
34735
|
-
app.use("/FamilyMemberHistory",
|
|
34736
|
-
app.use("/Flag",
|
|
34737
|
-
app.use("/Goal",
|
|
34738
|
-
app.use("/GraphDefinition",
|
|
34739
|
-
app.use("/Group",
|
|
34740
|
-
app.use("/GuidanceResponse",
|
|
34741
|
-
app.use("/HealthcareService",
|
|
34742
|
-
app.use("/ImplementationGuide",
|
|
34743
|
-
app.use("/ImagingStudy",
|
|
34744
|
-
app.use("/Immunization",
|
|
34745
|
-
app.use("/ImmunizationEvaluation",
|
|
34746
|
-
app.use("/ImmunizationRecommendation",
|
|
34747
|
-
app.use("/InsurancePlan",
|
|
34748
|
-
app.use("/Invoice",
|
|
34749
|
-
app.use("/Library",
|
|
34750
|
-
app.use("/Linkage",
|
|
34751
|
-
app.use("/List",
|
|
34752
|
-
app.use("/Location",
|
|
34753
|
-
app.use("/Measure",
|
|
34754
|
-
app.use("/MeasureReport",
|
|
34755
|
-
app.use("/Media",
|
|
34756
|
-
app.use("/Medication",
|
|
34757
|
-
app.use("/MedicationAdministration",
|
|
34758
|
-
app.use("/MedicationDispense",
|
|
34759
|
-
app.use("/MedicationKnowledge",
|
|
34760
|
-
app.use("/MedicationRequest",
|
|
34761
|
-
app.use("/MedicationStatement",
|
|
34762
|
-
app.use("/MedicinalProduct",
|
|
34763
|
-
app.use("/MedicinalProductAuthorization",
|
|
34750
|
+
app.use("/Account", router10);
|
|
34751
|
+
app.use("/ActivityDefinition", router11);
|
|
34752
|
+
app.use("/AdverseEvent", router12);
|
|
34753
|
+
app.use("/AllergyIntolerance", router13);
|
|
34754
|
+
app.use("/Appointment", router14);
|
|
34755
|
+
app.use("/AppointmentResponse", router15);
|
|
34756
|
+
app.use("/AuditEvent", router16);
|
|
34757
|
+
app.use("/Basic", router17);
|
|
34758
|
+
app.use("/BiologicallyDerivedProduct", router18);
|
|
34759
|
+
app.use("/BodyStructure", router19);
|
|
34760
|
+
app.use("/CapabilityStatement", router20);
|
|
34761
|
+
app.use("/CarePlan", router21);
|
|
34762
|
+
app.use("/CareTeam", router22);
|
|
34763
|
+
app.use("/CatalogEntry", router23);
|
|
34764
|
+
app.use("/ChargeItem", router24);
|
|
34765
|
+
app.use("/ChargeItemDefinition", router25);
|
|
34766
|
+
app.use("/Claim", router26);
|
|
34767
|
+
app.use("/ClaimResponse", router27);
|
|
34768
|
+
app.use("/ClinicalImpression", router28);
|
|
34769
|
+
app.use("/CodeSystem", router29);
|
|
34770
|
+
app.use("/CompartmentDefinition", router32);
|
|
34771
|
+
app.use("/Communication", router30);
|
|
34772
|
+
app.use("/CommunicationRequest", router31);
|
|
34773
|
+
app.use("/Composition", router33);
|
|
34774
|
+
app.use("/ConceptMap", router34);
|
|
34775
|
+
app.use("/Condition", router35);
|
|
34776
|
+
app.use("/Consent", router36);
|
|
34777
|
+
app.use("/Contract", router37);
|
|
34778
|
+
app.use("/Coverage", router38);
|
|
34779
|
+
app.use("/CoverageEligibilityRequest", router39);
|
|
34780
|
+
app.use("/CoverageEligibilityResponse", router40);
|
|
34781
|
+
app.use("/DetectedIssue", router41);
|
|
34782
|
+
app.use("/Device", router42);
|
|
34783
|
+
app.use("/DeviceDefinition", router43);
|
|
34784
|
+
app.use("/DeviceMetric", router44);
|
|
34785
|
+
app.use("/DeviceRequest", router45);
|
|
34786
|
+
app.use("/DeviceUseStatement", router46);
|
|
34787
|
+
app.use("/DiagnosticReport", router47);
|
|
34788
|
+
app.use("/DocumentManifest", router48);
|
|
34789
|
+
app.use("/DocumentReference", router49);
|
|
34790
|
+
app.use("/EffectEvidenceSynthesis", router50);
|
|
34791
|
+
app.use("/Encounter", router51);
|
|
34792
|
+
app.use("/Endpoint", router52);
|
|
34793
|
+
app.use("/EnrollmentRequest", router53);
|
|
34794
|
+
app.use("/EnrollmentResponse", router54);
|
|
34795
|
+
app.use("/EpisodeOfCare", router55);
|
|
34796
|
+
app.use("/EventDefinition", router56);
|
|
34797
|
+
app.use("/Evidence", router57);
|
|
34798
|
+
app.use("/EvidenceVariable", router58);
|
|
34799
|
+
app.use("/ExampleScenario", router59);
|
|
34800
|
+
app.use("/ExplanationOfBenefit", router60);
|
|
34801
|
+
app.use("/FamilyMemberHistory", router61);
|
|
34802
|
+
app.use("/Flag", router62);
|
|
34803
|
+
app.use("/Goal", router63);
|
|
34804
|
+
app.use("/GraphDefinition", router64);
|
|
34805
|
+
app.use("/Group", router65);
|
|
34806
|
+
app.use("/GuidanceResponse", router66);
|
|
34807
|
+
app.use("/HealthcareService", router67);
|
|
34808
|
+
app.use("/ImplementationGuide", router72);
|
|
34809
|
+
app.use("/ImagingStudy", router68);
|
|
34810
|
+
app.use("/Immunization", router69);
|
|
34811
|
+
app.use("/ImmunizationEvaluation", router70);
|
|
34812
|
+
app.use("/ImmunizationRecommendation", router71);
|
|
34813
|
+
app.use("/InsurancePlan", router73);
|
|
34814
|
+
app.use("/Invoice", router74);
|
|
34815
|
+
app.use("/Library", router75);
|
|
34816
|
+
app.use("/Linkage", router76);
|
|
34817
|
+
app.use("/List", router77);
|
|
34818
|
+
app.use("/Location", router78);
|
|
34819
|
+
app.use("/Measure", router79);
|
|
34820
|
+
app.use("/MeasureReport", router80);
|
|
34821
|
+
app.use("/Media", router81);
|
|
34822
|
+
app.use("/Medication", router82);
|
|
34823
|
+
app.use("/MedicationAdministration", router83);
|
|
34824
|
+
app.use("/MedicationDispense", router84);
|
|
34825
|
+
app.use("/MedicationKnowledge", router85);
|
|
34826
|
+
app.use("/MedicationRequest", router86);
|
|
34827
|
+
app.use("/MedicationStatement", router87);
|
|
34828
|
+
app.use("/MedicinalProduct", router88);
|
|
34829
|
+
app.use("/MedicinalProductAuthorization", router89);
|
|
34764
34830
|
app.use(
|
|
34765
34831
|
"/MedicinalProductContraindication",
|
|
34766
|
-
|
|
34832
|
+
router90
|
|
34767
34833
|
);
|
|
34768
|
-
app.use("/MedicinalProductIngredient",
|
|
34769
|
-
app.use("/MedicinalProductIndication",
|
|
34770
|
-
app.use("/MedicinalProductInteraction",
|
|
34771
|
-
app.use("/MedicinalProductManufactured",
|
|
34772
|
-
app.use("/MedicinalProductPackaged",
|
|
34834
|
+
app.use("/MedicinalProductIngredient", router92);
|
|
34835
|
+
app.use("/MedicinalProductIndication", router91);
|
|
34836
|
+
app.use("/MedicinalProductInteraction", router93);
|
|
34837
|
+
app.use("/MedicinalProductManufactured", router94);
|
|
34838
|
+
app.use("/MedicinalProductPackaged", router95);
|
|
34773
34839
|
app.use(
|
|
34774
34840
|
"/MedicinalProductPharmaceutical",
|
|
34775
|
-
|
|
34841
|
+
router96
|
|
34776
34842
|
);
|
|
34777
34843
|
app.use(
|
|
34778
34844
|
"/MedicinalProductUndesirableEffect",
|
|
34779
|
-
|
|
34845
|
+
router97
|
|
34780
34846
|
);
|
|
34781
|
-
app.use("/MessageDefinition",
|
|
34782
|
-
app.use("/MessageHeader",
|
|
34783
|
-
app.use("/MolecularSequence",
|
|
34784
|
-
app.use("/NamingSystem",
|
|
34785
|
-
app.use("/NutritionOrder",
|
|
34786
|
-
app.use("/Observation",
|
|
34787
|
-
app.use("/ObservationDefinition",
|
|
34788
|
-
app.use("/OperationDefinition",
|
|
34789
|
-
app.use("/Organization",
|
|
34790
|
-
app.use("/OrganizationAffiliation",
|
|
34791
|
-
app.use("/Patient",
|
|
34792
|
-
app.use("/PaymentNotice",
|
|
34793
|
-
app.use("/PaymentReconciliation",
|
|
34794
|
-
app.use("/Person",
|
|
34795
|
-
app.use("/PlanDefinition",
|
|
34796
|
-
app.use("/Practitioner",
|
|
34797
|
-
app.use("/PractitionerRole",
|
|
34798
|
-
app.use("/Procedure",
|
|
34799
|
-
app.use("/Provenance",
|
|
34800
|
-
app.use("/Questionnaire",
|
|
34801
|
-
app.use("/QuestionnaireResponse",
|
|
34802
|
-
app.use("/RelatedPerson",
|
|
34803
|
-
app.use("/RequestGroup",
|
|
34804
|
-
app.use("/ResearchDefinition",
|
|
34805
|
-
app.use("/ResearchElementDefinition",
|
|
34806
|
-
app.use("/ResearchStudy",
|
|
34807
|
-
app.use("/ResearchSubject",
|
|
34808
|
-
app.use("/RiskAssessment",
|
|
34809
|
-
app.use("/RiskEvidenceSynthesis",
|
|
34810
|
-
app.use("/Schedule",
|
|
34811
|
-
app.use("/ServiceRequest",
|
|
34812
|
-
app.use("/SearchParameter",
|
|
34813
|
-
app.use("/Slot",
|
|
34814
|
-
app.use("/SpecimenDefinition",
|
|
34815
|
-
app.use("/Specimen",
|
|
34816
|
-
app.use("/StructureDefinition",
|
|
34817
|
-
app.use("/StructureMap",
|
|
34818
|
-
app.use("/Subscription",
|
|
34819
|
-
app.use("/Substance",
|
|
34820
|
-
app.use("/SubstanceNucleicAcid",
|
|
34821
|
-
app.use("/SubstancePolymer",
|
|
34822
|
-
app.use("/SubstanceProtein",
|
|
34823
|
-
app.use("/SubstanceReferenceInformation",
|
|
34824
|
-
app.use("/SubstanceSpecification",
|
|
34825
|
-
app.use("/SubstanceSourceMaterial",
|
|
34826
|
-
app.use("/SupplyDelivery",
|
|
34827
|
-
app.use("/SupplyRequest",
|
|
34828
|
-
app.use("/Task",
|
|
34829
|
-
app.use("/TerminologyCapabilities",
|
|
34830
|
-
app.use("/TestReport",
|
|
34831
|
-
app.use("/TestScript",
|
|
34832
|
-
app.use("/ValueSet",
|
|
34833
|
-
app.use("/VerificationResult",
|
|
34834
|
-
app.use("/VisionPrescription",
|
|
34847
|
+
app.use("/MessageDefinition", router98);
|
|
34848
|
+
app.use("/MessageHeader", router99);
|
|
34849
|
+
app.use("/MolecularSequence", router100);
|
|
34850
|
+
app.use("/NamingSystem", router101);
|
|
34851
|
+
app.use("/NutritionOrder", router102);
|
|
34852
|
+
app.use("/Observation", router103);
|
|
34853
|
+
app.use("/ObservationDefinition", router104);
|
|
34854
|
+
app.use("/OperationDefinition", router105);
|
|
34855
|
+
app.use("/Organization", router106);
|
|
34856
|
+
app.use("/OrganizationAffiliation", router107);
|
|
34857
|
+
app.use("/Patient", router108);
|
|
34858
|
+
app.use("/PaymentNotice", router109);
|
|
34859
|
+
app.use("/PaymentReconciliation", router110);
|
|
34860
|
+
app.use("/Person", router111);
|
|
34861
|
+
app.use("/PlanDefinition", router112);
|
|
34862
|
+
app.use("/Practitioner", router113);
|
|
34863
|
+
app.use("/PractitionerRole", router114);
|
|
34864
|
+
app.use("/Procedure", router115);
|
|
34865
|
+
app.use("/Provenance", router116);
|
|
34866
|
+
app.use("/Questionnaire", router117);
|
|
34867
|
+
app.use("/QuestionnaireResponse", router118);
|
|
34868
|
+
app.use("/RelatedPerson", router119);
|
|
34869
|
+
app.use("/RequestGroup", router120);
|
|
34870
|
+
app.use("/ResearchDefinition", router121);
|
|
34871
|
+
app.use("/ResearchElementDefinition", router122);
|
|
34872
|
+
app.use("/ResearchStudy", router123);
|
|
34873
|
+
app.use("/ResearchSubject", router124);
|
|
34874
|
+
app.use("/RiskAssessment", router125);
|
|
34875
|
+
app.use("/RiskEvidenceSynthesis", router126);
|
|
34876
|
+
app.use("/Schedule", router127);
|
|
34877
|
+
app.use("/ServiceRequest", router129);
|
|
34878
|
+
app.use("/SearchParameter", router128);
|
|
34879
|
+
app.use("/Slot", router130);
|
|
34880
|
+
app.use("/SpecimenDefinition", router132);
|
|
34881
|
+
app.use("/Specimen", router131);
|
|
34882
|
+
app.use("/StructureDefinition", router133);
|
|
34883
|
+
app.use("/StructureMap", router134);
|
|
34884
|
+
app.use("/Subscription", router135);
|
|
34885
|
+
app.use("/Substance", router136);
|
|
34886
|
+
app.use("/SubstanceNucleicAcid", router137);
|
|
34887
|
+
app.use("/SubstancePolymer", router138);
|
|
34888
|
+
app.use("/SubstanceProtein", router139);
|
|
34889
|
+
app.use("/SubstanceReferenceInformation", router140);
|
|
34890
|
+
app.use("/SubstanceSpecification", router142);
|
|
34891
|
+
app.use("/SubstanceSourceMaterial", router141);
|
|
34892
|
+
app.use("/SupplyDelivery", router143);
|
|
34893
|
+
app.use("/SupplyRequest", router144);
|
|
34894
|
+
app.use("/Task", router145);
|
|
34895
|
+
app.use("/TerminologyCapabilities", router146);
|
|
34896
|
+
app.use("/TestReport", router147);
|
|
34897
|
+
app.use("/TestScript", router148);
|
|
34898
|
+
app.use("/ValueSet", router149);
|
|
34899
|
+
app.use("/VerificationResult", router150);
|
|
34900
|
+
app.use("/VisionPrescription", router151);
|
|
34835
34901
|
app.use("/Configuration", router);
|
|
34836
34902
|
app.use("/Membership", router2);
|
|
34837
34903
|
app.use("/Role", router3);
|
|
34838
34904
|
app.use("/RoleAssignment", router4);
|
|
34839
|
-
app.use("/Tenant",
|
|
34840
|
-
app.use("/User",
|
|
34841
|
-
app.use("/Workspace",
|
|
34905
|
+
app.use("/Tenant", router6);
|
|
34906
|
+
app.use("/User", router7);
|
|
34907
|
+
app.use("/Workspace", router9);
|
|
34842
34908
|
app.use((_req, res) => {
|
|
34843
34909
|
res.status(404).json({
|
|
34844
34910
|
resourceType: "OperationOutcome",
|