@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.
|
@@ -37,7 +37,7 @@ var import_serverless_express2 = __toESM(require("@codegenie/serverless-express"
|
|
|
37
37
|
|
|
38
38
|
// src/data/rest-api/rest-api.ts
|
|
39
39
|
var import_node_path2 = __toESM(require("path"));
|
|
40
|
-
var
|
|
40
|
+
var import_express107 = __toESM(require("express"));
|
|
41
41
|
|
|
42
42
|
// src/data/middleware/normalize-json-body.ts
|
|
43
43
|
function normalizeJsonBodyMiddleware(req, _res, next) {
|
|
@@ -379,6 +379,7 @@ var BASE_PATH = {
|
|
|
379
379
|
CONFIGURATION: "/Configuration",
|
|
380
380
|
CONSENT: "/Consent",
|
|
381
381
|
CONTRACT: "/Contract",
|
|
382
|
+
COVERAGE: "/Coverage",
|
|
382
383
|
COVERAGEELIGIBILITYREQUEST: "/CoverageEligibilityRequest",
|
|
383
384
|
COVERAGEELIGIBILITYRESPONSE: "/CoverageEligibilityResponse",
|
|
384
385
|
DETECTEDISSUE: "/DetectedIssue",
|
|
@@ -6756,12 +6757,12 @@ router25.post("/", createContractRoute);
|
|
|
6756
6757
|
router25.put("/:id", updateContractRoute);
|
|
6757
6758
|
router25.delete("/:id", deleteContractRoute);
|
|
6758
6759
|
|
|
6759
|
-
// src/data/rest-api/routes/data/
|
|
6760
|
+
// src/data/rest-api/routes/data/coverage/coverage.ts
|
|
6760
6761
|
var import_express26 = __toESM(require("express"));
|
|
6761
6762
|
|
|
6762
|
-
// src/data/operations/data/
|
|
6763
|
+
// src/data/operations/data/coverage/coverage-create-operation.ts
|
|
6763
6764
|
var import_ulid25 = require("ulid");
|
|
6764
|
-
async function
|
|
6765
|
+
async function createCoverageOperation(params) {
|
|
6765
6766
|
const { context, body, tableName } = params;
|
|
6766
6767
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
6767
6768
|
const id = body.id ?? (0, import_ulid25.ulid)();
|
|
@@ -6770,6 +6771,215 @@ async function createCoverageEligibilityRequestOperation(params) {
|
|
|
6770
6771
|
lastUpdated: date,
|
|
6771
6772
|
versionId: "1"
|
|
6772
6773
|
};
|
|
6774
|
+
const resourceWithAudit = {
|
|
6775
|
+
...body,
|
|
6776
|
+
resourceType: "Coverage",
|
|
6777
|
+
id,
|
|
6778
|
+
meta: mergeAuditIntoMeta(meta, {
|
|
6779
|
+
createdDate: date,
|
|
6780
|
+
createdById: actorId,
|
|
6781
|
+
createdByName: actorName,
|
|
6782
|
+
modifiedDate: date,
|
|
6783
|
+
modifiedById: actorId,
|
|
6784
|
+
modifiedByName: actorName
|
|
6785
|
+
})
|
|
6786
|
+
};
|
|
6787
|
+
const service = getDynamoDataService(tableName);
|
|
6788
|
+
return createDataEntityRecord(
|
|
6789
|
+
service.entities.coverage,
|
|
6790
|
+
tenantId,
|
|
6791
|
+
workspaceId,
|
|
6792
|
+
id,
|
|
6793
|
+
resourceWithAudit,
|
|
6794
|
+
date
|
|
6795
|
+
);
|
|
6796
|
+
}
|
|
6797
|
+
|
|
6798
|
+
// src/data/rest-api/routes/data/coverage/coverage-create-route.ts
|
|
6799
|
+
async function createCoverageRoute(req, res) {
|
|
6800
|
+
const bodyResult = requireJsonBodyAs(req, res);
|
|
6801
|
+
if ("errorResponse" in bodyResult) return bodyResult.errorResponse;
|
|
6802
|
+
const ctx = req.openhiContext;
|
|
6803
|
+
const body = bodyResult.body;
|
|
6804
|
+
const resource = {
|
|
6805
|
+
...body,
|
|
6806
|
+
resourceType: "Coverage"
|
|
6807
|
+
};
|
|
6808
|
+
try {
|
|
6809
|
+
const result = await createCoverageOperation({
|
|
6810
|
+
context: ctx,
|
|
6811
|
+
body: resource
|
|
6812
|
+
});
|
|
6813
|
+
return res.status(201).location(`${BASE_PATH.COVERAGE}/${result.id}`).json(result.resource);
|
|
6814
|
+
} catch (err) {
|
|
6815
|
+
return sendOperationOutcome500(res, err, "POST Coverage error:");
|
|
6816
|
+
}
|
|
6817
|
+
}
|
|
6818
|
+
|
|
6819
|
+
// src/data/operations/data/coverage/coverage-delete-operation.ts
|
|
6820
|
+
async function deleteCoverageOperation(params) {
|
|
6821
|
+
const { context, id, tableName } = params;
|
|
6822
|
+
const { tenantId, workspaceId } = context;
|
|
6823
|
+
const service = getDynamoDataService(tableName);
|
|
6824
|
+
await deleteDataEntityById(
|
|
6825
|
+
service.entities.coverage,
|
|
6826
|
+
tenantId,
|
|
6827
|
+
workspaceId,
|
|
6828
|
+
id
|
|
6829
|
+
);
|
|
6830
|
+
}
|
|
6831
|
+
|
|
6832
|
+
// src/data/rest-api/routes/data/coverage/coverage-delete-route.ts
|
|
6833
|
+
async function deleteCoverageRoute(req, res) {
|
|
6834
|
+
const id = String(req.params.id);
|
|
6835
|
+
const ctx = req.openhiContext;
|
|
6836
|
+
try {
|
|
6837
|
+
await deleteCoverageOperation({ context: ctx, id });
|
|
6838
|
+
return res.status(204).send();
|
|
6839
|
+
} catch (err) {
|
|
6840
|
+
return sendOperationOutcome500(res, err, "DELETE Coverage error:");
|
|
6841
|
+
}
|
|
6842
|
+
}
|
|
6843
|
+
|
|
6844
|
+
// src/data/operations/data/coverage/coverage-get-by-id-operation.ts
|
|
6845
|
+
async function getCoverageByIdOperation(params) {
|
|
6846
|
+
const { context, id, tableName } = params;
|
|
6847
|
+
const { tenantId, workspaceId } = context;
|
|
6848
|
+
const service = getDynamoDataService(tableName);
|
|
6849
|
+
return getDataEntityById(
|
|
6850
|
+
service.entities.coverage,
|
|
6851
|
+
tenantId,
|
|
6852
|
+
workspaceId,
|
|
6853
|
+
id,
|
|
6854
|
+
"Coverage"
|
|
6855
|
+
);
|
|
6856
|
+
}
|
|
6857
|
+
|
|
6858
|
+
// src/data/rest-api/routes/data/coverage/coverage-get-by-id-route.ts
|
|
6859
|
+
async function getCoverageByIdRoute(req, res) {
|
|
6860
|
+
const id = String(req.params.id);
|
|
6861
|
+
const ctx = req.openhiContext;
|
|
6862
|
+
try {
|
|
6863
|
+
const result = await getCoverageByIdOperation({
|
|
6864
|
+
context: ctx,
|
|
6865
|
+
id
|
|
6866
|
+
});
|
|
6867
|
+
return res.json(result.resource);
|
|
6868
|
+
} catch (err) {
|
|
6869
|
+
const status = domainErrorToHttpStatus(err);
|
|
6870
|
+
if (status === 404) {
|
|
6871
|
+
const diagnostics = err instanceof NotFoundError ? err.message : `Coverage ${id} not found`;
|
|
6872
|
+
return sendOperationOutcome404(res, diagnostics);
|
|
6873
|
+
}
|
|
6874
|
+
return sendOperationOutcome500(res, err, "GET Coverage error:");
|
|
6875
|
+
}
|
|
6876
|
+
}
|
|
6877
|
+
|
|
6878
|
+
// src/data/operations/data/coverage/coverage-list-operation.ts
|
|
6879
|
+
async function listCoveragesOperation(params) {
|
|
6880
|
+
const { context, tableName } = params;
|
|
6881
|
+
const { tenantId, workspaceId } = context;
|
|
6882
|
+
const service = getDynamoDataService(tableName);
|
|
6883
|
+
return listDataEntitiesByWorkspace(
|
|
6884
|
+
service.entities.coverage,
|
|
6885
|
+
tenantId,
|
|
6886
|
+
workspaceId
|
|
6887
|
+
);
|
|
6888
|
+
}
|
|
6889
|
+
|
|
6890
|
+
// src/data/rest-api/routes/data/coverage/coverage-list-route.ts
|
|
6891
|
+
async function listCoveragesRoute(req, res) {
|
|
6892
|
+
const ctx = req.openhiContext;
|
|
6893
|
+
try {
|
|
6894
|
+
const result = await listCoveragesOperation({
|
|
6895
|
+
context: ctx
|
|
6896
|
+
});
|
|
6897
|
+
const bundle = buildSearchsetBundle(BASE_PATH.COVERAGE, result.entries);
|
|
6898
|
+
return res.json(bundle);
|
|
6899
|
+
} catch (err) {
|
|
6900
|
+
return sendOperationOutcome500(
|
|
6901
|
+
res,
|
|
6902
|
+
err,
|
|
6903
|
+
"GET /Coverage list error:"
|
|
6904
|
+
);
|
|
6905
|
+
}
|
|
6906
|
+
}
|
|
6907
|
+
|
|
6908
|
+
// src/data/operations/data/coverage/coverage-update-operation.ts
|
|
6909
|
+
async function updateCoverageOperation(params) {
|
|
6910
|
+
const { context, id, body, tableName } = params;
|
|
6911
|
+
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
6912
|
+
const service = getDynamoDataService(tableName);
|
|
6913
|
+
return updateDataEntityById(
|
|
6914
|
+
service.entities.coverage,
|
|
6915
|
+
tenantId,
|
|
6916
|
+
workspaceId,
|
|
6917
|
+
id,
|
|
6918
|
+
"Coverage",
|
|
6919
|
+
context,
|
|
6920
|
+
(existingResourceStr) => buildUpdatedResourceWithAudit(
|
|
6921
|
+
body,
|
|
6922
|
+
id,
|
|
6923
|
+
date,
|
|
6924
|
+
actorId,
|
|
6925
|
+
actorName,
|
|
6926
|
+
existingResourceStr,
|
|
6927
|
+
"Coverage"
|
|
6928
|
+
)
|
|
6929
|
+
);
|
|
6930
|
+
}
|
|
6931
|
+
|
|
6932
|
+
// src/data/rest-api/routes/data/coverage/coverage-update-route.ts
|
|
6933
|
+
async function updateCoverageRoute(req, res) {
|
|
6934
|
+
const bodyResult = requireJsonBodyAs(req, res);
|
|
6935
|
+
if ("errorResponse" in bodyResult) return bodyResult.errorResponse;
|
|
6936
|
+
const id = String(req.params.id);
|
|
6937
|
+
const ctx = req.openhiContext;
|
|
6938
|
+
const body = bodyResult.body;
|
|
6939
|
+
const resource = {
|
|
6940
|
+
...body,
|
|
6941
|
+
resourceType: "Coverage",
|
|
6942
|
+
id
|
|
6943
|
+
};
|
|
6944
|
+
try {
|
|
6945
|
+
const result = await updateCoverageOperation({
|
|
6946
|
+
context: ctx,
|
|
6947
|
+
id,
|
|
6948
|
+
body: resource
|
|
6949
|
+
});
|
|
6950
|
+
return res.json(result.resource);
|
|
6951
|
+
} catch (err) {
|
|
6952
|
+
const status = domainErrorToHttpStatus(err);
|
|
6953
|
+
if (status === 404) {
|
|
6954
|
+
const diagnostics = err instanceof NotFoundError ? err.message : `Coverage ${id} not found`;
|
|
6955
|
+
return sendOperationOutcome404(res, diagnostics);
|
|
6956
|
+
}
|
|
6957
|
+
return sendOperationOutcome500(res, err, "PUT Coverage error:");
|
|
6958
|
+
}
|
|
6959
|
+
}
|
|
6960
|
+
|
|
6961
|
+
// src/data/rest-api/routes/data/coverage/coverage.ts
|
|
6962
|
+
var router26 = import_express26.default.Router();
|
|
6963
|
+
router26.get("/", listCoveragesRoute);
|
|
6964
|
+
router26.get("/:id", getCoverageByIdRoute);
|
|
6965
|
+
router26.post("/", createCoverageRoute);
|
|
6966
|
+
router26.put("/:id", updateCoverageRoute);
|
|
6967
|
+
router26.delete("/:id", deleteCoverageRoute);
|
|
6968
|
+
|
|
6969
|
+
// src/data/rest-api/routes/data/coverageeligibilityrequest/coverageeligibilityrequest.ts
|
|
6970
|
+
var import_express27 = __toESM(require("express"));
|
|
6971
|
+
|
|
6972
|
+
// src/data/operations/data/coverageeligibilityrequest/coverageeligibilityrequest-create-operation.ts
|
|
6973
|
+
var import_ulid26 = require("ulid");
|
|
6974
|
+
async function createCoverageEligibilityRequestOperation(params) {
|
|
6975
|
+
const { context, body, tableName } = params;
|
|
6976
|
+
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
6977
|
+
const id = body.id ?? (0, import_ulid26.ulid)();
|
|
6978
|
+
const meta = {
|
|
6979
|
+
...body.meta ?? {},
|
|
6980
|
+
lastUpdated: date,
|
|
6981
|
+
versionId: "1"
|
|
6982
|
+
};
|
|
6773
6983
|
const resourceWithAudit = {
|
|
6774
6984
|
...body,
|
|
6775
6985
|
resourceType: "CoverageEligibilityRequest",
|
|
@@ -6977,22 +7187,22 @@ async function updateCoverageEligibilityRequestRoute(req, res) {
|
|
|
6977
7187
|
}
|
|
6978
7188
|
|
|
6979
7189
|
// src/data/rest-api/routes/data/coverageeligibilityrequest/coverageeligibilityrequest.ts
|
|
6980
|
-
var
|
|
6981
|
-
|
|
6982
|
-
|
|
6983
|
-
|
|
6984
|
-
|
|
6985
|
-
|
|
7190
|
+
var router27 = import_express27.default.Router();
|
|
7191
|
+
router27.get("/", listCoverageEligibilityRequestsRoute);
|
|
7192
|
+
router27.get("/:id", getCoverageEligibilityRequestByIdRoute);
|
|
7193
|
+
router27.post("/", createCoverageEligibilityRequestRoute);
|
|
7194
|
+
router27.put("/:id", updateCoverageEligibilityRequestRoute);
|
|
7195
|
+
router27.delete("/:id", deleteCoverageEligibilityRequestRoute);
|
|
6986
7196
|
|
|
6987
7197
|
// src/data/rest-api/routes/data/coverageeligibilityresponse/coverageeligibilityresponse.ts
|
|
6988
|
-
var
|
|
7198
|
+
var import_express28 = __toESM(require("express"));
|
|
6989
7199
|
|
|
6990
7200
|
// src/data/operations/data/coverageeligibilityresponse/coverageeligibilityresponse-create-operation.ts
|
|
6991
|
-
var
|
|
7201
|
+
var import_ulid27 = require("ulid");
|
|
6992
7202
|
async function createCoverageEligibilityResponseOperation(params) {
|
|
6993
7203
|
const { context, body, tableName } = params;
|
|
6994
7204
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
6995
|
-
const id = body.id ?? (0,
|
|
7205
|
+
const id = body.id ?? (0, import_ulid27.ulid)();
|
|
6996
7206
|
const meta = {
|
|
6997
7207
|
...body.meta ?? {},
|
|
6998
7208
|
lastUpdated: date,
|
|
@@ -7205,22 +7415,22 @@ async function updateCoverageEligibilityResponseRoute(req, res) {
|
|
|
7205
7415
|
}
|
|
7206
7416
|
|
|
7207
7417
|
// src/data/rest-api/routes/data/coverageeligibilityresponse/coverageeligibilityresponse.ts
|
|
7208
|
-
var
|
|
7209
|
-
|
|
7210
|
-
|
|
7211
|
-
|
|
7212
|
-
|
|
7213
|
-
|
|
7418
|
+
var router28 = import_express28.default.Router();
|
|
7419
|
+
router28.get("/", listCoverageEligibilityResponsesRoute);
|
|
7420
|
+
router28.get("/:id", getCoverageEligibilityResponseByIdRoute);
|
|
7421
|
+
router28.post("/", createCoverageEligibilityResponseRoute);
|
|
7422
|
+
router28.put("/:id", updateCoverageEligibilityResponseRoute);
|
|
7423
|
+
router28.delete("/:id", deleteCoverageEligibilityResponseRoute);
|
|
7214
7424
|
|
|
7215
7425
|
// src/data/rest-api/routes/data/detectedissue/detectedissue.ts
|
|
7216
|
-
var
|
|
7426
|
+
var import_express29 = __toESM(require("express"));
|
|
7217
7427
|
|
|
7218
7428
|
// src/data/operations/data/detectedissue/detectedissue-create-operation.ts
|
|
7219
|
-
var
|
|
7429
|
+
var import_ulid28 = require("ulid");
|
|
7220
7430
|
async function createDetectedIssueOperation(params) {
|
|
7221
7431
|
const { context, body, tableName } = params;
|
|
7222
7432
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
7223
|
-
const id = body.id ?? (0,
|
|
7433
|
+
const id = body.id ?? (0, import_ulid28.ulid)();
|
|
7224
7434
|
const meta = {
|
|
7225
7435
|
...body.meta ?? {},
|
|
7226
7436
|
lastUpdated: date,
|
|
@@ -7408,22 +7618,22 @@ async function updateDetectedIssueRoute(req, res) {
|
|
|
7408
7618
|
}
|
|
7409
7619
|
|
|
7410
7620
|
// src/data/rest-api/routes/data/detectedissue/detectedissue.ts
|
|
7411
|
-
var
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
|
|
7415
|
-
|
|
7416
|
-
|
|
7621
|
+
var router29 = import_express29.default.Router();
|
|
7622
|
+
router29.get("/", listDetectedIssuesRoute);
|
|
7623
|
+
router29.get("/:id", getDetectedIssueByIdRoute);
|
|
7624
|
+
router29.post("/", createDetectedIssueRoute);
|
|
7625
|
+
router29.put("/:id", updateDetectedIssueRoute);
|
|
7626
|
+
router29.delete("/:id", deleteDetectedIssueRoute);
|
|
7417
7627
|
|
|
7418
7628
|
// src/data/rest-api/routes/data/device/device.ts
|
|
7419
|
-
var
|
|
7629
|
+
var import_express30 = __toESM(require("express"));
|
|
7420
7630
|
|
|
7421
7631
|
// src/data/operations/data/device/device-create-operation.ts
|
|
7422
|
-
var
|
|
7632
|
+
var import_ulid29 = require("ulid");
|
|
7423
7633
|
async function createDeviceOperation(params) {
|
|
7424
7634
|
const { context, body, tableName } = params;
|
|
7425
7635
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
7426
|
-
const id = body.id ?? (0,
|
|
7636
|
+
const id = body.id ?? (0, import_ulid29.ulid)();
|
|
7427
7637
|
const meta = {
|
|
7428
7638
|
...body.meta ?? {},
|
|
7429
7639
|
lastUpdated: date,
|
|
@@ -7608,22 +7818,22 @@ async function updateDeviceRoute(req, res) {
|
|
|
7608
7818
|
}
|
|
7609
7819
|
|
|
7610
7820
|
// src/data/rest-api/routes/data/device/device.ts
|
|
7611
|
-
var
|
|
7612
|
-
|
|
7613
|
-
|
|
7614
|
-
|
|
7615
|
-
|
|
7616
|
-
|
|
7821
|
+
var router30 = import_express30.default.Router();
|
|
7822
|
+
router30.get("/", listDevicesRoute);
|
|
7823
|
+
router30.get("/:id", getDeviceByIdRoute);
|
|
7824
|
+
router30.post("/", createDeviceRoute);
|
|
7825
|
+
router30.put("/:id", updateDeviceRoute);
|
|
7826
|
+
router30.delete("/:id", deleteDeviceRoute);
|
|
7617
7827
|
|
|
7618
7828
|
// src/data/rest-api/routes/data/devicedefinition/devicedefinition.ts
|
|
7619
|
-
var
|
|
7829
|
+
var import_express31 = __toESM(require("express"));
|
|
7620
7830
|
|
|
7621
7831
|
// src/data/operations/data/devicedefinition/devicedefinition-create-operation.ts
|
|
7622
|
-
var
|
|
7832
|
+
var import_ulid30 = require("ulid");
|
|
7623
7833
|
async function createDeviceDefinitionOperation(params) {
|
|
7624
7834
|
const { context, body, tableName } = params;
|
|
7625
7835
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
7626
|
-
const id = body.id ?? (0,
|
|
7836
|
+
const id = body.id ?? (0, import_ulid30.ulid)();
|
|
7627
7837
|
const meta = {
|
|
7628
7838
|
...body.meta ?? {},
|
|
7629
7839
|
lastUpdated: date,
|
|
@@ -7815,22 +8025,22 @@ async function updateDeviceDefinitionRoute(req, res) {
|
|
|
7815
8025
|
}
|
|
7816
8026
|
|
|
7817
8027
|
// src/data/rest-api/routes/data/devicedefinition/devicedefinition.ts
|
|
7818
|
-
var
|
|
7819
|
-
|
|
7820
|
-
|
|
7821
|
-
|
|
7822
|
-
|
|
7823
|
-
|
|
8028
|
+
var router31 = import_express31.default.Router();
|
|
8029
|
+
router31.get("/", listDeviceDefinitionsRoute);
|
|
8030
|
+
router31.get("/:id", getDeviceDefinitionByIdRoute);
|
|
8031
|
+
router31.post("/", createDeviceDefinitionRoute);
|
|
8032
|
+
router31.put("/:id", updateDeviceDefinitionRoute);
|
|
8033
|
+
router31.delete("/:id", deleteDeviceDefinitionRoute);
|
|
7824
8034
|
|
|
7825
8035
|
// src/data/rest-api/routes/data/devicemetric/devicemetric.ts
|
|
7826
|
-
var
|
|
8036
|
+
var import_express32 = __toESM(require("express"));
|
|
7827
8037
|
|
|
7828
8038
|
// src/data/operations/data/devicemetric/devicemetric-create-operation.ts
|
|
7829
|
-
var
|
|
8039
|
+
var import_ulid31 = require("ulid");
|
|
7830
8040
|
async function createDeviceMetricOperation(params) {
|
|
7831
8041
|
const { context, body, tableName } = params;
|
|
7832
8042
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
7833
|
-
const id = body.id ?? (0,
|
|
8043
|
+
const id = body.id ?? (0, import_ulid31.ulid)();
|
|
7834
8044
|
const meta = {
|
|
7835
8045
|
...body.meta ?? {},
|
|
7836
8046
|
lastUpdated: date,
|
|
@@ -8015,22 +8225,22 @@ async function updateDeviceMetricRoute(req, res) {
|
|
|
8015
8225
|
}
|
|
8016
8226
|
|
|
8017
8227
|
// src/data/rest-api/routes/data/devicemetric/devicemetric.ts
|
|
8018
|
-
var
|
|
8019
|
-
|
|
8020
|
-
|
|
8021
|
-
|
|
8022
|
-
|
|
8023
|
-
|
|
8228
|
+
var router32 = import_express32.default.Router();
|
|
8229
|
+
router32.get("/", listDeviceMetricsRoute);
|
|
8230
|
+
router32.get("/:id", getDeviceMetricByIdRoute);
|
|
8231
|
+
router32.post("/", createDeviceMetricRoute);
|
|
8232
|
+
router32.put("/:id", updateDeviceMetricRoute);
|
|
8233
|
+
router32.delete("/:id", deleteDeviceMetricRoute);
|
|
8024
8234
|
|
|
8025
8235
|
// src/data/rest-api/routes/data/devicerequest/devicerequest.ts
|
|
8026
|
-
var
|
|
8236
|
+
var import_express33 = __toESM(require("express"));
|
|
8027
8237
|
|
|
8028
8238
|
// src/data/operations/data/devicerequest/devicerequest-create-operation.ts
|
|
8029
|
-
var
|
|
8239
|
+
var import_ulid32 = require("ulid");
|
|
8030
8240
|
async function createDeviceRequestOperation(params) {
|
|
8031
8241
|
const { context, body, tableName } = params;
|
|
8032
8242
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
8033
|
-
const id = body.id ?? (0,
|
|
8243
|
+
const id = body.id ?? (0, import_ulid32.ulid)();
|
|
8034
8244
|
const meta = {
|
|
8035
8245
|
...body.meta ?? {},
|
|
8036
8246
|
lastUpdated: date,
|
|
@@ -8218,22 +8428,22 @@ async function updateDeviceRequestRoute(req, res) {
|
|
|
8218
8428
|
}
|
|
8219
8429
|
|
|
8220
8430
|
// src/data/rest-api/routes/data/devicerequest/devicerequest.ts
|
|
8221
|
-
var
|
|
8222
|
-
|
|
8223
|
-
|
|
8224
|
-
|
|
8225
|
-
|
|
8226
|
-
|
|
8431
|
+
var router33 = import_express33.default.Router();
|
|
8432
|
+
router33.get("/", listDeviceRequestsRoute);
|
|
8433
|
+
router33.get("/:id", getDeviceRequestByIdRoute);
|
|
8434
|
+
router33.post("/", createDeviceRequestRoute);
|
|
8435
|
+
router33.put("/:id", updateDeviceRequestRoute);
|
|
8436
|
+
router33.delete("/:id", deleteDeviceRequestRoute);
|
|
8227
8437
|
|
|
8228
8438
|
// src/data/rest-api/routes/data/deviceusestatement/deviceusestatement.ts
|
|
8229
|
-
var
|
|
8439
|
+
var import_express34 = __toESM(require("express"));
|
|
8230
8440
|
|
|
8231
8441
|
// src/data/operations/data/deviceusestatement/deviceusestatement-create-operation.ts
|
|
8232
|
-
var
|
|
8442
|
+
var import_ulid33 = require("ulid");
|
|
8233
8443
|
async function createDeviceUseStatementOperation(params) {
|
|
8234
8444
|
const { context, body, tableName } = params;
|
|
8235
8445
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
8236
|
-
const id = body.id ?? (0,
|
|
8446
|
+
const id = body.id ?? (0, import_ulid33.ulid)();
|
|
8237
8447
|
const meta = {
|
|
8238
8448
|
...body.meta ?? {},
|
|
8239
8449
|
lastUpdated: date,
|
|
@@ -8432,22 +8642,22 @@ async function updateDeviceUseStatementRoute(req, res) {
|
|
|
8432
8642
|
}
|
|
8433
8643
|
|
|
8434
8644
|
// src/data/rest-api/routes/data/deviceusestatement/deviceusestatement.ts
|
|
8435
|
-
var
|
|
8436
|
-
|
|
8437
|
-
|
|
8438
|
-
|
|
8439
|
-
|
|
8440
|
-
|
|
8645
|
+
var router34 = import_express34.default.Router();
|
|
8646
|
+
router34.get("/", listDeviceUseStatementsRoute);
|
|
8647
|
+
router34.get("/:id", getDeviceUseStatementByIdRoute);
|
|
8648
|
+
router34.post("/", createDeviceUseStatementRoute);
|
|
8649
|
+
router34.put("/:id", updateDeviceUseStatementRoute);
|
|
8650
|
+
router34.delete("/:id", deleteDeviceUseStatementRoute);
|
|
8441
8651
|
|
|
8442
8652
|
// src/data/rest-api/routes/data/diagnosticreport/diagnosticreport.ts
|
|
8443
|
-
var
|
|
8653
|
+
var import_express35 = __toESM(require("express"));
|
|
8444
8654
|
|
|
8445
8655
|
// src/data/operations/data/diagnosticreport/diagnosticreport-create-operation.ts
|
|
8446
|
-
var
|
|
8656
|
+
var import_ulid34 = require("ulid");
|
|
8447
8657
|
async function createDiagnosticReportOperation(params) {
|
|
8448
8658
|
const { context, body, tableName } = params;
|
|
8449
8659
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
8450
|
-
const id = body.id ?? (0,
|
|
8660
|
+
const id = body.id ?? (0, import_ulid34.ulid)();
|
|
8451
8661
|
const meta = {
|
|
8452
8662
|
...body.meta ?? {},
|
|
8453
8663
|
lastUpdated: date,
|
|
@@ -8639,22 +8849,22 @@ async function updateDiagnosticReportRoute(req, res) {
|
|
|
8639
8849
|
}
|
|
8640
8850
|
|
|
8641
8851
|
// src/data/rest-api/routes/data/diagnosticreport/diagnosticreport.ts
|
|
8642
|
-
var
|
|
8643
|
-
|
|
8644
|
-
|
|
8645
|
-
|
|
8646
|
-
|
|
8647
|
-
|
|
8852
|
+
var router35 = import_express35.default.Router();
|
|
8853
|
+
router35.get("/", listDiagnosticReportsRoute);
|
|
8854
|
+
router35.get("/:id", getDiagnosticReportByIdRoute);
|
|
8855
|
+
router35.post("/", createDiagnosticReportRoute);
|
|
8856
|
+
router35.put("/:id", updateDiagnosticReportRoute);
|
|
8857
|
+
router35.delete("/:id", deleteDiagnosticReportRoute);
|
|
8648
8858
|
|
|
8649
8859
|
// src/data/rest-api/routes/data/documentmanifest/documentmanifest.ts
|
|
8650
|
-
var
|
|
8860
|
+
var import_express36 = __toESM(require("express"));
|
|
8651
8861
|
|
|
8652
8862
|
// src/data/operations/data/documentmanifest/documentmanifest-create-operation.ts
|
|
8653
|
-
var
|
|
8863
|
+
var import_ulid35 = require("ulid");
|
|
8654
8864
|
async function createDocumentManifestOperation(params) {
|
|
8655
8865
|
const { context, body, tableName } = params;
|
|
8656
8866
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
8657
|
-
const id = body.id ?? (0,
|
|
8867
|
+
const id = body.id ?? (0, import_ulid35.ulid)();
|
|
8658
8868
|
const meta = {
|
|
8659
8869
|
...body.meta ?? {},
|
|
8660
8870
|
lastUpdated: date,
|
|
@@ -8846,22 +9056,22 @@ async function updateDocumentManifestRoute(req, res) {
|
|
|
8846
9056
|
}
|
|
8847
9057
|
|
|
8848
9058
|
// src/data/rest-api/routes/data/documentmanifest/documentmanifest.ts
|
|
8849
|
-
var
|
|
8850
|
-
|
|
8851
|
-
|
|
8852
|
-
|
|
8853
|
-
|
|
8854
|
-
|
|
9059
|
+
var router36 = import_express36.default.Router();
|
|
9060
|
+
router36.get("/", listDocumentManifestsRoute);
|
|
9061
|
+
router36.get("/:id", getDocumentManifestByIdRoute);
|
|
9062
|
+
router36.post("/", createDocumentManifestRoute);
|
|
9063
|
+
router36.put("/:id", updateDocumentManifestRoute);
|
|
9064
|
+
router36.delete("/:id", deleteDocumentManifestRoute);
|
|
8855
9065
|
|
|
8856
9066
|
// src/data/rest-api/routes/data/documentreference/documentreference.ts
|
|
8857
|
-
var
|
|
9067
|
+
var import_express37 = __toESM(require("express"));
|
|
8858
9068
|
|
|
8859
9069
|
// src/data/operations/data/documentreference/documentreference-create-operation.ts
|
|
8860
|
-
var
|
|
9070
|
+
var import_ulid36 = require("ulid");
|
|
8861
9071
|
async function createDocumentReferenceOperation(params) {
|
|
8862
9072
|
const { context, body, tableName } = params;
|
|
8863
9073
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
8864
|
-
const id = body.id ?? (0,
|
|
9074
|
+
const id = body.id ?? (0, import_ulid36.ulid)();
|
|
8865
9075
|
const meta = {
|
|
8866
9076
|
...body.meta ?? {},
|
|
8867
9077
|
lastUpdated: date,
|
|
@@ -9056,22 +9266,22 @@ async function updateDocumentReferenceRoute(req, res) {
|
|
|
9056
9266
|
}
|
|
9057
9267
|
|
|
9058
9268
|
// src/data/rest-api/routes/data/documentreference/documentreference.ts
|
|
9059
|
-
var
|
|
9060
|
-
|
|
9061
|
-
|
|
9062
|
-
|
|
9063
|
-
|
|
9064
|
-
|
|
9269
|
+
var router37 = import_express37.default.Router();
|
|
9270
|
+
router37.get("/", listDocumentReferencesRoute);
|
|
9271
|
+
router37.get("/:id", getDocumentReferenceByIdRoute);
|
|
9272
|
+
router37.post("/", createDocumentReferenceRoute);
|
|
9273
|
+
router37.put("/:id", updateDocumentReferenceRoute);
|
|
9274
|
+
router37.delete("/:id", deleteDocumentReferenceRoute);
|
|
9065
9275
|
|
|
9066
9276
|
// src/data/rest-api/routes/data/effectevidencesynthesis/effectevidencesynthesis.ts
|
|
9067
|
-
var
|
|
9277
|
+
var import_express38 = __toESM(require("express"));
|
|
9068
9278
|
|
|
9069
9279
|
// src/data/operations/data/effectevidencesynthesis/effectevidencesynthesis-create-operation.ts
|
|
9070
|
-
var
|
|
9280
|
+
var import_ulid37 = require("ulid");
|
|
9071
9281
|
async function createEffectEvidenceSynthesisOperation(params) {
|
|
9072
9282
|
const { context, body, tableName } = params;
|
|
9073
9283
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
9074
|
-
const id = body.id ?? (0,
|
|
9284
|
+
const id = body.id ?? (0, import_ulid37.ulid)();
|
|
9075
9285
|
const meta = {
|
|
9076
9286
|
...body.meta ?? {},
|
|
9077
9287
|
lastUpdated: date,
|
|
@@ -9284,22 +9494,22 @@ async function updateEffectEvidenceSynthesisRoute(req, res) {
|
|
|
9284
9494
|
}
|
|
9285
9495
|
|
|
9286
9496
|
// src/data/rest-api/routes/data/effectevidencesynthesis/effectevidencesynthesis.ts
|
|
9287
|
-
var
|
|
9288
|
-
|
|
9289
|
-
|
|
9290
|
-
|
|
9291
|
-
|
|
9292
|
-
|
|
9497
|
+
var router38 = import_express38.default.Router();
|
|
9498
|
+
router38.get("/", listEffectEvidenceSynthesissRoute);
|
|
9499
|
+
router38.get("/:id", getEffectEvidenceSynthesisByIdRoute);
|
|
9500
|
+
router38.post("/", createEffectEvidenceSynthesisRoute);
|
|
9501
|
+
router38.put("/:id", updateEffectEvidenceSynthesisRoute);
|
|
9502
|
+
router38.delete("/:id", deleteEffectEvidenceSynthesisRoute);
|
|
9293
9503
|
|
|
9294
9504
|
// src/data/rest-api/routes/data/encounter/encounter.ts
|
|
9295
|
-
var
|
|
9505
|
+
var import_express39 = __toESM(require("express"));
|
|
9296
9506
|
|
|
9297
9507
|
// src/data/operations/data/encounter/encounter-create-operation.ts
|
|
9298
|
-
var
|
|
9508
|
+
var import_ulid38 = require("ulid");
|
|
9299
9509
|
async function createEncounterOperation(params) {
|
|
9300
9510
|
const { context, body, tableName } = params;
|
|
9301
9511
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
9302
|
-
const id = body.id ?? (0,
|
|
9512
|
+
const id = body.id ?? (0, import_ulid38.ulid)();
|
|
9303
9513
|
const meta = {
|
|
9304
9514
|
...body.meta ?? {},
|
|
9305
9515
|
lastUpdated: date,
|
|
@@ -9489,22 +9699,22 @@ async function updateEncounterRoute(req, res) {
|
|
|
9489
9699
|
}
|
|
9490
9700
|
|
|
9491
9701
|
// src/data/rest-api/routes/data/encounter/encounter.ts
|
|
9492
|
-
var
|
|
9493
|
-
|
|
9494
|
-
|
|
9495
|
-
|
|
9496
|
-
|
|
9497
|
-
|
|
9702
|
+
var router39 = import_express39.default.Router();
|
|
9703
|
+
router39.get("/", listEncountersRoute);
|
|
9704
|
+
router39.get("/:id", getEncounterByIdRoute);
|
|
9705
|
+
router39.post("/", createEncounterRoute);
|
|
9706
|
+
router39.put("/:id", updateEncounterRoute);
|
|
9707
|
+
router39.delete("/:id", deleteEncounterRoute);
|
|
9498
9708
|
|
|
9499
9709
|
// src/data/rest-api/routes/data/endpoint/endpoint.ts
|
|
9500
|
-
var
|
|
9710
|
+
var import_express40 = __toESM(require("express"));
|
|
9501
9711
|
|
|
9502
9712
|
// src/data/operations/data/endpoint/endpoint-create-operation.ts
|
|
9503
|
-
var
|
|
9713
|
+
var import_ulid39 = require("ulid");
|
|
9504
9714
|
async function createEndpointOperation(params) {
|
|
9505
9715
|
const { context, body, tableName } = params;
|
|
9506
9716
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
9507
|
-
const id = body.id ?? (0,
|
|
9717
|
+
const id = body.id ?? (0, import_ulid39.ulid)();
|
|
9508
9718
|
const meta = {
|
|
9509
9719
|
...body.meta ?? {},
|
|
9510
9720
|
lastUpdated: date,
|
|
@@ -9689,22 +9899,22 @@ async function updateEndpointRoute(req, res) {
|
|
|
9689
9899
|
}
|
|
9690
9900
|
|
|
9691
9901
|
// src/data/rest-api/routes/data/endpoint/endpoint.ts
|
|
9692
|
-
var
|
|
9693
|
-
|
|
9694
|
-
|
|
9695
|
-
|
|
9696
|
-
|
|
9697
|
-
|
|
9902
|
+
var router40 = import_express40.default.Router();
|
|
9903
|
+
router40.get("/", listEndpointsRoute);
|
|
9904
|
+
router40.get("/:id", getEndpointByIdRoute);
|
|
9905
|
+
router40.post("/", createEndpointRoute);
|
|
9906
|
+
router40.put("/:id", updateEndpointRoute);
|
|
9907
|
+
router40.delete("/:id", deleteEndpointRoute);
|
|
9698
9908
|
|
|
9699
9909
|
// src/data/rest-api/routes/data/enrollmentrequest/enrollmentrequest.ts
|
|
9700
|
-
var
|
|
9910
|
+
var import_express41 = __toESM(require("express"));
|
|
9701
9911
|
|
|
9702
9912
|
// src/data/operations/data/enrollmentrequest/enrollmentrequest-create-operation.ts
|
|
9703
|
-
var
|
|
9913
|
+
var import_ulid40 = require("ulid");
|
|
9704
9914
|
async function createEnrollmentRequestOperation(params) {
|
|
9705
9915
|
const { context, body, tableName } = params;
|
|
9706
9916
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
9707
|
-
const id = body.id ?? (0,
|
|
9917
|
+
const id = body.id ?? (0, import_ulid40.ulid)();
|
|
9708
9918
|
const meta = {
|
|
9709
9919
|
...body.meta ?? {},
|
|
9710
9920
|
lastUpdated: date,
|
|
@@ -9899,22 +10109,22 @@ async function updateEnrollmentRequestRoute(req, res) {
|
|
|
9899
10109
|
}
|
|
9900
10110
|
|
|
9901
10111
|
// src/data/rest-api/routes/data/enrollmentrequest/enrollmentrequest.ts
|
|
9902
|
-
var
|
|
9903
|
-
|
|
9904
|
-
|
|
9905
|
-
|
|
9906
|
-
|
|
9907
|
-
|
|
10112
|
+
var router41 = import_express41.default.Router();
|
|
10113
|
+
router41.get("/", listEnrollmentRequestsRoute);
|
|
10114
|
+
router41.get("/:id", getEnrollmentRequestByIdRoute);
|
|
10115
|
+
router41.post("/", createEnrollmentRequestRoute);
|
|
10116
|
+
router41.put("/:id", updateEnrollmentRequestRoute);
|
|
10117
|
+
router41.delete("/:id", deleteEnrollmentRequestRoute);
|
|
9908
10118
|
|
|
9909
10119
|
// src/data/rest-api/routes/data/enrollmentresponse/enrollmentresponse.ts
|
|
9910
|
-
var
|
|
10120
|
+
var import_express42 = __toESM(require("express"));
|
|
9911
10121
|
|
|
9912
10122
|
// src/data/operations/data/enrollmentresponse/enrollmentresponse-create-operation.ts
|
|
9913
|
-
var
|
|
10123
|
+
var import_ulid41 = require("ulid");
|
|
9914
10124
|
async function createEnrollmentResponseOperation(params) {
|
|
9915
10125
|
const { context, body, tableName } = params;
|
|
9916
10126
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
9917
|
-
const id = body.id ?? (0,
|
|
10127
|
+
const id = body.id ?? (0, import_ulid41.ulid)();
|
|
9918
10128
|
const meta = {
|
|
9919
10129
|
...body.meta ?? {},
|
|
9920
10130
|
lastUpdated: date,
|
|
@@ -10113,22 +10323,22 @@ async function updateEnrollmentResponseRoute(req, res) {
|
|
|
10113
10323
|
}
|
|
10114
10324
|
|
|
10115
10325
|
// src/data/rest-api/routes/data/enrollmentresponse/enrollmentresponse.ts
|
|
10116
|
-
var
|
|
10117
|
-
|
|
10118
|
-
|
|
10119
|
-
|
|
10120
|
-
|
|
10121
|
-
|
|
10326
|
+
var router42 = import_express42.default.Router();
|
|
10327
|
+
router42.get("/", listEnrollmentResponsesRoute);
|
|
10328
|
+
router42.get("/:id", getEnrollmentResponseByIdRoute);
|
|
10329
|
+
router42.post("/", createEnrollmentResponseRoute);
|
|
10330
|
+
router42.put("/:id", updateEnrollmentResponseRoute);
|
|
10331
|
+
router42.delete("/:id", deleteEnrollmentResponseRoute);
|
|
10122
10332
|
|
|
10123
10333
|
// src/data/rest-api/routes/data/episodeofcare/episodeofcare.ts
|
|
10124
|
-
var
|
|
10334
|
+
var import_express43 = __toESM(require("express"));
|
|
10125
10335
|
|
|
10126
10336
|
// src/data/operations/data/episodeofcare/episodeofcare-create-operation.ts
|
|
10127
|
-
var
|
|
10337
|
+
var import_ulid42 = require("ulid");
|
|
10128
10338
|
async function createEpisodeOfCareOperation(params) {
|
|
10129
10339
|
const { context, body, tableName } = params;
|
|
10130
10340
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
10131
|
-
const id = body.id ?? (0,
|
|
10341
|
+
const id = body.id ?? (0, import_ulid42.ulid)();
|
|
10132
10342
|
const meta = {
|
|
10133
10343
|
...body.meta ?? {},
|
|
10134
10344
|
lastUpdated: date,
|
|
@@ -10316,22 +10526,22 @@ async function updateEpisodeOfCareRoute(req, res) {
|
|
|
10316
10526
|
}
|
|
10317
10527
|
|
|
10318
10528
|
// src/data/rest-api/routes/data/episodeofcare/episodeofcare.ts
|
|
10319
|
-
var
|
|
10320
|
-
|
|
10321
|
-
|
|
10322
|
-
|
|
10323
|
-
|
|
10324
|
-
|
|
10529
|
+
var router43 = import_express43.default.Router();
|
|
10530
|
+
router43.get("/", listEpisodeOfCaresRoute);
|
|
10531
|
+
router43.get("/:id", getEpisodeOfCareByIdRoute);
|
|
10532
|
+
router43.post("/", createEpisodeOfCareRoute);
|
|
10533
|
+
router43.put("/:id", updateEpisodeOfCareRoute);
|
|
10534
|
+
router43.delete("/:id", deleteEpisodeOfCareRoute);
|
|
10325
10535
|
|
|
10326
10536
|
// src/data/rest-api/routes/data/eventdefinition/eventdefinition.ts
|
|
10327
|
-
var
|
|
10537
|
+
var import_express44 = __toESM(require("express"));
|
|
10328
10538
|
|
|
10329
10539
|
// src/data/operations/data/eventdefinition/eventdefinition-create-operation.ts
|
|
10330
|
-
var
|
|
10540
|
+
var import_ulid43 = require("ulid");
|
|
10331
10541
|
async function createEventDefinitionOperation(params) {
|
|
10332
10542
|
const { context, body, tableName } = params;
|
|
10333
10543
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
10334
|
-
const id = body.id ?? (0,
|
|
10544
|
+
const id = body.id ?? (0, import_ulid43.ulid)();
|
|
10335
10545
|
const meta = {
|
|
10336
10546
|
...body.meta ?? {},
|
|
10337
10547
|
lastUpdated: date,
|
|
@@ -10523,22 +10733,22 @@ async function updateEventDefinitionRoute(req, res) {
|
|
|
10523
10733
|
}
|
|
10524
10734
|
|
|
10525
10735
|
// src/data/rest-api/routes/data/eventdefinition/eventdefinition.ts
|
|
10526
|
-
var
|
|
10527
|
-
|
|
10528
|
-
|
|
10529
|
-
|
|
10530
|
-
|
|
10531
|
-
|
|
10736
|
+
var router44 = import_express44.default.Router();
|
|
10737
|
+
router44.get("/", listEventDefinitionsRoute);
|
|
10738
|
+
router44.get("/:id", getEventDefinitionByIdRoute);
|
|
10739
|
+
router44.post("/", createEventDefinitionRoute);
|
|
10740
|
+
router44.put("/:id", updateEventDefinitionRoute);
|
|
10741
|
+
router44.delete("/:id", deleteEventDefinitionRoute);
|
|
10532
10742
|
|
|
10533
10743
|
// src/data/rest-api/routes/data/evidence/evidence.ts
|
|
10534
|
-
var
|
|
10744
|
+
var import_express45 = __toESM(require("express"));
|
|
10535
10745
|
|
|
10536
10746
|
// src/data/operations/data/evidence/evidence-create-operation.ts
|
|
10537
|
-
var
|
|
10747
|
+
var import_ulid44 = require("ulid");
|
|
10538
10748
|
async function createEvidenceOperation(params) {
|
|
10539
10749
|
const { context, body, tableName } = params;
|
|
10540
10750
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
10541
|
-
const id = body.id ?? (0,
|
|
10751
|
+
const id = body.id ?? (0, import_ulid44.ulid)();
|
|
10542
10752
|
const meta = {
|
|
10543
10753
|
...body.meta ?? {},
|
|
10544
10754
|
lastUpdated: date,
|
|
@@ -10723,22 +10933,22 @@ async function updateEvidenceRoute(req, res) {
|
|
|
10723
10933
|
}
|
|
10724
10934
|
|
|
10725
10935
|
// src/data/rest-api/routes/data/evidence/evidence.ts
|
|
10726
|
-
var
|
|
10727
|
-
|
|
10728
|
-
|
|
10729
|
-
|
|
10730
|
-
|
|
10731
|
-
|
|
10936
|
+
var router45 = import_express45.default.Router();
|
|
10937
|
+
router45.get("/", listEvidencesRoute);
|
|
10938
|
+
router45.get("/:id", getEvidenceByIdRoute);
|
|
10939
|
+
router45.post("/", createEvidenceRoute);
|
|
10940
|
+
router45.put("/:id", updateEvidenceRoute);
|
|
10941
|
+
router45.delete("/:id", deleteEvidenceRoute);
|
|
10732
10942
|
|
|
10733
10943
|
// src/data/rest-api/routes/data/evidencevariable/evidencevariable.ts
|
|
10734
|
-
var
|
|
10944
|
+
var import_express46 = __toESM(require("express"));
|
|
10735
10945
|
|
|
10736
10946
|
// src/data/operations/data/evidencevariable/evidencevariable-create-operation.ts
|
|
10737
|
-
var
|
|
10947
|
+
var import_ulid45 = require("ulid");
|
|
10738
10948
|
async function createEvidenceVariableOperation(params) {
|
|
10739
10949
|
const { context, body, tableName } = params;
|
|
10740
10950
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
10741
|
-
const id = body.id ?? (0,
|
|
10951
|
+
const id = body.id ?? (0, import_ulid45.ulid)();
|
|
10742
10952
|
const meta = {
|
|
10743
10953
|
...body.meta ?? {},
|
|
10744
10954
|
lastUpdated: date,
|
|
@@ -10930,22 +11140,22 @@ async function updateEvidenceVariableRoute(req, res) {
|
|
|
10930
11140
|
}
|
|
10931
11141
|
|
|
10932
11142
|
// src/data/rest-api/routes/data/evidencevariable/evidencevariable.ts
|
|
10933
|
-
var
|
|
10934
|
-
|
|
10935
|
-
|
|
10936
|
-
|
|
10937
|
-
|
|
10938
|
-
|
|
11143
|
+
var router46 = import_express46.default.Router();
|
|
11144
|
+
router46.get("/", listEvidenceVariablesRoute);
|
|
11145
|
+
router46.get("/:id", getEvidenceVariableByIdRoute);
|
|
11146
|
+
router46.post("/", createEvidenceVariableRoute);
|
|
11147
|
+
router46.put("/:id", updateEvidenceVariableRoute);
|
|
11148
|
+
router46.delete("/:id", deleteEvidenceVariableRoute);
|
|
10939
11149
|
|
|
10940
11150
|
// src/data/rest-api/routes/data/explanationofbenefit/explanationofbenefit.ts
|
|
10941
|
-
var
|
|
11151
|
+
var import_express47 = __toESM(require("express"));
|
|
10942
11152
|
|
|
10943
11153
|
// src/data/operations/data/explanationofbenefit/explanationofbenefit-create-operation.ts
|
|
10944
|
-
var
|
|
11154
|
+
var import_ulid46 = require("ulid");
|
|
10945
11155
|
async function createExplanationOfBenefitOperation(params) {
|
|
10946
11156
|
const { context, body, tableName } = params;
|
|
10947
11157
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
10948
|
-
const id = body.id ?? (0,
|
|
11158
|
+
const id = body.id ?? (0, import_ulid46.ulid)();
|
|
10949
11159
|
const meta = {
|
|
10950
11160
|
...body.meta ?? {},
|
|
10951
11161
|
lastUpdated: date,
|
|
@@ -11148,22 +11358,22 @@ async function updateExplanationOfBenefitRoute(req, res) {
|
|
|
11148
11358
|
}
|
|
11149
11359
|
|
|
11150
11360
|
// src/data/rest-api/routes/data/explanationofbenefit/explanationofbenefit.ts
|
|
11151
|
-
var
|
|
11152
|
-
|
|
11153
|
-
|
|
11154
|
-
|
|
11155
|
-
|
|
11156
|
-
|
|
11361
|
+
var router47 = import_express47.default.Router();
|
|
11362
|
+
router47.get("/", listExplanationOfBenefitsRoute);
|
|
11363
|
+
router47.get("/:id", getExplanationOfBenefitByIdRoute);
|
|
11364
|
+
router47.post("/", createExplanationOfBenefitRoute);
|
|
11365
|
+
router47.put("/:id", updateExplanationOfBenefitRoute);
|
|
11366
|
+
router47.delete("/:id", deleteExplanationOfBenefitRoute);
|
|
11157
11367
|
|
|
11158
11368
|
// src/data/rest-api/routes/data/familymemberhistory/familymemberhistory.ts
|
|
11159
|
-
var
|
|
11369
|
+
var import_express48 = __toESM(require("express"));
|
|
11160
11370
|
|
|
11161
11371
|
// src/data/operations/data/familymemberhistory/familymemberhistory-create-operation.ts
|
|
11162
|
-
var
|
|
11372
|
+
var import_ulid47 = require("ulid");
|
|
11163
11373
|
async function createFamilyMemberHistoryOperation(params) {
|
|
11164
11374
|
const { context, body, tableName } = params;
|
|
11165
11375
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
11166
|
-
const id = body.id ?? (0,
|
|
11376
|
+
const id = body.id ?? (0, import_ulid47.ulid)();
|
|
11167
11377
|
const meta = {
|
|
11168
11378
|
...body.meta ?? {},
|
|
11169
11379
|
lastUpdated: date,
|
|
@@ -11362,22 +11572,22 @@ async function updateFamilyMemberHistoryRoute(req, res) {
|
|
|
11362
11572
|
}
|
|
11363
11573
|
|
|
11364
11574
|
// src/data/rest-api/routes/data/familymemberhistory/familymemberhistory.ts
|
|
11365
|
-
var
|
|
11366
|
-
|
|
11367
|
-
|
|
11368
|
-
|
|
11369
|
-
|
|
11370
|
-
|
|
11575
|
+
var router48 = import_express48.default.Router();
|
|
11576
|
+
router48.get("/", listFamilyMemberHistorysRoute);
|
|
11577
|
+
router48.get("/:id", getFamilyMemberHistoryByIdRoute);
|
|
11578
|
+
router48.post("/", createFamilyMemberHistoryRoute);
|
|
11579
|
+
router48.put("/:id", updateFamilyMemberHistoryRoute);
|
|
11580
|
+
router48.delete("/:id", deleteFamilyMemberHistoryRoute);
|
|
11371
11581
|
|
|
11372
11582
|
// src/data/rest-api/routes/data/flag/flag.ts
|
|
11373
|
-
var
|
|
11583
|
+
var import_express49 = __toESM(require("express"));
|
|
11374
11584
|
|
|
11375
11585
|
// src/data/operations/data/flag/flag-create-operation.ts
|
|
11376
|
-
var
|
|
11586
|
+
var import_ulid48 = require("ulid");
|
|
11377
11587
|
async function createFlagOperation(params) {
|
|
11378
11588
|
const { context, body, tableName } = params;
|
|
11379
11589
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
11380
|
-
const id = body.id ?? (0,
|
|
11590
|
+
const id = body.id ?? (0, import_ulid48.ulid)();
|
|
11381
11591
|
const meta = {
|
|
11382
11592
|
...body.meta ?? {},
|
|
11383
11593
|
lastUpdated: date,
|
|
@@ -11562,22 +11772,22 @@ async function updateFlagRoute(req, res) {
|
|
|
11562
11772
|
}
|
|
11563
11773
|
|
|
11564
11774
|
// src/data/rest-api/routes/data/flag/flag.ts
|
|
11565
|
-
var
|
|
11566
|
-
|
|
11567
|
-
|
|
11568
|
-
|
|
11569
|
-
|
|
11570
|
-
|
|
11775
|
+
var router49 = import_express49.default.Router();
|
|
11776
|
+
router49.get("/", listFlagsRoute);
|
|
11777
|
+
router49.get("/:id", getFlagByIdRoute);
|
|
11778
|
+
router49.post("/", createFlagRoute);
|
|
11779
|
+
router49.put("/:id", updateFlagRoute);
|
|
11780
|
+
router49.delete("/:id", deleteFlagRoute);
|
|
11571
11781
|
|
|
11572
11782
|
// src/data/rest-api/routes/data/goal/goal.ts
|
|
11573
|
-
var
|
|
11783
|
+
var import_express50 = __toESM(require("express"));
|
|
11574
11784
|
|
|
11575
11785
|
// src/data/operations/data/goal/goal-create-operation.ts
|
|
11576
|
-
var
|
|
11786
|
+
var import_ulid49 = require("ulid");
|
|
11577
11787
|
async function createGoalOperation(params) {
|
|
11578
11788
|
const { context, body, tableName } = params;
|
|
11579
11789
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
11580
|
-
const id = body.id ?? (0,
|
|
11790
|
+
const id = body.id ?? (0, import_ulid49.ulid)();
|
|
11581
11791
|
const meta = {
|
|
11582
11792
|
...body.meta ?? {},
|
|
11583
11793
|
lastUpdated: date,
|
|
@@ -11762,22 +11972,22 @@ async function updateGoalRoute(req, res) {
|
|
|
11762
11972
|
}
|
|
11763
11973
|
|
|
11764
11974
|
// src/data/rest-api/routes/data/goal/goal.ts
|
|
11765
|
-
var
|
|
11766
|
-
|
|
11767
|
-
|
|
11768
|
-
|
|
11769
|
-
|
|
11770
|
-
|
|
11975
|
+
var router50 = import_express50.default.Router();
|
|
11976
|
+
router50.get("/", listGoalsRoute);
|
|
11977
|
+
router50.get("/:id", getGoalByIdRoute);
|
|
11978
|
+
router50.post("/", createGoalRoute);
|
|
11979
|
+
router50.put("/:id", updateGoalRoute);
|
|
11980
|
+
router50.delete("/:id", deleteGoalRoute);
|
|
11771
11981
|
|
|
11772
11982
|
// src/data/rest-api/routes/data/group/group.ts
|
|
11773
|
-
var
|
|
11983
|
+
var import_express51 = __toESM(require("express"));
|
|
11774
11984
|
|
|
11775
11985
|
// src/data/operations/data/group/group-create-operation.ts
|
|
11776
|
-
var
|
|
11986
|
+
var import_ulid50 = require("ulid");
|
|
11777
11987
|
async function createGroupOperation(params) {
|
|
11778
11988
|
const { context, body, tableName } = params;
|
|
11779
11989
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
11780
|
-
const id = body.id ?? (0,
|
|
11990
|
+
const id = body.id ?? (0, import_ulid50.ulid)();
|
|
11781
11991
|
const meta = {
|
|
11782
11992
|
...body.meta ?? {},
|
|
11783
11993
|
lastUpdated: date,
|
|
@@ -11962,22 +12172,22 @@ async function updateGroupRoute(req, res) {
|
|
|
11962
12172
|
}
|
|
11963
12173
|
|
|
11964
12174
|
// src/data/rest-api/routes/data/group/group.ts
|
|
11965
|
-
var
|
|
11966
|
-
|
|
11967
|
-
|
|
11968
|
-
|
|
11969
|
-
|
|
11970
|
-
|
|
12175
|
+
var router51 = import_express51.default.Router();
|
|
12176
|
+
router51.get("/", listGroupsRoute);
|
|
12177
|
+
router51.get("/:id", getGroupByIdRoute);
|
|
12178
|
+
router51.post("/", createGroupRoute);
|
|
12179
|
+
router51.put("/:id", updateGroupRoute);
|
|
12180
|
+
router51.delete("/:id", deleteGroupRoute);
|
|
11971
12181
|
|
|
11972
12182
|
// src/data/rest-api/routes/data/guidanceresponse/guidanceresponse.ts
|
|
11973
|
-
var
|
|
12183
|
+
var import_express52 = __toESM(require("express"));
|
|
11974
12184
|
|
|
11975
12185
|
// src/data/operations/data/guidanceresponse/guidanceresponse-create-operation.ts
|
|
11976
|
-
var
|
|
12186
|
+
var import_ulid51 = require("ulid");
|
|
11977
12187
|
async function createGuidanceResponseOperation(params) {
|
|
11978
12188
|
const { context, body, tableName } = params;
|
|
11979
12189
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
11980
|
-
const id = body.id ?? (0,
|
|
12190
|
+
const id = body.id ?? (0, import_ulid51.ulid)();
|
|
11981
12191
|
const meta = {
|
|
11982
12192
|
...body.meta ?? {},
|
|
11983
12193
|
lastUpdated: date,
|
|
@@ -12169,22 +12379,22 @@ async function updateGuidanceResponseRoute(req, res) {
|
|
|
12169
12379
|
}
|
|
12170
12380
|
|
|
12171
12381
|
// src/data/rest-api/routes/data/guidanceresponse/guidanceresponse.ts
|
|
12172
|
-
var
|
|
12173
|
-
|
|
12174
|
-
|
|
12175
|
-
|
|
12176
|
-
|
|
12177
|
-
|
|
12382
|
+
var router52 = import_express52.default.Router();
|
|
12383
|
+
router52.get("/", listGuidanceResponsesRoute);
|
|
12384
|
+
router52.get("/:id", getGuidanceResponseByIdRoute);
|
|
12385
|
+
router52.post("/", createGuidanceResponseRoute);
|
|
12386
|
+
router52.put("/:id", updateGuidanceResponseRoute);
|
|
12387
|
+
router52.delete("/:id", deleteGuidanceResponseRoute);
|
|
12178
12388
|
|
|
12179
12389
|
// src/data/rest-api/routes/data/healthcareservice/healthcareservice.ts
|
|
12180
|
-
var
|
|
12390
|
+
var import_express53 = __toESM(require("express"));
|
|
12181
12391
|
|
|
12182
12392
|
// src/data/operations/data/healthcareservice/healthcareservice-create-operation.ts
|
|
12183
|
-
var
|
|
12393
|
+
var import_ulid52 = require("ulid");
|
|
12184
12394
|
async function createHealthcareServiceOperation(params) {
|
|
12185
12395
|
const { context, body, tableName } = params;
|
|
12186
12396
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
12187
|
-
const id = body.id ?? (0,
|
|
12397
|
+
const id = body.id ?? (0, import_ulid52.ulid)();
|
|
12188
12398
|
const meta = {
|
|
12189
12399
|
...body.meta ?? {},
|
|
12190
12400
|
lastUpdated: date,
|
|
@@ -12379,22 +12589,22 @@ async function updateHealthcareServiceRoute(req, res) {
|
|
|
12379
12589
|
}
|
|
12380
12590
|
|
|
12381
12591
|
// src/data/rest-api/routes/data/healthcareservice/healthcareservice.ts
|
|
12382
|
-
var
|
|
12383
|
-
|
|
12384
|
-
|
|
12385
|
-
|
|
12386
|
-
|
|
12387
|
-
|
|
12592
|
+
var router53 = import_express53.default.Router();
|
|
12593
|
+
router53.get("/", listHealthcareServicesRoute);
|
|
12594
|
+
router53.get("/:id", getHealthcareServiceByIdRoute);
|
|
12595
|
+
router53.post("/", createHealthcareServiceRoute);
|
|
12596
|
+
router53.put("/:id", updateHealthcareServiceRoute);
|
|
12597
|
+
router53.delete("/:id", deleteHealthcareServiceRoute);
|
|
12388
12598
|
|
|
12389
12599
|
// src/data/rest-api/routes/data/imagingstudy/imagingstudy.ts
|
|
12390
|
-
var
|
|
12600
|
+
var import_express54 = __toESM(require("express"));
|
|
12391
12601
|
|
|
12392
12602
|
// src/data/operations/data/imagingstudy/imagingstudy-create-operation.ts
|
|
12393
|
-
var
|
|
12603
|
+
var import_ulid53 = require("ulid");
|
|
12394
12604
|
async function createImagingStudyOperation(params) {
|
|
12395
12605
|
const { context, body, tableName } = params;
|
|
12396
12606
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
12397
|
-
const id = body.id ?? (0,
|
|
12607
|
+
const id = body.id ?? (0, import_ulid53.ulid)();
|
|
12398
12608
|
const meta = {
|
|
12399
12609
|
...body.meta ?? {},
|
|
12400
12610
|
lastUpdated: date,
|
|
@@ -12579,22 +12789,22 @@ async function updateImagingStudyRoute(req, res) {
|
|
|
12579
12789
|
}
|
|
12580
12790
|
|
|
12581
12791
|
// src/data/rest-api/routes/data/imagingstudy/imagingstudy.ts
|
|
12582
|
-
var
|
|
12583
|
-
|
|
12584
|
-
|
|
12585
|
-
|
|
12586
|
-
|
|
12587
|
-
|
|
12792
|
+
var router54 = import_express54.default.Router();
|
|
12793
|
+
router54.get("/", listImagingStudysRoute);
|
|
12794
|
+
router54.get("/:id", getImagingStudyByIdRoute);
|
|
12795
|
+
router54.post("/", createImagingStudyRoute);
|
|
12796
|
+
router54.put("/:id", updateImagingStudyRoute);
|
|
12797
|
+
router54.delete("/:id", deleteImagingStudyRoute);
|
|
12588
12798
|
|
|
12589
12799
|
// src/data/rest-api/routes/data/immunization/immunization.ts
|
|
12590
|
-
var
|
|
12800
|
+
var import_express55 = __toESM(require("express"));
|
|
12591
12801
|
|
|
12592
12802
|
// src/data/operations/data/immunization/immunization-create-operation.ts
|
|
12593
|
-
var
|
|
12803
|
+
var import_ulid54 = require("ulid");
|
|
12594
12804
|
async function createImmunizationOperation(params) {
|
|
12595
12805
|
const { context, body, tableName } = params;
|
|
12596
12806
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
12597
|
-
const id = body.id ?? (0,
|
|
12807
|
+
const id = body.id ?? (0, import_ulid54.ulid)();
|
|
12598
12808
|
const meta = {
|
|
12599
12809
|
...body.meta ?? {},
|
|
12600
12810
|
lastUpdated: date,
|
|
@@ -12779,22 +12989,22 @@ async function updateImmunizationRoute(req, res) {
|
|
|
12779
12989
|
}
|
|
12780
12990
|
|
|
12781
12991
|
// src/data/rest-api/routes/data/immunization/immunization.ts
|
|
12782
|
-
var
|
|
12783
|
-
|
|
12784
|
-
|
|
12785
|
-
|
|
12786
|
-
|
|
12787
|
-
|
|
12992
|
+
var router55 = import_express55.default.Router();
|
|
12993
|
+
router55.get("/", listImmunizationsRoute);
|
|
12994
|
+
router55.get("/:id", getImmunizationByIdRoute);
|
|
12995
|
+
router55.post("/", createImmunizationRoute);
|
|
12996
|
+
router55.put("/:id", updateImmunizationRoute);
|
|
12997
|
+
router55.delete("/:id", deleteImmunizationRoute);
|
|
12788
12998
|
|
|
12789
12999
|
// src/data/rest-api/routes/data/immunizationevaluation/immunizationevaluation.ts
|
|
12790
|
-
var
|
|
13000
|
+
var import_express56 = __toESM(require("express"));
|
|
12791
13001
|
|
|
12792
13002
|
// src/data/operations/data/immunizationevaluation/immunizationevaluation-create-operation.ts
|
|
12793
|
-
var
|
|
13003
|
+
var import_ulid55 = require("ulid");
|
|
12794
13004
|
async function createImmunizationEvaluationOperation(params) {
|
|
12795
13005
|
const { context, body, tableName } = params;
|
|
12796
13006
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
12797
|
-
const id = body.id ?? (0,
|
|
13007
|
+
const id = body.id ?? (0, import_ulid55.ulid)();
|
|
12798
13008
|
const meta = {
|
|
12799
13009
|
...body.meta ?? {},
|
|
12800
13010
|
lastUpdated: date,
|
|
@@ -13005,22 +13215,22 @@ async function updateImmunizationEvaluationRoute(req, res) {
|
|
|
13005
13215
|
}
|
|
13006
13216
|
|
|
13007
13217
|
// src/data/rest-api/routes/data/immunizationevaluation/immunizationevaluation.ts
|
|
13008
|
-
var
|
|
13009
|
-
|
|
13010
|
-
|
|
13011
|
-
|
|
13012
|
-
|
|
13013
|
-
|
|
13218
|
+
var router56 = import_express56.default.Router();
|
|
13219
|
+
router56.get("/", listImmunizationEvaluationsRoute);
|
|
13220
|
+
router56.get("/:id", getImmunizationEvaluationByIdRoute);
|
|
13221
|
+
router56.post("/", createImmunizationEvaluationRoute);
|
|
13222
|
+
router56.put("/:id", updateImmunizationEvaluationRoute);
|
|
13223
|
+
router56.delete("/:id", deleteImmunizationEvaluationRoute);
|
|
13014
13224
|
|
|
13015
13225
|
// src/data/rest-api/routes/data/immunizationrecommendation/immunizationrecommendation.ts
|
|
13016
|
-
var
|
|
13226
|
+
var import_express57 = __toESM(require("express"));
|
|
13017
13227
|
|
|
13018
13228
|
// src/data/operations/data/immunizationrecommendation/immunizationrecommendation-create-operation.ts
|
|
13019
|
-
var
|
|
13229
|
+
var import_ulid56 = require("ulid");
|
|
13020
13230
|
async function createImmunizationRecommendationOperation(params) {
|
|
13021
13231
|
const { context, body, tableName } = params;
|
|
13022
13232
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
13023
|
-
const id = body.id ?? (0,
|
|
13233
|
+
const id = body.id ?? (0, import_ulid56.ulid)();
|
|
13024
13234
|
const meta = {
|
|
13025
13235
|
...body.meta ?? {},
|
|
13026
13236
|
lastUpdated: date,
|
|
@@ -13233,22 +13443,22 @@ async function updateImmunizationRecommendationRoute(req, res) {
|
|
|
13233
13443
|
}
|
|
13234
13444
|
|
|
13235
13445
|
// src/data/rest-api/routes/data/immunizationrecommendation/immunizationrecommendation.ts
|
|
13236
|
-
var
|
|
13237
|
-
|
|
13238
|
-
|
|
13239
|
-
|
|
13240
|
-
|
|
13241
|
-
|
|
13446
|
+
var router57 = import_express57.default.Router();
|
|
13447
|
+
router57.get("/", listImmunizationRecommendationsRoute);
|
|
13448
|
+
router57.get("/:id", getImmunizationRecommendationByIdRoute);
|
|
13449
|
+
router57.post("/", createImmunizationRecommendationRoute);
|
|
13450
|
+
router57.put("/:id", updateImmunizationRecommendationRoute);
|
|
13451
|
+
router57.delete("/:id", deleteImmunizationRecommendationRoute);
|
|
13242
13452
|
|
|
13243
13453
|
// src/data/rest-api/routes/data/insuranceplan/insuranceplan.ts
|
|
13244
|
-
var
|
|
13454
|
+
var import_express58 = __toESM(require("express"));
|
|
13245
13455
|
|
|
13246
13456
|
// src/data/operations/data/insuranceplan/insuranceplan-create-operation.ts
|
|
13247
|
-
var
|
|
13457
|
+
var import_ulid57 = require("ulid");
|
|
13248
13458
|
async function createInsurancePlanOperation(params) {
|
|
13249
13459
|
const { context, body, tableName } = params;
|
|
13250
13460
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
13251
|
-
const id = body.id ?? (0,
|
|
13461
|
+
const id = body.id ?? (0, import_ulid57.ulid)();
|
|
13252
13462
|
const meta = {
|
|
13253
13463
|
...body.meta ?? {},
|
|
13254
13464
|
lastUpdated: date,
|
|
@@ -13436,22 +13646,22 @@ async function updateInsurancePlanRoute(req, res) {
|
|
|
13436
13646
|
}
|
|
13437
13647
|
|
|
13438
13648
|
// src/data/rest-api/routes/data/insuranceplan/insuranceplan.ts
|
|
13439
|
-
var
|
|
13440
|
-
|
|
13441
|
-
|
|
13442
|
-
|
|
13443
|
-
|
|
13444
|
-
|
|
13649
|
+
var router58 = import_express58.default.Router();
|
|
13650
|
+
router58.get("/", listInsurancePlansRoute);
|
|
13651
|
+
router58.get("/:id", getInsurancePlanByIdRoute);
|
|
13652
|
+
router58.post("/", createInsurancePlanRoute);
|
|
13653
|
+
router58.put("/:id", updateInsurancePlanRoute);
|
|
13654
|
+
router58.delete("/:id", deleteInsurancePlanRoute);
|
|
13445
13655
|
|
|
13446
13656
|
// src/data/rest-api/routes/data/invoice/invoice.ts
|
|
13447
|
-
var
|
|
13657
|
+
var import_express59 = __toESM(require("express"));
|
|
13448
13658
|
|
|
13449
13659
|
// src/data/operations/data/invoice/invoice-create-operation.ts
|
|
13450
|
-
var
|
|
13660
|
+
var import_ulid58 = require("ulid");
|
|
13451
13661
|
async function createInvoiceOperation(params) {
|
|
13452
13662
|
const { context, body, tableName } = params;
|
|
13453
13663
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
13454
|
-
const id = body.id ?? (0,
|
|
13664
|
+
const id = body.id ?? (0, import_ulid58.ulid)();
|
|
13455
13665
|
const meta = {
|
|
13456
13666
|
...body.meta ?? {},
|
|
13457
13667
|
lastUpdated: date,
|
|
@@ -13636,22 +13846,22 @@ async function updateInvoiceRoute(req, res) {
|
|
|
13636
13846
|
}
|
|
13637
13847
|
|
|
13638
13848
|
// src/data/rest-api/routes/data/invoice/invoice.ts
|
|
13639
|
-
var
|
|
13640
|
-
|
|
13641
|
-
|
|
13642
|
-
|
|
13643
|
-
|
|
13644
|
-
|
|
13849
|
+
var router59 = import_express59.default.Router();
|
|
13850
|
+
router59.get("/", listInvoicesRoute);
|
|
13851
|
+
router59.get("/:id", getInvoiceByIdRoute);
|
|
13852
|
+
router59.post("/", createInvoiceRoute);
|
|
13853
|
+
router59.put("/:id", updateInvoiceRoute);
|
|
13854
|
+
router59.delete("/:id", deleteInvoiceRoute);
|
|
13645
13855
|
|
|
13646
13856
|
// src/data/rest-api/routes/data/library/library.ts
|
|
13647
|
-
var
|
|
13857
|
+
var import_express60 = __toESM(require("express"));
|
|
13648
13858
|
|
|
13649
13859
|
// src/data/operations/data/library/library-create-operation.ts
|
|
13650
|
-
var
|
|
13860
|
+
var import_ulid59 = require("ulid");
|
|
13651
13861
|
async function createLibraryOperation(params) {
|
|
13652
13862
|
const { context, body, tableName } = params;
|
|
13653
13863
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
13654
|
-
const id = body.id ?? (0,
|
|
13864
|
+
const id = body.id ?? (0, import_ulid59.ulid)();
|
|
13655
13865
|
const meta = {
|
|
13656
13866
|
...body.meta ?? {},
|
|
13657
13867
|
lastUpdated: date,
|
|
@@ -13836,22 +14046,22 @@ async function updateLibraryRoute(req, res) {
|
|
|
13836
14046
|
}
|
|
13837
14047
|
|
|
13838
14048
|
// src/data/rest-api/routes/data/library/library.ts
|
|
13839
|
-
var
|
|
13840
|
-
|
|
13841
|
-
|
|
13842
|
-
|
|
13843
|
-
|
|
13844
|
-
|
|
14049
|
+
var router60 = import_express60.default.Router();
|
|
14050
|
+
router60.get("/", listLibrarysRoute);
|
|
14051
|
+
router60.get("/:id", getLibraryByIdRoute);
|
|
14052
|
+
router60.post("/", createLibraryRoute);
|
|
14053
|
+
router60.put("/:id", updateLibraryRoute);
|
|
14054
|
+
router60.delete("/:id", deleteLibraryRoute);
|
|
13845
14055
|
|
|
13846
14056
|
// src/data/rest-api/routes/data/linkage/linkage.ts
|
|
13847
|
-
var
|
|
14057
|
+
var import_express61 = __toESM(require("express"));
|
|
13848
14058
|
|
|
13849
14059
|
// src/data/operations/data/linkage/linkage-create-operation.ts
|
|
13850
|
-
var
|
|
14060
|
+
var import_ulid60 = require("ulid");
|
|
13851
14061
|
async function createLinkageOperation(params) {
|
|
13852
14062
|
const { context, body, tableName } = params;
|
|
13853
14063
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
13854
|
-
const id = body.id ?? (0,
|
|
14064
|
+
const id = body.id ?? (0, import_ulid60.ulid)();
|
|
13855
14065
|
const meta = {
|
|
13856
14066
|
...body.meta ?? {},
|
|
13857
14067
|
lastUpdated: date,
|
|
@@ -14036,22 +14246,22 @@ async function updateLinkageRoute(req, res) {
|
|
|
14036
14246
|
}
|
|
14037
14247
|
|
|
14038
14248
|
// src/data/rest-api/routes/data/linkage/linkage.ts
|
|
14039
|
-
var
|
|
14040
|
-
|
|
14041
|
-
|
|
14042
|
-
|
|
14043
|
-
|
|
14044
|
-
|
|
14249
|
+
var router61 = import_express61.default.Router();
|
|
14250
|
+
router61.get("/", listLinkagesRoute);
|
|
14251
|
+
router61.get("/:id", getLinkageByIdRoute);
|
|
14252
|
+
router61.post("/", createLinkageRoute);
|
|
14253
|
+
router61.put("/:id", updateLinkageRoute);
|
|
14254
|
+
router61.delete("/:id", deleteLinkageRoute);
|
|
14045
14255
|
|
|
14046
14256
|
// src/data/rest-api/routes/data/list/list.ts
|
|
14047
|
-
var
|
|
14257
|
+
var import_express62 = __toESM(require("express"));
|
|
14048
14258
|
|
|
14049
14259
|
// src/data/operations/data/list/list-create-operation.ts
|
|
14050
|
-
var
|
|
14260
|
+
var import_ulid61 = require("ulid");
|
|
14051
14261
|
async function createListOperation(params) {
|
|
14052
14262
|
const { context, body, tableName } = params;
|
|
14053
14263
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
14054
|
-
const id = body.id ?? (0,
|
|
14264
|
+
const id = body.id ?? (0, import_ulid61.ulid)();
|
|
14055
14265
|
const meta = {
|
|
14056
14266
|
...body.meta ?? {},
|
|
14057
14267
|
lastUpdated: date,
|
|
@@ -14236,22 +14446,22 @@ async function updateListRoute(req, res) {
|
|
|
14236
14446
|
}
|
|
14237
14447
|
|
|
14238
14448
|
// src/data/rest-api/routes/data/list/list.ts
|
|
14239
|
-
var
|
|
14240
|
-
|
|
14241
|
-
|
|
14242
|
-
|
|
14243
|
-
|
|
14244
|
-
|
|
14449
|
+
var router62 = import_express62.default.Router();
|
|
14450
|
+
router62.get("/", listListsRoute);
|
|
14451
|
+
router62.get("/:id", getListByIdRoute);
|
|
14452
|
+
router62.post("/", createListRoute);
|
|
14453
|
+
router62.put("/:id", updateListRoute);
|
|
14454
|
+
router62.delete("/:id", deleteListRoute);
|
|
14245
14455
|
|
|
14246
14456
|
// src/data/rest-api/routes/data/location/location.ts
|
|
14247
|
-
var
|
|
14457
|
+
var import_express63 = __toESM(require("express"));
|
|
14248
14458
|
|
|
14249
14459
|
// src/data/operations/data/location/location-create-operation.ts
|
|
14250
|
-
var
|
|
14460
|
+
var import_ulid62 = require("ulid");
|
|
14251
14461
|
async function createLocationOperation(params) {
|
|
14252
14462
|
const { context, body, tableName } = params;
|
|
14253
14463
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
14254
|
-
const id = body.id ?? (0,
|
|
14464
|
+
const id = body.id ?? (0, import_ulid62.ulid)();
|
|
14255
14465
|
const meta = {
|
|
14256
14466
|
...body.meta ?? {},
|
|
14257
14467
|
lastUpdated: date,
|
|
@@ -14436,22 +14646,22 @@ async function updateLocationRoute(req, res) {
|
|
|
14436
14646
|
}
|
|
14437
14647
|
|
|
14438
14648
|
// src/data/rest-api/routes/data/location/location.ts
|
|
14439
|
-
var
|
|
14440
|
-
|
|
14441
|
-
|
|
14442
|
-
|
|
14443
|
-
|
|
14444
|
-
|
|
14649
|
+
var router63 = import_express63.default.Router();
|
|
14650
|
+
router63.get("/", listLocationsRoute);
|
|
14651
|
+
router63.get("/:id", getLocationByIdRoute);
|
|
14652
|
+
router63.post("/", createLocationRoute);
|
|
14653
|
+
router63.put("/:id", updateLocationRoute);
|
|
14654
|
+
router63.delete("/:id", deleteLocationRoute);
|
|
14445
14655
|
|
|
14446
14656
|
// src/data/rest-api/routes/data/measure/measure.ts
|
|
14447
|
-
var
|
|
14657
|
+
var import_express64 = __toESM(require("express"));
|
|
14448
14658
|
|
|
14449
14659
|
// src/data/operations/data/measure/measure-create-operation.ts
|
|
14450
|
-
var
|
|
14660
|
+
var import_ulid63 = require("ulid");
|
|
14451
14661
|
async function createMeasureOperation(params) {
|
|
14452
14662
|
const { context, body, tableName } = params;
|
|
14453
14663
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
14454
|
-
const id = body.id ?? (0,
|
|
14664
|
+
const id = body.id ?? (0, import_ulid63.ulid)();
|
|
14455
14665
|
const meta = {
|
|
14456
14666
|
...body.meta ?? {},
|
|
14457
14667
|
lastUpdated: date,
|
|
@@ -14636,22 +14846,22 @@ async function updateMeasureRoute(req, res) {
|
|
|
14636
14846
|
}
|
|
14637
14847
|
|
|
14638
14848
|
// src/data/rest-api/routes/data/measure/measure.ts
|
|
14639
|
-
var
|
|
14640
|
-
|
|
14641
|
-
|
|
14642
|
-
|
|
14643
|
-
|
|
14644
|
-
|
|
14849
|
+
var router64 = import_express64.default.Router();
|
|
14850
|
+
router64.get("/", listMeasuresRoute);
|
|
14851
|
+
router64.get("/:id", getMeasureByIdRoute);
|
|
14852
|
+
router64.post("/", createMeasureRoute);
|
|
14853
|
+
router64.put("/:id", updateMeasureRoute);
|
|
14854
|
+
router64.delete("/:id", deleteMeasureRoute);
|
|
14645
14855
|
|
|
14646
14856
|
// src/data/rest-api/routes/data/measurereport/measurereport.ts
|
|
14647
|
-
var
|
|
14857
|
+
var import_express65 = __toESM(require("express"));
|
|
14648
14858
|
|
|
14649
14859
|
// src/data/operations/data/measurereport/measurereport-create-operation.ts
|
|
14650
|
-
var
|
|
14860
|
+
var import_ulid64 = require("ulid");
|
|
14651
14861
|
async function createMeasureReportOperation(params) {
|
|
14652
14862
|
const { context, body, tableName } = params;
|
|
14653
14863
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
14654
|
-
const id = body.id ?? (0,
|
|
14864
|
+
const id = body.id ?? (0, import_ulid64.ulid)();
|
|
14655
14865
|
const meta = {
|
|
14656
14866
|
...body.meta ?? {},
|
|
14657
14867
|
lastUpdated: date,
|
|
@@ -14839,22 +15049,22 @@ async function updateMeasureReportRoute(req, res) {
|
|
|
14839
15049
|
}
|
|
14840
15050
|
|
|
14841
15051
|
// src/data/rest-api/routes/data/measurereport/measurereport.ts
|
|
14842
|
-
var
|
|
14843
|
-
|
|
14844
|
-
|
|
14845
|
-
|
|
14846
|
-
|
|
14847
|
-
|
|
15052
|
+
var router65 = import_express65.default.Router();
|
|
15053
|
+
router65.get("/", listMeasureReportsRoute);
|
|
15054
|
+
router65.get("/:id", getMeasureReportByIdRoute);
|
|
15055
|
+
router65.post("/", createMeasureReportRoute);
|
|
15056
|
+
router65.put("/:id", updateMeasureReportRoute);
|
|
15057
|
+
router65.delete("/:id", deleteMeasureReportRoute);
|
|
14848
15058
|
|
|
14849
15059
|
// src/data/rest-api/routes/data/media/media.ts
|
|
14850
|
-
var
|
|
15060
|
+
var import_express66 = __toESM(require("express"));
|
|
14851
15061
|
|
|
14852
15062
|
// src/data/operations/data/media/media-create-operation.ts
|
|
14853
|
-
var
|
|
15063
|
+
var import_ulid65 = require("ulid");
|
|
14854
15064
|
async function createMediaOperation(params) {
|
|
14855
15065
|
const { context, body, tableName } = params;
|
|
14856
15066
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
14857
|
-
const id = body.id ?? (0,
|
|
15067
|
+
const id = body.id ?? (0, import_ulid65.ulid)();
|
|
14858
15068
|
const meta = {
|
|
14859
15069
|
...body.meta ?? {},
|
|
14860
15070
|
lastUpdated: date,
|
|
@@ -15039,22 +15249,22 @@ async function updateMediaRoute(req, res) {
|
|
|
15039
15249
|
}
|
|
15040
15250
|
|
|
15041
15251
|
// src/data/rest-api/routes/data/media/media.ts
|
|
15042
|
-
var
|
|
15043
|
-
|
|
15044
|
-
|
|
15045
|
-
|
|
15046
|
-
|
|
15047
|
-
|
|
15252
|
+
var router66 = import_express66.default.Router();
|
|
15253
|
+
router66.get("/", listMediasRoute);
|
|
15254
|
+
router66.get("/:id", getMediaByIdRoute);
|
|
15255
|
+
router66.post("/", createMediaRoute);
|
|
15256
|
+
router66.put("/:id", updateMediaRoute);
|
|
15257
|
+
router66.delete("/:id", deleteMediaRoute);
|
|
15048
15258
|
|
|
15049
15259
|
// src/data/rest-api/routes/data/medication/medication.ts
|
|
15050
|
-
var
|
|
15260
|
+
var import_express67 = __toESM(require("express"));
|
|
15051
15261
|
|
|
15052
15262
|
// src/data/operations/data/medication/medication-create-operation.ts
|
|
15053
|
-
var
|
|
15263
|
+
var import_ulid66 = require("ulid");
|
|
15054
15264
|
async function createMedicationOperation(params) {
|
|
15055
15265
|
const { context, body, tableName } = params;
|
|
15056
15266
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
15057
|
-
const id = body.id ?? (0,
|
|
15267
|
+
const id = body.id ?? (0, import_ulid66.ulid)();
|
|
15058
15268
|
const meta = {
|
|
15059
15269
|
...body.meta ?? {},
|
|
15060
15270
|
lastUpdated: date,
|
|
@@ -15239,22 +15449,22 @@ async function updateMedicationRoute(req, res) {
|
|
|
15239
15449
|
}
|
|
15240
15450
|
|
|
15241
15451
|
// src/data/rest-api/routes/data/medication/medication.ts
|
|
15242
|
-
var
|
|
15243
|
-
|
|
15244
|
-
|
|
15245
|
-
|
|
15246
|
-
|
|
15247
|
-
|
|
15452
|
+
var router67 = import_express67.default.Router();
|
|
15453
|
+
router67.get("/", listMedicationsRoute);
|
|
15454
|
+
router67.get("/:id", getMedicationByIdRoute);
|
|
15455
|
+
router67.post("/", createMedicationRoute);
|
|
15456
|
+
router67.put("/:id", updateMedicationRoute);
|
|
15457
|
+
router67.delete("/:id", deleteMedicationRoute);
|
|
15248
15458
|
|
|
15249
15459
|
// src/data/rest-api/routes/data/medicationadministration/medicationadministration.ts
|
|
15250
|
-
var
|
|
15460
|
+
var import_express68 = __toESM(require("express"));
|
|
15251
15461
|
|
|
15252
15462
|
// src/data/operations/data/medicationadministration/medicationadministration-create-operation.ts
|
|
15253
|
-
var
|
|
15463
|
+
var import_ulid67 = require("ulid");
|
|
15254
15464
|
async function createMedicationAdministrationOperation(params) {
|
|
15255
15465
|
const { context, body, tableName } = params;
|
|
15256
15466
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
15257
|
-
const id = body.id ?? (0,
|
|
15467
|
+
const id = body.id ?? (0, import_ulid67.ulid)();
|
|
15258
15468
|
const meta = {
|
|
15259
15469
|
...body.meta ?? {},
|
|
15260
15470
|
lastUpdated: date,
|
|
@@ -15467,22 +15677,22 @@ async function updateMedicationAdministrationRoute(req, res) {
|
|
|
15467
15677
|
}
|
|
15468
15678
|
|
|
15469
15679
|
// src/data/rest-api/routes/data/medicationadministration/medicationadministration.ts
|
|
15470
|
-
var
|
|
15471
|
-
|
|
15472
|
-
|
|
15473
|
-
|
|
15474
|
-
|
|
15475
|
-
|
|
15680
|
+
var router68 = import_express68.default.Router();
|
|
15681
|
+
router68.get("/", listMedicationAdministrationsRoute);
|
|
15682
|
+
router68.get("/:id", getMedicationAdministrationByIdRoute);
|
|
15683
|
+
router68.post("/", createMedicationAdministrationRoute);
|
|
15684
|
+
router68.put("/:id", updateMedicationAdministrationRoute);
|
|
15685
|
+
router68.delete("/:id", deleteMedicationAdministrationRoute);
|
|
15476
15686
|
|
|
15477
15687
|
// src/data/rest-api/routes/data/medicationdispense/medicationdispense.ts
|
|
15478
|
-
var
|
|
15688
|
+
var import_express69 = __toESM(require("express"));
|
|
15479
15689
|
|
|
15480
15690
|
// src/data/operations/data/medicationdispense/medicationdispense-create-operation.ts
|
|
15481
|
-
var
|
|
15691
|
+
var import_ulid68 = require("ulid");
|
|
15482
15692
|
async function createMedicationDispenseOperation(params) {
|
|
15483
15693
|
const { context, body, tableName } = params;
|
|
15484
15694
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
15485
|
-
const id = body.id ?? (0,
|
|
15695
|
+
const id = body.id ?? (0, import_ulid68.ulid)();
|
|
15486
15696
|
const meta = {
|
|
15487
15697
|
...body.meta ?? {},
|
|
15488
15698
|
lastUpdated: date,
|
|
@@ -15681,22 +15891,22 @@ async function updateMedicationDispenseRoute(req, res) {
|
|
|
15681
15891
|
}
|
|
15682
15892
|
|
|
15683
15893
|
// src/data/rest-api/routes/data/medicationdispense/medicationdispense.ts
|
|
15684
|
-
var
|
|
15685
|
-
|
|
15686
|
-
|
|
15687
|
-
|
|
15688
|
-
|
|
15689
|
-
|
|
15894
|
+
var router69 = import_express69.default.Router();
|
|
15895
|
+
router69.get("/", listMedicationDispensesRoute);
|
|
15896
|
+
router69.get("/:id", getMedicationDispenseByIdRoute);
|
|
15897
|
+
router69.post("/", createMedicationDispenseRoute);
|
|
15898
|
+
router69.put("/:id", updateMedicationDispenseRoute);
|
|
15899
|
+
router69.delete("/:id", deleteMedicationDispenseRoute);
|
|
15690
15900
|
|
|
15691
15901
|
// src/data/rest-api/routes/data/medicationknowledge/medicationknowledge.ts
|
|
15692
|
-
var
|
|
15902
|
+
var import_express70 = __toESM(require("express"));
|
|
15693
15903
|
|
|
15694
15904
|
// src/data/operations/data/medicationknowledge/medicationknowledge-create-operation.ts
|
|
15695
|
-
var
|
|
15905
|
+
var import_ulid69 = require("ulid");
|
|
15696
15906
|
async function createMedicationKnowledgeOperation(params) {
|
|
15697
15907
|
const { context, body, tableName } = params;
|
|
15698
15908
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
15699
|
-
const id = body.id ?? (0,
|
|
15909
|
+
const id = body.id ?? (0, import_ulid69.ulid)();
|
|
15700
15910
|
const meta = {
|
|
15701
15911
|
...body.meta ?? {},
|
|
15702
15912
|
lastUpdated: date,
|
|
@@ -15895,22 +16105,22 @@ async function updateMedicationKnowledgeRoute(req, res) {
|
|
|
15895
16105
|
}
|
|
15896
16106
|
|
|
15897
16107
|
// src/data/rest-api/routes/data/medicationknowledge/medicationknowledge.ts
|
|
15898
|
-
var
|
|
15899
|
-
|
|
15900
|
-
|
|
15901
|
-
|
|
15902
|
-
|
|
15903
|
-
|
|
16108
|
+
var router70 = import_express70.default.Router();
|
|
16109
|
+
router70.get("/", listMedicationKnowledgesRoute);
|
|
16110
|
+
router70.get("/:id", getMedicationKnowledgeByIdRoute);
|
|
16111
|
+
router70.post("/", createMedicationKnowledgeRoute);
|
|
16112
|
+
router70.put("/:id", updateMedicationKnowledgeRoute);
|
|
16113
|
+
router70.delete("/:id", deleteMedicationKnowledgeRoute);
|
|
15904
16114
|
|
|
15905
16115
|
// src/data/rest-api/routes/data/medicationrequest/medicationrequest.ts
|
|
15906
|
-
var
|
|
16116
|
+
var import_express71 = __toESM(require("express"));
|
|
15907
16117
|
|
|
15908
16118
|
// src/data/operations/data/medicationrequest/medicationrequest-create-operation.ts
|
|
15909
|
-
var
|
|
16119
|
+
var import_ulid70 = require("ulid");
|
|
15910
16120
|
async function createMedicationRequestOperation(params) {
|
|
15911
16121
|
const { context, body, tableName } = params;
|
|
15912
16122
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
15913
|
-
const id = body.id ?? (0,
|
|
16123
|
+
const id = body.id ?? (0, import_ulid70.ulid)();
|
|
15914
16124
|
const meta = {
|
|
15915
16125
|
...body.meta ?? {},
|
|
15916
16126
|
lastUpdated: date,
|
|
@@ -16105,22 +16315,22 @@ async function updateMedicationRequestRoute(req, res) {
|
|
|
16105
16315
|
}
|
|
16106
16316
|
|
|
16107
16317
|
// src/data/rest-api/routes/data/medicationrequest/medicationrequest.ts
|
|
16108
|
-
var
|
|
16109
|
-
|
|
16110
|
-
|
|
16111
|
-
|
|
16112
|
-
|
|
16113
|
-
|
|
16318
|
+
var router71 = import_express71.default.Router();
|
|
16319
|
+
router71.get("/", listMedicationRequestsRoute);
|
|
16320
|
+
router71.get("/:id", getMedicationRequestByIdRoute);
|
|
16321
|
+
router71.post("/", createMedicationRequestRoute);
|
|
16322
|
+
router71.put("/:id", updateMedicationRequestRoute);
|
|
16323
|
+
router71.delete("/:id", deleteMedicationRequestRoute);
|
|
16114
16324
|
|
|
16115
16325
|
// src/data/rest-api/routes/data/medicationstatement/medicationstatement.ts
|
|
16116
|
-
var
|
|
16326
|
+
var import_express72 = __toESM(require("express"));
|
|
16117
16327
|
|
|
16118
16328
|
// src/data/operations/data/medicationstatement/medicationstatement-create-operation.ts
|
|
16119
|
-
var
|
|
16329
|
+
var import_ulid71 = require("ulid");
|
|
16120
16330
|
async function createMedicationStatementOperation(params) {
|
|
16121
16331
|
const { context, body, tableName } = params;
|
|
16122
16332
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
16123
|
-
const id = body.id ?? (0,
|
|
16333
|
+
const id = body.id ?? (0, import_ulid71.ulid)();
|
|
16124
16334
|
const meta = {
|
|
16125
16335
|
...body.meta ?? {},
|
|
16126
16336
|
lastUpdated: date,
|
|
@@ -16319,22 +16529,22 @@ async function updateMedicationStatementRoute(req, res) {
|
|
|
16319
16529
|
}
|
|
16320
16530
|
|
|
16321
16531
|
// src/data/rest-api/routes/data/medicationstatement/medicationstatement.ts
|
|
16322
|
-
var
|
|
16323
|
-
|
|
16324
|
-
|
|
16325
|
-
|
|
16326
|
-
|
|
16327
|
-
|
|
16532
|
+
var router72 = import_express72.default.Router();
|
|
16533
|
+
router72.get("/", listMedicationStatementsRoute);
|
|
16534
|
+
router72.get("/:id", getMedicationStatementByIdRoute);
|
|
16535
|
+
router72.post("/", createMedicationStatementRoute);
|
|
16536
|
+
router72.put("/:id", updateMedicationStatementRoute);
|
|
16537
|
+
router72.delete("/:id", deleteMedicationStatementRoute);
|
|
16328
16538
|
|
|
16329
16539
|
// src/data/rest-api/routes/data/messageheader/messageheader.ts
|
|
16330
|
-
var
|
|
16540
|
+
var import_express73 = __toESM(require("express"));
|
|
16331
16541
|
|
|
16332
16542
|
// src/data/operations/data/messageheader/messageheader-create-operation.ts
|
|
16333
|
-
var
|
|
16543
|
+
var import_ulid72 = require("ulid");
|
|
16334
16544
|
async function createMessageHeaderOperation(params) {
|
|
16335
16545
|
const { context, body, tableName } = params;
|
|
16336
16546
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
16337
|
-
const id = body.id ?? (0,
|
|
16547
|
+
const id = body.id ?? (0, import_ulid72.ulid)();
|
|
16338
16548
|
const meta = {
|
|
16339
16549
|
...body.meta ?? {},
|
|
16340
16550
|
lastUpdated: date,
|
|
@@ -16522,22 +16732,22 @@ async function updateMessageHeaderRoute(req, res) {
|
|
|
16522
16732
|
}
|
|
16523
16733
|
|
|
16524
16734
|
// src/data/rest-api/routes/data/messageheader/messageheader.ts
|
|
16525
|
-
var
|
|
16526
|
-
|
|
16527
|
-
|
|
16528
|
-
|
|
16529
|
-
|
|
16530
|
-
|
|
16735
|
+
var router73 = import_express73.default.Router();
|
|
16736
|
+
router73.get("/", listMessageHeadersRoute);
|
|
16737
|
+
router73.get("/:id", getMessageHeaderByIdRoute);
|
|
16738
|
+
router73.post("/", createMessageHeaderRoute);
|
|
16739
|
+
router73.put("/:id", updateMessageHeaderRoute);
|
|
16740
|
+
router73.delete("/:id", deleteMessageHeaderRoute);
|
|
16531
16741
|
|
|
16532
16742
|
// src/data/rest-api/routes/data/molecularsequence/molecularsequence.ts
|
|
16533
|
-
var
|
|
16743
|
+
var import_express74 = __toESM(require("express"));
|
|
16534
16744
|
|
|
16535
16745
|
// src/data/operations/data/molecularsequence/molecularsequence-create-operation.ts
|
|
16536
|
-
var
|
|
16746
|
+
var import_ulid73 = require("ulid");
|
|
16537
16747
|
async function createMolecularSequenceOperation(params) {
|
|
16538
16748
|
const { context, body, tableName } = params;
|
|
16539
16749
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
16540
|
-
const id = body.id ?? (0,
|
|
16750
|
+
const id = body.id ?? (0, import_ulid73.ulid)();
|
|
16541
16751
|
const meta = {
|
|
16542
16752
|
...body.meta ?? {},
|
|
16543
16753
|
lastUpdated: date,
|
|
@@ -16732,22 +16942,22 @@ async function updateMolecularSequenceRoute(req, res) {
|
|
|
16732
16942
|
}
|
|
16733
16943
|
|
|
16734
16944
|
// src/data/rest-api/routes/data/molecularsequence/molecularsequence.ts
|
|
16735
|
-
var
|
|
16736
|
-
|
|
16737
|
-
|
|
16738
|
-
|
|
16739
|
-
|
|
16740
|
-
|
|
16945
|
+
var router74 = import_express74.default.Router();
|
|
16946
|
+
router74.get("/", listMolecularSequencesRoute);
|
|
16947
|
+
router74.get("/:id", getMolecularSequenceByIdRoute);
|
|
16948
|
+
router74.post("/", createMolecularSequenceRoute);
|
|
16949
|
+
router74.put("/:id", updateMolecularSequenceRoute);
|
|
16950
|
+
router74.delete("/:id", deleteMolecularSequenceRoute);
|
|
16741
16951
|
|
|
16742
16952
|
// src/data/rest-api/routes/data/nutritionorder/nutritionorder.ts
|
|
16743
|
-
var
|
|
16953
|
+
var import_express75 = __toESM(require("express"));
|
|
16744
16954
|
|
|
16745
16955
|
// src/data/operations/data/nutritionorder/nutritionorder-create-operation.ts
|
|
16746
|
-
var
|
|
16956
|
+
var import_ulid74 = require("ulid");
|
|
16747
16957
|
async function createNutritionOrderOperation(params) {
|
|
16748
16958
|
const { context, body, tableName } = params;
|
|
16749
16959
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
16750
|
-
const id = body.id ?? (0,
|
|
16960
|
+
const id = body.id ?? (0, import_ulid74.ulid)();
|
|
16751
16961
|
const meta = {
|
|
16752
16962
|
...body.meta ?? {},
|
|
16753
16963
|
lastUpdated: date,
|
|
@@ -16935,22 +17145,22 @@ async function updateNutritionOrderRoute(req, res) {
|
|
|
16935
17145
|
}
|
|
16936
17146
|
|
|
16937
17147
|
// src/data/rest-api/routes/data/nutritionorder/nutritionorder.ts
|
|
16938
|
-
var
|
|
16939
|
-
|
|
16940
|
-
|
|
16941
|
-
|
|
16942
|
-
|
|
16943
|
-
|
|
17148
|
+
var router75 = import_express75.default.Router();
|
|
17149
|
+
router75.get("/", listNutritionOrdersRoute);
|
|
17150
|
+
router75.get("/:id", getNutritionOrderByIdRoute);
|
|
17151
|
+
router75.post("/", createNutritionOrderRoute);
|
|
17152
|
+
router75.put("/:id", updateNutritionOrderRoute);
|
|
17153
|
+
router75.delete("/:id", deleteNutritionOrderRoute);
|
|
16944
17154
|
|
|
16945
17155
|
// src/data/rest-api/routes/data/observation/observation.ts
|
|
16946
|
-
var
|
|
17156
|
+
var import_express76 = __toESM(require("express"));
|
|
16947
17157
|
|
|
16948
17158
|
// src/data/operations/data/observation/observation-create-operation.ts
|
|
16949
|
-
var
|
|
17159
|
+
var import_ulid75 = require("ulid");
|
|
16950
17160
|
async function createObservationOperation(params) {
|
|
16951
17161
|
const { context, body, tableName } = params;
|
|
16952
17162
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
16953
|
-
const id = body.id ?? (0,
|
|
17163
|
+
const id = body.id ?? (0, import_ulid75.ulid)();
|
|
16954
17164
|
const meta = {
|
|
16955
17165
|
...body.meta ?? {},
|
|
16956
17166
|
lastUpdated: date,
|
|
@@ -17135,22 +17345,22 @@ async function updateObservationRoute(req, res) {
|
|
|
17135
17345
|
}
|
|
17136
17346
|
|
|
17137
17347
|
// src/data/rest-api/routes/data/observation/observation.ts
|
|
17138
|
-
var
|
|
17139
|
-
|
|
17140
|
-
|
|
17141
|
-
|
|
17142
|
-
|
|
17143
|
-
|
|
17348
|
+
var router76 = import_express76.default.Router();
|
|
17349
|
+
router76.get("/", listObservationsRoute);
|
|
17350
|
+
router76.get("/:id", getObservationByIdRoute);
|
|
17351
|
+
router76.post("/", createObservationRoute);
|
|
17352
|
+
router76.put("/:id", updateObservationRoute);
|
|
17353
|
+
router76.delete("/:id", deleteObservationRoute);
|
|
17144
17354
|
|
|
17145
17355
|
// src/data/rest-api/routes/data/organization/organization.ts
|
|
17146
|
-
var
|
|
17356
|
+
var import_express77 = __toESM(require("express"));
|
|
17147
17357
|
|
|
17148
17358
|
// src/data/operations/data/organization/organization-create-operation.ts
|
|
17149
|
-
var
|
|
17359
|
+
var import_ulid76 = require("ulid");
|
|
17150
17360
|
async function createOrganizationOperation(params) {
|
|
17151
17361
|
const { context, body, tableName } = params;
|
|
17152
17362
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
17153
|
-
const id = body.id ?? (0,
|
|
17363
|
+
const id = body.id ?? (0, import_ulid76.ulid)();
|
|
17154
17364
|
const meta = {
|
|
17155
17365
|
...body.meta ?? {},
|
|
17156
17366
|
lastUpdated: date,
|
|
@@ -17335,22 +17545,22 @@ async function updateOrganizationRoute(req, res) {
|
|
|
17335
17545
|
}
|
|
17336
17546
|
|
|
17337
17547
|
// src/data/rest-api/routes/data/organization/organization.ts
|
|
17338
|
-
var
|
|
17339
|
-
|
|
17340
|
-
|
|
17341
|
-
|
|
17342
|
-
|
|
17343
|
-
|
|
17548
|
+
var router77 = import_express77.default.Router();
|
|
17549
|
+
router77.get("/", listOrganizationsRoute);
|
|
17550
|
+
router77.get("/:id", getOrganizationByIdRoute);
|
|
17551
|
+
router77.post("/", createOrganizationRoute);
|
|
17552
|
+
router77.put("/:id", updateOrganizationRoute);
|
|
17553
|
+
router77.delete("/:id", deleteOrganizationRoute);
|
|
17344
17554
|
|
|
17345
17555
|
// src/data/rest-api/routes/data/organizationaffiliation/organizationaffiliation.ts
|
|
17346
|
-
var
|
|
17556
|
+
var import_express78 = __toESM(require("express"));
|
|
17347
17557
|
|
|
17348
17558
|
// src/data/operations/data/organizationaffiliation/organizationaffiliation-create-operation.ts
|
|
17349
|
-
var
|
|
17559
|
+
var import_ulid77 = require("ulid");
|
|
17350
17560
|
async function createOrganizationAffiliationOperation(params) {
|
|
17351
17561
|
const { context, body, tableName } = params;
|
|
17352
17562
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
17353
|
-
const id = body.id ?? (0,
|
|
17563
|
+
const id = body.id ?? (0, import_ulid77.ulid)();
|
|
17354
17564
|
const meta = {
|
|
17355
17565
|
...body.meta ?? {},
|
|
17356
17566
|
lastUpdated: date,
|
|
@@ -17563,18 +17773,18 @@ async function updateOrganizationAffiliationRoute(req, res) {
|
|
|
17563
17773
|
}
|
|
17564
17774
|
|
|
17565
17775
|
// src/data/rest-api/routes/data/organizationaffiliation/organizationaffiliation.ts
|
|
17566
|
-
var
|
|
17567
|
-
|
|
17568
|
-
|
|
17569
|
-
|
|
17570
|
-
|
|
17571
|
-
|
|
17776
|
+
var router78 = import_express78.default.Router();
|
|
17777
|
+
router78.get("/", listOrganizationAffiliationsRoute);
|
|
17778
|
+
router78.get("/:id", getOrganizationAffiliationByIdRoute);
|
|
17779
|
+
router78.post("/", createOrganizationAffiliationRoute);
|
|
17780
|
+
router78.put("/:id", updateOrganizationAffiliationRoute);
|
|
17781
|
+
router78.delete("/:id", deleteOrganizationAffiliationRoute);
|
|
17572
17782
|
|
|
17573
17783
|
// src/data/rest-api/routes/data/patient/patient.ts
|
|
17574
|
-
var
|
|
17784
|
+
var import_express79 = __toESM(require("express"));
|
|
17575
17785
|
|
|
17576
17786
|
// src/data/operations/data/patient/patient-create-operation.ts
|
|
17577
|
-
var
|
|
17787
|
+
var import_ulid78 = require("ulid");
|
|
17578
17788
|
|
|
17579
17789
|
// src/data/import-patient.ts
|
|
17580
17790
|
var import_node_fs = require("fs");
|
|
@@ -17699,7 +17909,7 @@ if (require.main === module) {
|
|
|
17699
17909
|
async function createPatientOperation(params) {
|
|
17700
17910
|
const { context, body } = params;
|
|
17701
17911
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
17702
|
-
const id = body.id ?? (0,
|
|
17912
|
+
const id = body.id ?? (0, import_ulid78.ulid)();
|
|
17703
17913
|
const meta = {
|
|
17704
17914
|
...body.meta ?? {},
|
|
17705
17915
|
lastUpdated: date,
|
|
@@ -17885,22 +18095,22 @@ async function updatePatientRoute(req, res) {
|
|
|
17885
18095
|
}
|
|
17886
18096
|
|
|
17887
18097
|
// src/data/rest-api/routes/data/patient/patient.ts
|
|
17888
|
-
var
|
|
17889
|
-
|
|
17890
|
-
|
|
17891
|
-
|
|
17892
|
-
|
|
17893
|
-
|
|
18098
|
+
var router79 = import_express79.default.Router();
|
|
18099
|
+
router79.get("/", listPatientsRoute);
|
|
18100
|
+
router79.get("/:id", getPatientByIdRoute);
|
|
18101
|
+
router79.post("/", createPatientRoute);
|
|
18102
|
+
router79.put("/:id", updatePatientRoute);
|
|
18103
|
+
router79.delete("/:id", deletePatientRoute);
|
|
17894
18104
|
|
|
17895
18105
|
// src/data/rest-api/routes/data/paymentnotice/paymentnotice.ts
|
|
17896
|
-
var
|
|
18106
|
+
var import_express80 = __toESM(require("express"));
|
|
17897
18107
|
|
|
17898
18108
|
// src/data/operations/data/paymentnotice/paymentnotice-create-operation.ts
|
|
17899
|
-
var
|
|
18109
|
+
var import_ulid79 = require("ulid");
|
|
17900
18110
|
async function createPaymentNoticeOperation(params) {
|
|
17901
18111
|
const { context, body, tableName } = params;
|
|
17902
18112
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
17903
|
-
const id = body.id ?? (0,
|
|
18113
|
+
const id = body.id ?? (0, import_ulid79.ulid)();
|
|
17904
18114
|
const meta = {
|
|
17905
18115
|
...body.meta ?? {},
|
|
17906
18116
|
lastUpdated: date,
|
|
@@ -18088,22 +18298,22 @@ async function updatePaymentNoticeRoute(req, res) {
|
|
|
18088
18298
|
}
|
|
18089
18299
|
|
|
18090
18300
|
// src/data/rest-api/routes/data/paymentnotice/paymentnotice.ts
|
|
18091
|
-
var
|
|
18092
|
-
|
|
18093
|
-
|
|
18094
|
-
|
|
18095
|
-
|
|
18096
|
-
|
|
18301
|
+
var router80 = import_express80.default.Router();
|
|
18302
|
+
router80.get("/", listPaymentNoticesRoute);
|
|
18303
|
+
router80.get("/:id", getPaymentNoticeByIdRoute);
|
|
18304
|
+
router80.post("/", createPaymentNoticeRoute);
|
|
18305
|
+
router80.put("/:id", updatePaymentNoticeRoute);
|
|
18306
|
+
router80.delete("/:id", deletePaymentNoticeRoute);
|
|
18097
18307
|
|
|
18098
18308
|
// src/data/rest-api/routes/data/paymentreconciliation/paymentreconciliation.ts
|
|
18099
|
-
var
|
|
18309
|
+
var import_express81 = __toESM(require("express"));
|
|
18100
18310
|
|
|
18101
18311
|
// src/data/operations/data/paymentreconciliation/paymentreconciliation-create-operation.ts
|
|
18102
|
-
var
|
|
18312
|
+
var import_ulid80 = require("ulid");
|
|
18103
18313
|
async function createPaymentReconciliationOperation(params) {
|
|
18104
18314
|
const { context, body, tableName } = params;
|
|
18105
18315
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
18106
|
-
const id = body.id ?? (0,
|
|
18316
|
+
const id = body.id ?? (0, import_ulid80.ulid)();
|
|
18107
18317
|
const meta = {
|
|
18108
18318
|
...body.meta ?? {},
|
|
18109
18319
|
lastUpdated: date,
|
|
@@ -18314,22 +18524,22 @@ async function updatePaymentReconciliationRoute(req, res) {
|
|
|
18314
18524
|
}
|
|
18315
18525
|
|
|
18316
18526
|
// src/data/rest-api/routes/data/paymentreconciliation/paymentreconciliation.ts
|
|
18317
|
-
var
|
|
18318
|
-
|
|
18319
|
-
|
|
18320
|
-
|
|
18321
|
-
|
|
18322
|
-
|
|
18527
|
+
var router81 = import_express81.default.Router();
|
|
18528
|
+
router81.get("/", listPaymentReconciliationsRoute);
|
|
18529
|
+
router81.get("/:id", getPaymentReconciliationByIdRoute);
|
|
18530
|
+
router81.post("/", createPaymentReconciliationRoute);
|
|
18531
|
+
router81.put("/:id", updatePaymentReconciliationRoute);
|
|
18532
|
+
router81.delete("/:id", deletePaymentReconciliationRoute);
|
|
18323
18533
|
|
|
18324
18534
|
// src/data/rest-api/routes/data/person/person.ts
|
|
18325
|
-
var
|
|
18535
|
+
var import_express82 = __toESM(require("express"));
|
|
18326
18536
|
|
|
18327
18537
|
// src/data/operations/data/person/person-create-operation.ts
|
|
18328
|
-
var
|
|
18538
|
+
var import_ulid81 = require("ulid");
|
|
18329
18539
|
async function createPersonOperation(params) {
|
|
18330
18540
|
const { context, body, tableName } = params;
|
|
18331
18541
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
18332
|
-
const id = body.id ?? (0,
|
|
18542
|
+
const id = body.id ?? (0, import_ulid81.ulid)();
|
|
18333
18543
|
const meta = {
|
|
18334
18544
|
...body.meta ?? {},
|
|
18335
18545
|
lastUpdated: date,
|
|
@@ -18514,22 +18724,22 @@ async function updatePersonRoute(req, res) {
|
|
|
18514
18724
|
}
|
|
18515
18725
|
|
|
18516
18726
|
// src/data/rest-api/routes/data/person/person.ts
|
|
18517
|
-
var
|
|
18518
|
-
|
|
18519
|
-
|
|
18520
|
-
|
|
18521
|
-
|
|
18522
|
-
|
|
18727
|
+
var router82 = import_express82.default.Router();
|
|
18728
|
+
router82.get("/", listPersonsRoute);
|
|
18729
|
+
router82.get("/:id", getPersonByIdRoute);
|
|
18730
|
+
router82.post("/", createPersonRoute);
|
|
18731
|
+
router82.put("/:id", updatePersonRoute);
|
|
18732
|
+
router82.delete("/:id", deletePersonRoute);
|
|
18523
18733
|
|
|
18524
18734
|
// src/data/rest-api/routes/data/plandefinition/plandefinition.ts
|
|
18525
|
-
var
|
|
18735
|
+
var import_express83 = __toESM(require("express"));
|
|
18526
18736
|
|
|
18527
18737
|
// src/data/operations/data/plandefinition/plandefinition-create-operation.ts
|
|
18528
|
-
var
|
|
18738
|
+
var import_ulid82 = require("ulid");
|
|
18529
18739
|
async function createPlanDefinitionOperation(params) {
|
|
18530
18740
|
const { context, body, tableName } = params;
|
|
18531
18741
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
18532
|
-
const id = body.id ?? (0,
|
|
18742
|
+
const id = body.id ?? (0, import_ulid82.ulid)();
|
|
18533
18743
|
const meta = {
|
|
18534
18744
|
...body.meta ?? {},
|
|
18535
18745
|
lastUpdated: date,
|
|
@@ -18717,22 +18927,22 @@ async function updatePlanDefinitionRoute(req, res) {
|
|
|
18717
18927
|
}
|
|
18718
18928
|
|
|
18719
18929
|
// src/data/rest-api/routes/data/plandefinition/plandefinition.ts
|
|
18720
|
-
var
|
|
18721
|
-
|
|
18722
|
-
|
|
18723
|
-
|
|
18724
|
-
|
|
18725
|
-
|
|
18930
|
+
var router83 = import_express83.default.Router();
|
|
18931
|
+
router83.get("/", listPlanDefinitionsRoute);
|
|
18932
|
+
router83.get("/:id", getPlanDefinitionByIdRoute);
|
|
18933
|
+
router83.post("/", createPlanDefinitionRoute);
|
|
18934
|
+
router83.put("/:id", updatePlanDefinitionRoute);
|
|
18935
|
+
router83.delete("/:id", deletePlanDefinitionRoute);
|
|
18726
18936
|
|
|
18727
18937
|
// src/data/rest-api/routes/data/practitioner/practitioner.ts
|
|
18728
|
-
var
|
|
18938
|
+
var import_express84 = __toESM(require("express"));
|
|
18729
18939
|
|
|
18730
18940
|
// src/data/operations/data/practitioner/practitioner-create-operation.ts
|
|
18731
|
-
var
|
|
18941
|
+
var import_ulid83 = require("ulid");
|
|
18732
18942
|
async function createPractitionerOperation(params) {
|
|
18733
18943
|
const { context, body, tableName } = params;
|
|
18734
18944
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
18735
|
-
const id = body.id ?? (0,
|
|
18945
|
+
const id = body.id ?? (0, import_ulid83.ulid)();
|
|
18736
18946
|
const meta = {
|
|
18737
18947
|
...body.meta ?? {},
|
|
18738
18948
|
lastUpdated: date,
|
|
@@ -18922,22 +19132,22 @@ async function updatePractitionerRoute(req, res) {
|
|
|
18922
19132
|
}
|
|
18923
19133
|
|
|
18924
19134
|
// src/data/rest-api/routes/data/practitioner/practitioner.ts
|
|
18925
|
-
var
|
|
18926
|
-
|
|
18927
|
-
|
|
18928
|
-
|
|
18929
|
-
|
|
18930
|
-
|
|
19135
|
+
var router84 = import_express84.default.Router();
|
|
19136
|
+
router84.get("/", listPractitionersRoute);
|
|
19137
|
+
router84.get("/:id", getPractitionerByIdRoute);
|
|
19138
|
+
router84.post("/", createPractitionerRoute);
|
|
19139
|
+
router84.put("/:id", updatePractitionerRoute);
|
|
19140
|
+
router84.delete("/:id", deletePractitionerRoute);
|
|
18931
19141
|
|
|
18932
19142
|
// src/data/rest-api/routes/data/practitionerrole/practitionerrole.ts
|
|
18933
|
-
var
|
|
19143
|
+
var import_express85 = __toESM(require("express"));
|
|
18934
19144
|
|
|
18935
19145
|
// src/data/operations/data/practitionerrole/practitionerrole-create-operation.ts
|
|
18936
|
-
var
|
|
19146
|
+
var import_ulid84 = require("ulid");
|
|
18937
19147
|
async function createPractitionerRoleOperation(params) {
|
|
18938
19148
|
const { context, body, tableName } = params;
|
|
18939
19149
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
18940
|
-
const id = body.id ?? (0,
|
|
19150
|
+
const id = body.id ?? (0, import_ulid84.ulid)();
|
|
18941
19151
|
const meta = {
|
|
18942
19152
|
...body.meta ?? {},
|
|
18943
19153
|
lastUpdated: date,
|
|
@@ -19129,22 +19339,22 @@ async function updatePractitionerRoleRoute(req, res) {
|
|
|
19129
19339
|
}
|
|
19130
19340
|
|
|
19131
19341
|
// src/data/rest-api/routes/data/practitionerrole/practitionerrole.ts
|
|
19132
|
-
var
|
|
19133
|
-
|
|
19134
|
-
|
|
19135
|
-
|
|
19136
|
-
|
|
19137
|
-
|
|
19342
|
+
var router85 = import_express85.default.Router();
|
|
19343
|
+
router85.get("/", listPractitionerRolesRoute);
|
|
19344
|
+
router85.get("/:id", getPractitionerRoleByIdRoute);
|
|
19345
|
+
router85.post("/", createPractitionerRoleRoute);
|
|
19346
|
+
router85.put("/:id", updatePractitionerRoleRoute);
|
|
19347
|
+
router85.delete("/:id", deletePractitionerRoleRoute);
|
|
19138
19348
|
|
|
19139
19349
|
// src/data/rest-api/routes/data/procedure/procedure.ts
|
|
19140
|
-
var
|
|
19350
|
+
var import_express86 = __toESM(require("express"));
|
|
19141
19351
|
|
|
19142
19352
|
// src/data/operations/data/procedure/procedure-create-operation.ts
|
|
19143
|
-
var
|
|
19353
|
+
var import_ulid85 = require("ulid");
|
|
19144
19354
|
async function createProcedureOperation(params) {
|
|
19145
19355
|
const { context, body, tableName } = params;
|
|
19146
19356
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
19147
|
-
const id = body.id ?? (0,
|
|
19357
|
+
const id = body.id ?? (0, import_ulid85.ulid)();
|
|
19148
19358
|
const meta = {
|
|
19149
19359
|
...body.meta ?? {},
|
|
19150
19360
|
lastUpdated: date,
|
|
@@ -19329,22 +19539,22 @@ async function updateProcedureRoute(req, res) {
|
|
|
19329
19539
|
}
|
|
19330
19540
|
|
|
19331
19541
|
// src/data/rest-api/routes/data/procedure/procedure.ts
|
|
19332
|
-
var
|
|
19333
|
-
|
|
19334
|
-
|
|
19335
|
-
|
|
19336
|
-
|
|
19337
|
-
|
|
19542
|
+
var router86 = import_express86.default.Router();
|
|
19543
|
+
router86.get("/", listProceduresRoute);
|
|
19544
|
+
router86.get("/:id", getProcedureByIdRoute);
|
|
19545
|
+
router86.post("/", createProcedureRoute);
|
|
19546
|
+
router86.put("/:id", updateProcedureRoute);
|
|
19547
|
+
router86.delete("/:id", deleteProcedureRoute);
|
|
19338
19548
|
|
|
19339
19549
|
// src/data/rest-api/routes/data/provenance/provenance.ts
|
|
19340
|
-
var
|
|
19550
|
+
var import_express87 = __toESM(require("express"));
|
|
19341
19551
|
|
|
19342
19552
|
// src/data/operations/data/provenance/provenance-create-operation.ts
|
|
19343
|
-
var
|
|
19553
|
+
var import_ulid86 = require("ulid");
|
|
19344
19554
|
async function createProvenanceOperation(params) {
|
|
19345
19555
|
const { context, body, tableName } = params;
|
|
19346
19556
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
19347
|
-
const id = body.id ?? (0,
|
|
19557
|
+
const id = body.id ?? (0, import_ulid86.ulid)();
|
|
19348
19558
|
const meta = {
|
|
19349
19559
|
...body.meta ?? {},
|
|
19350
19560
|
lastUpdated: date,
|
|
@@ -19529,22 +19739,22 @@ async function updateProvenanceRoute(req, res) {
|
|
|
19529
19739
|
}
|
|
19530
19740
|
|
|
19531
19741
|
// src/data/rest-api/routes/data/provenance/provenance.ts
|
|
19532
|
-
var
|
|
19533
|
-
|
|
19534
|
-
|
|
19535
|
-
|
|
19536
|
-
|
|
19537
|
-
|
|
19742
|
+
var router87 = import_express87.default.Router();
|
|
19743
|
+
router87.get("/", listProvenancesRoute);
|
|
19744
|
+
router87.get("/:id", getProvenanceByIdRoute);
|
|
19745
|
+
router87.post("/", createProvenanceRoute);
|
|
19746
|
+
router87.put("/:id", updateProvenanceRoute);
|
|
19747
|
+
router87.delete("/:id", deleteProvenanceRoute);
|
|
19538
19748
|
|
|
19539
19749
|
// src/data/rest-api/routes/data/questionnaire/questionnaire.ts
|
|
19540
|
-
var
|
|
19750
|
+
var import_express88 = __toESM(require("express"));
|
|
19541
19751
|
|
|
19542
19752
|
// src/data/operations/data/questionnaire/questionnaire-create-operation.ts
|
|
19543
|
-
var
|
|
19753
|
+
var import_ulid87 = require("ulid");
|
|
19544
19754
|
async function createQuestionnaireOperation(params) {
|
|
19545
19755
|
const { context, body, tableName } = params;
|
|
19546
19756
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
19547
|
-
const id = body.id ?? (0,
|
|
19757
|
+
const id = body.id ?? (0, import_ulid87.ulid)();
|
|
19548
19758
|
const meta = {
|
|
19549
19759
|
...body.meta ?? {},
|
|
19550
19760
|
lastUpdated: date,
|
|
@@ -19732,22 +19942,22 @@ async function updateQuestionnaireRoute(req, res) {
|
|
|
19732
19942
|
}
|
|
19733
19943
|
|
|
19734
19944
|
// src/data/rest-api/routes/data/questionnaire/questionnaire.ts
|
|
19735
|
-
var
|
|
19736
|
-
|
|
19737
|
-
|
|
19738
|
-
|
|
19739
|
-
|
|
19740
|
-
|
|
19945
|
+
var router88 = import_express88.default.Router();
|
|
19946
|
+
router88.get("/", listQuestionnairesRoute);
|
|
19947
|
+
router88.get("/:id", getQuestionnaireByIdRoute);
|
|
19948
|
+
router88.post("/", createQuestionnaireRoute);
|
|
19949
|
+
router88.put("/:id", updateQuestionnaireRoute);
|
|
19950
|
+
router88.delete("/:id", deleteQuestionnaireRoute);
|
|
19741
19951
|
|
|
19742
19952
|
// src/data/rest-api/routes/data/questionnaireresponse/questionnaireresponse.ts
|
|
19743
|
-
var
|
|
19953
|
+
var import_express89 = __toESM(require("express"));
|
|
19744
19954
|
|
|
19745
19955
|
// src/data/operations/data/questionnaireresponse/questionnaireresponse-create-operation.ts
|
|
19746
|
-
var
|
|
19956
|
+
var import_ulid88 = require("ulid");
|
|
19747
19957
|
async function createQuestionnaireResponseOperation(params) {
|
|
19748
19958
|
const { context, body, tableName } = params;
|
|
19749
19959
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
19750
|
-
const id = body.id ?? (0,
|
|
19960
|
+
const id = body.id ?? (0, import_ulid88.ulid)();
|
|
19751
19961
|
const meta = {
|
|
19752
19962
|
...body.meta ?? {},
|
|
19753
19963
|
lastUpdated: date,
|
|
@@ -19958,22 +20168,22 @@ async function updateQuestionnaireResponseRoute(req, res) {
|
|
|
19958
20168
|
}
|
|
19959
20169
|
|
|
19960
20170
|
// src/data/rest-api/routes/data/questionnaireresponse/questionnaireresponse.ts
|
|
19961
|
-
var
|
|
19962
|
-
|
|
19963
|
-
|
|
19964
|
-
|
|
19965
|
-
|
|
19966
|
-
|
|
20171
|
+
var router89 = import_express89.default.Router();
|
|
20172
|
+
router89.get("/", listQuestionnaireResponsesRoute);
|
|
20173
|
+
router89.get("/:id", getQuestionnaireResponseByIdRoute);
|
|
20174
|
+
router89.post("/", createQuestionnaireResponseRoute);
|
|
20175
|
+
router89.put("/:id", updateQuestionnaireResponseRoute);
|
|
20176
|
+
router89.delete("/:id", deleteQuestionnaireResponseRoute);
|
|
19967
20177
|
|
|
19968
20178
|
// src/data/rest-api/routes/data/relatedperson/relatedperson.ts
|
|
19969
|
-
var
|
|
20179
|
+
var import_express90 = __toESM(require("express"));
|
|
19970
20180
|
|
|
19971
20181
|
// src/data/operations/data/relatedperson/relatedperson-create-operation.ts
|
|
19972
|
-
var
|
|
20182
|
+
var import_ulid89 = require("ulid");
|
|
19973
20183
|
async function createRelatedPersonOperation(params) {
|
|
19974
20184
|
const { context, body, tableName } = params;
|
|
19975
20185
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
19976
|
-
const id = body.id ?? (0,
|
|
20186
|
+
const id = body.id ?? (0, import_ulid89.ulid)();
|
|
19977
20187
|
const meta = {
|
|
19978
20188
|
...body.meta ?? {},
|
|
19979
20189
|
lastUpdated: date,
|
|
@@ -20161,22 +20371,22 @@ async function updateRelatedPersonRoute(req, res) {
|
|
|
20161
20371
|
}
|
|
20162
20372
|
|
|
20163
20373
|
// src/data/rest-api/routes/data/relatedperson/relatedperson.ts
|
|
20164
|
-
var
|
|
20165
|
-
|
|
20166
|
-
|
|
20167
|
-
|
|
20168
|
-
|
|
20169
|
-
|
|
20374
|
+
var router90 = import_express90.default.Router();
|
|
20375
|
+
router90.get("/", listRelatedPersonsRoute);
|
|
20376
|
+
router90.get("/:id", getRelatedPersonByIdRoute);
|
|
20377
|
+
router90.post("/", createRelatedPersonRoute);
|
|
20378
|
+
router90.put("/:id", updateRelatedPersonRoute);
|
|
20379
|
+
router90.delete("/:id", deleteRelatedPersonRoute);
|
|
20170
20380
|
|
|
20171
20381
|
// src/data/rest-api/routes/data/requestgroup/requestgroup.ts
|
|
20172
|
-
var
|
|
20382
|
+
var import_express91 = __toESM(require("express"));
|
|
20173
20383
|
|
|
20174
20384
|
// src/data/operations/data/requestgroup/requestgroup-create-operation.ts
|
|
20175
|
-
var
|
|
20385
|
+
var import_ulid90 = require("ulid");
|
|
20176
20386
|
async function createRequestGroupOperation(params) {
|
|
20177
20387
|
const { context, body, tableName } = params;
|
|
20178
20388
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
20179
|
-
const id = body.id ?? (0,
|
|
20389
|
+
const id = body.id ?? (0, import_ulid90.ulid)();
|
|
20180
20390
|
const meta = {
|
|
20181
20391
|
...body.meta ?? {},
|
|
20182
20392
|
lastUpdated: date,
|
|
@@ -20361,22 +20571,22 @@ async function updateRequestGroupRoute(req, res) {
|
|
|
20361
20571
|
}
|
|
20362
20572
|
|
|
20363
20573
|
// src/data/rest-api/routes/data/requestgroup/requestgroup.ts
|
|
20364
|
-
var
|
|
20365
|
-
|
|
20366
|
-
|
|
20367
|
-
|
|
20368
|
-
|
|
20369
|
-
|
|
20574
|
+
var router91 = import_express91.default.Router();
|
|
20575
|
+
router91.get("/", listRequestGroupsRoute);
|
|
20576
|
+
router91.get("/:id", getRequestGroupByIdRoute);
|
|
20577
|
+
router91.post("/", createRequestGroupRoute);
|
|
20578
|
+
router91.put("/:id", updateRequestGroupRoute);
|
|
20579
|
+
router91.delete("/:id", deleteRequestGroupRoute);
|
|
20370
20580
|
|
|
20371
20581
|
// src/data/rest-api/routes/data/researchstudy/researchstudy.ts
|
|
20372
|
-
var
|
|
20582
|
+
var import_express92 = __toESM(require("express"));
|
|
20373
20583
|
|
|
20374
20584
|
// src/data/operations/data/researchstudy/researchstudy-create-operation.ts
|
|
20375
|
-
var
|
|
20585
|
+
var import_ulid91 = require("ulid");
|
|
20376
20586
|
async function createResearchStudyOperation(params) {
|
|
20377
20587
|
const { context, body, tableName } = params;
|
|
20378
20588
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
20379
|
-
const id = body.id ?? (0,
|
|
20589
|
+
const id = body.id ?? (0, import_ulid91.ulid)();
|
|
20380
20590
|
const meta = {
|
|
20381
20591
|
...body.meta ?? {},
|
|
20382
20592
|
lastUpdated: date,
|
|
@@ -20564,22 +20774,22 @@ async function updateResearchStudyRoute(req, res) {
|
|
|
20564
20774
|
}
|
|
20565
20775
|
|
|
20566
20776
|
// src/data/rest-api/routes/data/researchstudy/researchstudy.ts
|
|
20567
|
-
var
|
|
20568
|
-
|
|
20569
|
-
|
|
20570
|
-
|
|
20571
|
-
|
|
20572
|
-
|
|
20777
|
+
var router92 = import_express92.default.Router();
|
|
20778
|
+
router92.get("/", listResearchStudysRoute);
|
|
20779
|
+
router92.get("/:id", getResearchStudyByIdRoute);
|
|
20780
|
+
router92.post("/", createResearchStudyRoute);
|
|
20781
|
+
router92.put("/:id", updateResearchStudyRoute);
|
|
20782
|
+
router92.delete("/:id", deleteResearchStudyRoute);
|
|
20573
20783
|
|
|
20574
20784
|
// src/data/rest-api/routes/data/researchsubject/researchsubject.ts
|
|
20575
|
-
var
|
|
20785
|
+
var import_express93 = __toESM(require("express"));
|
|
20576
20786
|
|
|
20577
20787
|
// src/data/operations/data/researchsubject/researchsubject-create-operation.ts
|
|
20578
|
-
var
|
|
20788
|
+
var import_ulid92 = require("ulid");
|
|
20579
20789
|
async function createResearchSubjectOperation(params) {
|
|
20580
20790
|
const { context, body, tableName } = params;
|
|
20581
20791
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
20582
|
-
const id = body.id ?? (0,
|
|
20792
|
+
const id = body.id ?? (0, import_ulid92.ulid)();
|
|
20583
20793
|
const meta = {
|
|
20584
20794
|
...body.meta ?? {},
|
|
20585
20795
|
lastUpdated: date,
|
|
@@ -20771,22 +20981,22 @@ async function updateResearchSubjectRoute(req, res) {
|
|
|
20771
20981
|
}
|
|
20772
20982
|
|
|
20773
20983
|
// src/data/rest-api/routes/data/researchsubject/researchsubject.ts
|
|
20774
|
-
var
|
|
20775
|
-
|
|
20776
|
-
|
|
20777
|
-
|
|
20778
|
-
|
|
20779
|
-
|
|
20984
|
+
var router93 = import_express93.default.Router();
|
|
20985
|
+
router93.get("/", listResearchSubjectsRoute);
|
|
20986
|
+
router93.get("/:id", getResearchSubjectByIdRoute);
|
|
20987
|
+
router93.post("/", createResearchSubjectRoute);
|
|
20988
|
+
router93.put("/:id", updateResearchSubjectRoute);
|
|
20989
|
+
router93.delete("/:id", deleteResearchSubjectRoute);
|
|
20780
20990
|
|
|
20781
20991
|
// src/data/rest-api/routes/data/riskassessment/riskassessment.ts
|
|
20782
|
-
var
|
|
20992
|
+
var import_express94 = __toESM(require("express"));
|
|
20783
20993
|
|
|
20784
20994
|
// src/data/operations/data/riskassessment/riskassessment-create-operation.ts
|
|
20785
|
-
var
|
|
20995
|
+
var import_ulid93 = require("ulid");
|
|
20786
20996
|
async function createRiskAssessmentOperation(params) {
|
|
20787
20997
|
const { context, body, tableName } = params;
|
|
20788
20998
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
20789
|
-
const id = body.id ?? (0,
|
|
20999
|
+
const id = body.id ?? (0, import_ulid93.ulid)();
|
|
20790
21000
|
const meta = {
|
|
20791
21001
|
...body.meta ?? {},
|
|
20792
21002
|
lastUpdated: date,
|
|
@@ -20974,22 +21184,22 @@ async function updateRiskAssessmentRoute(req, res) {
|
|
|
20974
21184
|
}
|
|
20975
21185
|
|
|
20976
21186
|
// src/data/rest-api/routes/data/riskassessment/riskassessment.ts
|
|
20977
|
-
var
|
|
20978
|
-
|
|
20979
|
-
|
|
20980
|
-
|
|
20981
|
-
|
|
20982
|
-
|
|
21187
|
+
var router94 = import_express94.default.Router();
|
|
21188
|
+
router94.get("/", listRiskAssessmentsRoute);
|
|
21189
|
+
router94.get("/:id", getRiskAssessmentByIdRoute);
|
|
21190
|
+
router94.post("/", createRiskAssessmentRoute);
|
|
21191
|
+
router94.put("/:id", updateRiskAssessmentRoute);
|
|
21192
|
+
router94.delete("/:id", deleteRiskAssessmentRoute);
|
|
20983
21193
|
|
|
20984
21194
|
// src/data/rest-api/routes/data/riskevidencesynthesis/riskevidencesynthesis.ts
|
|
20985
|
-
var
|
|
21195
|
+
var import_express95 = __toESM(require("express"));
|
|
20986
21196
|
|
|
20987
21197
|
// src/data/operations/data/riskevidencesynthesis/riskevidencesynthesis-create-operation.ts
|
|
20988
|
-
var
|
|
21198
|
+
var import_ulid94 = require("ulid");
|
|
20989
21199
|
async function createRiskEvidenceSynthesisOperation(params) {
|
|
20990
21200
|
const { context, body, tableName } = params;
|
|
20991
21201
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
20992
|
-
const id = body.id ?? (0,
|
|
21202
|
+
const id = body.id ?? (0, import_ulid94.ulid)();
|
|
20993
21203
|
const meta = {
|
|
20994
21204
|
...body.meta ?? {},
|
|
20995
21205
|
lastUpdated: date,
|
|
@@ -21200,22 +21410,22 @@ async function updateRiskEvidenceSynthesisRoute(req, res) {
|
|
|
21200
21410
|
}
|
|
21201
21411
|
|
|
21202
21412
|
// src/data/rest-api/routes/data/riskevidencesynthesis/riskevidencesynthesis.ts
|
|
21203
|
-
var
|
|
21204
|
-
|
|
21205
|
-
|
|
21206
|
-
|
|
21207
|
-
|
|
21208
|
-
|
|
21413
|
+
var router95 = import_express95.default.Router();
|
|
21414
|
+
router95.get("/", listRiskEvidenceSynthesissRoute);
|
|
21415
|
+
router95.get("/:id", getRiskEvidenceSynthesisByIdRoute);
|
|
21416
|
+
router95.post("/", createRiskEvidenceSynthesisRoute);
|
|
21417
|
+
router95.put("/:id", updateRiskEvidenceSynthesisRoute);
|
|
21418
|
+
router95.delete("/:id", deleteRiskEvidenceSynthesisRoute);
|
|
21209
21419
|
|
|
21210
21420
|
// src/data/rest-api/routes/data/schedule/schedule.ts
|
|
21211
|
-
var
|
|
21421
|
+
var import_express96 = __toESM(require("express"));
|
|
21212
21422
|
|
|
21213
21423
|
// src/data/operations/data/schedule/schedule-create-operation.ts
|
|
21214
|
-
var
|
|
21424
|
+
var import_ulid95 = require("ulid");
|
|
21215
21425
|
async function createScheduleOperation(params) {
|
|
21216
21426
|
const { context, body, tableName } = params;
|
|
21217
21427
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
21218
|
-
const id = body.id ?? (0,
|
|
21428
|
+
const id = body.id ?? (0, import_ulid95.ulid)();
|
|
21219
21429
|
const meta = {
|
|
21220
21430
|
...body.meta ?? {},
|
|
21221
21431
|
lastUpdated: date,
|
|
@@ -21400,22 +21610,22 @@ async function updateScheduleRoute(req, res) {
|
|
|
21400
21610
|
}
|
|
21401
21611
|
|
|
21402
21612
|
// src/data/rest-api/routes/data/schedule/schedule.ts
|
|
21403
|
-
var
|
|
21404
|
-
|
|
21405
|
-
|
|
21406
|
-
|
|
21407
|
-
|
|
21408
|
-
|
|
21613
|
+
var router96 = import_express96.default.Router();
|
|
21614
|
+
router96.get("/", listSchedulesRoute);
|
|
21615
|
+
router96.get("/:id", getScheduleByIdRoute);
|
|
21616
|
+
router96.post("/", createScheduleRoute);
|
|
21617
|
+
router96.put("/:id", updateScheduleRoute);
|
|
21618
|
+
router96.delete("/:id", deleteScheduleRoute);
|
|
21409
21619
|
|
|
21410
21620
|
// src/data/rest-api/routes/data/servicerequest/servicerequest.ts
|
|
21411
|
-
var
|
|
21621
|
+
var import_express97 = __toESM(require("express"));
|
|
21412
21622
|
|
|
21413
21623
|
// src/data/operations/data/servicerequest/servicerequest-create-operation.ts
|
|
21414
|
-
var
|
|
21624
|
+
var import_ulid96 = require("ulid");
|
|
21415
21625
|
async function createServiceRequestOperation(params) {
|
|
21416
21626
|
const { context, body, tableName } = params;
|
|
21417
21627
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
21418
|
-
const id = body.id ?? (0,
|
|
21628
|
+
const id = body.id ?? (0, import_ulid96.ulid)();
|
|
21419
21629
|
const meta = {
|
|
21420
21630
|
...body.meta ?? {},
|
|
21421
21631
|
lastUpdated: date,
|
|
@@ -21603,22 +21813,22 @@ async function updateServiceRequestRoute(req, res) {
|
|
|
21603
21813
|
}
|
|
21604
21814
|
|
|
21605
21815
|
// src/data/rest-api/routes/data/servicerequest/servicerequest.ts
|
|
21606
|
-
var
|
|
21607
|
-
|
|
21608
|
-
|
|
21609
|
-
|
|
21610
|
-
|
|
21611
|
-
|
|
21816
|
+
var router97 = import_express97.default.Router();
|
|
21817
|
+
router97.get("/", listServiceRequestsRoute);
|
|
21818
|
+
router97.get("/:id", getServiceRequestByIdRoute);
|
|
21819
|
+
router97.post("/", createServiceRequestRoute);
|
|
21820
|
+
router97.put("/:id", updateServiceRequestRoute);
|
|
21821
|
+
router97.delete("/:id", deleteServiceRequestRoute);
|
|
21612
21822
|
|
|
21613
21823
|
// src/data/rest-api/routes/data/slot/slot.ts
|
|
21614
|
-
var
|
|
21824
|
+
var import_express98 = __toESM(require("express"));
|
|
21615
21825
|
|
|
21616
21826
|
// src/data/operations/data/slot/slot-create-operation.ts
|
|
21617
|
-
var
|
|
21827
|
+
var import_ulid97 = require("ulid");
|
|
21618
21828
|
async function createSlotOperation(params) {
|
|
21619
21829
|
const { context, body, tableName } = params;
|
|
21620
21830
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
21621
|
-
const id = body.id ?? (0,
|
|
21831
|
+
const id = body.id ?? (0, import_ulid97.ulid)();
|
|
21622
21832
|
const meta = {
|
|
21623
21833
|
...body.meta ?? {},
|
|
21624
21834
|
lastUpdated: date,
|
|
@@ -21803,22 +22013,22 @@ async function updateSlotRoute(req, res) {
|
|
|
21803
22013
|
}
|
|
21804
22014
|
|
|
21805
22015
|
// src/data/rest-api/routes/data/slot/slot.ts
|
|
21806
|
-
var
|
|
21807
|
-
|
|
21808
|
-
|
|
21809
|
-
|
|
21810
|
-
|
|
21811
|
-
|
|
22016
|
+
var router98 = import_express98.default.Router();
|
|
22017
|
+
router98.get("/", listSlotsRoute);
|
|
22018
|
+
router98.get("/:id", getSlotByIdRoute);
|
|
22019
|
+
router98.post("/", createSlotRoute);
|
|
22020
|
+
router98.put("/:id", updateSlotRoute);
|
|
22021
|
+
router98.delete("/:id", deleteSlotRoute);
|
|
21812
22022
|
|
|
21813
22023
|
// src/data/rest-api/routes/data/specimen/specimen.ts
|
|
21814
|
-
var
|
|
22024
|
+
var import_express99 = __toESM(require("express"));
|
|
21815
22025
|
|
|
21816
22026
|
// src/data/operations/data/specimen/specimen-create-operation.ts
|
|
21817
|
-
var
|
|
22027
|
+
var import_ulid98 = require("ulid");
|
|
21818
22028
|
async function createSpecimenOperation(params) {
|
|
21819
22029
|
const { context, body, tableName } = params;
|
|
21820
22030
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
21821
|
-
const id = body.id ?? (0,
|
|
22031
|
+
const id = body.id ?? (0, import_ulid98.ulid)();
|
|
21822
22032
|
const meta = {
|
|
21823
22033
|
...body.meta ?? {},
|
|
21824
22034
|
lastUpdated: date,
|
|
@@ -22003,22 +22213,22 @@ async function updateSpecimenRoute(req, res) {
|
|
|
22003
22213
|
}
|
|
22004
22214
|
|
|
22005
22215
|
// src/data/rest-api/routes/data/specimen/specimen.ts
|
|
22006
|
-
var
|
|
22007
|
-
|
|
22008
|
-
|
|
22009
|
-
|
|
22010
|
-
|
|
22011
|
-
|
|
22216
|
+
var router99 = import_express99.default.Router();
|
|
22217
|
+
router99.get("/", listSpecimensRoute);
|
|
22218
|
+
router99.get("/:id", getSpecimenByIdRoute);
|
|
22219
|
+
router99.post("/", createSpecimenRoute);
|
|
22220
|
+
router99.put("/:id", updateSpecimenRoute);
|
|
22221
|
+
router99.delete("/:id", deleteSpecimenRoute);
|
|
22012
22222
|
|
|
22013
22223
|
// src/data/rest-api/routes/data/subscription/subscription.ts
|
|
22014
|
-
var
|
|
22224
|
+
var import_express100 = __toESM(require("express"));
|
|
22015
22225
|
|
|
22016
22226
|
// src/data/operations/data/subscription/subscription-create-operation.ts
|
|
22017
|
-
var
|
|
22227
|
+
var import_ulid99 = require("ulid");
|
|
22018
22228
|
async function createSubscriptionOperation(params) {
|
|
22019
22229
|
const { context, body, tableName } = params;
|
|
22020
22230
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
22021
|
-
const id = body.id ?? (0,
|
|
22231
|
+
const id = body.id ?? (0, import_ulid99.ulid)();
|
|
22022
22232
|
const meta = {
|
|
22023
22233
|
...body.meta ?? {},
|
|
22024
22234
|
lastUpdated: date,
|
|
@@ -22203,22 +22413,22 @@ async function updateSubscriptionRoute(req, res) {
|
|
|
22203
22413
|
}
|
|
22204
22414
|
|
|
22205
22415
|
// src/data/rest-api/routes/data/subscription/subscription.ts
|
|
22206
|
-
var
|
|
22207
|
-
|
|
22208
|
-
|
|
22209
|
-
|
|
22210
|
-
|
|
22211
|
-
|
|
22416
|
+
var router100 = import_express100.default.Router();
|
|
22417
|
+
router100.get("/", listSubscriptionsRoute);
|
|
22418
|
+
router100.get("/:id", getSubscriptionByIdRoute);
|
|
22419
|
+
router100.post("/", createSubscriptionRoute);
|
|
22420
|
+
router100.put("/:id", updateSubscriptionRoute);
|
|
22421
|
+
router100.delete("/:id", deleteSubscriptionRoute);
|
|
22212
22422
|
|
|
22213
22423
|
// src/data/rest-api/routes/data/substance/substance.ts
|
|
22214
|
-
var
|
|
22424
|
+
var import_express101 = __toESM(require("express"));
|
|
22215
22425
|
|
|
22216
22426
|
// src/data/operations/data/substance/substance-create-operation.ts
|
|
22217
|
-
var
|
|
22427
|
+
var import_ulid100 = require("ulid");
|
|
22218
22428
|
async function createSubstanceOperation(params) {
|
|
22219
22429
|
const { context, body, tableName } = params;
|
|
22220
22430
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
22221
|
-
const id = body.id ?? (0,
|
|
22431
|
+
const id = body.id ?? (0, import_ulid100.ulid)();
|
|
22222
22432
|
const meta = {
|
|
22223
22433
|
...body.meta ?? {},
|
|
22224
22434
|
lastUpdated: date,
|
|
@@ -22403,22 +22613,22 @@ async function updateSubstanceRoute(req, res) {
|
|
|
22403
22613
|
}
|
|
22404
22614
|
|
|
22405
22615
|
// src/data/rest-api/routes/data/substance/substance.ts
|
|
22406
|
-
var
|
|
22407
|
-
|
|
22408
|
-
|
|
22409
|
-
|
|
22410
|
-
|
|
22411
|
-
|
|
22616
|
+
var router101 = import_express101.default.Router();
|
|
22617
|
+
router101.get("/", listSubstancesRoute);
|
|
22618
|
+
router101.get("/:id", getSubstanceByIdRoute);
|
|
22619
|
+
router101.post("/", createSubstanceRoute);
|
|
22620
|
+
router101.put("/:id", updateSubstanceRoute);
|
|
22621
|
+
router101.delete("/:id", deleteSubstanceRoute);
|
|
22412
22622
|
|
|
22413
22623
|
// src/data/rest-api/routes/data/supplydelivery/supplydelivery.ts
|
|
22414
|
-
var
|
|
22624
|
+
var import_express102 = __toESM(require("express"));
|
|
22415
22625
|
|
|
22416
22626
|
// src/data/operations/data/supplydelivery/supplydelivery-create-operation.ts
|
|
22417
|
-
var
|
|
22627
|
+
var import_ulid101 = require("ulid");
|
|
22418
22628
|
async function createSupplyDeliveryOperation(params) {
|
|
22419
22629
|
const { context, body, tableName } = params;
|
|
22420
22630
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
22421
|
-
const id = body.id ?? (0,
|
|
22631
|
+
const id = body.id ?? (0, import_ulid101.ulid)();
|
|
22422
22632
|
const meta = {
|
|
22423
22633
|
...body.meta ?? {},
|
|
22424
22634
|
lastUpdated: date,
|
|
@@ -22606,22 +22816,22 @@ async function updateSupplyDeliveryRoute(req, res) {
|
|
|
22606
22816
|
}
|
|
22607
22817
|
|
|
22608
22818
|
// src/data/rest-api/routes/data/supplydelivery/supplydelivery.ts
|
|
22609
|
-
var
|
|
22610
|
-
|
|
22611
|
-
|
|
22612
|
-
|
|
22613
|
-
|
|
22614
|
-
|
|
22819
|
+
var router102 = import_express102.default.Router();
|
|
22820
|
+
router102.get("/", listSupplyDeliverysRoute);
|
|
22821
|
+
router102.get("/:id", getSupplyDeliveryByIdRoute);
|
|
22822
|
+
router102.post("/", createSupplyDeliveryRoute);
|
|
22823
|
+
router102.put("/:id", updateSupplyDeliveryRoute);
|
|
22824
|
+
router102.delete("/:id", deleteSupplyDeliveryRoute);
|
|
22615
22825
|
|
|
22616
22826
|
// src/data/rest-api/routes/data/supplyrequest/supplyrequest.ts
|
|
22617
|
-
var
|
|
22827
|
+
var import_express103 = __toESM(require("express"));
|
|
22618
22828
|
|
|
22619
22829
|
// src/data/operations/data/supplyrequest/supplyrequest-create-operation.ts
|
|
22620
|
-
var
|
|
22830
|
+
var import_ulid102 = require("ulid");
|
|
22621
22831
|
async function createSupplyRequestOperation(params) {
|
|
22622
22832
|
const { context, body, tableName } = params;
|
|
22623
22833
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
22624
|
-
const id = body.id ?? (0,
|
|
22834
|
+
const id = body.id ?? (0, import_ulid102.ulid)();
|
|
22625
22835
|
const meta = {
|
|
22626
22836
|
...body.meta ?? {},
|
|
22627
22837
|
lastUpdated: date,
|
|
@@ -22809,22 +23019,22 @@ async function updateSupplyRequestRoute(req, res) {
|
|
|
22809
23019
|
}
|
|
22810
23020
|
|
|
22811
23021
|
// src/data/rest-api/routes/data/supplyrequest/supplyrequest.ts
|
|
22812
|
-
var
|
|
22813
|
-
|
|
22814
|
-
|
|
22815
|
-
|
|
22816
|
-
|
|
22817
|
-
|
|
23022
|
+
var router103 = import_express103.default.Router();
|
|
23023
|
+
router103.get("/", listSupplyRequestsRoute);
|
|
23024
|
+
router103.get("/:id", getSupplyRequestByIdRoute);
|
|
23025
|
+
router103.post("/", createSupplyRequestRoute);
|
|
23026
|
+
router103.put("/:id", updateSupplyRequestRoute);
|
|
23027
|
+
router103.delete("/:id", deleteSupplyRequestRoute);
|
|
22818
23028
|
|
|
22819
23029
|
// src/data/rest-api/routes/data/task/task.ts
|
|
22820
|
-
var
|
|
23030
|
+
var import_express104 = __toESM(require("express"));
|
|
22821
23031
|
|
|
22822
23032
|
// src/data/operations/data/task/task-create-operation.ts
|
|
22823
|
-
var
|
|
23033
|
+
var import_ulid103 = require("ulid");
|
|
22824
23034
|
async function createTaskOperation(params) {
|
|
22825
23035
|
const { context, body, tableName } = params;
|
|
22826
23036
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
22827
|
-
const id = body.id ?? (0,
|
|
23037
|
+
const id = body.id ?? (0, import_ulid103.ulid)();
|
|
22828
23038
|
const meta = {
|
|
22829
23039
|
...body.meta ?? {},
|
|
22830
23040
|
lastUpdated: date,
|
|
@@ -23009,22 +23219,22 @@ async function updateTaskRoute(req, res) {
|
|
|
23009
23219
|
}
|
|
23010
23220
|
|
|
23011
23221
|
// src/data/rest-api/routes/data/task/task.ts
|
|
23012
|
-
var
|
|
23013
|
-
|
|
23014
|
-
|
|
23015
|
-
|
|
23016
|
-
|
|
23017
|
-
|
|
23222
|
+
var router104 = import_express104.default.Router();
|
|
23223
|
+
router104.get("/", listTasksRoute);
|
|
23224
|
+
router104.get("/:id", getTaskByIdRoute);
|
|
23225
|
+
router104.post("/", createTaskRoute);
|
|
23226
|
+
router104.put("/:id", updateTaskRoute);
|
|
23227
|
+
router104.delete("/:id", deleteTaskRoute);
|
|
23018
23228
|
|
|
23019
23229
|
// src/data/rest-api/routes/data/verificationresult/verificationresult.ts
|
|
23020
|
-
var
|
|
23230
|
+
var import_express105 = __toESM(require("express"));
|
|
23021
23231
|
|
|
23022
23232
|
// src/data/operations/data/verificationresult/verificationresult-create-operation.ts
|
|
23023
|
-
var
|
|
23233
|
+
var import_ulid104 = require("ulid");
|
|
23024
23234
|
async function createVerificationResultOperation(params) {
|
|
23025
23235
|
const { context, body, tableName } = params;
|
|
23026
23236
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
23027
|
-
const id = body.id ?? (0,
|
|
23237
|
+
const id = body.id ?? (0, import_ulid104.ulid)();
|
|
23028
23238
|
const meta = {
|
|
23029
23239
|
...body.meta ?? {},
|
|
23030
23240
|
lastUpdated: date,
|
|
@@ -23223,22 +23433,22 @@ async function updateVerificationResultRoute(req, res) {
|
|
|
23223
23433
|
}
|
|
23224
23434
|
|
|
23225
23435
|
// src/data/rest-api/routes/data/verificationresult/verificationresult.ts
|
|
23226
|
-
var
|
|
23227
|
-
|
|
23228
|
-
|
|
23229
|
-
|
|
23230
|
-
|
|
23231
|
-
|
|
23436
|
+
var router105 = import_express105.default.Router();
|
|
23437
|
+
router105.get("/", listVerificationResultsRoute);
|
|
23438
|
+
router105.get("/:id", getVerificationResultByIdRoute);
|
|
23439
|
+
router105.post("/", createVerificationResultRoute);
|
|
23440
|
+
router105.put("/:id", updateVerificationResultRoute);
|
|
23441
|
+
router105.delete("/:id", deleteVerificationResultRoute);
|
|
23232
23442
|
|
|
23233
23443
|
// src/data/rest-api/routes/data/visionprescription/visionprescription.ts
|
|
23234
|
-
var
|
|
23444
|
+
var import_express106 = __toESM(require("express"));
|
|
23235
23445
|
|
|
23236
23446
|
// src/data/operations/data/visionprescription/visionprescription-create-operation.ts
|
|
23237
|
-
var
|
|
23447
|
+
var import_ulid105 = require("ulid");
|
|
23238
23448
|
async function createVisionPrescriptionOperation(params) {
|
|
23239
23449
|
const { context, body, tableName } = params;
|
|
23240
23450
|
const { tenantId, workspaceId, date, actorId, actorName } = context;
|
|
23241
|
-
const id = body.id ?? (0,
|
|
23451
|
+
const id = body.id ?? (0, import_ulid105.ulid)();
|
|
23242
23452
|
const meta = {
|
|
23243
23453
|
...body.meta ?? {},
|
|
23244
23454
|
lastUpdated: date,
|
|
@@ -23437,19 +23647,19 @@ async function updateVisionPrescriptionRoute(req, res) {
|
|
|
23437
23647
|
}
|
|
23438
23648
|
|
|
23439
23649
|
// src/data/rest-api/routes/data/visionprescription/visionprescription.ts
|
|
23440
|
-
var
|
|
23441
|
-
|
|
23442
|
-
|
|
23443
|
-
|
|
23444
|
-
|
|
23445
|
-
|
|
23650
|
+
var router106 = import_express106.default.Router();
|
|
23651
|
+
router106.get("/", listVisionPrescriptionsRoute);
|
|
23652
|
+
router106.get("/:id", getVisionPrescriptionByIdRoute);
|
|
23653
|
+
router106.post("/", createVisionPrescriptionRoute);
|
|
23654
|
+
router106.put("/:id", updateVisionPrescriptionRoute);
|
|
23655
|
+
router106.delete("/:id", deleteVisionPrescriptionRoute);
|
|
23446
23656
|
|
|
23447
23657
|
// src/data/rest-api/rest-api.ts
|
|
23448
|
-
var app = (0,
|
|
23658
|
+
var app = (0, import_express107.default)();
|
|
23449
23659
|
app.set("view engine", "ejs");
|
|
23450
23660
|
app.set("views", import_node_path2.default.join(__dirname, "views"));
|
|
23451
|
-
app.use(
|
|
23452
|
-
app.use(
|
|
23661
|
+
app.use(import_express107.default.json());
|
|
23662
|
+
app.use(import_express107.default.urlencoded({ extended: true }));
|
|
23453
23663
|
app.use(normalizeJsonBodyMiddleware);
|
|
23454
23664
|
app.get("/", (_req, res) => {
|
|
23455
23665
|
return res.status(200).json({ message: "POC App is running" });
|
|
@@ -23481,6 +23691,7 @@ app.use(
|
|
|
23481
23691
|
"/Configuration",
|
|
23482
23692
|
"/Consent",
|
|
23483
23693
|
"/Contract",
|
|
23694
|
+
"/Coverage",
|
|
23484
23695
|
"/CoverageEligibilityRequest",
|
|
23485
23696
|
"/CoverageEligibilityResponse",
|
|
23486
23697
|
"/DetectedIssue",
|
|
@@ -23588,86 +23799,87 @@ app.use("/Composition", router22);
|
|
|
23588
23799
|
app.use("/Condition", router23);
|
|
23589
23800
|
app.use("/Consent", router24);
|
|
23590
23801
|
app.use("/Contract", router25);
|
|
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("/
|
|
23645
|
-
app.use("/
|
|
23646
|
-
app.use("/
|
|
23647
|
-
app.use("/
|
|
23648
|
-
app.use("/
|
|
23649
|
-
app.use("/
|
|
23650
|
-
app.use("/
|
|
23651
|
-
app.use("/
|
|
23652
|
-
app.use("/
|
|
23653
|
-
app.use("/
|
|
23654
|
-
app.use("/
|
|
23655
|
-
app.use("/
|
|
23656
|
-
app.use("/
|
|
23657
|
-
app.use("/
|
|
23658
|
-
app.use("/
|
|
23659
|
-
app.use("/
|
|
23660
|
-
app.use("/
|
|
23661
|
-
app.use("/
|
|
23662
|
-
app.use("/
|
|
23663
|
-
app.use("/
|
|
23664
|
-
app.use("/
|
|
23665
|
-
app.use("/
|
|
23666
|
-
app.use("/
|
|
23667
|
-
app.use("/
|
|
23668
|
-
app.use("/
|
|
23669
|
-
app.use("/
|
|
23670
|
-
app.use("/
|
|
23802
|
+
app.use("/Coverage", router26);
|
|
23803
|
+
app.use("/CoverageEligibilityRequest", router27);
|
|
23804
|
+
app.use("/CoverageEligibilityResponse", router28);
|
|
23805
|
+
app.use("/DetectedIssue", router29);
|
|
23806
|
+
app.use("/Device", router30);
|
|
23807
|
+
app.use("/DeviceDefinition", router31);
|
|
23808
|
+
app.use("/DeviceMetric", router32);
|
|
23809
|
+
app.use("/DeviceRequest", router33);
|
|
23810
|
+
app.use("/DeviceUseStatement", router34);
|
|
23811
|
+
app.use("/DiagnosticReport", router35);
|
|
23812
|
+
app.use("/DocumentManifest", router36);
|
|
23813
|
+
app.use("/DocumentReference", router37);
|
|
23814
|
+
app.use("/EffectEvidenceSynthesis", router38);
|
|
23815
|
+
app.use("/Encounter", router39);
|
|
23816
|
+
app.use("/Endpoint", router40);
|
|
23817
|
+
app.use("/EnrollmentRequest", router41);
|
|
23818
|
+
app.use("/EnrollmentResponse", router42);
|
|
23819
|
+
app.use("/EpisodeOfCare", router43);
|
|
23820
|
+
app.use("/EventDefinition", router44);
|
|
23821
|
+
app.use("/Evidence", router45);
|
|
23822
|
+
app.use("/EvidenceVariable", router46);
|
|
23823
|
+
app.use("/ExplanationOfBenefit", router47);
|
|
23824
|
+
app.use("/FamilyMemberHistory", router48);
|
|
23825
|
+
app.use("/Flag", router49);
|
|
23826
|
+
app.use("/Goal", router50);
|
|
23827
|
+
app.use("/Group", router51);
|
|
23828
|
+
app.use("/GuidanceResponse", router52);
|
|
23829
|
+
app.use("/HealthcareService", router53);
|
|
23830
|
+
app.use("/ImagingStudy", router54);
|
|
23831
|
+
app.use("/Immunization", router55);
|
|
23832
|
+
app.use("/ImmunizationEvaluation", router56);
|
|
23833
|
+
app.use("/ImmunizationRecommendation", router57);
|
|
23834
|
+
app.use("/InsurancePlan", router58);
|
|
23835
|
+
app.use("/Invoice", router59);
|
|
23836
|
+
app.use("/Library", router60);
|
|
23837
|
+
app.use("/Linkage", router61);
|
|
23838
|
+
app.use("/List", router62);
|
|
23839
|
+
app.use("/Location", router63);
|
|
23840
|
+
app.use("/Measure", router64);
|
|
23841
|
+
app.use("/MeasureReport", router65);
|
|
23842
|
+
app.use("/Media", router66);
|
|
23843
|
+
app.use("/Medication", router67);
|
|
23844
|
+
app.use("/MedicationAdministration", router68);
|
|
23845
|
+
app.use("/MedicationDispense", router69);
|
|
23846
|
+
app.use("/MedicationKnowledge", router70);
|
|
23847
|
+
app.use("/MedicationRequest", router71);
|
|
23848
|
+
app.use("/MedicationStatement", router72);
|
|
23849
|
+
app.use("/MessageHeader", router73);
|
|
23850
|
+
app.use("/MolecularSequence", router74);
|
|
23851
|
+
app.use("/NutritionOrder", router75);
|
|
23852
|
+
app.use("/Observation", router76);
|
|
23853
|
+
app.use("/Organization", router77);
|
|
23854
|
+
app.use("/OrganizationAffiliation", router78);
|
|
23855
|
+
app.use("/Patient", router79);
|
|
23856
|
+
app.use("/PaymentNotice", router80);
|
|
23857
|
+
app.use("/PaymentReconciliation", router81);
|
|
23858
|
+
app.use("/Person", router82);
|
|
23859
|
+
app.use("/PlanDefinition", router83);
|
|
23860
|
+
app.use("/Practitioner", router84);
|
|
23861
|
+
app.use("/PractitionerRole", router85);
|
|
23862
|
+
app.use("/Procedure", router86);
|
|
23863
|
+
app.use("/Provenance", router87);
|
|
23864
|
+
app.use("/Questionnaire", router88);
|
|
23865
|
+
app.use("/QuestionnaireResponse", router89);
|
|
23866
|
+
app.use("/RelatedPerson", router90);
|
|
23867
|
+
app.use("/RequestGroup", router91);
|
|
23868
|
+
app.use("/ResearchStudy", router92);
|
|
23869
|
+
app.use("/ResearchSubject", router93);
|
|
23870
|
+
app.use("/RiskAssessment", router94);
|
|
23871
|
+
app.use("/RiskEvidenceSynthesis", router95);
|
|
23872
|
+
app.use("/Schedule", router96);
|
|
23873
|
+
app.use("/ServiceRequest", router97);
|
|
23874
|
+
app.use("/Slot", router98);
|
|
23875
|
+
app.use("/Specimen", router99);
|
|
23876
|
+
app.use("/Subscription", router100);
|
|
23877
|
+
app.use("/Substance", router101);
|
|
23878
|
+
app.use("/SupplyDelivery", router102);
|
|
23879
|
+
app.use("/SupplyRequest", router103);
|
|
23880
|
+
app.use("/Task", router104);
|
|
23881
|
+
app.use("/VerificationResult", router105);
|
|
23882
|
+
app.use("/VisionPrescription", router106);
|
|
23671
23883
|
app.use("/Configuration", router);
|
|
23672
23884
|
|
|
23673
23885
|
// src/data/lambda/rest-api-lambda.handler.ts
|