@openhi/constructs 0.0.45 → 0.0.46
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.
|
@@ -7,7 +7,7 @@ import serverlessExpress from "@codegenie/serverless-express";
|
|
|
7
7
|
|
|
8
8
|
// src/data/rest-api/rest-api.ts
|
|
9
9
|
import path from "path";
|
|
10
|
-
import
|
|
10
|
+
import express107 from "express";
|
|
11
11
|
|
|
12
12
|
// src/data/middleware/normalize-json-body.ts
|
|
13
13
|
function normalizeJsonBodyMiddleware(req, _res, next) {
|
|
@@ -349,6 +349,7 @@ var BASE_PATH = {
|
|
|
349
349
|
CONFIGURATION: "/Configuration",
|
|
350
350
|
CONSENT: "/Consent",
|
|
351
351
|
CONTRACT: "/Contract",
|
|
352
|
+
COVERAGE: "/Coverage",
|
|
352
353
|
COVERAGEELIGIBILITYREQUEST: "/CoverageEligibilityRequest",
|
|
353
354
|
COVERAGEELIGIBILITYRESPONSE: "/CoverageEligibilityResponse",
|
|
354
355
|
DETECTEDISSUE: "/DetectedIssue",
|
|
@@ -6730,12 +6731,12 @@ router25.post("/", createContractRoute);
|
|
|
6730
6731
|
router25.put("/:id", updateContractRoute);
|
|
6731
6732
|
router25.delete("/:id", deleteContractRoute);
|
|
6732
6733
|
|
|
6733
|
-
// src/data/rest-api/routes/data/
|
|
6734
|
+
// src/data/rest-api/routes/data/coverage/coverage.ts
|
|
6734
6735
|
import express26 from "express";
|
|
6735
6736
|
|
|
6736
|
-
// src/data/operations/data/
|
|
6737
|
+
// src/data/operations/data/coverage/coverage-create-operation.ts
|
|
6737
6738
|
import { ulid as ulid25 } from "ulid";
|
|
6738
|
-
async function
|
|
6739
|
+
async function createCoverageOperation(params) {
|
|
6739
6740
|
const { context, body, tableName } = params;
|
|
6740
6741
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
6741
6742
|
const id = body.id ?? ulid25();
|
|
@@ -6744,6 +6745,215 @@ async function createCoverageEligibilityRequestOperation(params) {
|
|
|
6744
6745
|
lastUpdated: date,
|
|
6745
6746
|
versionId: "1"
|
|
6746
6747
|
};
|
|
6748
|
+
const resourceWithAudit = {
|
|
6749
|
+
...body,
|
|
6750
|
+
resourceType: "Coverage",
|
|
6751
|
+
id,
|
|
6752
|
+
meta: mergeAuditIntoMeta(meta, {
|
|
6753
|
+
createdDate: date,
|
|
6754
|
+
createdById: actorId,
|
|
6755
|
+
createdByName: actorName,
|
|
6756
|
+
modifiedDate: date,
|
|
6757
|
+
modifiedById: actorId,
|
|
6758
|
+
modifiedByName: actorName
|
|
6759
|
+
})
|
|
6760
|
+
};
|
|
6761
|
+
const service = getDynamoDataService(tableName);
|
|
6762
|
+
return createDataEntityRecord(
|
|
6763
|
+
service.entities.coverage,
|
|
6764
|
+
tenantId,
|
|
6765
|
+
workspaceId,
|
|
6766
|
+
id,
|
|
6767
|
+
resourceWithAudit,
|
|
6768
|
+
date
|
|
6769
|
+
);
|
|
6770
|
+
}
|
|
6771
|
+
|
|
6772
|
+
// src/data/rest-api/routes/data/coverage/coverage-create-route.ts
|
|
6773
|
+
async function createCoverageRoute(req, res) {
|
|
6774
|
+
const bodyResult = requireJsonBodyAs(req, res);
|
|
6775
|
+
if ("errorResponse" in bodyResult) return bodyResult.errorResponse;
|
|
6776
|
+
const ctx = req.openhiContext;
|
|
6777
|
+
const body = bodyResult.body;
|
|
6778
|
+
const resource = {
|
|
6779
|
+
...body,
|
|
6780
|
+
resourceType: "Coverage"
|
|
6781
|
+
};
|
|
6782
|
+
try {
|
|
6783
|
+
const result = await createCoverageOperation({
|
|
6784
|
+
context: ctx,
|
|
6785
|
+
body: resource
|
|
6786
|
+
});
|
|
6787
|
+
return res.status(201).location(`${BASE_PATH.COVERAGE}/${result.id}`).json(result.resource);
|
|
6788
|
+
} catch (err) {
|
|
6789
|
+
return sendOperationOutcome500(res, err, "POST Coverage error:");
|
|
6790
|
+
}
|
|
6791
|
+
}
|
|
6792
|
+
|
|
6793
|
+
// src/data/operations/data/coverage/coverage-delete-operation.ts
|
|
6794
|
+
async function deleteCoverageOperation(params) {
|
|
6795
|
+
const { context, id, tableName } = params;
|
|
6796
|
+
const { tenantId, workspaceId } = context;
|
|
6797
|
+
const service = getDynamoDataService(tableName);
|
|
6798
|
+
await deleteDataEntityById(
|
|
6799
|
+
service.entities.coverage,
|
|
6800
|
+
tenantId,
|
|
6801
|
+
workspaceId,
|
|
6802
|
+
id
|
|
6803
|
+
);
|
|
6804
|
+
}
|
|
6805
|
+
|
|
6806
|
+
// src/data/rest-api/routes/data/coverage/coverage-delete-route.ts
|
|
6807
|
+
async function deleteCoverageRoute(req, res) {
|
|
6808
|
+
const id = String(req.params.id);
|
|
6809
|
+
const ctx = req.openhiContext;
|
|
6810
|
+
try {
|
|
6811
|
+
await deleteCoverageOperation({ context: ctx, id });
|
|
6812
|
+
return res.status(204).send();
|
|
6813
|
+
} catch (err) {
|
|
6814
|
+
return sendOperationOutcome500(res, err, "DELETE Coverage error:");
|
|
6815
|
+
}
|
|
6816
|
+
}
|
|
6817
|
+
|
|
6818
|
+
// src/data/operations/data/coverage/coverage-get-by-id-operation.ts
|
|
6819
|
+
async function getCoverageByIdOperation(params) {
|
|
6820
|
+
const { context, id, tableName } = params;
|
|
6821
|
+
const { tenantId, workspaceId } = context;
|
|
6822
|
+
const service = getDynamoDataService(tableName);
|
|
6823
|
+
return getDataEntityById(
|
|
6824
|
+
service.entities.coverage,
|
|
6825
|
+
tenantId,
|
|
6826
|
+
workspaceId,
|
|
6827
|
+
id,
|
|
6828
|
+
"Coverage"
|
|
6829
|
+
);
|
|
6830
|
+
}
|
|
6831
|
+
|
|
6832
|
+
// src/data/rest-api/routes/data/coverage/coverage-get-by-id-route.ts
|
|
6833
|
+
async function getCoverageByIdRoute(req, res) {
|
|
6834
|
+
const id = String(req.params.id);
|
|
6835
|
+
const ctx = req.openhiContext;
|
|
6836
|
+
try {
|
|
6837
|
+
const result = await getCoverageByIdOperation({
|
|
6838
|
+
context: ctx,
|
|
6839
|
+
id
|
|
6840
|
+
});
|
|
6841
|
+
return res.json(result.resource);
|
|
6842
|
+
} catch (err) {
|
|
6843
|
+
const status = domainErrorToHttpStatus(err);
|
|
6844
|
+
if (status === 404) {
|
|
6845
|
+
const diagnostics = err instanceof NotFoundError ? err.message : `Coverage ${id} not found`;
|
|
6846
|
+
return sendOperationOutcome404(res, diagnostics);
|
|
6847
|
+
}
|
|
6848
|
+
return sendOperationOutcome500(res, err, "GET Coverage error:");
|
|
6849
|
+
}
|
|
6850
|
+
}
|
|
6851
|
+
|
|
6852
|
+
// src/data/operations/data/coverage/coverage-list-operation.ts
|
|
6853
|
+
async function listCoveragesOperation(params) {
|
|
6854
|
+
const { context, tableName } = params;
|
|
6855
|
+
const { tenantId, workspaceId } = context;
|
|
6856
|
+
const service = getDynamoDataService(tableName);
|
|
6857
|
+
return listDataEntitiesByWorkspace(
|
|
6858
|
+
service.entities.coverage,
|
|
6859
|
+
tenantId,
|
|
6860
|
+
workspaceId
|
|
6861
|
+
);
|
|
6862
|
+
}
|
|
6863
|
+
|
|
6864
|
+
// src/data/rest-api/routes/data/coverage/coverage-list-route.ts
|
|
6865
|
+
async function listCoveragesRoute(req, res) {
|
|
6866
|
+
const ctx = req.openhiContext;
|
|
6867
|
+
try {
|
|
6868
|
+
const result = await listCoveragesOperation({
|
|
6869
|
+
context: ctx
|
|
6870
|
+
});
|
|
6871
|
+
const bundle = buildSearchsetBundle(BASE_PATH.COVERAGE, result.entries);
|
|
6872
|
+
return res.json(bundle);
|
|
6873
|
+
} catch (err) {
|
|
6874
|
+
return sendOperationOutcome500(
|
|
6875
|
+
res,
|
|
6876
|
+
err,
|
|
6877
|
+
"GET /Coverage list error:"
|
|
6878
|
+
);
|
|
6879
|
+
}
|
|
6880
|
+
}
|
|
6881
|
+
|
|
6882
|
+
// src/data/operations/data/coverage/coverage-update-operation.ts
|
|
6883
|
+
async function updateCoverageOperation(params) {
|
|
6884
|
+
const { context, id, body, tableName } = params;
|
|
6885
|
+
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
6886
|
+
const service = getDynamoDataService(tableName);
|
|
6887
|
+
return updateDataEntityById(
|
|
6888
|
+
service.entities.coverage,
|
|
6889
|
+
tenantId,
|
|
6890
|
+
workspaceId,
|
|
6891
|
+
id,
|
|
6892
|
+
"Coverage",
|
|
6893
|
+
context,
|
|
6894
|
+
(existingResourceStr) => buildUpdatedResourceWithAudit(
|
|
6895
|
+
body,
|
|
6896
|
+
id,
|
|
6897
|
+
date,
|
|
6898
|
+
actorId,
|
|
6899
|
+
actorName,
|
|
6900
|
+
existingResourceStr,
|
|
6901
|
+
"Coverage"
|
|
6902
|
+
)
|
|
6903
|
+
);
|
|
6904
|
+
}
|
|
6905
|
+
|
|
6906
|
+
// src/data/rest-api/routes/data/coverage/coverage-update-route.ts
|
|
6907
|
+
async function updateCoverageRoute(req, res) {
|
|
6908
|
+
const bodyResult = requireJsonBodyAs(req, res);
|
|
6909
|
+
if ("errorResponse" in bodyResult) return bodyResult.errorResponse;
|
|
6910
|
+
const id = String(req.params.id);
|
|
6911
|
+
const ctx = req.openhiContext;
|
|
6912
|
+
const body = bodyResult.body;
|
|
6913
|
+
const resource = {
|
|
6914
|
+
...body,
|
|
6915
|
+
resourceType: "Coverage",
|
|
6916
|
+
id
|
|
6917
|
+
};
|
|
6918
|
+
try {
|
|
6919
|
+
const result = await updateCoverageOperation({
|
|
6920
|
+
context: ctx,
|
|
6921
|
+
id,
|
|
6922
|
+
body: resource
|
|
6923
|
+
});
|
|
6924
|
+
return res.json(result.resource);
|
|
6925
|
+
} catch (err) {
|
|
6926
|
+
const status = domainErrorToHttpStatus(err);
|
|
6927
|
+
if (status === 404) {
|
|
6928
|
+
const diagnostics = err instanceof NotFoundError ? err.message : `Coverage ${id} not found`;
|
|
6929
|
+
return sendOperationOutcome404(res, diagnostics);
|
|
6930
|
+
}
|
|
6931
|
+
return sendOperationOutcome500(res, err, "PUT Coverage error:");
|
|
6932
|
+
}
|
|
6933
|
+
}
|
|
6934
|
+
|
|
6935
|
+
// src/data/rest-api/routes/data/coverage/coverage.ts
|
|
6936
|
+
var router26 = express26.Router();
|
|
6937
|
+
router26.get("/", listCoveragesRoute);
|
|
6938
|
+
router26.get("/:id", getCoverageByIdRoute);
|
|
6939
|
+
router26.post("/", createCoverageRoute);
|
|
6940
|
+
router26.put("/:id", updateCoverageRoute);
|
|
6941
|
+
router26.delete("/:id", deleteCoverageRoute);
|
|
6942
|
+
|
|
6943
|
+
// src/data/rest-api/routes/data/coverageeligibilityrequest/coverageeligibilityrequest.ts
|
|
6944
|
+
import express27 from "express";
|
|
6945
|
+
|
|
6946
|
+
// src/data/operations/data/coverageeligibilityrequest/coverageeligibilityrequest-create-operation.ts
|
|
6947
|
+
import { ulid as ulid26 } from "ulid";
|
|
6948
|
+
async function createCoverageEligibilityRequestOperation(params) {
|
|
6949
|
+
const { context, body, tableName } = params;
|
|
6950
|
+
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
6951
|
+
const id = body.id ?? ulid26();
|
|
6952
|
+
const meta = {
|
|
6953
|
+
...body.meta ?? {},
|
|
6954
|
+
lastUpdated: date,
|
|
6955
|
+
versionId: "1"
|
|
6956
|
+
};
|
|
6747
6957
|
const resourceWithAudit = {
|
|
6748
6958
|
...body,
|
|
6749
6959
|
resourceType: "CoverageEligibilityRequest",
|
|
@@ -6951,22 +7161,22 @@ async function updateCoverageEligibilityRequestRoute(req, res) {
|
|
|
6951
7161
|
}
|
|
6952
7162
|
|
|
6953
7163
|
// src/data/rest-api/routes/data/coverageeligibilityrequest/coverageeligibilityrequest.ts
|
|
6954
|
-
var
|
|
6955
|
-
|
|
6956
|
-
|
|
6957
|
-
|
|
6958
|
-
|
|
6959
|
-
|
|
7164
|
+
var router27 = express27.Router();
|
|
7165
|
+
router27.get("/", listCoverageEligibilityRequestsRoute);
|
|
7166
|
+
router27.get("/:id", getCoverageEligibilityRequestByIdRoute);
|
|
7167
|
+
router27.post("/", createCoverageEligibilityRequestRoute);
|
|
7168
|
+
router27.put("/:id", updateCoverageEligibilityRequestRoute);
|
|
7169
|
+
router27.delete("/:id", deleteCoverageEligibilityRequestRoute);
|
|
6960
7170
|
|
|
6961
7171
|
// src/data/rest-api/routes/data/coverageeligibilityresponse/coverageeligibilityresponse.ts
|
|
6962
|
-
import
|
|
7172
|
+
import express28 from "express";
|
|
6963
7173
|
|
|
6964
7174
|
// src/data/operations/data/coverageeligibilityresponse/coverageeligibilityresponse-create-operation.ts
|
|
6965
|
-
import { ulid as
|
|
7175
|
+
import { ulid as ulid27 } from "ulid";
|
|
6966
7176
|
async function createCoverageEligibilityResponseOperation(params) {
|
|
6967
7177
|
const { context, body, tableName } = params;
|
|
6968
7178
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
6969
|
-
const id = body.id ??
|
|
7179
|
+
const id = body.id ?? ulid27();
|
|
6970
7180
|
const meta = {
|
|
6971
7181
|
...body.meta ?? {},
|
|
6972
7182
|
lastUpdated: date,
|
|
@@ -7179,22 +7389,22 @@ async function updateCoverageEligibilityResponseRoute(req, res) {
|
|
|
7179
7389
|
}
|
|
7180
7390
|
|
|
7181
7391
|
// src/data/rest-api/routes/data/coverageeligibilityresponse/coverageeligibilityresponse.ts
|
|
7182
|
-
var
|
|
7183
|
-
|
|
7184
|
-
|
|
7185
|
-
|
|
7186
|
-
|
|
7187
|
-
|
|
7392
|
+
var router28 = express28.Router();
|
|
7393
|
+
router28.get("/", listCoverageEligibilityResponsesRoute);
|
|
7394
|
+
router28.get("/:id", getCoverageEligibilityResponseByIdRoute);
|
|
7395
|
+
router28.post("/", createCoverageEligibilityResponseRoute);
|
|
7396
|
+
router28.put("/:id", updateCoverageEligibilityResponseRoute);
|
|
7397
|
+
router28.delete("/:id", deleteCoverageEligibilityResponseRoute);
|
|
7188
7398
|
|
|
7189
7399
|
// src/data/rest-api/routes/data/detectedissue/detectedissue.ts
|
|
7190
|
-
import
|
|
7400
|
+
import express29 from "express";
|
|
7191
7401
|
|
|
7192
7402
|
// src/data/operations/data/detectedissue/detectedissue-create-operation.ts
|
|
7193
|
-
import { ulid as
|
|
7403
|
+
import { ulid as ulid28 } from "ulid";
|
|
7194
7404
|
async function createDetectedIssueOperation(params) {
|
|
7195
7405
|
const { context, body, tableName } = params;
|
|
7196
7406
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
7197
|
-
const id = body.id ??
|
|
7407
|
+
const id = body.id ?? ulid28();
|
|
7198
7408
|
const meta = {
|
|
7199
7409
|
...body.meta ?? {},
|
|
7200
7410
|
lastUpdated: date,
|
|
@@ -7382,22 +7592,22 @@ async function updateDetectedIssueRoute(req, res) {
|
|
|
7382
7592
|
}
|
|
7383
7593
|
|
|
7384
7594
|
// src/data/rest-api/routes/data/detectedissue/detectedissue.ts
|
|
7385
|
-
var
|
|
7386
|
-
|
|
7387
|
-
|
|
7388
|
-
|
|
7389
|
-
|
|
7390
|
-
|
|
7595
|
+
var router29 = express29.Router();
|
|
7596
|
+
router29.get("/", listDetectedIssuesRoute);
|
|
7597
|
+
router29.get("/:id", getDetectedIssueByIdRoute);
|
|
7598
|
+
router29.post("/", createDetectedIssueRoute);
|
|
7599
|
+
router29.put("/:id", updateDetectedIssueRoute);
|
|
7600
|
+
router29.delete("/:id", deleteDetectedIssueRoute);
|
|
7391
7601
|
|
|
7392
7602
|
// src/data/rest-api/routes/data/device/device.ts
|
|
7393
|
-
import
|
|
7603
|
+
import express30 from "express";
|
|
7394
7604
|
|
|
7395
7605
|
// src/data/operations/data/device/device-create-operation.ts
|
|
7396
|
-
import { ulid as
|
|
7606
|
+
import { ulid as ulid29 } from "ulid";
|
|
7397
7607
|
async function createDeviceOperation(params) {
|
|
7398
7608
|
const { context, body, tableName } = params;
|
|
7399
7609
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
7400
|
-
const id = body.id ??
|
|
7610
|
+
const id = body.id ?? ulid29();
|
|
7401
7611
|
const meta = {
|
|
7402
7612
|
...body.meta ?? {},
|
|
7403
7613
|
lastUpdated: date,
|
|
@@ -7582,22 +7792,22 @@ async function updateDeviceRoute(req, res) {
|
|
|
7582
7792
|
}
|
|
7583
7793
|
|
|
7584
7794
|
// src/data/rest-api/routes/data/device/device.ts
|
|
7585
|
-
var
|
|
7586
|
-
|
|
7587
|
-
|
|
7588
|
-
|
|
7589
|
-
|
|
7590
|
-
|
|
7795
|
+
var router30 = express30.Router();
|
|
7796
|
+
router30.get("/", listDevicesRoute);
|
|
7797
|
+
router30.get("/:id", getDeviceByIdRoute);
|
|
7798
|
+
router30.post("/", createDeviceRoute);
|
|
7799
|
+
router30.put("/:id", updateDeviceRoute);
|
|
7800
|
+
router30.delete("/:id", deleteDeviceRoute);
|
|
7591
7801
|
|
|
7592
7802
|
// src/data/rest-api/routes/data/devicedefinition/devicedefinition.ts
|
|
7593
|
-
import
|
|
7803
|
+
import express31 from "express";
|
|
7594
7804
|
|
|
7595
7805
|
// src/data/operations/data/devicedefinition/devicedefinition-create-operation.ts
|
|
7596
|
-
import { ulid as
|
|
7806
|
+
import { ulid as ulid30 } from "ulid";
|
|
7597
7807
|
async function createDeviceDefinitionOperation(params) {
|
|
7598
7808
|
const { context, body, tableName } = params;
|
|
7599
7809
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
7600
|
-
const id = body.id ??
|
|
7810
|
+
const id = body.id ?? ulid30();
|
|
7601
7811
|
const meta = {
|
|
7602
7812
|
...body.meta ?? {},
|
|
7603
7813
|
lastUpdated: date,
|
|
@@ -7789,22 +7999,22 @@ async function updateDeviceDefinitionRoute(req, res) {
|
|
|
7789
7999
|
}
|
|
7790
8000
|
|
|
7791
8001
|
// src/data/rest-api/routes/data/devicedefinition/devicedefinition.ts
|
|
7792
|
-
var
|
|
7793
|
-
|
|
7794
|
-
|
|
7795
|
-
|
|
7796
|
-
|
|
7797
|
-
|
|
8002
|
+
var router31 = express31.Router();
|
|
8003
|
+
router31.get("/", listDeviceDefinitionsRoute);
|
|
8004
|
+
router31.get("/:id", getDeviceDefinitionByIdRoute);
|
|
8005
|
+
router31.post("/", createDeviceDefinitionRoute);
|
|
8006
|
+
router31.put("/:id", updateDeviceDefinitionRoute);
|
|
8007
|
+
router31.delete("/:id", deleteDeviceDefinitionRoute);
|
|
7798
8008
|
|
|
7799
8009
|
// src/data/rest-api/routes/data/devicemetric/devicemetric.ts
|
|
7800
|
-
import
|
|
8010
|
+
import express32 from "express";
|
|
7801
8011
|
|
|
7802
8012
|
// src/data/operations/data/devicemetric/devicemetric-create-operation.ts
|
|
7803
|
-
import { ulid as
|
|
8013
|
+
import { ulid as ulid31 } from "ulid";
|
|
7804
8014
|
async function createDeviceMetricOperation(params) {
|
|
7805
8015
|
const { context, body, tableName } = params;
|
|
7806
8016
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
7807
|
-
const id = body.id ??
|
|
8017
|
+
const id = body.id ?? ulid31();
|
|
7808
8018
|
const meta = {
|
|
7809
8019
|
...body.meta ?? {},
|
|
7810
8020
|
lastUpdated: date,
|
|
@@ -7989,22 +8199,22 @@ async function updateDeviceMetricRoute(req, res) {
|
|
|
7989
8199
|
}
|
|
7990
8200
|
|
|
7991
8201
|
// src/data/rest-api/routes/data/devicemetric/devicemetric.ts
|
|
7992
|
-
var
|
|
7993
|
-
|
|
7994
|
-
|
|
7995
|
-
|
|
7996
|
-
|
|
7997
|
-
|
|
8202
|
+
var router32 = express32.Router();
|
|
8203
|
+
router32.get("/", listDeviceMetricsRoute);
|
|
8204
|
+
router32.get("/:id", getDeviceMetricByIdRoute);
|
|
8205
|
+
router32.post("/", createDeviceMetricRoute);
|
|
8206
|
+
router32.put("/:id", updateDeviceMetricRoute);
|
|
8207
|
+
router32.delete("/:id", deleteDeviceMetricRoute);
|
|
7998
8208
|
|
|
7999
8209
|
// src/data/rest-api/routes/data/devicerequest/devicerequest.ts
|
|
8000
|
-
import
|
|
8210
|
+
import express33 from "express";
|
|
8001
8211
|
|
|
8002
8212
|
// src/data/operations/data/devicerequest/devicerequest-create-operation.ts
|
|
8003
|
-
import { ulid as
|
|
8213
|
+
import { ulid as ulid32 } from "ulid";
|
|
8004
8214
|
async function createDeviceRequestOperation(params) {
|
|
8005
8215
|
const { context, body, tableName } = params;
|
|
8006
8216
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
8007
|
-
const id = body.id ??
|
|
8217
|
+
const id = body.id ?? ulid32();
|
|
8008
8218
|
const meta = {
|
|
8009
8219
|
...body.meta ?? {},
|
|
8010
8220
|
lastUpdated: date,
|
|
@@ -8192,22 +8402,22 @@ async function updateDeviceRequestRoute(req, res) {
|
|
|
8192
8402
|
}
|
|
8193
8403
|
|
|
8194
8404
|
// src/data/rest-api/routes/data/devicerequest/devicerequest.ts
|
|
8195
|
-
var
|
|
8196
|
-
|
|
8197
|
-
|
|
8198
|
-
|
|
8199
|
-
|
|
8200
|
-
|
|
8405
|
+
var router33 = express33.Router();
|
|
8406
|
+
router33.get("/", listDeviceRequestsRoute);
|
|
8407
|
+
router33.get("/:id", getDeviceRequestByIdRoute);
|
|
8408
|
+
router33.post("/", createDeviceRequestRoute);
|
|
8409
|
+
router33.put("/:id", updateDeviceRequestRoute);
|
|
8410
|
+
router33.delete("/:id", deleteDeviceRequestRoute);
|
|
8201
8411
|
|
|
8202
8412
|
// src/data/rest-api/routes/data/deviceusestatement/deviceusestatement.ts
|
|
8203
|
-
import
|
|
8413
|
+
import express34 from "express";
|
|
8204
8414
|
|
|
8205
8415
|
// src/data/operations/data/deviceusestatement/deviceusestatement-create-operation.ts
|
|
8206
|
-
import { ulid as
|
|
8416
|
+
import { ulid as ulid33 } from "ulid";
|
|
8207
8417
|
async function createDeviceUseStatementOperation(params) {
|
|
8208
8418
|
const { context, body, tableName } = params;
|
|
8209
8419
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
8210
|
-
const id = body.id ??
|
|
8420
|
+
const id = body.id ?? ulid33();
|
|
8211
8421
|
const meta = {
|
|
8212
8422
|
...body.meta ?? {},
|
|
8213
8423
|
lastUpdated: date,
|
|
@@ -8406,22 +8616,22 @@ async function updateDeviceUseStatementRoute(req, res) {
|
|
|
8406
8616
|
}
|
|
8407
8617
|
|
|
8408
8618
|
// src/data/rest-api/routes/data/deviceusestatement/deviceusestatement.ts
|
|
8409
|
-
var
|
|
8410
|
-
|
|
8411
|
-
|
|
8412
|
-
|
|
8413
|
-
|
|
8414
|
-
|
|
8619
|
+
var router34 = express34.Router();
|
|
8620
|
+
router34.get("/", listDeviceUseStatementsRoute);
|
|
8621
|
+
router34.get("/:id", getDeviceUseStatementByIdRoute);
|
|
8622
|
+
router34.post("/", createDeviceUseStatementRoute);
|
|
8623
|
+
router34.put("/:id", updateDeviceUseStatementRoute);
|
|
8624
|
+
router34.delete("/:id", deleteDeviceUseStatementRoute);
|
|
8415
8625
|
|
|
8416
8626
|
// src/data/rest-api/routes/data/diagnosticreport/diagnosticreport.ts
|
|
8417
|
-
import
|
|
8627
|
+
import express35 from "express";
|
|
8418
8628
|
|
|
8419
8629
|
// src/data/operations/data/diagnosticreport/diagnosticreport-create-operation.ts
|
|
8420
|
-
import { ulid as
|
|
8630
|
+
import { ulid as ulid34 } from "ulid";
|
|
8421
8631
|
async function createDiagnosticReportOperation(params) {
|
|
8422
8632
|
const { context, body, tableName } = params;
|
|
8423
8633
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
8424
|
-
const id = body.id ??
|
|
8634
|
+
const id = body.id ?? ulid34();
|
|
8425
8635
|
const meta = {
|
|
8426
8636
|
...body.meta ?? {},
|
|
8427
8637
|
lastUpdated: date,
|
|
@@ -8613,22 +8823,22 @@ async function updateDiagnosticReportRoute(req, res) {
|
|
|
8613
8823
|
}
|
|
8614
8824
|
|
|
8615
8825
|
// src/data/rest-api/routes/data/diagnosticreport/diagnosticreport.ts
|
|
8616
|
-
var
|
|
8617
|
-
|
|
8618
|
-
|
|
8619
|
-
|
|
8620
|
-
|
|
8621
|
-
|
|
8826
|
+
var router35 = express35.Router();
|
|
8827
|
+
router35.get("/", listDiagnosticReportsRoute);
|
|
8828
|
+
router35.get("/:id", getDiagnosticReportByIdRoute);
|
|
8829
|
+
router35.post("/", createDiagnosticReportRoute);
|
|
8830
|
+
router35.put("/:id", updateDiagnosticReportRoute);
|
|
8831
|
+
router35.delete("/:id", deleteDiagnosticReportRoute);
|
|
8622
8832
|
|
|
8623
8833
|
// src/data/rest-api/routes/data/documentmanifest/documentmanifest.ts
|
|
8624
|
-
import
|
|
8834
|
+
import express36 from "express";
|
|
8625
8835
|
|
|
8626
8836
|
// src/data/operations/data/documentmanifest/documentmanifest-create-operation.ts
|
|
8627
|
-
import { ulid as
|
|
8837
|
+
import { ulid as ulid35 } from "ulid";
|
|
8628
8838
|
async function createDocumentManifestOperation(params) {
|
|
8629
8839
|
const { context, body, tableName } = params;
|
|
8630
8840
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
8631
|
-
const id = body.id ??
|
|
8841
|
+
const id = body.id ?? ulid35();
|
|
8632
8842
|
const meta = {
|
|
8633
8843
|
...body.meta ?? {},
|
|
8634
8844
|
lastUpdated: date,
|
|
@@ -8820,22 +9030,22 @@ async function updateDocumentManifestRoute(req, res) {
|
|
|
8820
9030
|
}
|
|
8821
9031
|
|
|
8822
9032
|
// src/data/rest-api/routes/data/documentmanifest/documentmanifest.ts
|
|
8823
|
-
var
|
|
8824
|
-
|
|
8825
|
-
|
|
8826
|
-
|
|
8827
|
-
|
|
8828
|
-
|
|
9033
|
+
var router36 = express36.Router();
|
|
9034
|
+
router36.get("/", listDocumentManifestsRoute);
|
|
9035
|
+
router36.get("/:id", getDocumentManifestByIdRoute);
|
|
9036
|
+
router36.post("/", createDocumentManifestRoute);
|
|
9037
|
+
router36.put("/:id", updateDocumentManifestRoute);
|
|
9038
|
+
router36.delete("/:id", deleteDocumentManifestRoute);
|
|
8829
9039
|
|
|
8830
9040
|
// src/data/rest-api/routes/data/documentreference/documentreference.ts
|
|
8831
|
-
import
|
|
9041
|
+
import express37 from "express";
|
|
8832
9042
|
|
|
8833
9043
|
// src/data/operations/data/documentreference/documentreference-create-operation.ts
|
|
8834
|
-
import { ulid as
|
|
9044
|
+
import { ulid as ulid36 } from "ulid";
|
|
8835
9045
|
async function createDocumentReferenceOperation(params) {
|
|
8836
9046
|
const { context, body, tableName } = params;
|
|
8837
9047
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
8838
|
-
const id = body.id ??
|
|
9048
|
+
const id = body.id ?? ulid36();
|
|
8839
9049
|
const meta = {
|
|
8840
9050
|
...body.meta ?? {},
|
|
8841
9051
|
lastUpdated: date,
|
|
@@ -9030,22 +9240,22 @@ async function updateDocumentReferenceRoute(req, res) {
|
|
|
9030
9240
|
}
|
|
9031
9241
|
|
|
9032
9242
|
// src/data/rest-api/routes/data/documentreference/documentreference.ts
|
|
9033
|
-
var
|
|
9034
|
-
|
|
9035
|
-
|
|
9036
|
-
|
|
9037
|
-
|
|
9038
|
-
|
|
9243
|
+
var router37 = express37.Router();
|
|
9244
|
+
router37.get("/", listDocumentReferencesRoute);
|
|
9245
|
+
router37.get("/:id", getDocumentReferenceByIdRoute);
|
|
9246
|
+
router37.post("/", createDocumentReferenceRoute);
|
|
9247
|
+
router37.put("/:id", updateDocumentReferenceRoute);
|
|
9248
|
+
router37.delete("/:id", deleteDocumentReferenceRoute);
|
|
9039
9249
|
|
|
9040
9250
|
// src/data/rest-api/routes/data/effectevidencesynthesis/effectevidencesynthesis.ts
|
|
9041
|
-
import
|
|
9251
|
+
import express38 from "express";
|
|
9042
9252
|
|
|
9043
9253
|
// src/data/operations/data/effectevidencesynthesis/effectevidencesynthesis-create-operation.ts
|
|
9044
|
-
import { ulid as
|
|
9254
|
+
import { ulid as ulid37 } from "ulid";
|
|
9045
9255
|
async function createEffectEvidenceSynthesisOperation(params) {
|
|
9046
9256
|
const { context, body, tableName } = params;
|
|
9047
9257
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
9048
|
-
const id = body.id ??
|
|
9258
|
+
const id = body.id ?? ulid37();
|
|
9049
9259
|
const meta = {
|
|
9050
9260
|
...body.meta ?? {},
|
|
9051
9261
|
lastUpdated: date,
|
|
@@ -9258,22 +9468,22 @@ async function updateEffectEvidenceSynthesisRoute(req, res) {
|
|
|
9258
9468
|
}
|
|
9259
9469
|
|
|
9260
9470
|
// src/data/rest-api/routes/data/effectevidencesynthesis/effectevidencesynthesis.ts
|
|
9261
|
-
var
|
|
9262
|
-
|
|
9263
|
-
|
|
9264
|
-
|
|
9265
|
-
|
|
9266
|
-
|
|
9471
|
+
var router38 = express38.Router();
|
|
9472
|
+
router38.get("/", listEffectEvidenceSynthesissRoute);
|
|
9473
|
+
router38.get("/:id", getEffectEvidenceSynthesisByIdRoute);
|
|
9474
|
+
router38.post("/", createEffectEvidenceSynthesisRoute);
|
|
9475
|
+
router38.put("/:id", updateEffectEvidenceSynthesisRoute);
|
|
9476
|
+
router38.delete("/:id", deleteEffectEvidenceSynthesisRoute);
|
|
9267
9477
|
|
|
9268
9478
|
// src/data/rest-api/routes/data/encounter/encounter.ts
|
|
9269
|
-
import
|
|
9479
|
+
import express39 from "express";
|
|
9270
9480
|
|
|
9271
9481
|
// src/data/operations/data/encounter/encounter-create-operation.ts
|
|
9272
|
-
import { ulid as
|
|
9482
|
+
import { ulid as ulid38 } from "ulid";
|
|
9273
9483
|
async function createEncounterOperation(params) {
|
|
9274
9484
|
const { context, body, tableName } = params;
|
|
9275
9485
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
9276
|
-
const id = body.id ??
|
|
9486
|
+
const id = body.id ?? ulid38();
|
|
9277
9487
|
const meta = {
|
|
9278
9488
|
...body.meta ?? {},
|
|
9279
9489
|
lastUpdated: date,
|
|
@@ -9463,22 +9673,22 @@ async function updateEncounterRoute(req, res) {
|
|
|
9463
9673
|
}
|
|
9464
9674
|
|
|
9465
9675
|
// src/data/rest-api/routes/data/encounter/encounter.ts
|
|
9466
|
-
var
|
|
9467
|
-
|
|
9468
|
-
|
|
9469
|
-
|
|
9470
|
-
|
|
9471
|
-
|
|
9676
|
+
var router39 = express39.Router();
|
|
9677
|
+
router39.get("/", listEncountersRoute);
|
|
9678
|
+
router39.get("/:id", getEncounterByIdRoute);
|
|
9679
|
+
router39.post("/", createEncounterRoute);
|
|
9680
|
+
router39.put("/:id", updateEncounterRoute);
|
|
9681
|
+
router39.delete("/:id", deleteEncounterRoute);
|
|
9472
9682
|
|
|
9473
9683
|
// src/data/rest-api/routes/data/endpoint/endpoint.ts
|
|
9474
|
-
import
|
|
9684
|
+
import express40 from "express";
|
|
9475
9685
|
|
|
9476
9686
|
// src/data/operations/data/endpoint/endpoint-create-operation.ts
|
|
9477
|
-
import { ulid as
|
|
9687
|
+
import { ulid as ulid39 } from "ulid";
|
|
9478
9688
|
async function createEndpointOperation(params) {
|
|
9479
9689
|
const { context, body, tableName } = params;
|
|
9480
9690
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
9481
|
-
const id = body.id ??
|
|
9691
|
+
const id = body.id ?? ulid39();
|
|
9482
9692
|
const meta = {
|
|
9483
9693
|
...body.meta ?? {},
|
|
9484
9694
|
lastUpdated: date,
|
|
@@ -9663,22 +9873,22 @@ async function updateEndpointRoute(req, res) {
|
|
|
9663
9873
|
}
|
|
9664
9874
|
|
|
9665
9875
|
// src/data/rest-api/routes/data/endpoint/endpoint.ts
|
|
9666
|
-
var
|
|
9667
|
-
|
|
9668
|
-
|
|
9669
|
-
|
|
9670
|
-
|
|
9671
|
-
|
|
9876
|
+
var router40 = express40.Router();
|
|
9877
|
+
router40.get("/", listEndpointsRoute);
|
|
9878
|
+
router40.get("/:id", getEndpointByIdRoute);
|
|
9879
|
+
router40.post("/", createEndpointRoute);
|
|
9880
|
+
router40.put("/:id", updateEndpointRoute);
|
|
9881
|
+
router40.delete("/:id", deleteEndpointRoute);
|
|
9672
9882
|
|
|
9673
9883
|
// src/data/rest-api/routes/data/enrollmentrequest/enrollmentrequest.ts
|
|
9674
|
-
import
|
|
9884
|
+
import express41 from "express";
|
|
9675
9885
|
|
|
9676
9886
|
// src/data/operations/data/enrollmentrequest/enrollmentrequest-create-operation.ts
|
|
9677
|
-
import { ulid as
|
|
9887
|
+
import { ulid as ulid40 } from "ulid";
|
|
9678
9888
|
async function createEnrollmentRequestOperation(params) {
|
|
9679
9889
|
const { context, body, tableName } = params;
|
|
9680
9890
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
9681
|
-
const id = body.id ??
|
|
9891
|
+
const id = body.id ?? ulid40();
|
|
9682
9892
|
const meta = {
|
|
9683
9893
|
...body.meta ?? {},
|
|
9684
9894
|
lastUpdated: date,
|
|
@@ -9873,22 +10083,22 @@ async function updateEnrollmentRequestRoute(req, res) {
|
|
|
9873
10083
|
}
|
|
9874
10084
|
|
|
9875
10085
|
// src/data/rest-api/routes/data/enrollmentrequest/enrollmentrequest.ts
|
|
9876
|
-
var
|
|
9877
|
-
|
|
9878
|
-
|
|
9879
|
-
|
|
9880
|
-
|
|
9881
|
-
|
|
10086
|
+
var router41 = express41.Router();
|
|
10087
|
+
router41.get("/", listEnrollmentRequestsRoute);
|
|
10088
|
+
router41.get("/:id", getEnrollmentRequestByIdRoute);
|
|
10089
|
+
router41.post("/", createEnrollmentRequestRoute);
|
|
10090
|
+
router41.put("/:id", updateEnrollmentRequestRoute);
|
|
10091
|
+
router41.delete("/:id", deleteEnrollmentRequestRoute);
|
|
9882
10092
|
|
|
9883
10093
|
// src/data/rest-api/routes/data/enrollmentresponse/enrollmentresponse.ts
|
|
9884
|
-
import
|
|
10094
|
+
import express42 from "express";
|
|
9885
10095
|
|
|
9886
10096
|
// src/data/operations/data/enrollmentresponse/enrollmentresponse-create-operation.ts
|
|
9887
|
-
import { ulid as
|
|
10097
|
+
import { ulid as ulid41 } from "ulid";
|
|
9888
10098
|
async function createEnrollmentResponseOperation(params) {
|
|
9889
10099
|
const { context, body, tableName } = params;
|
|
9890
10100
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
9891
|
-
const id = body.id ??
|
|
10101
|
+
const id = body.id ?? ulid41();
|
|
9892
10102
|
const meta = {
|
|
9893
10103
|
...body.meta ?? {},
|
|
9894
10104
|
lastUpdated: date,
|
|
@@ -10087,22 +10297,22 @@ async function updateEnrollmentResponseRoute(req, res) {
|
|
|
10087
10297
|
}
|
|
10088
10298
|
|
|
10089
10299
|
// src/data/rest-api/routes/data/enrollmentresponse/enrollmentresponse.ts
|
|
10090
|
-
var
|
|
10091
|
-
|
|
10092
|
-
|
|
10093
|
-
|
|
10094
|
-
|
|
10095
|
-
|
|
10300
|
+
var router42 = express42.Router();
|
|
10301
|
+
router42.get("/", listEnrollmentResponsesRoute);
|
|
10302
|
+
router42.get("/:id", getEnrollmentResponseByIdRoute);
|
|
10303
|
+
router42.post("/", createEnrollmentResponseRoute);
|
|
10304
|
+
router42.put("/:id", updateEnrollmentResponseRoute);
|
|
10305
|
+
router42.delete("/:id", deleteEnrollmentResponseRoute);
|
|
10096
10306
|
|
|
10097
10307
|
// src/data/rest-api/routes/data/episodeofcare/episodeofcare.ts
|
|
10098
|
-
import
|
|
10308
|
+
import express43 from "express";
|
|
10099
10309
|
|
|
10100
10310
|
// src/data/operations/data/episodeofcare/episodeofcare-create-operation.ts
|
|
10101
|
-
import { ulid as
|
|
10311
|
+
import { ulid as ulid42 } from "ulid";
|
|
10102
10312
|
async function createEpisodeOfCareOperation(params) {
|
|
10103
10313
|
const { context, body, tableName } = params;
|
|
10104
10314
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
10105
|
-
const id = body.id ??
|
|
10315
|
+
const id = body.id ?? ulid42();
|
|
10106
10316
|
const meta = {
|
|
10107
10317
|
...body.meta ?? {},
|
|
10108
10318
|
lastUpdated: date,
|
|
@@ -10290,22 +10500,22 @@ async function updateEpisodeOfCareRoute(req, res) {
|
|
|
10290
10500
|
}
|
|
10291
10501
|
|
|
10292
10502
|
// src/data/rest-api/routes/data/episodeofcare/episodeofcare.ts
|
|
10293
|
-
var
|
|
10294
|
-
|
|
10295
|
-
|
|
10296
|
-
|
|
10297
|
-
|
|
10298
|
-
|
|
10503
|
+
var router43 = express43.Router();
|
|
10504
|
+
router43.get("/", listEpisodeOfCaresRoute);
|
|
10505
|
+
router43.get("/:id", getEpisodeOfCareByIdRoute);
|
|
10506
|
+
router43.post("/", createEpisodeOfCareRoute);
|
|
10507
|
+
router43.put("/:id", updateEpisodeOfCareRoute);
|
|
10508
|
+
router43.delete("/:id", deleteEpisodeOfCareRoute);
|
|
10299
10509
|
|
|
10300
10510
|
// src/data/rest-api/routes/data/eventdefinition/eventdefinition.ts
|
|
10301
|
-
import
|
|
10511
|
+
import express44 from "express";
|
|
10302
10512
|
|
|
10303
10513
|
// src/data/operations/data/eventdefinition/eventdefinition-create-operation.ts
|
|
10304
|
-
import { ulid as
|
|
10514
|
+
import { ulid as ulid43 } from "ulid";
|
|
10305
10515
|
async function createEventDefinitionOperation(params) {
|
|
10306
10516
|
const { context, body, tableName } = params;
|
|
10307
10517
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
10308
|
-
const id = body.id ??
|
|
10518
|
+
const id = body.id ?? ulid43();
|
|
10309
10519
|
const meta = {
|
|
10310
10520
|
...body.meta ?? {},
|
|
10311
10521
|
lastUpdated: date,
|
|
@@ -10497,22 +10707,22 @@ async function updateEventDefinitionRoute(req, res) {
|
|
|
10497
10707
|
}
|
|
10498
10708
|
|
|
10499
10709
|
// src/data/rest-api/routes/data/eventdefinition/eventdefinition.ts
|
|
10500
|
-
var
|
|
10501
|
-
|
|
10502
|
-
|
|
10503
|
-
|
|
10504
|
-
|
|
10505
|
-
|
|
10710
|
+
var router44 = express44.Router();
|
|
10711
|
+
router44.get("/", listEventDefinitionsRoute);
|
|
10712
|
+
router44.get("/:id", getEventDefinitionByIdRoute);
|
|
10713
|
+
router44.post("/", createEventDefinitionRoute);
|
|
10714
|
+
router44.put("/:id", updateEventDefinitionRoute);
|
|
10715
|
+
router44.delete("/:id", deleteEventDefinitionRoute);
|
|
10506
10716
|
|
|
10507
10717
|
// src/data/rest-api/routes/data/evidence/evidence.ts
|
|
10508
|
-
import
|
|
10718
|
+
import express45 from "express";
|
|
10509
10719
|
|
|
10510
10720
|
// src/data/operations/data/evidence/evidence-create-operation.ts
|
|
10511
|
-
import { ulid as
|
|
10721
|
+
import { ulid as ulid44 } from "ulid";
|
|
10512
10722
|
async function createEvidenceOperation(params) {
|
|
10513
10723
|
const { context, body, tableName } = params;
|
|
10514
10724
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
10515
|
-
const id = body.id ??
|
|
10725
|
+
const id = body.id ?? ulid44();
|
|
10516
10726
|
const meta = {
|
|
10517
10727
|
...body.meta ?? {},
|
|
10518
10728
|
lastUpdated: date,
|
|
@@ -10697,22 +10907,22 @@ async function updateEvidenceRoute(req, res) {
|
|
|
10697
10907
|
}
|
|
10698
10908
|
|
|
10699
10909
|
// src/data/rest-api/routes/data/evidence/evidence.ts
|
|
10700
|
-
var
|
|
10701
|
-
|
|
10702
|
-
|
|
10703
|
-
|
|
10704
|
-
|
|
10705
|
-
|
|
10910
|
+
var router45 = express45.Router();
|
|
10911
|
+
router45.get("/", listEvidencesRoute);
|
|
10912
|
+
router45.get("/:id", getEvidenceByIdRoute);
|
|
10913
|
+
router45.post("/", createEvidenceRoute);
|
|
10914
|
+
router45.put("/:id", updateEvidenceRoute);
|
|
10915
|
+
router45.delete("/:id", deleteEvidenceRoute);
|
|
10706
10916
|
|
|
10707
10917
|
// src/data/rest-api/routes/data/evidencevariable/evidencevariable.ts
|
|
10708
|
-
import
|
|
10918
|
+
import express46 from "express";
|
|
10709
10919
|
|
|
10710
10920
|
// src/data/operations/data/evidencevariable/evidencevariable-create-operation.ts
|
|
10711
|
-
import { ulid as
|
|
10921
|
+
import { ulid as ulid45 } from "ulid";
|
|
10712
10922
|
async function createEvidenceVariableOperation(params) {
|
|
10713
10923
|
const { context, body, tableName } = params;
|
|
10714
10924
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
10715
|
-
const id = body.id ??
|
|
10925
|
+
const id = body.id ?? ulid45();
|
|
10716
10926
|
const meta = {
|
|
10717
10927
|
...body.meta ?? {},
|
|
10718
10928
|
lastUpdated: date,
|
|
@@ -10904,22 +11114,22 @@ async function updateEvidenceVariableRoute(req, res) {
|
|
|
10904
11114
|
}
|
|
10905
11115
|
|
|
10906
11116
|
// src/data/rest-api/routes/data/evidencevariable/evidencevariable.ts
|
|
10907
|
-
var
|
|
10908
|
-
|
|
10909
|
-
|
|
10910
|
-
|
|
10911
|
-
|
|
10912
|
-
|
|
11117
|
+
var router46 = express46.Router();
|
|
11118
|
+
router46.get("/", listEvidenceVariablesRoute);
|
|
11119
|
+
router46.get("/:id", getEvidenceVariableByIdRoute);
|
|
11120
|
+
router46.post("/", createEvidenceVariableRoute);
|
|
11121
|
+
router46.put("/:id", updateEvidenceVariableRoute);
|
|
11122
|
+
router46.delete("/:id", deleteEvidenceVariableRoute);
|
|
10913
11123
|
|
|
10914
11124
|
// src/data/rest-api/routes/data/explanationofbenefit/explanationofbenefit.ts
|
|
10915
|
-
import
|
|
11125
|
+
import express47 from "express";
|
|
10916
11126
|
|
|
10917
11127
|
// src/data/operations/data/explanationofbenefit/explanationofbenefit-create-operation.ts
|
|
10918
|
-
import { ulid as
|
|
11128
|
+
import { ulid as ulid46 } from "ulid";
|
|
10919
11129
|
async function createExplanationOfBenefitOperation(params) {
|
|
10920
11130
|
const { context, body, tableName } = params;
|
|
10921
11131
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
10922
|
-
const id = body.id ??
|
|
11132
|
+
const id = body.id ?? ulid46();
|
|
10923
11133
|
const meta = {
|
|
10924
11134
|
...body.meta ?? {},
|
|
10925
11135
|
lastUpdated: date,
|
|
@@ -11122,22 +11332,22 @@ async function updateExplanationOfBenefitRoute(req, res) {
|
|
|
11122
11332
|
}
|
|
11123
11333
|
|
|
11124
11334
|
// src/data/rest-api/routes/data/explanationofbenefit/explanationofbenefit.ts
|
|
11125
|
-
var
|
|
11126
|
-
|
|
11127
|
-
|
|
11128
|
-
|
|
11129
|
-
|
|
11130
|
-
|
|
11335
|
+
var router47 = express47.Router();
|
|
11336
|
+
router47.get("/", listExplanationOfBenefitsRoute);
|
|
11337
|
+
router47.get("/:id", getExplanationOfBenefitByIdRoute);
|
|
11338
|
+
router47.post("/", createExplanationOfBenefitRoute);
|
|
11339
|
+
router47.put("/:id", updateExplanationOfBenefitRoute);
|
|
11340
|
+
router47.delete("/:id", deleteExplanationOfBenefitRoute);
|
|
11131
11341
|
|
|
11132
11342
|
// src/data/rest-api/routes/data/familymemberhistory/familymemberhistory.ts
|
|
11133
|
-
import
|
|
11343
|
+
import express48 from "express";
|
|
11134
11344
|
|
|
11135
11345
|
// src/data/operations/data/familymemberhistory/familymemberhistory-create-operation.ts
|
|
11136
|
-
import { ulid as
|
|
11346
|
+
import { ulid as ulid47 } from "ulid";
|
|
11137
11347
|
async function createFamilyMemberHistoryOperation(params) {
|
|
11138
11348
|
const { context, body, tableName } = params;
|
|
11139
11349
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
11140
|
-
const id = body.id ??
|
|
11350
|
+
const id = body.id ?? ulid47();
|
|
11141
11351
|
const meta = {
|
|
11142
11352
|
...body.meta ?? {},
|
|
11143
11353
|
lastUpdated: date,
|
|
@@ -11336,22 +11546,22 @@ async function updateFamilyMemberHistoryRoute(req, res) {
|
|
|
11336
11546
|
}
|
|
11337
11547
|
|
|
11338
11548
|
// src/data/rest-api/routes/data/familymemberhistory/familymemberhistory.ts
|
|
11339
|
-
var
|
|
11340
|
-
|
|
11341
|
-
|
|
11342
|
-
|
|
11343
|
-
|
|
11344
|
-
|
|
11549
|
+
var router48 = express48.Router();
|
|
11550
|
+
router48.get("/", listFamilyMemberHistorysRoute);
|
|
11551
|
+
router48.get("/:id", getFamilyMemberHistoryByIdRoute);
|
|
11552
|
+
router48.post("/", createFamilyMemberHistoryRoute);
|
|
11553
|
+
router48.put("/:id", updateFamilyMemberHistoryRoute);
|
|
11554
|
+
router48.delete("/:id", deleteFamilyMemberHistoryRoute);
|
|
11345
11555
|
|
|
11346
11556
|
// src/data/rest-api/routes/data/flag/flag.ts
|
|
11347
|
-
import
|
|
11557
|
+
import express49 from "express";
|
|
11348
11558
|
|
|
11349
11559
|
// src/data/operations/data/flag/flag-create-operation.ts
|
|
11350
|
-
import { ulid as
|
|
11560
|
+
import { ulid as ulid48 } from "ulid";
|
|
11351
11561
|
async function createFlagOperation(params) {
|
|
11352
11562
|
const { context, body, tableName } = params;
|
|
11353
11563
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
11354
|
-
const id = body.id ??
|
|
11564
|
+
const id = body.id ?? ulid48();
|
|
11355
11565
|
const meta = {
|
|
11356
11566
|
...body.meta ?? {},
|
|
11357
11567
|
lastUpdated: date,
|
|
@@ -11536,22 +11746,22 @@ async function updateFlagRoute(req, res) {
|
|
|
11536
11746
|
}
|
|
11537
11747
|
|
|
11538
11748
|
// src/data/rest-api/routes/data/flag/flag.ts
|
|
11539
|
-
var
|
|
11540
|
-
|
|
11541
|
-
|
|
11542
|
-
|
|
11543
|
-
|
|
11544
|
-
|
|
11749
|
+
var router49 = express49.Router();
|
|
11750
|
+
router49.get("/", listFlagsRoute);
|
|
11751
|
+
router49.get("/:id", getFlagByIdRoute);
|
|
11752
|
+
router49.post("/", createFlagRoute);
|
|
11753
|
+
router49.put("/:id", updateFlagRoute);
|
|
11754
|
+
router49.delete("/:id", deleteFlagRoute);
|
|
11545
11755
|
|
|
11546
11756
|
// src/data/rest-api/routes/data/goal/goal.ts
|
|
11547
|
-
import
|
|
11757
|
+
import express50 from "express";
|
|
11548
11758
|
|
|
11549
11759
|
// src/data/operations/data/goal/goal-create-operation.ts
|
|
11550
|
-
import { ulid as
|
|
11760
|
+
import { ulid as ulid49 } from "ulid";
|
|
11551
11761
|
async function createGoalOperation(params) {
|
|
11552
11762
|
const { context, body, tableName } = params;
|
|
11553
11763
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
11554
|
-
const id = body.id ??
|
|
11764
|
+
const id = body.id ?? ulid49();
|
|
11555
11765
|
const meta = {
|
|
11556
11766
|
...body.meta ?? {},
|
|
11557
11767
|
lastUpdated: date,
|
|
@@ -11736,22 +11946,22 @@ async function updateGoalRoute(req, res) {
|
|
|
11736
11946
|
}
|
|
11737
11947
|
|
|
11738
11948
|
// src/data/rest-api/routes/data/goal/goal.ts
|
|
11739
|
-
var
|
|
11740
|
-
|
|
11741
|
-
|
|
11742
|
-
|
|
11743
|
-
|
|
11744
|
-
|
|
11949
|
+
var router50 = express50.Router();
|
|
11950
|
+
router50.get("/", listGoalsRoute);
|
|
11951
|
+
router50.get("/:id", getGoalByIdRoute);
|
|
11952
|
+
router50.post("/", createGoalRoute);
|
|
11953
|
+
router50.put("/:id", updateGoalRoute);
|
|
11954
|
+
router50.delete("/:id", deleteGoalRoute);
|
|
11745
11955
|
|
|
11746
11956
|
// src/data/rest-api/routes/data/group/group.ts
|
|
11747
|
-
import
|
|
11957
|
+
import express51 from "express";
|
|
11748
11958
|
|
|
11749
11959
|
// src/data/operations/data/group/group-create-operation.ts
|
|
11750
|
-
import { ulid as
|
|
11960
|
+
import { ulid as ulid50 } from "ulid";
|
|
11751
11961
|
async function createGroupOperation(params) {
|
|
11752
11962
|
const { context, body, tableName } = params;
|
|
11753
11963
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
11754
|
-
const id = body.id ??
|
|
11964
|
+
const id = body.id ?? ulid50();
|
|
11755
11965
|
const meta = {
|
|
11756
11966
|
...body.meta ?? {},
|
|
11757
11967
|
lastUpdated: date,
|
|
@@ -11936,22 +12146,22 @@ async function updateGroupRoute(req, res) {
|
|
|
11936
12146
|
}
|
|
11937
12147
|
|
|
11938
12148
|
// src/data/rest-api/routes/data/group/group.ts
|
|
11939
|
-
var
|
|
11940
|
-
|
|
11941
|
-
|
|
11942
|
-
|
|
11943
|
-
|
|
11944
|
-
|
|
12149
|
+
var router51 = express51.Router();
|
|
12150
|
+
router51.get("/", listGroupsRoute);
|
|
12151
|
+
router51.get("/:id", getGroupByIdRoute);
|
|
12152
|
+
router51.post("/", createGroupRoute);
|
|
12153
|
+
router51.put("/:id", updateGroupRoute);
|
|
12154
|
+
router51.delete("/:id", deleteGroupRoute);
|
|
11945
12155
|
|
|
11946
12156
|
// src/data/rest-api/routes/data/guidanceresponse/guidanceresponse.ts
|
|
11947
|
-
import
|
|
12157
|
+
import express52 from "express";
|
|
11948
12158
|
|
|
11949
12159
|
// src/data/operations/data/guidanceresponse/guidanceresponse-create-operation.ts
|
|
11950
|
-
import { ulid as
|
|
12160
|
+
import { ulid as ulid51 } from "ulid";
|
|
11951
12161
|
async function createGuidanceResponseOperation(params) {
|
|
11952
12162
|
const { context, body, tableName } = params;
|
|
11953
12163
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
11954
|
-
const id = body.id ??
|
|
12164
|
+
const id = body.id ?? ulid51();
|
|
11955
12165
|
const meta = {
|
|
11956
12166
|
...body.meta ?? {},
|
|
11957
12167
|
lastUpdated: date,
|
|
@@ -12143,22 +12353,22 @@ async function updateGuidanceResponseRoute(req, res) {
|
|
|
12143
12353
|
}
|
|
12144
12354
|
|
|
12145
12355
|
// src/data/rest-api/routes/data/guidanceresponse/guidanceresponse.ts
|
|
12146
|
-
var
|
|
12147
|
-
|
|
12148
|
-
|
|
12149
|
-
|
|
12150
|
-
|
|
12151
|
-
|
|
12356
|
+
var router52 = express52.Router();
|
|
12357
|
+
router52.get("/", listGuidanceResponsesRoute);
|
|
12358
|
+
router52.get("/:id", getGuidanceResponseByIdRoute);
|
|
12359
|
+
router52.post("/", createGuidanceResponseRoute);
|
|
12360
|
+
router52.put("/:id", updateGuidanceResponseRoute);
|
|
12361
|
+
router52.delete("/:id", deleteGuidanceResponseRoute);
|
|
12152
12362
|
|
|
12153
12363
|
// src/data/rest-api/routes/data/healthcareservice/healthcareservice.ts
|
|
12154
|
-
import
|
|
12364
|
+
import express53 from "express";
|
|
12155
12365
|
|
|
12156
12366
|
// src/data/operations/data/healthcareservice/healthcareservice-create-operation.ts
|
|
12157
|
-
import { ulid as
|
|
12367
|
+
import { ulid as ulid52 } from "ulid";
|
|
12158
12368
|
async function createHealthcareServiceOperation(params) {
|
|
12159
12369
|
const { context, body, tableName } = params;
|
|
12160
12370
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
12161
|
-
const id = body.id ??
|
|
12371
|
+
const id = body.id ?? ulid52();
|
|
12162
12372
|
const meta = {
|
|
12163
12373
|
...body.meta ?? {},
|
|
12164
12374
|
lastUpdated: date,
|
|
@@ -12353,22 +12563,22 @@ async function updateHealthcareServiceRoute(req, res) {
|
|
|
12353
12563
|
}
|
|
12354
12564
|
|
|
12355
12565
|
// src/data/rest-api/routes/data/healthcareservice/healthcareservice.ts
|
|
12356
|
-
var
|
|
12357
|
-
|
|
12358
|
-
|
|
12359
|
-
|
|
12360
|
-
|
|
12361
|
-
|
|
12566
|
+
var router53 = express53.Router();
|
|
12567
|
+
router53.get("/", listHealthcareServicesRoute);
|
|
12568
|
+
router53.get("/:id", getHealthcareServiceByIdRoute);
|
|
12569
|
+
router53.post("/", createHealthcareServiceRoute);
|
|
12570
|
+
router53.put("/:id", updateHealthcareServiceRoute);
|
|
12571
|
+
router53.delete("/:id", deleteHealthcareServiceRoute);
|
|
12362
12572
|
|
|
12363
12573
|
// src/data/rest-api/routes/data/imagingstudy/imagingstudy.ts
|
|
12364
|
-
import
|
|
12574
|
+
import express54 from "express";
|
|
12365
12575
|
|
|
12366
12576
|
// src/data/operations/data/imagingstudy/imagingstudy-create-operation.ts
|
|
12367
|
-
import { ulid as
|
|
12577
|
+
import { ulid as ulid53 } from "ulid";
|
|
12368
12578
|
async function createImagingStudyOperation(params) {
|
|
12369
12579
|
const { context, body, tableName } = params;
|
|
12370
12580
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
12371
|
-
const id = body.id ??
|
|
12581
|
+
const id = body.id ?? ulid53();
|
|
12372
12582
|
const meta = {
|
|
12373
12583
|
...body.meta ?? {},
|
|
12374
12584
|
lastUpdated: date,
|
|
@@ -12553,22 +12763,22 @@ async function updateImagingStudyRoute(req, res) {
|
|
|
12553
12763
|
}
|
|
12554
12764
|
|
|
12555
12765
|
// src/data/rest-api/routes/data/imagingstudy/imagingstudy.ts
|
|
12556
|
-
var
|
|
12557
|
-
|
|
12558
|
-
|
|
12559
|
-
|
|
12560
|
-
|
|
12561
|
-
|
|
12766
|
+
var router54 = express54.Router();
|
|
12767
|
+
router54.get("/", listImagingStudysRoute);
|
|
12768
|
+
router54.get("/:id", getImagingStudyByIdRoute);
|
|
12769
|
+
router54.post("/", createImagingStudyRoute);
|
|
12770
|
+
router54.put("/:id", updateImagingStudyRoute);
|
|
12771
|
+
router54.delete("/:id", deleteImagingStudyRoute);
|
|
12562
12772
|
|
|
12563
12773
|
// src/data/rest-api/routes/data/immunization/immunization.ts
|
|
12564
|
-
import
|
|
12774
|
+
import express55 from "express";
|
|
12565
12775
|
|
|
12566
12776
|
// src/data/operations/data/immunization/immunization-create-operation.ts
|
|
12567
|
-
import { ulid as
|
|
12777
|
+
import { ulid as ulid54 } from "ulid";
|
|
12568
12778
|
async function createImmunizationOperation(params) {
|
|
12569
12779
|
const { context, body, tableName } = params;
|
|
12570
12780
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
12571
|
-
const id = body.id ??
|
|
12781
|
+
const id = body.id ?? ulid54();
|
|
12572
12782
|
const meta = {
|
|
12573
12783
|
...body.meta ?? {},
|
|
12574
12784
|
lastUpdated: date,
|
|
@@ -12753,22 +12963,22 @@ async function updateImmunizationRoute(req, res) {
|
|
|
12753
12963
|
}
|
|
12754
12964
|
|
|
12755
12965
|
// src/data/rest-api/routes/data/immunization/immunization.ts
|
|
12756
|
-
var
|
|
12757
|
-
|
|
12758
|
-
|
|
12759
|
-
|
|
12760
|
-
|
|
12761
|
-
|
|
12966
|
+
var router55 = express55.Router();
|
|
12967
|
+
router55.get("/", listImmunizationsRoute);
|
|
12968
|
+
router55.get("/:id", getImmunizationByIdRoute);
|
|
12969
|
+
router55.post("/", createImmunizationRoute);
|
|
12970
|
+
router55.put("/:id", updateImmunizationRoute);
|
|
12971
|
+
router55.delete("/:id", deleteImmunizationRoute);
|
|
12762
12972
|
|
|
12763
12973
|
// src/data/rest-api/routes/data/immunizationevaluation/immunizationevaluation.ts
|
|
12764
|
-
import
|
|
12974
|
+
import express56 from "express";
|
|
12765
12975
|
|
|
12766
12976
|
// src/data/operations/data/immunizationevaluation/immunizationevaluation-create-operation.ts
|
|
12767
|
-
import { ulid as
|
|
12977
|
+
import { ulid as ulid55 } from "ulid";
|
|
12768
12978
|
async function createImmunizationEvaluationOperation(params) {
|
|
12769
12979
|
const { context, body, tableName } = params;
|
|
12770
12980
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
12771
|
-
const id = body.id ??
|
|
12981
|
+
const id = body.id ?? ulid55();
|
|
12772
12982
|
const meta = {
|
|
12773
12983
|
...body.meta ?? {},
|
|
12774
12984
|
lastUpdated: date,
|
|
@@ -12979,22 +13189,22 @@ async function updateImmunizationEvaluationRoute(req, res) {
|
|
|
12979
13189
|
}
|
|
12980
13190
|
|
|
12981
13191
|
// src/data/rest-api/routes/data/immunizationevaluation/immunizationevaluation.ts
|
|
12982
|
-
var
|
|
12983
|
-
|
|
12984
|
-
|
|
12985
|
-
|
|
12986
|
-
|
|
12987
|
-
|
|
13192
|
+
var router56 = express56.Router();
|
|
13193
|
+
router56.get("/", listImmunizationEvaluationsRoute);
|
|
13194
|
+
router56.get("/:id", getImmunizationEvaluationByIdRoute);
|
|
13195
|
+
router56.post("/", createImmunizationEvaluationRoute);
|
|
13196
|
+
router56.put("/:id", updateImmunizationEvaluationRoute);
|
|
13197
|
+
router56.delete("/:id", deleteImmunizationEvaluationRoute);
|
|
12988
13198
|
|
|
12989
13199
|
// src/data/rest-api/routes/data/immunizationrecommendation/immunizationrecommendation.ts
|
|
12990
|
-
import
|
|
13200
|
+
import express57 from "express";
|
|
12991
13201
|
|
|
12992
13202
|
// src/data/operations/data/immunizationrecommendation/immunizationrecommendation-create-operation.ts
|
|
12993
|
-
import { ulid as
|
|
13203
|
+
import { ulid as ulid56 } from "ulid";
|
|
12994
13204
|
async function createImmunizationRecommendationOperation(params) {
|
|
12995
13205
|
const { context, body, tableName } = params;
|
|
12996
13206
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
12997
|
-
const id = body.id ??
|
|
13207
|
+
const id = body.id ?? ulid56();
|
|
12998
13208
|
const meta = {
|
|
12999
13209
|
...body.meta ?? {},
|
|
13000
13210
|
lastUpdated: date,
|
|
@@ -13207,22 +13417,22 @@ async function updateImmunizationRecommendationRoute(req, res) {
|
|
|
13207
13417
|
}
|
|
13208
13418
|
|
|
13209
13419
|
// src/data/rest-api/routes/data/immunizationrecommendation/immunizationrecommendation.ts
|
|
13210
|
-
var
|
|
13211
|
-
|
|
13212
|
-
|
|
13213
|
-
|
|
13214
|
-
|
|
13215
|
-
|
|
13420
|
+
var router57 = express57.Router();
|
|
13421
|
+
router57.get("/", listImmunizationRecommendationsRoute);
|
|
13422
|
+
router57.get("/:id", getImmunizationRecommendationByIdRoute);
|
|
13423
|
+
router57.post("/", createImmunizationRecommendationRoute);
|
|
13424
|
+
router57.put("/:id", updateImmunizationRecommendationRoute);
|
|
13425
|
+
router57.delete("/:id", deleteImmunizationRecommendationRoute);
|
|
13216
13426
|
|
|
13217
13427
|
// src/data/rest-api/routes/data/insuranceplan/insuranceplan.ts
|
|
13218
|
-
import
|
|
13428
|
+
import express58 from "express";
|
|
13219
13429
|
|
|
13220
13430
|
// src/data/operations/data/insuranceplan/insuranceplan-create-operation.ts
|
|
13221
|
-
import { ulid as
|
|
13431
|
+
import { ulid as ulid57 } from "ulid";
|
|
13222
13432
|
async function createInsurancePlanOperation(params) {
|
|
13223
13433
|
const { context, body, tableName } = params;
|
|
13224
13434
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
13225
|
-
const id = body.id ??
|
|
13435
|
+
const id = body.id ?? ulid57();
|
|
13226
13436
|
const meta = {
|
|
13227
13437
|
...body.meta ?? {},
|
|
13228
13438
|
lastUpdated: date,
|
|
@@ -13410,22 +13620,22 @@ async function updateInsurancePlanRoute(req, res) {
|
|
|
13410
13620
|
}
|
|
13411
13621
|
|
|
13412
13622
|
// src/data/rest-api/routes/data/insuranceplan/insuranceplan.ts
|
|
13413
|
-
var
|
|
13414
|
-
|
|
13415
|
-
|
|
13416
|
-
|
|
13417
|
-
|
|
13418
|
-
|
|
13623
|
+
var router58 = express58.Router();
|
|
13624
|
+
router58.get("/", listInsurancePlansRoute);
|
|
13625
|
+
router58.get("/:id", getInsurancePlanByIdRoute);
|
|
13626
|
+
router58.post("/", createInsurancePlanRoute);
|
|
13627
|
+
router58.put("/:id", updateInsurancePlanRoute);
|
|
13628
|
+
router58.delete("/:id", deleteInsurancePlanRoute);
|
|
13419
13629
|
|
|
13420
13630
|
// src/data/rest-api/routes/data/invoice/invoice.ts
|
|
13421
|
-
import
|
|
13631
|
+
import express59 from "express";
|
|
13422
13632
|
|
|
13423
13633
|
// src/data/operations/data/invoice/invoice-create-operation.ts
|
|
13424
|
-
import { ulid as
|
|
13634
|
+
import { ulid as ulid58 } from "ulid";
|
|
13425
13635
|
async function createInvoiceOperation(params) {
|
|
13426
13636
|
const { context, body, tableName } = params;
|
|
13427
13637
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
13428
|
-
const id = body.id ??
|
|
13638
|
+
const id = body.id ?? ulid58();
|
|
13429
13639
|
const meta = {
|
|
13430
13640
|
...body.meta ?? {},
|
|
13431
13641
|
lastUpdated: date,
|
|
@@ -13610,22 +13820,22 @@ async function updateInvoiceRoute(req, res) {
|
|
|
13610
13820
|
}
|
|
13611
13821
|
|
|
13612
13822
|
// src/data/rest-api/routes/data/invoice/invoice.ts
|
|
13613
|
-
var
|
|
13614
|
-
|
|
13615
|
-
|
|
13616
|
-
|
|
13617
|
-
|
|
13618
|
-
|
|
13823
|
+
var router59 = express59.Router();
|
|
13824
|
+
router59.get("/", listInvoicesRoute);
|
|
13825
|
+
router59.get("/:id", getInvoiceByIdRoute);
|
|
13826
|
+
router59.post("/", createInvoiceRoute);
|
|
13827
|
+
router59.put("/:id", updateInvoiceRoute);
|
|
13828
|
+
router59.delete("/:id", deleteInvoiceRoute);
|
|
13619
13829
|
|
|
13620
13830
|
// src/data/rest-api/routes/data/library/library.ts
|
|
13621
|
-
import
|
|
13831
|
+
import express60 from "express";
|
|
13622
13832
|
|
|
13623
13833
|
// src/data/operations/data/library/library-create-operation.ts
|
|
13624
|
-
import { ulid as
|
|
13834
|
+
import { ulid as ulid59 } from "ulid";
|
|
13625
13835
|
async function createLibraryOperation(params) {
|
|
13626
13836
|
const { context, body, tableName } = params;
|
|
13627
13837
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
13628
|
-
const id = body.id ??
|
|
13838
|
+
const id = body.id ?? ulid59();
|
|
13629
13839
|
const meta = {
|
|
13630
13840
|
...body.meta ?? {},
|
|
13631
13841
|
lastUpdated: date,
|
|
@@ -13810,22 +14020,22 @@ async function updateLibraryRoute(req, res) {
|
|
|
13810
14020
|
}
|
|
13811
14021
|
|
|
13812
14022
|
// src/data/rest-api/routes/data/library/library.ts
|
|
13813
|
-
var
|
|
13814
|
-
|
|
13815
|
-
|
|
13816
|
-
|
|
13817
|
-
|
|
13818
|
-
|
|
14023
|
+
var router60 = express60.Router();
|
|
14024
|
+
router60.get("/", listLibrarysRoute);
|
|
14025
|
+
router60.get("/:id", getLibraryByIdRoute);
|
|
14026
|
+
router60.post("/", createLibraryRoute);
|
|
14027
|
+
router60.put("/:id", updateLibraryRoute);
|
|
14028
|
+
router60.delete("/:id", deleteLibraryRoute);
|
|
13819
14029
|
|
|
13820
14030
|
// src/data/rest-api/routes/data/linkage/linkage.ts
|
|
13821
|
-
import
|
|
14031
|
+
import express61 from "express";
|
|
13822
14032
|
|
|
13823
14033
|
// src/data/operations/data/linkage/linkage-create-operation.ts
|
|
13824
|
-
import { ulid as
|
|
14034
|
+
import { ulid as ulid60 } from "ulid";
|
|
13825
14035
|
async function createLinkageOperation(params) {
|
|
13826
14036
|
const { context, body, tableName } = params;
|
|
13827
14037
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
13828
|
-
const id = body.id ??
|
|
14038
|
+
const id = body.id ?? ulid60();
|
|
13829
14039
|
const meta = {
|
|
13830
14040
|
...body.meta ?? {},
|
|
13831
14041
|
lastUpdated: date,
|
|
@@ -14010,22 +14220,22 @@ async function updateLinkageRoute(req, res) {
|
|
|
14010
14220
|
}
|
|
14011
14221
|
|
|
14012
14222
|
// src/data/rest-api/routes/data/linkage/linkage.ts
|
|
14013
|
-
var
|
|
14014
|
-
|
|
14015
|
-
|
|
14016
|
-
|
|
14017
|
-
|
|
14018
|
-
|
|
14223
|
+
var router61 = express61.Router();
|
|
14224
|
+
router61.get("/", listLinkagesRoute);
|
|
14225
|
+
router61.get("/:id", getLinkageByIdRoute);
|
|
14226
|
+
router61.post("/", createLinkageRoute);
|
|
14227
|
+
router61.put("/:id", updateLinkageRoute);
|
|
14228
|
+
router61.delete("/:id", deleteLinkageRoute);
|
|
14019
14229
|
|
|
14020
14230
|
// src/data/rest-api/routes/data/list/list.ts
|
|
14021
|
-
import
|
|
14231
|
+
import express62 from "express";
|
|
14022
14232
|
|
|
14023
14233
|
// src/data/operations/data/list/list-create-operation.ts
|
|
14024
|
-
import { ulid as
|
|
14234
|
+
import { ulid as ulid61 } from "ulid";
|
|
14025
14235
|
async function createListOperation(params) {
|
|
14026
14236
|
const { context, body, tableName } = params;
|
|
14027
14237
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
14028
|
-
const id = body.id ??
|
|
14238
|
+
const id = body.id ?? ulid61();
|
|
14029
14239
|
const meta = {
|
|
14030
14240
|
...body.meta ?? {},
|
|
14031
14241
|
lastUpdated: date,
|
|
@@ -14210,22 +14420,22 @@ async function updateListRoute(req, res) {
|
|
|
14210
14420
|
}
|
|
14211
14421
|
|
|
14212
14422
|
// src/data/rest-api/routes/data/list/list.ts
|
|
14213
|
-
var
|
|
14214
|
-
|
|
14215
|
-
|
|
14216
|
-
|
|
14217
|
-
|
|
14218
|
-
|
|
14423
|
+
var router62 = express62.Router();
|
|
14424
|
+
router62.get("/", listListsRoute);
|
|
14425
|
+
router62.get("/:id", getListByIdRoute);
|
|
14426
|
+
router62.post("/", createListRoute);
|
|
14427
|
+
router62.put("/:id", updateListRoute);
|
|
14428
|
+
router62.delete("/:id", deleteListRoute);
|
|
14219
14429
|
|
|
14220
14430
|
// src/data/rest-api/routes/data/location/location.ts
|
|
14221
|
-
import
|
|
14431
|
+
import express63 from "express";
|
|
14222
14432
|
|
|
14223
14433
|
// src/data/operations/data/location/location-create-operation.ts
|
|
14224
|
-
import { ulid as
|
|
14434
|
+
import { ulid as ulid62 } from "ulid";
|
|
14225
14435
|
async function createLocationOperation(params) {
|
|
14226
14436
|
const { context, body, tableName } = params;
|
|
14227
14437
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
14228
|
-
const id = body.id ??
|
|
14438
|
+
const id = body.id ?? ulid62();
|
|
14229
14439
|
const meta = {
|
|
14230
14440
|
...body.meta ?? {},
|
|
14231
14441
|
lastUpdated: date,
|
|
@@ -14410,22 +14620,22 @@ async function updateLocationRoute(req, res) {
|
|
|
14410
14620
|
}
|
|
14411
14621
|
|
|
14412
14622
|
// src/data/rest-api/routes/data/location/location.ts
|
|
14413
|
-
var
|
|
14414
|
-
|
|
14415
|
-
|
|
14416
|
-
|
|
14417
|
-
|
|
14418
|
-
|
|
14623
|
+
var router63 = express63.Router();
|
|
14624
|
+
router63.get("/", listLocationsRoute);
|
|
14625
|
+
router63.get("/:id", getLocationByIdRoute);
|
|
14626
|
+
router63.post("/", createLocationRoute);
|
|
14627
|
+
router63.put("/:id", updateLocationRoute);
|
|
14628
|
+
router63.delete("/:id", deleteLocationRoute);
|
|
14419
14629
|
|
|
14420
14630
|
// src/data/rest-api/routes/data/measure/measure.ts
|
|
14421
|
-
import
|
|
14631
|
+
import express64 from "express";
|
|
14422
14632
|
|
|
14423
14633
|
// src/data/operations/data/measure/measure-create-operation.ts
|
|
14424
|
-
import { ulid as
|
|
14634
|
+
import { ulid as ulid63 } from "ulid";
|
|
14425
14635
|
async function createMeasureOperation(params) {
|
|
14426
14636
|
const { context, body, tableName } = params;
|
|
14427
14637
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
14428
|
-
const id = body.id ??
|
|
14638
|
+
const id = body.id ?? ulid63();
|
|
14429
14639
|
const meta = {
|
|
14430
14640
|
...body.meta ?? {},
|
|
14431
14641
|
lastUpdated: date,
|
|
@@ -14610,22 +14820,22 @@ async function updateMeasureRoute(req, res) {
|
|
|
14610
14820
|
}
|
|
14611
14821
|
|
|
14612
14822
|
// src/data/rest-api/routes/data/measure/measure.ts
|
|
14613
|
-
var
|
|
14614
|
-
|
|
14615
|
-
|
|
14616
|
-
|
|
14617
|
-
|
|
14618
|
-
|
|
14823
|
+
var router64 = express64.Router();
|
|
14824
|
+
router64.get("/", listMeasuresRoute);
|
|
14825
|
+
router64.get("/:id", getMeasureByIdRoute);
|
|
14826
|
+
router64.post("/", createMeasureRoute);
|
|
14827
|
+
router64.put("/:id", updateMeasureRoute);
|
|
14828
|
+
router64.delete("/:id", deleteMeasureRoute);
|
|
14619
14829
|
|
|
14620
14830
|
// src/data/rest-api/routes/data/measurereport/measurereport.ts
|
|
14621
|
-
import
|
|
14831
|
+
import express65 from "express";
|
|
14622
14832
|
|
|
14623
14833
|
// src/data/operations/data/measurereport/measurereport-create-operation.ts
|
|
14624
|
-
import { ulid as
|
|
14834
|
+
import { ulid as ulid64 } from "ulid";
|
|
14625
14835
|
async function createMeasureReportOperation(params) {
|
|
14626
14836
|
const { context, body, tableName } = params;
|
|
14627
14837
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
14628
|
-
const id = body.id ??
|
|
14838
|
+
const id = body.id ?? ulid64();
|
|
14629
14839
|
const meta = {
|
|
14630
14840
|
...body.meta ?? {},
|
|
14631
14841
|
lastUpdated: date,
|
|
@@ -14813,22 +15023,22 @@ async function updateMeasureReportRoute(req, res) {
|
|
|
14813
15023
|
}
|
|
14814
15024
|
|
|
14815
15025
|
// src/data/rest-api/routes/data/measurereport/measurereport.ts
|
|
14816
|
-
var
|
|
14817
|
-
|
|
14818
|
-
|
|
14819
|
-
|
|
14820
|
-
|
|
14821
|
-
|
|
15026
|
+
var router65 = express65.Router();
|
|
15027
|
+
router65.get("/", listMeasureReportsRoute);
|
|
15028
|
+
router65.get("/:id", getMeasureReportByIdRoute);
|
|
15029
|
+
router65.post("/", createMeasureReportRoute);
|
|
15030
|
+
router65.put("/:id", updateMeasureReportRoute);
|
|
15031
|
+
router65.delete("/:id", deleteMeasureReportRoute);
|
|
14822
15032
|
|
|
14823
15033
|
// src/data/rest-api/routes/data/media/media.ts
|
|
14824
|
-
import
|
|
15034
|
+
import express66 from "express";
|
|
14825
15035
|
|
|
14826
15036
|
// src/data/operations/data/media/media-create-operation.ts
|
|
14827
|
-
import { ulid as
|
|
15037
|
+
import { ulid as ulid65 } from "ulid";
|
|
14828
15038
|
async function createMediaOperation(params) {
|
|
14829
15039
|
const { context, body, tableName } = params;
|
|
14830
15040
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
14831
|
-
const id = body.id ??
|
|
15041
|
+
const id = body.id ?? ulid65();
|
|
14832
15042
|
const meta = {
|
|
14833
15043
|
...body.meta ?? {},
|
|
14834
15044
|
lastUpdated: date,
|
|
@@ -15013,22 +15223,22 @@ async function updateMediaRoute(req, res) {
|
|
|
15013
15223
|
}
|
|
15014
15224
|
|
|
15015
15225
|
// src/data/rest-api/routes/data/media/media.ts
|
|
15016
|
-
var
|
|
15017
|
-
|
|
15018
|
-
|
|
15019
|
-
|
|
15020
|
-
|
|
15021
|
-
|
|
15226
|
+
var router66 = express66.Router();
|
|
15227
|
+
router66.get("/", listMediasRoute);
|
|
15228
|
+
router66.get("/:id", getMediaByIdRoute);
|
|
15229
|
+
router66.post("/", createMediaRoute);
|
|
15230
|
+
router66.put("/:id", updateMediaRoute);
|
|
15231
|
+
router66.delete("/:id", deleteMediaRoute);
|
|
15022
15232
|
|
|
15023
15233
|
// src/data/rest-api/routes/data/medication/medication.ts
|
|
15024
|
-
import
|
|
15234
|
+
import express67 from "express";
|
|
15025
15235
|
|
|
15026
15236
|
// src/data/operations/data/medication/medication-create-operation.ts
|
|
15027
|
-
import { ulid as
|
|
15237
|
+
import { ulid as ulid66 } from "ulid";
|
|
15028
15238
|
async function createMedicationOperation(params) {
|
|
15029
15239
|
const { context, body, tableName } = params;
|
|
15030
15240
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
15031
|
-
const id = body.id ??
|
|
15241
|
+
const id = body.id ?? ulid66();
|
|
15032
15242
|
const meta = {
|
|
15033
15243
|
...body.meta ?? {},
|
|
15034
15244
|
lastUpdated: date,
|
|
@@ -15213,22 +15423,22 @@ async function updateMedicationRoute(req, res) {
|
|
|
15213
15423
|
}
|
|
15214
15424
|
|
|
15215
15425
|
// src/data/rest-api/routes/data/medication/medication.ts
|
|
15216
|
-
var
|
|
15217
|
-
|
|
15218
|
-
|
|
15219
|
-
|
|
15220
|
-
|
|
15221
|
-
|
|
15426
|
+
var router67 = express67.Router();
|
|
15427
|
+
router67.get("/", listMedicationsRoute);
|
|
15428
|
+
router67.get("/:id", getMedicationByIdRoute);
|
|
15429
|
+
router67.post("/", createMedicationRoute);
|
|
15430
|
+
router67.put("/:id", updateMedicationRoute);
|
|
15431
|
+
router67.delete("/:id", deleteMedicationRoute);
|
|
15222
15432
|
|
|
15223
15433
|
// src/data/rest-api/routes/data/medicationadministration/medicationadministration.ts
|
|
15224
|
-
import
|
|
15434
|
+
import express68 from "express";
|
|
15225
15435
|
|
|
15226
15436
|
// src/data/operations/data/medicationadministration/medicationadministration-create-operation.ts
|
|
15227
|
-
import { ulid as
|
|
15437
|
+
import { ulid as ulid67 } from "ulid";
|
|
15228
15438
|
async function createMedicationAdministrationOperation(params) {
|
|
15229
15439
|
const { context, body, tableName } = params;
|
|
15230
15440
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
15231
|
-
const id = body.id ??
|
|
15441
|
+
const id = body.id ?? ulid67();
|
|
15232
15442
|
const meta = {
|
|
15233
15443
|
...body.meta ?? {},
|
|
15234
15444
|
lastUpdated: date,
|
|
@@ -15441,22 +15651,22 @@ async function updateMedicationAdministrationRoute(req, res) {
|
|
|
15441
15651
|
}
|
|
15442
15652
|
|
|
15443
15653
|
// src/data/rest-api/routes/data/medicationadministration/medicationadministration.ts
|
|
15444
|
-
var
|
|
15445
|
-
|
|
15446
|
-
|
|
15447
|
-
|
|
15448
|
-
|
|
15449
|
-
|
|
15654
|
+
var router68 = express68.Router();
|
|
15655
|
+
router68.get("/", listMedicationAdministrationsRoute);
|
|
15656
|
+
router68.get("/:id", getMedicationAdministrationByIdRoute);
|
|
15657
|
+
router68.post("/", createMedicationAdministrationRoute);
|
|
15658
|
+
router68.put("/:id", updateMedicationAdministrationRoute);
|
|
15659
|
+
router68.delete("/:id", deleteMedicationAdministrationRoute);
|
|
15450
15660
|
|
|
15451
15661
|
// src/data/rest-api/routes/data/medicationdispense/medicationdispense.ts
|
|
15452
|
-
import
|
|
15662
|
+
import express69 from "express";
|
|
15453
15663
|
|
|
15454
15664
|
// src/data/operations/data/medicationdispense/medicationdispense-create-operation.ts
|
|
15455
|
-
import { ulid as
|
|
15665
|
+
import { ulid as ulid68 } from "ulid";
|
|
15456
15666
|
async function createMedicationDispenseOperation(params) {
|
|
15457
15667
|
const { context, body, tableName } = params;
|
|
15458
15668
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
15459
|
-
const id = body.id ??
|
|
15669
|
+
const id = body.id ?? ulid68();
|
|
15460
15670
|
const meta = {
|
|
15461
15671
|
...body.meta ?? {},
|
|
15462
15672
|
lastUpdated: date,
|
|
@@ -15655,22 +15865,22 @@ async function updateMedicationDispenseRoute(req, res) {
|
|
|
15655
15865
|
}
|
|
15656
15866
|
|
|
15657
15867
|
// src/data/rest-api/routes/data/medicationdispense/medicationdispense.ts
|
|
15658
|
-
var
|
|
15659
|
-
|
|
15660
|
-
|
|
15661
|
-
|
|
15662
|
-
|
|
15663
|
-
|
|
15868
|
+
var router69 = express69.Router();
|
|
15869
|
+
router69.get("/", listMedicationDispensesRoute);
|
|
15870
|
+
router69.get("/:id", getMedicationDispenseByIdRoute);
|
|
15871
|
+
router69.post("/", createMedicationDispenseRoute);
|
|
15872
|
+
router69.put("/:id", updateMedicationDispenseRoute);
|
|
15873
|
+
router69.delete("/:id", deleteMedicationDispenseRoute);
|
|
15664
15874
|
|
|
15665
15875
|
// src/data/rest-api/routes/data/medicationknowledge/medicationknowledge.ts
|
|
15666
|
-
import
|
|
15876
|
+
import express70 from "express";
|
|
15667
15877
|
|
|
15668
15878
|
// src/data/operations/data/medicationknowledge/medicationknowledge-create-operation.ts
|
|
15669
|
-
import { ulid as
|
|
15879
|
+
import { ulid as ulid69 } from "ulid";
|
|
15670
15880
|
async function createMedicationKnowledgeOperation(params) {
|
|
15671
15881
|
const { context, body, tableName } = params;
|
|
15672
15882
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
15673
|
-
const id = body.id ??
|
|
15883
|
+
const id = body.id ?? ulid69();
|
|
15674
15884
|
const meta = {
|
|
15675
15885
|
...body.meta ?? {},
|
|
15676
15886
|
lastUpdated: date,
|
|
@@ -15869,22 +16079,22 @@ async function updateMedicationKnowledgeRoute(req, res) {
|
|
|
15869
16079
|
}
|
|
15870
16080
|
|
|
15871
16081
|
// src/data/rest-api/routes/data/medicationknowledge/medicationknowledge.ts
|
|
15872
|
-
var
|
|
15873
|
-
|
|
15874
|
-
|
|
15875
|
-
|
|
15876
|
-
|
|
15877
|
-
|
|
16082
|
+
var router70 = express70.Router();
|
|
16083
|
+
router70.get("/", listMedicationKnowledgesRoute);
|
|
16084
|
+
router70.get("/:id", getMedicationKnowledgeByIdRoute);
|
|
16085
|
+
router70.post("/", createMedicationKnowledgeRoute);
|
|
16086
|
+
router70.put("/:id", updateMedicationKnowledgeRoute);
|
|
16087
|
+
router70.delete("/:id", deleteMedicationKnowledgeRoute);
|
|
15878
16088
|
|
|
15879
16089
|
// src/data/rest-api/routes/data/medicationrequest/medicationrequest.ts
|
|
15880
|
-
import
|
|
16090
|
+
import express71 from "express";
|
|
15881
16091
|
|
|
15882
16092
|
// src/data/operations/data/medicationrequest/medicationrequest-create-operation.ts
|
|
15883
|
-
import { ulid as
|
|
16093
|
+
import { ulid as ulid70 } from "ulid";
|
|
15884
16094
|
async function createMedicationRequestOperation(params) {
|
|
15885
16095
|
const { context, body, tableName } = params;
|
|
15886
16096
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
15887
|
-
const id = body.id ??
|
|
16097
|
+
const id = body.id ?? ulid70();
|
|
15888
16098
|
const meta = {
|
|
15889
16099
|
...body.meta ?? {},
|
|
15890
16100
|
lastUpdated: date,
|
|
@@ -16079,22 +16289,22 @@ async function updateMedicationRequestRoute(req, res) {
|
|
|
16079
16289
|
}
|
|
16080
16290
|
|
|
16081
16291
|
// src/data/rest-api/routes/data/medicationrequest/medicationrequest.ts
|
|
16082
|
-
var
|
|
16083
|
-
|
|
16084
|
-
|
|
16085
|
-
|
|
16086
|
-
|
|
16087
|
-
|
|
16292
|
+
var router71 = express71.Router();
|
|
16293
|
+
router71.get("/", listMedicationRequestsRoute);
|
|
16294
|
+
router71.get("/:id", getMedicationRequestByIdRoute);
|
|
16295
|
+
router71.post("/", createMedicationRequestRoute);
|
|
16296
|
+
router71.put("/:id", updateMedicationRequestRoute);
|
|
16297
|
+
router71.delete("/:id", deleteMedicationRequestRoute);
|
|
16088
16298
|
|
|
16089
16299
|
// src/data/rest-api/routes/data/medicationstatement/medicationstatement.ts
|
|
16090
|
-
import
|
|
16300
|
+
import express72 from "express";
|
|
16091
16301
|
|
|
16092
16302
|
// src/data/operations/data/medicationstatement/medicationstatement-create-operation.ts
|
|
16093
|
-
import { ulid as
|
|
16303
|
+
import { ulid as ulid71 } from "ulid";
|
|
16094
16304
|
async function createMedicationStatementOperation(params) {
|
|
16095
16305
|
const { context, body, tableName } = params;
|
|
16096
16306
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
16097
|
-
const id = body.id ??
|
|
16307
|
+
const id = body.id ?? ulid71();
|
|
16098
16308
|
const meta = {
|
|
16099
16309
|
...body.meta ?? {},
|
|
16100
16310
|
lastUpdated: date,
|
|
@@ -16293,22 +16503,22 @@ async function updateMedicationStatementRoute(req, res) {
|
|
|
16293
16503
|
}
|
|
16294
16504
|
|
|
16295
16505
|
// src/data/rest-api/routes/data/medicationstatement/medicationstatement.ts
|
|
16296
|
-
var
|
|
16297
|
-
|
|
16298
|
-
|
|
16299
|
-
|
|
16300
|
-
|
|
16301
|
-
|
|
16506
|
+
var router72 = express72.Router();
|
|
16507
|
+
router72.get("/", listMedicationStatementsRoute);
|
|
16508
|
+
router72.get("/:id", getMedicationStatementByIdRoute);
|
|
16509
|
+
router72.post("/", createMedicationStatementRoute);
|
|
16510
|
+
router72.put("/:id", updateMedicationStatementRoute);
|
|
16511
|
+
router72.delete("/:id", deleteMedicationStatementRoute);
|
|
16302
16512
|
|
|
16303
16513
|
// src/data/rest-api/routes/data/messageheader/messageheader.ts
|
|
16304
|
-
import
|
|
16514
|
+
import express73 from "express";
|
|
16305
16515
|
|
|
16306
16516
|
// src/data/operations/data/messageheader/messageheader-create-operation.ts
|
|
16307
|
-
import { ulid as
|
|
16517
|
+
import { ulid as ulid72 } from "ulid";
|
|
16308
16518
|
async function createMessageHeaderOperation(params) {
|
|
16309
16519
|
const { context, body, tableName } = params;
|
|
16310
16520
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
16311
|
-
const id = body.id ??
|
|
16521
|
+
const id = body.id ?? ulid72();
|
|
16312
16522
|
const meta = {
|
|
16313
16523
|
...body.meta ?? {},
|
|
16314
16524
|
lastUpdated: date,
|
|
@@ -16496,22 +16706,22 @@ async function updateMessageHeaderRoute(req, res) {
|
|
|
16496
16706
|
}
|
|
16497
16707
|
|
|
16498
16708
|
// src/data/rest-api/routes/data/messageheader/messageheader.ts
|
|
16499
|
-
var
|
|
16500
|
-
|
|
16501
|
-
|
|
16502
|
-
|
|
16503
|
-
|
|
16504
|
-
|
|
16709
|
+
var router73 = express73.Router();
|
|
16710
|
+
router73.get("/", listMessageHeadersRoute);
|
|
16711
|
+
router73.get("/:id", getMessageHeaderByIdRoute);
|
|
16712
|
+
router73.post("/", createMessageHeaderRoute);
|
|
16713
|
+
router73.put("/:id", updateMessageHeaderRoute);
|
|
16714
|
+
router73.delete("/:id", deleteMessageHeaderRoute);
|
|
16505
16715
|
|
|
16506
16716
|
// src/data/rest-api/routes/data/molecularsequence/molecularsequence.ts
|
|
16507
|
-
import
|
|
16717
|
+
import express74 from "express";
|
|
16508
16718
|
|
|
16509
16719
|
// src/data/operations/data/molecularsequence/molecularsequence-create-operation.ts
|
|
16510
|
-
import { ulid as
|
|
16720
|
+
import { ulid as ulid73 } from "ulid";
|
|
16511
16721
|
async function createMolecularSequenceOperation(params) {
|
|
16512
16722
|
const { context, body, tableName } = params;
|
|
16513
16723
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
16514
|
-
const id = body.id ??
|
|
16724
|
+
const id = body.id ?? ulid73();
|
|
16515
16725
|
const meta = {
|
|
16516
16726
|
...body.meta ?? {},
|
|
16517
16727
|
lastUpdated: date,
|
|
@@ -16706,22 +16916,22 @@ async function updateMolecularSequenceRoute(req, res) {
|
|
|
16706
16916
|
}
|
|
16707
16917
|
|
|
16708
16918
|
// src/data/rest-api/routes/data/molecularsequence/molecularsequence.ts
|
|
16709
|
-
var
|
|
16710
|
-
|
|
16711
|
-
|
|
16712
|
-
|
|
16713
|
-
|
|
16714
|
-
|
|
16919
|
+
var router74 = express74.Router();
|
|
16920
|
+
router74.get("/", listMolecularSequencesRoute);
|
|
16921
|
+
router74.get("/:id", getMolecularSequenceByIdRoute);
|
|
16922
|
+
router74.post("/", createMolecularSequenceRoute);
|
|
16923
|
+
router74.put("/:id", updateMolecularSequenceRoute);
|
|
16924
|
+
router74.delete("/:id", deleteMolecularSequenceRoute);
|
|
16715
16925
|
|
|
16716
16926
|
// src/data/rest-api/routes/data/nutritionorder/nutritionorder.ts
|
|
16717
|
-
import
|
|
16927
|
+
import express75 from "express";
|
|
16718
16928
|
|
|
16719
16929
|
// src/data/operations/data/nutritionorder/nutritionorder-create-operation.ts
|
|
16720
|
-
import { ulid as
|
|
16930
|
+
import { ulid as ulid74 } from "ulid";
|
|
16721
16931
|
async function createNutritionOrderOperation(params) {
|
|
16722
16932
|
const { context, body, tableName } = params;
|
|
16723
16933
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
16724
|
-
const id = body.id ??
|
|
16934
|
+
const id = body.id ?? ulid74();
|
|
16725
16935
|
const meta = {
|
|
16726
16936
|
...body.meta ?? {},
|
|
16727
16937
|
lastUpdated: date,
|
|
@@ -16909,22 +17119,22 @@ async function updateNutritionOrderRoute(req, res) {
|
|
|
16909
17119
|
}
|
|
16910
17120
|
|
|
16911
17121
|
// src/data/rest-api/routes/data/nutritionorder/nutritionorder.ts
|
|
16912
|
-
var
|
|
16913
|
-
|
|
16914
|
-
|
|
16915
|
-
|
|
16916
|
-
|
|
16917
|
-
|
|
17122
|
+
var router75 = express75.Router();
|
|
17123
|
+
router75.get("/", listNutritionOrdersRoute);
|
|
17124
|
+
router75.get("/:id", getNutritionOrderByIdRoute);
|
|
17125
|
+
router75.post("/", createNutritionOrderRoute);
|
|
17126
|
+
router75.put("/:id", updateNutritionOrderRoute);
|
|
17127
|
+
router75.delete("/:id", deleteNutritionOrderRoute);
|
|
16918
17128
|
|
|
16919
17129
|
// src/data/rest-api/routes/data/observation/observation.ts
|
|
16920
|
-
import
|
|
17130
|
+
import express76 from "express";
|
|
16921
17131
|
|
|
16922
17132
|
// src/data/operations/data/observation/observation-create-operation.ts
|
|
16923
|
-
import { ulid as
|
|
17133
|
+
import { ulid as ulid75 } from "ulid";
|
|
16924
17134
|
async function createObservationOperation(params) {
|
|
16925
17135
|
const { context, body, tableName } = params;
|
|
16926
17136
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
16927
|
-
const id = body.id ??
|
|
17137
|
+
const id = body.id ?? ulid75();
|
|
16928
17138
|
const meta = {
|
|
16929
17139
|
...body.meta ?? {},
|
|
16930
17140
|
lastUpdated: date,
|
|
@@ -17109,22 +17319,22 @@ async function updateObservationRoute(req, res) {
|
|
|
17109
17319
|
}
|
|
17110
17320
|
|
|
17111
17321
|
// src/data/rest-api/routes/data/observation/observation.ts
|
|
17112
|
-
var
|
|
17113
|
-
|
|
17114
|
-
|
|
17115
|
-
|
|
17116
|
-
|
|
17117
|
-
|
|
17322
|
+
var router76 = express76.Router();
|
|
17323
|
+
router76.get("/", listObservationsRoute);
|
|
17324
|
+
router76.get("/:id", getObservationByIdRoute);
|
|
17325
|
+
router76.post("/", createObservationRoute);
|
|
17326
|
+
router76.put("/:id", updateObservationRoute);
|
|
17327
|
+
router76.delete("/:id", deleteObservationRoute);
|
|
17118
17328
|
|
|
17119
17329
|
// src/data/rest-api/routes/data/organization/organization.ts
|
|
17120
|
-
import
|
|
17330
|
+
import express77 from "express";
|
|
17121
17331
|
|
|
17122
17332
|
// src/data/operations/data/organization/organization-create-operation.ts
|
|
17123
|
-
import { ulid as
|
|
17333
|
+
import { ulid as ulid76 } from "ulid";
|
|
17124
17334
|
async function createOrganizationOperation(params) {
|
|
17125
17335
|
const { context, body, tableName } = params;
|
|
17126
17336
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
17127
|
-
const id = body.id ??
|
|
17337
|
+
const id = body.id ?? ulid76();
|
|
17128
17338
|
const meta = {
|
|
17129
17339
|
...body.meta ?? {},
|
|
17130
17340
|
lastUpdated: date,
|
|
@@ -17309,22 +17519,22 @@ async function updateOrganizationRoute(req, res) {
|
|
|
17309
17519
|
}
|
|
17310
17520
|
|
|
17311
17521
|
// src/data/rest-api/routes/data/organization/organization.ts
|
|
17312
|
-
var
|
|
17313
|
-
|
|
17314
|
-
|
|
17315
|
-
|
|
17316
|
-
|
|
17317
|
-
|
|
17522
|
+
var router77 = express77.Router();
|
|
17523
|
+
router77.get("/", listOrganizationsRoute);
|
|
17524
|
+
router77.get("/:id", getOrganizationByIdRoute);
|
|
17525
|
+
router77.post("/", createOrganizationRoute);
|
|
17526
|
+
router77.put("/:id", updateOrganizationRoute);
|
|
17527
|
+
router77.delete("/:id", deleteOrganizationRoute);
|
|
17318
17528
|
|
|
17319
17529
|
// src/data/rest-api/routes/data/organizationaffiliation/organizationaffiliation.ts
|
|
17320
|
-
import
|
|
17530
|
+
import express78 from "express";
|
|
17321
17531
|
|
|
17322
17532
|
// src/data/operations/data/organizationaffiliation/organizationaffiliation-create-operation.ts
|
|
17323
|
-
import { ulid as
|
|
17533
|
+
import { ulid as ulid77 } from "ulid";
|
|
17324
17534
|
async function createOrganizationAffiliationOperation(params) {
|
|
17325
17535
|
const { context, body, tableName } = params;
|
|
17326
17536
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
17327
|
-
const id = body.id ??
|
|
17537
|
+
const id = body.id ?? ulid77();
|
|
17328
17538
|
const meta = {
|
|
17329
17539
|
...body.meta ?? {},
|
|
17330
17540
|
lastUpdated: date,
|
|
@@ -17537,18 +17747,18 @@ async function updateOrganizationAffiliationRoute(req, res) {
|
|
|
17537
17747
|
}
|
|
17538
17748
|
|
|
17539
17749
|
// src/data/rest-api/routes/data/organizationaffiliation/organizationaffiliation.ts
|
|
17540
|
-
var
|
|
17541
|
-
|
|
17542
|
-
|
|
17543
|
-
|
|
17544
|
-
|
|
17545
|
-
|
|
17750
|
+
var router78 = express78.Router();
|
|
17751
|
+
router78.get("/", listOrganizationAffiliationsRoute);
|
|
17752
|
+
router78.get("/:id", getOrganizationAffiliationByIdRoute);
|
|
17753
|
+
router78.post("/", createOrganizationAffiliationRoute);
|
|
17754
|
+
router78.put("/:id", updateOrganizationAffiliationRoute);
|
|
17755
|
+
router78.delete("/:id", deleteOrganizationAffiliationRoute);
|
|
17546
17756
|
|
|
17547
17757
|
// src/data/rest-api/routes/data/patient/patient.ts
|
|
17548
|
-
import
|
|
17758
|
+
import express79 from "express";
|
|
17549
17759
|
|
|
17550
17760
|
// src/data/operations/data/patient/patient-create-operation.ts
|
|
17551
|
-
import { ulid as
|
|
17761
|
+
import { ulid as ulid78 } from "ulid";
|
|
17552
17762
|
|
|
17553
17763
|
// src/data/import-patient.ts
|
|
17554
17764
|
import { readFileSync } from "fs";
|
|
@@ -17673,7 +17883,7 @@ if (__require.main === module) {
|
|
|
17673
17883
|
async function createPatientOperation(params) {
|
|
17674
17884
|
const { context, body } = params;
|
|
17675
17885
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
17676
|
-
const id = body.id ??
|
|
17886
|
+
const id = body.id ?? ulid78();
|
|
17677
17887
|
const meta = {
|
|
17678
17888
|
...body.meta ?? {},
|
|
17679
17889
|
lastUpdated: date,
|
|
@@ -17859,22 +18069,22 @@ async function updatePatientRoute(req, res) {
|
|
|
17859
18069
|
}
|
|
17860
18070
|
|
|
17861
18071
|
// src/data/rest-api/routes/data/patient/patient.ts
|
|
17862
|
-
var
|
|
17863
|
-
|
|
17864
|
-
|
|
17865
|
-
|
|
17866
|
-
|
|
17867
|
-
|
|
18072
|
+
var router79 = express79.Router();
|
|
18073
|
+
router79.get("/", listPatientsRoute);
|
|
18074
|
+
router79.get("/:id", getPatientByIdRoute);
|
|
18075
|
+
router79.post("/", createPatientRoute);
|
|
18076
|
+
router79.put("/:id", updatePatientRoute);
|
|
18077
|
+
router79.delete("/:id", deletePatientRoute);
|
|
17868
18078
|
|
|
17869
18079
|
// src/data/rest-api/routes/data/paymentnotice/paymentnotice.ts
|
|
17870
|
-
import
|
|
18080
|
+
import express80 from "express";
|
|
17871
18081
|
|
|
17872
18082
|
// src/data/operations/data/paymentnotice/paymentnotice-create-operation.ts
|
|
17873
|
-
import { ulid as
|
|
18083
|
+
import { ulid as ulid79 } from "ulid";
|
|
17874
18084
|
async function createPaymentNoticeOperation(params) {
|
|
17875
18085
|
const { context, body, tableName } = params;
|
|
17876
18086
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
17877
|
-
const id = body.id ??
|
|
18087
|
+
const id = body.id ?? ulid79();
|
|
17878
18088
|
const meta = {
|
|
17879
18089
|
...body.meta ?? {},
|
|
17880
18090
|
lastUpdated: date,
|
|
@@ -18062,22 +18272,22 @@ async function updatePaymentNoticeRoute(req, res) {
|
|
|
18062
18272
|
}
|
|
18063
18273
|
|
|
18064
18274
|
// src/data/rest-api/routes/data/paymentnotice/paymentnotice.ts
|
|
18065
|
-
var
|
|
18066
|
-
|
|
18067
|
-
|
|
18068
|
-
|
|
18069
|
-
|
|
18070
|
-
|
|
18275
|
+
var router80 = express80.Router();
|
|
18276
|
+
router80.get("/", listPaymentNoticesRoute);
|
|
18277
|
+
router80.get("/:id", getPaymentNoticeByIdRoute);
|
|
18278
|
+
router80.post("/", createPaymentNoticeRoute);
|
|
18279
|
+
router80.put("/:id", updatePaymentNoticeRoute);
|
|
18280
|
+
router80.delete("/:id", deletePaymentNoticeRoute);
|
|
18071
18281
|
|
|
18072
18282
|
// src/data/rest-api/routes/data/paymentreconciliation/paymentreconciliation.ts
|
|
18073
|
-
import
|
|
18283
|
+
import express81 from "express";
|
|
18074
18284
|
|
|
18075
18285
|
// src/data/operations/data/paymentreconciliation/paymentreconciliation-create-operation.ts
|
|
18076
|
-
import { ulid as
|
|
18286
|
+
import { ulid as ulid80 } from "ulid";
|
|
18077
18287
|
async function createPaymentReconciliationOperation(params) {
|
|
18078
18288
|
const { context, body, tableName } = params;
|
|
18079
18289
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
18080
|
-
const id = body.id ??
|
|
18290
|
+
const id = body.id ?? ulid80();
|
|
18081
18291
|
const meta = {
|
|
18082
18292
|
...body.meta ?? {},
|
|
18083
18293
|
lastUpdated: date,
|
|
@@ -18288,22 +18498,22 @@ async function updatePaymentReconciliationRoute(req, res) {
|
|
|
18288
18498
|
}
|
|
18289
18499
|
|
|
18290
18500
|
// src/data/rest-api/routes/data/paymentreconciliation/paymentreconciliation.ts
|
|
18291
|
-
var
|
|
18292
|
-
|
|
18293
|
-
|
|
18294
|
-
|
|
18295
|
-
|
|
18296
|
-
|
|
18501
|
+
var router81 = express81.Router();
|
|
18502
|
+
router81.get("/", listPaymentReconciliationsRoute);
|
|
18503
|
+
router81.get("/:id", getPaymentReconciliationByIdRoute);
|
|
18504
|
+
router81.post("/", createPaymentReconciliationRoute);
|
|
18505
|
+
router81.put("/:id", updatePaymentReconciliationRoute);
|
|
18506
|
+
router81.delete("/:id", deletePaymentReconciliationRoute);
|
|
18297
18507
|
|
|
18298
18508
|
// src/data/rest-api/routes/data/person/person.ts
|
|
18299
|
-
import
|
|
18509
|
+
import express82 from "express";
|
|
18300
18510
|
|
|
18301
18511
|
// src/data/operations/data/person/person-create-operation.ts
|
|
18302
|
-
import { ulid as
|
|
18512
|
+
import { ulid as ulid81 } from "ulid";
|
|
18303
18513
|
async function createPersonOperation(params) {
|
|
18304
18514
|
const { context, body, tableName } = params;
|
|
18305
18515
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
18306
|
-
const id = body.id ??
|
|
18516
|
+
const id = body.id ?? ulid81();
|
|
18307
18517
|
const meta = {
|
|
18308
18518
|
...body.meta ?? {},
|
|
18309
18519
|
lastUpdated: date,
|
|
@@ -18488,22 +18698,22 @@ async function updatePersonRoute(req, res) {
|
|
|
18488
18698
|
}
|
|
18489
18699
|
|
|
18490
18700
|
// src/data/rest-api/routes/data/person/person.ts
|
|
18491
|
-
var
|
|
18492
|
-
|
|
18493
|
-
|
|
18494
|
-
|
|
18495
|
-
|
|
18496
|
-
|
|
18701
|
+
var router82 = express82.Router();
|
|
18702
|
+
router82.get("/", listPersonsRoute);
|
|
18703
|
+
router82.get("/:id", getPersonByIdRoute);
|
|
18704
|
+
router82.post("/", createPersonRoute);
|
|
18705
|
+
router82.put("/:id", updatePersonRoute);
|
|
18706
|
+
router82.delete("/:id", deletePersonRoute);
|
|
18497
18707
|
|
|
18498
18708
|
// src/data/rest-api/routes/data/plandefinition/plandefinition.ts
|
|
18499
|
-
import
|
|
18709
|
+
import express83 from "express";
|
|
18500
18710
|
|
|
18501
18711
|
// src/data/operations/data/plandefinition/plandefinition-create-operation.ts
|
|
18502
|
-
import { ulid as
|
|
18712
|
+
import { ulid as ulid82 } from "ulid";
|
|
18503
18713
|
async function createPlanDefinitionOperation(params) {
|
|
18504
18714
|
const { context, body, tableName } = params;
|
|
18505
18715
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
18506
|
-
const id = body.id ??
|
|
18716
|
+
const id = body.id ?? ulid82();
|
|
18507
18717
|
const meta = {
|
|
18508
18718
|
...body.meta ?? {},
|
|
18509
18719
|
lastUpdated: date,
|
|
@@ -18691,22 +18901,22 @@ async function updatePlanDefinitionRoute(req, res) {
|
|
|
18691
18901
|
}
|
|
18692
18902
|
|
|
18693
18903
|
// src/data/rest-api/routes/data/plandefinition/plandefinition.ts
|
|
18694
|
-
var
|
|
18695
|
-
|
|
18696
|
-
|
|
18697
|
-
|
|
18698
|
-
|
|
18699
|
-
|
|
18904
|
+
var router83 = express83.Router();
|
|
18905
|
+
router83.get("/", listPlanDefinitionsRoute);
|
|
18906
|
+
router83.get("/:id", getPlanDefinitionByIdRoute);
|
|
18907
|
+
router83.post("/", createPlanDefinitionRoute);
|
|
18908
|
+
router83.put("/:id", updatePlanDefinitionRoute);
|
|
18909
|
+
router83.delete("/:id", deletePlanDefinitionRoute);
|
|
18700
18910
|
|
|
18701
18911
|
// src/data/rest-api/routes/data/practitioner/practitioner.ts
|
|
18702
|
-
import
|
|
18912
|
+
import express84 from "express";
|
|
18703
18913
|
|
|
18704
18914
|
// src/data/operations/data/practitioner/practitioner-create-operation.ts
|
|
18705
|
-
import { ulid as
|
|
18915
|
+
import { ulid as ulid83 } from "ulid";
|
|
18706
18916
|
async function createPractitionerOperation(params) {
|
|
18707
18917
|
const { context, body, tableName } = params;
|
|
18708
18918
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
18709
|
-
const id = body.id ??
|
|
18919
|
+
const id = body.id ?? ulid83();
|
|
18710
18920
|
const meta = {
|
|
18711
18921
|
...body.meta ?? {},
|
|
18712
18922
|
lastUpdated: date,
|
|
@@ -18896,22 +19106,22 @@ async function updatePractitionerRoute(req, res) {
|
|
|
18896
19106
|
}
|
|
18897
19107
|
|
|
18898
19108
|
// src/data/rest-api/routes/data/practitioner/practitioner.ts
|
|
18899
|
-
var
|
|
18900
|
-
|
|
18901
|
-
|
|
18902
|
-
|
|
18903
|
-
|
|
18904
|
-
|
|
19109
|
+
var router84 = express84.Router();
|
|
19110
|
+
router84.get("/", listPractitionersRoute);
|
|
19111
|
+
router84.get("/:id", getPractitionerByIdRoute);
|
|
19112
|
+
router84.post("/", createPractitionerRoute);
|
|
19113
|
+
router84.put("/:id", updatePractitionerRoute);
|
|
19114
|
+
router84.delete("/:id", deletePractitionerRoute);
|
|
18905
19115
|
|
|
18906
19116
|
// src/data/rest-api/routes/data/practitionerrole/practitionerrole.ts
|
|
18907
|
-
import
|
|
19117
|
+
import express85 from "express";
|
|
18908
19118
|
|
|
18909
19119
|
// src/data/operations/data/practitionerrole/practitionerrole-create-operation.ts
|
|
18910
|
-
import { ulid as
|
|
19120
|
+
import { ulid as ulid84 } from "ulid";
|
|
18911
19121
|
async function createPractitionerRoleOperation(params) {
|
|
18912
19122
|
const { context, body, tableName } = params;
|
|
18913
19123
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
18914
|
-
const id = body.id ??
|
|
19124
|
+
const id = body.id ?? ulid84();
|
|
18915
19125
|
const meta = {
|
|
18916
19126
|
...body.meta ?? {},
|
|
18917
19127
|
lastUpdated: date,
|
|
@@ -19103,22 +19313,22 @@ async function updatePractitionerRoleRoute(req, res) {
|
|
|
19103
19313
|
}
|
|
19104
19314
|
|
|
19105
19315
|
// src/data/rest-api/routes/data/practitionerrole/practitionerrole.ts
|
|
19106
|
-
var
|
|
19107
|
-
|
|
19108
|
-
|
|
19109
|
-
|
|
19110
|
-
|
|
19111
|
-
|
|
19316
|
+
var router85 = express85.Router();
|
|
19317
|
+
router85.get("/", listPractitionerRolesRoute);
|
|
19318
|
+
router85.get("/:id", getPractitionerRoleByIdRoute);
|
|
19319
|
+
router85.post("/", createPractitionerRoleRoute);
|
|
19320
|
+
router85.put("/:id", updatePractitionerRoleRoute);
|
|
19321
|
+
router85.delete("/:id", deletePractitionerRoleRoute);
|
|
19112
19322
|
|
|
19113
19323
|
// src/data/rest-api/routes/data/procedure/procedure.ts
|
|
19114
|
-
import
|
|
19324
|
+
import express86 from "express";
|
|
19115
19325
|
|
|
19116
19326
|
// src/data/operations/data/procedure/procedure-create-operation.ts
|
|
19117
|
-
import { ulid as
|
|
19327
|
+
import { ulid as ulid85 } from "ulid";
|
|
19118
19328
|
async function createProcedureOperation(params) {
|
|
19119
19329
|
const { context, body, tableName } = params;
|
|
19120
19330
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
19121
|
-
const id = body.id ??
|
|
19331
|
+
const id = body.id ?? ulid85();
|
|
19122
19332
|
const meta = {
|
|
19123
19333
|
...body.meta ?? {},
|
|
19124
19334
|
lastUpdated: date,
|
|
@@ -19303,22 +19513,22 @@ async function updateProcedureRoute(req, res) {
|
|
|
19303
19513
|
}
|
|
19304
19514
|
|
|
19305
19515
|
// src/data/rest-api/routes/data/procedure/procedure.ts
|
|
19306
|
-
var
|
|
19307
|
-
|
|
19308
|
-
|
|
19309
|
-
|
|
19310
|
-
|
|
19311
|
-
|
|
19516
|
+
var router86 = express86.Router();
|
|
19517
|
+
router86.get("/", listProceduresRoute);
|
|
19518
|
+
router86.get("/:id", getProcedureByIdRoute);
|
|
19519
|
+
router86.post("/", createProcedureRoute);
|
|
19520
|
+
router86.put("/:id", updateProcedureRoute);
|
|
19521
|
+
router86.delete("/:id", deleteProcedureRoute);
|
|
19312
19522
|
|
|
19313
19523
|
// src/data/rest-api/routes/data/provenance/provenance.ts
|
|
19314
|
-
import
|
|
19524
|
+
import express87 from "express";
|
|
19315
19525
|
|
|
19316
19526
|
// src/data/operations/data/provenance/provenance-create-operation.ts
|
|
19317
|
-
import { ulid as
|
|
19527
|
+
import { ulid as ulid86 } from "ulid";
|
|
19318
19528
|
async function createProvenanceOperation(params) {
|
|
19319
19529
|
const { context, body, tableName } = params;
|
|
19320
19530
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
19321
|
-
const id = body.id ??
|
|
19531
|
+
const id = body.id ?? ulid86();
|
|
19322
19532
|
const meta = {
|
|
19323
19533
|
...body.meta ?? {},
|
|
19324
19534
|
lastUpdated: date,
|
|
@@ -19503,22 +19713,22 @@ async function updateProvenanceRoute(req, res) {
|
|
|
19503
19713
|
}
|
|
19504
19714
|
|
|
19505
19715
|
// src/data/rest-api/routes/data/provenance/provenance.ts
|
|
19506
|
-
var
|
|
19507
|
-
|
|
19508
|
-
|
|
19509
|
-
|
|
19510
|
-
|
|
19511
|
-
|
|
19716
|
+
var router87 = express87.Router();
|
|
19717
|
+
router87.get("/", listProvenancesRoute);
|
|
19718
|
+
router87.get("/:id", getProvenanceByIdRoute);
|
|
19719
|
+
router87.post("/", createProvenanceRoute);
|
|
19720
|
+
router87.put("/:id", updateProvenanceRoute);
|
|
19721
|
+
router87.delete("/:id", deleteProvenanceRoute);
|
|
19512
19722
|
|
|
19513
19723
|
// src/data/rest-api/routes/data/questionnaire/questionnaire.ts
|
|
19514
|
-
import
|
|
19724
|
+
import express88 from "express";
|
|
19515
19725
|
|
|
19516
19726
|
// src/data/operations/data/questionnaire/questionnaire-create-operation.ts
|
|
19517
|
-
import { ulid as
|
|
19727
|
+
import { ulid as ulid87 } from "ulid";
|
|
19518
19728
|
async function createQuestionnaireOperation(params) {
|
|
19519
19729
|
const { context, body, tableName } = params;
|
|
19520
19730
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
19521
|
-
const id = body.id ??
|
|
19731
|
+
const id = body.id ?? ulid87();
|
|
19522
19732
|
const meta = {
|
|
19523
19733
|
...body.meta ?? {},
|
|
19524
19734
|
lastUpdated: date,
|
|
@@ -19706,22 +19916,22 @@ async function updateQuestionnaireRoute(req, res) {
|
|
|
19706
19916
|
}
|
|
19707
19917
|
|
|
19708
19918
|
// src/data/rest-api/routes/data/questionnaire/questionnaire.ts
|
|
19709
|
-
var
|
|
19710
|
-
|
|
19711
|
-
|
|
19712
|
-
|
|
19713
|
-
|
|
19714
|
-
|
|
19919
|
+
var router88 = express88.Router();
|
|
19920
|
+
router88.get("/", listQuestionnairesRoute);
|
|
19921
|
+
router88.get("/:id", getQuestionnaireByIdRoute);
|
|
19922
|
+
router88.post("/", createQuestionnaireRoute);
|
|
19923
|
+
router88.put("/:id", updateQuestionnaireRoute);
|
|
19924
|
+
router88.delete("/:id", deleteQuestionnaireRoute);
|
|
19715
19925
|
|
|
19716
19926
|
// src/data/rest-api/routes/data/questionnaireresponse/questionnaireresponse.ts
|
|
19717
|
-
import
|
|
19927
|
+
import express89 from "express";
|
|
19718
19928
|
|
|
19719
19929
|
// src/data/operations/data/questionnaireresponse/questionnaireresponse-create-operation.ts
|
|
19720
|
-
import { ulid as
|
|
19930
|
+
import { ulid as ulid88 } from "ulid";
|
|
19721
19931
|
async function createQuestionnaireResponseOperation(params) {
|
|
19722
19932
|
const { context, body, tableName } = params;
|
|
19723
19933
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
19724
|
-
const id = body.id ??
|
|
19934
|
+
const id = body.id ?? ulid88();
|
|
19725
19935
|
const meta = {
|
|
19726
19936
|
...body.meta ?? {},
|
|
19727
19937
|
lastUpdated: date,
|
|
@@ -19932,22 +20142,22 @@ async function updateQuestionnaireResponseRoute(req, res) {
|
|
|
19932
20142
|
}
|
|
19933
20143
|
|
|
19934
20144
|
// src/data/rest-api/routes/data/questionnaireresponse/questionnaireresponse.ts
|
|
19935
|
-
var
|
|
19936
|
-
|
|
19937
|
-
|
|
19938
|
-
|
|
19939
|
-
|
|
19940
|
-
|
|
20145
|
+
var router89 = express89.Router();
|
|
20146
|
+
router89.get("/", listQuestionnaireResponsesRoute);
|
|
20147
|
+
router89.get("/:id", getQuestionnaireResponseByIdRoute);
|
|
20148
|
+
router89.post("/", createQuestionnaireResponseRoute);
|
|
20149
|
+
router89.put("/:id", updateQuestionnaireResponseRoute);
|
|
20150
|
+
router89.delete("/:id", deleteQuestionnaireResponseRoute);
|
|
19941
20151
|
|
|
19942
20152
|
// src/data/rest-api/routes/data/relatedperson/relatedperson.ts
|
|
19943
|
-
import
|
|
20153
|
+
import express90 from "express";
|
|
19944
20154
|
|
|
19945
20155
|
// src/data/operations/data/relatedperson/relatedperson-create-operation.ts
|
|
19946
|
-
import { ulid as
|
|
20156
|
+
import { ulid as ulid89 } from "ulid";
|
|
19947
20157
|
async function createRelatedPersonOperation(params) {
|
|
19948
20158
|
const { context, body, tableName } = params;
|
|
19949
20159
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
19950
|
-
const id = body.id ??
|
|
20160
|
+
const id = body.id ?? ulid89();
|
|
19951
20161
|
const meta = {
|
|
19952
20162
|
...body.meta ?? {},
|
|
19953
20163
|
lastUpdated: date,
|
|
@@ -20135,22 +20345,22 @@ async function updateRelatedPersonRoute(req, res) {
|
|
|
20135
20345
|
}
|
|
20136
20346
|
|
|
20137
20347
|
// src/data/rest-api/routes/data/relatedperson/relatedperson.ts
|
|
20138
|
-
var
|
|
20139
|
-
|
|
20140
|
-
|
|
20141
|
-
|
|
20142
|
-
|
|
20143
|
-
|
|
20348
|
+
var router90 = express90.Router();
|
|
20349
|
+
router90.get("/", listRelatedPersonsRoute);
|
|
20350
|
+
router90.get("/:id", getRelatedPersonByIdRoute);
|
|
20351
|
+
router90.post("/", createRelatedPersonRoute);
|
|
20352
|
+
router90.put("/:id", updateRelatedPersonRoute);
|
|
20353
|
+
router90.delete("/:id", deleteRelatedPersonRoute);
|
|
20144
20354
|
|
|
20145
20355
|
// src/data/rest-api/routes/data/requestgroup/requestgroup.ts
|
|
20146
|
-
import
|
|
20356
|
+
import express91 from "express";
|
|
20147
20357
|
|
|
20148
20358
|
// src/data/operations/data/requestgroup/requestgroup-create-operation.ts
|
|
20149
|
-
import { ulid as
|
|
20359
|
+
import { ulid as ulid90 } from "ulid";
|
|
20150
20360
|
async function createRequestGroupOperation(params) {
|
|
20151
20361
|
const { context, body, tableName } = params;
|
|
20152
20362
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
20153
|
-
const id = body.id ??
|
|
20363
|
+
const id = body.id ?? ulid90();
|
|
20154
20364
|
const meta = {
|
|
20155
20365
|
...body.meta ?? {},
|
|
20156
20366
|
lastUpdated: date,
|
|
@@ -20335,22 +20545,22 @@ async function updateRequestGroupRoute(req, res) {
|
|
|
20335
20545
|
}
|
|
20336
20546
|
|
|
20337
20547
|
// src/data/rest-api/routes/data/requestgroup/requestgroup.ts
|
|
20338
|
-
var
|
|
20339
|
-
|
|
20340
|
-
|
|
20341
|
-
|
|
20342
|
-
|
|
20343
|
-
|
|
20548
|
+
var router91 = express91.Router();
|
|
20549
|
+
router91.get("/", listRequestGroupsRoute);
|
|
20550
|
+
router91.get("/:id", getRequestGroupByIdRoute);
|
|
20551
|
+
router91.post("/", createRequestGroupRoute);
|
|
20552
|
+
router91.put("/:id", updateRequestGroupRoute);
|
|
20553
|
+
router91.delete("/:id", deleteRequestGroupRoute);
|
|
20344
20554
|
|
|
20345
20555
|
// src/data/rest-api/routes/data/researchstudy/researchstudy.ts
|
|
20346
|
-
import
|
|
20556
|
+
import express92 from "express";
|
|
20347
20557
|
|
|
20348
20558
|
// src/data/operations/data/researchstudy/researchstudy-create-operation.ts
|
|
20349
|
-
import { ulid as
|
|
20559
|
+
import { ulid as ulid91 } from "ulid";
|
|
20350
20560
|
async function createResearchStudyOperation(params) {
|
|
20351
20561
|
const { context, body, tableName } = params;
|
|
20352
20562
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
20353
|
-
const id = body.id ??
|
|
20563
|
+
const id = body.id ?? ulid91();
|
|
20354
20564
|
const meta = {
|
|
20355
20565
|
...body.meta ?? {},
|
|
20356
20566
|
lastUpdated: date,
|
|
@@ -20538,22 +20748,22 @@ async function updateResearchStudyRoute(req, res) {
|
|
|
20538
20748
|
}
|
|
20539
20749
|
|
|
20540
20750
|
// src/data/rest-api/routes/data/researchstudy/researchstudy.ts
|
|
20541
|
-
var
|
|
20542
|
-
|
|
20543
|
-
|
|
20544
|
-
|
|
20545
|
-
|
|
20546
|
-
|
|
20751
|
+
var router92 = express92.Router();
|
|
20752
|
+
router92.get("/", listResearchStudysRoute);
|
|
20753
|
+
router92.get("/:id", getResearchStudyByIdRoute);
|
|
20754
|
+
router92.post("/", createResearchStudyRoute);
|
|
20755
|
+
router92.put("/:id", updateResearchStudyRoute);
|
|
20756
|
+
router92.delete("/:id", deleteResearchStudyRoute);
|
|
20547
20757
|
|
|
20548
20758
|
// src/data/rest-api/routes/data/researchsubject/researchsubject.ts
|
|
20549
|
-
import
|
|
20759
|
+
import express93 from "express";
|
|
20550
20760
|
|
|
20551
20761
|
// src/data/operations/data/researchsubject/researchsubject-create-operation.ts
|
|
20552
|
-
import { ulid as
|
|
20762
|
+
import { ulid as ulid92 } from "ulid";
|
|
20553
20763
|
async function createResearchSubjectOperation(params) {
|
|
20554
20764
|
const { context, body, tableName } = params;
|
|
20555
20765
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
20556
|
-
const id = body.id ??
|
|
20766
|
+
const id = body.id ?? ulid92();
|
|
20557
20767
|
const meta = {
|
|
20558
20768
|
...body.meta ?? {},
|
|
20559
20769
|
lastUpdated: date,
|
|
@@ -20745,22 +20955,22 @@ async function updateResearchSubjectRoute(req, res) {
|
|
|
20745
20955
|
}
|
|
20746
20956
|
|
|
20747
20957
|
// src/data/rest-api/routes/data/researchsubject/researchsubject.ts
|
|
20748
|
-
var
|
|
20749
|
-
|
|
20750
|
-
|
|
20751
|
-
|
|
20752
|
-
|
|
20753
|
-
|
|
20958
|
+
var router93 = express93.Router();
|
|
20959
|
+
router93.get("/", listResearchSubjectsRoute);
|
|
20960
|
+
router93.get("/:id", getResearchSubjectByIdRoute);
|
|
20961
|
+
router93.post("/", createResearchSubjectRoute);
|
|
20962
|
+
router93.put("/:id", updateResearchSubjectRoute);
|
|
20963
|
+
router93.delete("/:id", deleteResearchSubjectRoute);
|
|
20754
20964
|
|
|
20755
20965
|
// src/data/rest-api/routes/data/riskassessment/riskassessment.ts
|
|
20756
|
-
import
|
|
20966
|
+
import express94 from "express";
|
|
20757
20967
|
|
|
20758
20968
|
// src/data/operations/data/riskassessment/riskassessment-create-operation.ts
|
|
20759
|
-
import { ulid as
|
|
20969
|
+
import { ulid as ulid93 } from "ulid";
|
|
20760
20970
|
async function createRiskAssessmentOperation(params) {
|
|
20761
20971
|
const { context, body, tableName } = params;
|
|
20762
20972
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
20763
|
-
const id = body.id ??
|
|
20973
|
+
const id = body.id ?? ulid93();
|
|
20764
20974
|
const meta = {
|
|
20765
20975
|
...body.meta ?? {},
|
|
20766
20976
|
lastUpdated: date,
|
|
@@ -20948,22 +21158,22 @@ async function updateRiskAssessmentRoute(req, res) {
|
|
|
20948
21158
|
}
|
|
20949
21159
|
|
|
20950
21160
|
// src/data/rest-api/routes/data/riskassessment/riskassessment.ts
|
|
20951
|
-
var
|
|
20952
|
-
|
|
20953
|
-
|
|
20954
|
-
|
|
20955
|
-
|
|
20956
|
-
|
|
21161
|
+
var router94 = express94.Router();
|
|
21162
|
+
router94.get("/", listRiskAssessmentsRoute);
|
|
21163
|
+
router94.get("/:id", getRiskAssessmentByIdRoute);
|
|
21164
|
+
router94.post("/", createRiskAssessmentRoute);
|
|
21165
|
+
router94.put("/:id", updateRiskAssessmentRoute);
|
|
21166
|
+
router94.delete("/:id", deleteRiskAssessmentRoute);
|
|
20957
21167
|
|
|
20958
21168
|
// src/data/rest-api/routes/data/riskevidencesynthesis/riskevidencesynthesis.ts
|
|
20959
|
-
import
|
|
21169
|
+
import express95 from "express";
|
|
20960
21170
|
|
|
20961
21171
|
// src/data/operations/data/riskevidencesynthesis/riskevidencesynthesis-create-operation.ts
|
|
20962
|
-
import { ulid as
|
|
21172
|
+
import { ulid as ulid94 } from "ulid";
|
|
20963
21173
|
async function createRiskEvidenceSynthesisOperation(params) {
|
|
20964
21174
|
const { context, body, tableName } = params;
|
|
20965
21175
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
20966
|
-
const id = body.id ??
|
|
21176
|
+
const id = body.id ?? ulid94();
|
|
20967
21177
|
const meta = {
|
|
20968
21178
|
...body.meta ?? {},
|
|
20969
21179
|
lastUpdated: date,
|
|
@@ -21174,22 +21384,22 @@ async function updateRiskEvidenceSynthesisRoute(req, res) {
|
|
|
21174
21384
|
}
|
|
21175
21385
|
|
|
21176
21386
|
// src/data/rest-api/routes/data/riskevidencesynthesis/riskevidencesynthesis.ts
|
|
21177
|
-
var
|
|
21178
|
-
|
|
21179
|
-
|
|
21180
|
-
|
|
21181
|
-
|
|
21182
|
-
|
|
21387
|
+
var router95 = express95.Router();
|
|
21388
|
+
router95.get("/", listRiskEvidenceSynthesissRoute);
|
|
21389
|
+
router95.get("/:id", getRiskEvidenceSynthesisByIdRoute);
|
|
21390
|
+
router95.post("/", createRiskEvidenceSynthesisRoute);
|
|
21391
|
+
router95.put("/:id", updateRiskEvidenceSynthesisRoute);
|
|
21392
|
+
router95.delete("/:id", deleteRiskEvidenceSynthesisRoute);
|
|
21183
21393
|
|
|
21184
21394
|
// src/data/rest-api/routes/data/schedule/schedule.ts
|
|
21185
|
-
import
|
|
21395
|
+
import express96 from "express";
|
|
21186
21396
|
|
|
21187
21397
|
// src/data/operations/data/schedule/schedule-create-operation.ts
|
|
21188
|
-
import { ulid as
|
|
21398
|
+
import { ulid as ulid95 } from "ulid";
|
|
21189
21399
|
async function createScheduleOperation(params) {
|
|
21190
21400
|
const { context, body, tableName } = params;
|
|
21191
21401
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
21192
|
-
const id = body.id ??
|
|
21402
|
+
const id = body.id ?? ulid95();
|
|
21193
21403
|
const meta = {
|
|
21194
21404
|
...body.meta ?? {},
|
|
21195
21405
|
lastUpdated: date,
|
|
@@ -21374,22 +21584,22 @@ async function updateScheduleRoute(req, res) {
|
|
|
21374
21584
|
}
|
|
21375
21585
|
|
|
21376
21586
|
// src/data/rest-api/routes/data/schedule/schedule.ts
|
|
21377
|
-
var
|
|
21378
|
-
|
|
21379
|
-
|
|
21380
|
-
|
|
21381
|
-
|
|
21382
|
-
|
|
21587
|
+
var router96 = express96.Router();
|
|
21588
|
+
router96.get("/", listSchedulesRoute);
|
|
21589
|
+
router96.get("/:id", getScheduleByIdRoute);
|
|
21590
|
+
router96.post("/", createScheduleRoute);
|
|
21591
|
+
router96.put("/:id", updateScheduleRoute);
|
|
21592
|
+
router96.delete("/:id", deleteScheduleRoute);
|
|
21383
21593
|
|
|
21384
21594
|
// src/data/rest-api/routes/data/servicerequest/servicerequest.ts
|
|
21385
|
-
import
|
|
21595
|
+
import express97 from "express";
|
|
21386
21596
|
|
|
21387
21597
|
// src/data/operations/data/servicerequest/servicerequest-create-operation.ts
|
|
21388
|
-
import { ulid as
|
|
21598
|
+
import { ulid as ulid96 } from "ulid";
|
|
21389
21599
|
async function createServiceRequestOperation(params) {
|
|
21390
21600
|
const { context, body, tableName } = params;
|
|
21391
21601
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
21392
|
-
const id = body.id ??
|
|
21602
|
+
const id = body.id ?? ulid96();
|
|
21393
21603
|
const meta = {
|
|
21394
21604
|
...body.meta ?? {},
|
|
21395
21605
|
lastUpdated: date,
|
|
@@ -21577,22 +21787,22 @@ async function updateServiceRequestRoute(req, res) {
|
|
|
21577
21787
|
}
|
|
21578
21788
|
|
|
21579
21789
|
// src/data/rest-api/routes/data/servicerequest/servicerequest.ts
|
|
21580
|
-
var
|
|
21581
|
-
|
|
21582
|
-
|
|
21583
|
-
|
|
21584
|
-
|
|
21585
|
-
|
|
21790
|
+
var router97 = express97.Router();
|
|
21791
|
+
router97.get("/", listServiceRequestsRoute);
|
|
21792
|
+
router97.get("/:id", getServiceRequestByIdRoute);
|
|
21793
|
+
router97.post("/", createServiceRequestRoute);
|
|
21794
|
+
router97.put("/:id", updateServiceRequestRoute);
|
|
21795
|
+
router97.delete("/:id", deleteServiceRequestRoute);
|
|
21586
21796
|
|
|
21587
21797
|
// src/data/rest-api/routes/data/slot/slot.ts
|
|
21588
|
-
import
|
|
21798
|
+
import express98 from "express";
|
|
21589
21799
|
|
|
21590
21800
|
// src/data/operations/data/slot/slot-create-operation.ts
|
|
21591
|
-
import { ulid as
|
|
21801
|
+
import { ulid as ulid97 } from "ulid";
|
|
21592
21802
|
async function createSlotOperation(params) {
|
|
21593
21803
|
const { context, body, tableName } = params;
|
|
21594
21804
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
21595
|
-
const id = body.id ??
|
|
21805
|
+
const id = body.id ?? ulid97();
|
|
21596
21806
|
const meta = {
|
|
21597
21807
|
...body.meta ?? {},
|
|
21598
21808
|
lastUpdated: date,
|
|
@@ -21777,22 +21987,22 @@ async function updateSlotRoute(req, res) {
|
|
|
21777
21987
|
}
|
|
21778
21988
|
|
|
21779
21989
|
// src/data/rest-api/routes/data/slot/slot.ts
|
|
21780
|
-
var
|
|
21781
|
-
|
|
21782
|
-
|
|
21783
|
-
|
|
21784
|
-
|
|
21785
|
-
|
|
21990
|
+
var router98 = express98.Router();
|
|
21991
|
+
router98.get("/", listSlotsRoute);
|
|
21992
|
+
router98.get("/:id", getSlotByIdRoute);
|
|
21993
|
+
router98.post("/", createSlotRoute);
|
|
21994
|
+
router98.put("/:id", updateSlotRoute);
|
|
21995
|
+
router98.delete("/:id", deleteSlotRoute);
|
|
21786
21996
|
|
|
21787
21997
|
// src/data/rest-api/routes/data/specimen/specimen.ts
|
|
21788
|
-
import
|
|
21998
|
+
import express99 from "express";
|
|
21789
21999
|
|
|
21790
22000
|
// src/data/operations/data/specimen/specimen-create-operation.ts
|
|
21791
|
-
import { ulid as
|
|
22001
|
+
import { ulid as ulid98 } from "ulid";
|
|
21792
22002
|
async function createSpecimenOperation(params) {
|
|
21793
22003
|
const { context, body, tableName } = params;
|
|
21794
22004
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
21795
|
-
const id = body.id ??
|
|
22005
|
+
const id = body.id ?? ulid98();
|
|
21796
22006
|
const meta = {
|
|
21797
22007
|
...body.meta ?? {},
|
|
21798
22008
|
lastUpdated: date,
|
|
@@ -21977,22 +22187,22 @@ async function updateSpecimenRoute(req, res) {
|
|
|
21977
22187
|
}
|
|
21978
22188
|
|
|
21979
22189
|
// src/data/rest-api/routes/data/specimen/specimen.ts
|
|
21980
|
-
var
|
|
21981
|
-
|
|
21982
|
-
|
|
21983
|
-
|
|
21984
|
-
|
|
21985
|
-
|
|
22190
|
+
var router99 = express99.Router();
|
|
22191
|
+
router99.get("/", listSpecimensRoute);
|
|
22192
|
+
router99.get("/:id", getSpecimenByIdRoute);
|
|
22193
|
+
router99.post("/", createSpecimenRoute);
|
|
22194
|
+
router99.put("/:id", updateSpecimenRoute);
|
|
22195
|
+
router99.delete("/:id", deleteSpecimenRoute);
|
|
21986
22196
|
|
|
21987
22197
|
// src/data/rest-api/routes/data/subscription/subscription.ts
|
|
21988
|
-
import
|
|
22198
|
+
import express100 from "express";
|
|
21989
22199
|
|
|
21990
22200
|
// src/data/operations/data/subscription/subscription-create-operation.ts
|
|
21991
|
-
import { ulid as
|
|
22201
|
+
import { ulid as ulid99 } from "ulid";
|
|
21992
22202
|
async function createSubscriptionOperation(params) {
|
|
21993
22203
|
const { context, body, tableName } = params;
|
|
21994
22204
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
21995
|
-
const id = body.id ??
|
|
22205
|
+
const id = body.id ?? ulid99();
|
|
21996
22206
|
const meta = {
|
|
21997
22207
|
...body.meta ?? {},
|
|
21998
22208
|
lastUpdated: date,
|
|
@@ -22177,22 +22387,22 @@ async function updateSubscriptionRoute(req, res) {
|
|
|
22177
22387
|
}
|
|
22178
22388
|
|
|
22179
22389
|
// src/data/rest-api/routes/data/subscription/subscription.ts
|
|
22180
|
-
var
|
|
22181
|
-
|
|
22182
|
-
|
|
22183
|
-
|
|
22184
|
-
|
|
22185
|
-
|
|
22390
|
+
var router100 = express100.Router();
|
|
22391
|
+
router100.get("/", listSubscriptionsRoute);
|
|
22392
|
+
router100.get("/:id", getSubscriptionByIdRoute);
|
|
22393
|
+
router100.post("/", createSubscriptionRoute);
|
|
22394
|
+
router100.put("/:id", updateSubscriptionRoute);
|
|
22395
|
+
router100.delete("/:id", deleteSubscriptionRoute);
|
|
22186
22396
|
|
|
22187
22397
|
// src/data/rest-api/routes/data/substance/substance.ts
|
|
22188
|
-
import
|
|
22398
|
+
import express101 from "express";
|
|
22189
22399
|
|
|
22190
22400
|
// src/data/operations/data/substance/substance-create-operation.ts
|
|
22191
|
-
import { ulid as
|
|
22401
|
+
import { ulid as ulid100 } from "ulid";
|
|
22192
22402
|
async function createSubstanceOperation(params) {
|
|
22193
22403
|
const { context, body, tableName } = params;
|
|
22194
22404
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
22195
|
-
const id = body.id ??
|
|
22405
|
+
const id = body.id ?? ulid100();
|
|
22196
22406
|
const meta = {
|
|
22197
22407
|
...body.meta ?? {},
|
|
22198
22408
|
lastUpdated: date,
|
|
@@ -22377,22 +22587,22 @@ async function updateSubstanceRoute(req, res) {
|
|
|
22377
22587
|
}
|
|
22378
22588
|
|
|
22379
22589
|
// src/data/rest-api/routes/data/substance/substance.ts
|
|
22380
|
-
var
|
|
22381
|
-
|
|
22382
|
-
|
|
22383
|
-
|
|
22384
|
-
|
|
22385
|
-
|
|
22590
|
+
var router101 = express101.Router();
|
|
22591
|
+
router101.get("/", listSubstancesRoute);
|
|
22592
|
+
router101.get("/:id", getSubstanceByIdRoute);
|
|
22593
|
+
router101.post("/", createSubstanceRoute);
|
|
22594
|
+
router101.put("/:id", updateSubstanceRoute);
|
|
22595
|
+
router101.delete("/:id", deleteSubstanceRoute);
|
|
22386
22596
|
|
|
22387
22597
|
// src/data/rest-api/routes/data/supplydelivery/supplydelivery.ts
|
|
22388
|
-
import
|
|
22598
|
+
import express102 from "express";
|
|
22389
22599
|
|
|
22390
22600
|
// src/data/operations/data/supplydelivery/supplydelivery-create-operation.ts
|
|
22391
|
-
import { ulid as
|
|
22601
|
+
import { ulid as ulid101 } from "ulid";
|
|
22392
22602
|
async function createSupplyDeliveryOperation(params) {
|
|
22393
22603
|
const { context, body, tableName } = params;
|
|
22394
22604
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
22395
|
-
const id = body.id ??
|
|
22605
|
+
const id = body.id ?? ulid101();
|
|
22396
22606
|
const meta = {
|
|
22397
22607
|
...body.meta ?? {},
|
|
22398
22608
|
lastUpdated: date,
|
|
@@ -22580,22 +22790,22 @@ async function updateSupplyDeliveryRoute(req, res) {
|
|
|
22580
22790
|
}
|
|
22581
22791
|
|
|
22582
22792
|
// src/data/rest-api/routes/data/supplydelivery/supplydelivery.ts
|
|
22583
|
-
var
|
|
22584
|
-
|
|
22585
|
-
|
|
22586
|
-
|
|
22587
|
-
|
|
22588
|
-
|
|
22793
|
+
var router102 = express102.Router();
|
|
22794
|
+
router102.get("/", listSupplyDeliverysRoute);
|
|
22795
|
+
router102.get("/:id", getSupplyDeliveryByIdRoute);
|
|
22796
|
+
router102.post("/", createSupplyDeliveryRoute);
|
|
22797
|
+
router102.put("/:id", updateSupplyDeliveryRoute);
|
|
22798
|
+
router102.delete("/:id", deleteSupplyDeliveryRoute);
|
|
22589
22799
|
|
|
22590
22800
|
// src/data/rest-api/routes/data/supplyrequest/supplyrequest.ts
|
|
22591
|
-
import
|
|
22801
|
+
import express103 from "express";
|
|
22592
22802
|
|
|
22593
22803
|
// src/data/operations/data/supplyrequest/supplyrequest-create-operation.ts
|
|
22594
|
-
import { ulid as
|
|
22804
|
+
import { ulid as ulid102 } from "ulid";
|
|
22595
22805
|
async function createSupplyRequestOperation(params) {
|
|
22596
22806
|
const { context, body, tableName } = params;
|
|
22597
22807
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
22598
|
-
const id = body.id ??
|
|
22808
|
+
const id = body.id ?? ulid102();
|
|
22599
22809
|
const meta = {
|
|
22600
22810
|
...body.meta ?? {},
|
|
22601
22811
|
lastUpdated: date,
|
|
@@ -22783,22 +22993,22 @@ async function updateSupplyRequestRoute(req, res) {
|
|
|
22783
22993
|
}
|
|
22784
22994
|
|
|
22785
22995
|
// src/data/rest-api/routes/data/supplyrequest/supplyrequest.ts
|
|
22786
|
-
var
|
|
22787
|
-
|
|
22788
|
-
|
|
22789
|
-
|
|
22790
|
-
|
|
22791
|
-
|
|
22996
|
+
var router103 = express103.Router();
|
|
22997
|
+
router103.get("/", listSupplyRequestsRoute);
|
|
22998
|
+
router103.get("/:id", getSupplyRequestByIdRoute);
|
|
22999
|
+
router103.post("/", createSupplyRequestRoute);
|
|
23000
|
+
router103.put("/:id", updateSupplyRequestRoute);
|
|
23001
|
+
router103.delete("/:id", deleteSupplyRequestRoute);
|
|
22792
23002
|
|
|
22793
23003
|
// src/data/rest-api/routes/data/task/task.ts
|
|
22794
|
-
import
|
|
23004
|
+
import express104 from "express";
|
|
22795
23005
|
|
|
22796
23006
|
// src/data/operations/data/task/task-create-operation.ts
|
|
22797
|
-
import { ulid as
|
|
23007
|
+
import { ulid as ulid103 } from "ulid";
|
|
22798
23008
|
async function createTaskOperation(params) {
|
|
22799
23009
|
const { context, body, tableName } = params;
|
|
22800
23010
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
22801
|
-
const id = body.id ??
|
|
23011
|
+
const id = body.id ?? ulid103();
|
|
22802
23012
|
const meta = {
|
|
22803
23013
|
...body.meta ?? {},
|
|
22804
23014
|
lastUpdated: date,
|
|
@@ -22983,22 +23193,22 @@ async function updateTaskRoute(req, res) {
|
|
|
22983
23193
|
}
|
|
22984
23194
|
|
|
22985
23195
|
// src/data/rest-api/routes/data/task/task.ts
|
|
22986
|
-
var
|
|
22987
|
-
|
|
22988
|
-
|
|
22989
|
-
|
|
22990
|
-
|
|
22991
|
-
|
|
23196
|
+
var router104 = express104.Router();
|
|
23197
|
+
router104.get("/", listTasksRoute);
|
|
23198
|
+
router104.get("/:id", getTaskByIdRoute);
|
|
23199
|
+
router104.post("/", createTaskRoute);
|
|
23200
|
+
router104.put("/:id", updateTaskRoute);
|
|
23201
|
+
router104.delete("/:id", deleteTaskRoute);
|
|
22992
23202
|
|
|
22993
23203
|
// src/data/rest-api/routes/data/verificationresult/verificationresult.ts
|
|
22994
|
-
import
|
|
23204
|
+
import express105 from "express";
|
|
22995
23205
|
|
|
22996
23206
|
// src/data/operations/data/verificationresult/verificationresult-create-operation.ts
|
|
22997
|
-
import { ulid as
|
|
23207
|
+
import { ulid as ulid104 } from "ulid";
|
|
22998
23208
|
async function createVerificationResultOperation(params) {
|
|
22999
23209
|
const { context, body, tableName } = params;
|
|
23000
23210
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
23001
|
-
const id = body.id ??
|
|
23211
|
+
const id = body.id ?? ulid104();
|
|
23002
23212
|
const meta = {
|
|
23003
23213
|
...body.meta ?? {},
|
|
23004
23214
|
lastUpdated: date,
|
|
@@ -23197,22 +23407,22 @@ async function updateVerificationResultRoute(req, res) {
|
|
|
23197
23407
|
}
|
|
23198
23408
|
|
|
23199
23409
|
// src/data/rest-api/routes/data/verificationresult/verificationresult.ts
|
|
23200
|
-
var
|
|
23201
|
-
|
|
23202
|
-
|
|
23203
|
-
|
|
23204
|
-
|
|
23205
|
-
|
|
23410
|
+
var router105 = express105.Router();
|
|
23411
|
+
router105.get("/", listVerificationResultsRoute);
|
|
23412
|
+
router105.get("/:id", getVerificationResultByIdRoute);
|
|
23413
|
+
router105.post("/", createVerificationResultRoute);
|
|
23414
|
+
router105.put("/:id", updateVerificationResultRoute);
|
|
23415
|
+
router105.delete("/:id", deleteVerificationResultRoute);
|
|
23206
23416
|
|
|
23207
23417
|
// src/data/rest-api/routes/data/visionprescription/visionprescription.ts
|
|
23208
|
-
import
|
|
23418
|
+
import express106 from "express";
|
|
23209
23419
|
|
|
23210
23420
|
// src/data/operations/data/visionprescription/visionprescription-create-operation.ts
|
|
23211
|
-
import { ulid as
|
|
23421
|
+
import { ulid as ulid105 } from "ulid";
|
|
23212
23422
|
async function createVisionPrescriptionOperation(params) {
|
|
23213
23423
|
const { context, body, tableName } = params;
|
|
23214
23424
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
23215
|
-
const id = body.id ??
|
|
23425
|
+
const id = body.id ?? ulid105();
|
|
23216
23426
|
const meta = {
|
|
23217
23427
|
...body.meta ?? {},
|
|
23218
23428
|
lastUpdated: date,
|
|
@@ -23411,19 +23621,19 @@ async function updateVisionPrescriptionRoute(req, res) {
|
|
|
23411
23621
|
}
|
|
23412
23622
|
|
|
23413
23623
|
// src/data/rest-api/routes/data/visionprescription/visionprescription.ts
|
|
23414
|
-
var
|
|
23415
|
-
|
|
23416
|
-
|
|
23417
|
-
|
|
23418
|
-
|
|
23419
|
-
|
|
23624
|
+
var router106 = express106.Router();
|
|
23625
|
+
router106.get("/", listVisionPrescriptionsRoute);
|
|
23626
|
+
router106.get("/:id", getVisionPrescriptionByIdRoute);
|
|
23627
|
+
router106.post("/", createVisionPrescriptionRoute);
|
|
23628
|
+
router106.put("/:id", updateVisionPrescriptionRoute);
|
|
23629
|
+
router106.delete("/:id", deleteVisionPrescriptionRoute);
|
|
23420
23630
|
|
|
23421
23631
|
// src/data/rest-api/rest-api.ts
|
|
23422
|
-
var app =
|
|
23632
|
+
var app = express107();
|
|
23423
23633
|
app.set("view engine", "ejs");
|
|
23424
23634
|
app.set("views", path.join(__dirname, "views"));
|
|
23425
|
-
app.use(
|
|
23426
|
-
app.use(
|
|
23635
|
+
app.use(express107.json());
|
|
23636
|
+
app.use(express107.urlencoded({ extended: true }));
|
|
23427
23637
|
app.use(normalizeJsonBodyMiddleware);
|
|
23428
23638
|
app.get("/", (_req, res) => {
|
|
23429
23639
|
return res.status(200).json({ message: "POC App is running" });
|
|
@@ -23455,6 +23665,7 @@ app.use(
|
|
|
23455
23665
|
"/Configuration",
|
|
23456
23666
|
"/Consent",
|
|
23457
23667
|
"/Contract",
|
|
23668
|
+
"/Coverage",
|
|
23458
23669
|
"/CoverageEligibilityRequest",
|
|
23459
23670
|
"/CoverageEligibilityResponse",
|
|
23460
23671
|
"/DetectedIssue",
|
|
@@ -23562,86 +23773,87 @@ app.use("/Composition", router22);
|
|
|
23562
23773
|
app.use("/Condition", router23);
|
|
23563
23774
|
app.use("/Consent", router24);
|
|
23564
23775
|
app.use("/Contract", router25);
|
|
23565
|
-
app.use("/
|
|
23566
|
-
app.use("/
|
|
23567
|
-
app.use("/
|
|
23568
|
-
app.use("/
|
|
23569
|
-
app.use("/
|
|
23570
|
-
app.use("/
|
|
23571
|
-
app.use("/
|
|
23572
|
-
app.use("/
|
|
23573
|
-
app.use("/
|
|
23574
|
-
app.use("/
|
|
23575
|
-
app.use("/
|
|
23576
|
-
app.use("/
|
|
23577
|
-
app.use("/
|
|
23578
|
-
app.use("/
|
|
23579
|
-
app.use("/
|
|
23580
|
-
app.use("/
|
|
23581
|
-
app.use("/
|
|
23582
|
-
app.use("/
|
|
23583
|
-
app.use("/
|
|
23584
|
-
app.use("/
|
|
23585
|
-
app.use("/
|
|
23586
|
-
app.use("/
|
|
23587
|
-
app.use("/
|
|
23588
|
-
app.use("/
|
|
23589
|
-
app.use("/
|
|
23590
|
-
app.use("/
|
|
23591
|
-
app.use("/
|
|
23592
|
-
app.use("/
|
|
23593
|
-
app.use("/
|
|
23594
|
-
app.use("/
|
|
23595
|
-
app.use("/
|
|
23596
|
-
app.use("/
|
|
23597
|
-
app.use("/
|
|
23598
|
-
app.use("/
|
|
23599
|
-
app.use("/
|
|
23600
|
-
app.use("/
|
|
23601
|
-
app.use("/
|
|
23602
|
-
app.use("/
|
|
23603
|
-
app.use("/
|
|
23604
|
-
app.use("/
|
|
23605
|
-
app.use("/
|
|
23606
|
-
app.use("/
|
|
23607
|
-
app.use("/
|
|
23608
|
-
app.use("/
|
|
23609
|
-
app.use("/
|
|
23610
|
-
app.use("/
|
|
23611
|
-
app.use("/
|
|
23612
|
-
app.use("/
|
|
23613
|
-
app.use("/
|
|
23614
|
-
app.use("/
|
|
23615
|
-
app.use("/
|
|
23616
|
-
app.use("/
|
|
23617
|
-
app.use("/
|
|
23618
|
-
app.use("/
|
|
23619
|
-
app.use("/
|
|
23620
|
-
app.use("/
|
|
23621
|
-
app.use("/
|
|
23622
|
-
app.use("/
|
|
23623
|
-
app.use("/
|
|
23624
|
-
app.use("/
|
|
23625
|
-
app.use("/
|
|
23626
|
-
app.use("/
|
|
23627
|
-
app.use("/
|
|
23628
|
-
app.use("/
|
|
23629
|
-
app.use("/
|
|
23630
|
-
app.use("/
|
|
23631
|
-
app.use("/
|
|
23632
|
-
app.use("/
|
|
23633
|
-
app.use("/
|
|
23634
|
-
app.use("/
|
|
23635
|
-
app.use("/
|
|
23636
|
-
app.use("/
|
|
23637
|
-
app.use("/
|
|
23638
|
-
app.use("/
|
|
23639
|
-
app.use("/
|
|
23640
|
-
app.use("/
|
|
23641
|
-
app.use("/
|
|
23642
|
-
app.use("/
|
|
23643
|
-
app.use("/
|
|
23644
|
-
app.use("/
|
|
23776
|
+
app.use("/Coverage", router26);
|
|
23777
|
+
app.use("/CoverageEligibilityRequest", router27);
|
|
23778
|
+
app.use("/CoverageEligibilityResponse", router28);
|
|
23779
|
+
app.use("/DetectedIssue", router29);
|
|
23780
|
+
app.use("/Device", router30);
|
|
23781
|
+
app.use("/DeviceDefinition", router31);
|
|
23782
|
+
app.use("/DeviceMetric", router32);
|
|
23783
|
+
app.use("/DeviceRequest", router33);
|
|
23784
|
+
app.use("/DeviceUseStatement", router34);
|
|
23785
|
+
app.use("/DiagnosticReport", router35);
|
|
23786
|
+
app.use("/DocumentManifest", router36);
|
|
23787
|
+
app.use("/DocumentReference", router37);
|
|
23788
|
+
app.use("/EffectEvidenceSynthesis", router38);
|
|
23789
|
+
app.use("/Encounter", router39);
|
|
23790
|
+
app.use("/Endpoint", router40);
|
|
23791
|
+
app.use("/EnrollmentRequest", router41);
|
|
23792
|
+
app.use("/EnrollmentResponse", router42);
|
|
23793
|
+
app.use("/EpisodeOfCare", router43);
|
|
23794
|
+
app.use("/EventDefinition", router44);
|
|
23795
|
+
app.use("/Evidence", router45);
|
|
23796
|
+
app.use("/EvidenceVariable", router46);
|
|
23797
|
+
app.use("/ExplanationOfBenefit", router47);
|
|
23798
|
+
app.use("/FamilyMemberHistory", router48);
|
|
23799
|
+
app.use("/Flag", router49);
|
|
23800
|
+
app.use("/Goal", router50);
|
|
23801
|
+
app.use("/Group", router51);
|
|
23802
|
+
app.use("/GuidanceResponse", router52);
|
|
23803
|
+
app.use("/HealthcareService", router53);
|
|
23804
|
+
app.use("/ImagingStudy", router54);
|
|
23805
|
+
app.use("/Immunization", router55);
|
|
23806
|
+
app.use("/ImmunizationEvaluation", router56);
|
|
23807
|
+
app.use("/ImmunizationRecommendation", router57);
|
|
23808
|
+
app.use("/InsurancePlan", router58);
|
|
23809
|
+
app.use("/Invoice", router59);
|
|
23810
|
+
app.use("/Library", router60);
|
|
23811
|
+
app.use("/Linkage", router61);
|
|
23812
|
+
app.use("/List", router62);
|
|
23813
|
+
app.use("/Location", router63);
|
|
23814
|
+
app.use("/Measure", router64);
|
|
23815
|
+
app.use("/MeasureReport", router65);
|
|
23816
|
+
app.use("/Media", router66);
|
|
23817
|
+
app.use("/Medication", router67);
|
|
23818
|
+
app.use("/MedicationAdministration", router68);
|
|
23819
|
+
app.use("/MedicationDispense", router69);
|
|
23820
|
+
app.use("/MedicationKnowledge", router70);
|
|
23821
|
+
app.use("/MedicationRequest", router71);
|
|
23822
|
+
app.use("/MedicationStatement", router72);
|
|
23823
|
+
app.use("/MessageHeader", router73);
|
|
23824
|
+
app.use("/MolecularSequence", router74);
|
|
23825
|
+
app.use("/NutritionOrder", router75);
|
|
23826
|
+
app.use("/Observation", router76);
|
|
23827
|
+
app.use("/Organization", router77);
|
|
23828
|
+
app.use("/OrganizationAffiliation", router78);
|
|
23829
|
+
app.use("/Patient", router79);
|
|
23830
|
+
app.use("/PaymentNotice", router80);
|
|
23831
|
+
app.use("/PaymentReconciliation", router81);
|
|
23832
|
+
app.use("/Person", router82);
|
|
23833
|
+
app.use("/PlanDefinition", router83);
|
|
23834
|
+
app.use("/Practitioner", router84);
|
|
23835
|
+
app.use("/PractitionerRole", router85);
|
|
23836
|
+
app.use("/Procedure", router86);
|
|
23837
|
+
app.use("/Provenance", router87);
|
|
23838
|
+
app.use("/Questionnaire", router88);
|
|
23839
|
+
app.use("/QuestionnaireResponse", router89);
|
|
23840
|
+
app.use("/RelatedPerson", router90);
|
|
23841
|
+
app.use("/RequestGroup", router91);
|
|
23842
|
+
app.use("/ResearchStudy", router92);
|
|
23843
|
+
app.use("/ResearchSubject", router93);
|
|
23844
|
+
app.use("/RiskAssessment", router94);
|
|
23845
|
+
app.use("/RiskEvidenceSynthesis", router95);
|
|
23846
|
+
app.use("/Schedule", router96);
|
|
23847
|
+
app.use("/ServiceRequest", router97);
|
|
23848
|
+
app.use("/Slot", router98);
|
|
23849
|
+
app.use("/Specimen", router99);
|
|
23850
|
+
app.use("/Subscription", router100);
|
|
23851
|
+
app.use("/Substance", router101);
|
|
23852
|
+
app.use("/SupplyDelivery", router102);
|
|
23853
|
+
app.use("/SupplyRequest", router103);
|
|
23854
|
+
app.use("/Task", router104);
|
|
23855
|
+
app.use("/VerificationResult", router105);
|
|
23856
|
+
app.use("/VisionPrescription", router106);
|
|
23645
23857
|
app.use("/Configuration", router);
|
|
23646
23858
|
|
|
23647
23859
|
// src/data/lambda/rest-api-lambda.handler.ts
|