@bahmni/services 0.0.1-dev.160 → 0.0.1-dev.161
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/configService/models/config.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,gBAAgB,EAAE,MAAM,CAAC;IACzB,yBAAyB,EAAE,MAAM,CAAC;IAClC,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,eAAe;IAC9B,iBAAiB,EAAE,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/configService/models/config.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,gBAAgB,EAAE,MAAM,CAAC;IACzB,yBAAyB,EAAE,MAAM,CAAC;IAClC,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,eAAe;IAC9B,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,0BAA0B,CAAC,EAAE,MAAM,CAAC;CACrC;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC5C,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACxB,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAC7B,eAAe,EAAE,eAAe,CAAC;CAClC"}
|
|
@@ -80,7 +80,7 @@ declare const _default: {
|
|
|
80
80
|
"type": "object",
|
|
81
81
|
"description": "Configuration for consultation pad forms",
|
|
82
82
|
"required": ["allergyConceptMap"],
|
|
83
|
-
"additionalProperties":
|
|
83
|
+
"additionalProperties": true,
|
|
84
84
|
"properties": {
|
|
85
85
|
"allergyConceptMap": {
|
|
86
86
|
"type": "object",
|
|
@@ -91,7 +91,7 @@ declare const _default: {
|
|
|
91
91
|
"environmentalAllergenUuid",
|
|
92
92
|
"allergyReactionUuid"
|
|
93
93
|
],
|
|
94
|
-
"additionalProperties":
|
|
94
|
+
"additionalProperties": true,
|
|
95
95
|
"properties": {
|
|
96
96
|
"medicationAllergenUuid": {
|
|
97
97
|
"type": "string",
|
|
@@ -110,6 +110,10 @@ declare const _default: {
|
|
|
110
110
|
"description": "UUID for allergy reaction concept"
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
+
},
|
|
114
|
+
"statDurationInHours": {
|
|
115
|
+
"type": "number",
|
|
116
|
+
"description": "Duration in hours for which a STAT order is valid"
|
|
113
117
|
}
|
|
114
118
|
}
|
|
115
119
|
}
|
package/dist/index.js
CHANGED
|
@@ -7368,7 +7368,10 @@ function nm(e, t, r) {
|
|
|
7368
7368
|
return n?.form ? n.form.text ?? n.form.coding?.[0]?.display ?? "" : "";
|
|
7369
7369
|
}
|
|
7370
7370
|
function sm(e) {
|
|
7371
|
-
const t = e.entry?.filter((n) =>
|
|
7371
|
+
const t = e.entry?.filter((n) => {
|
|
7372
|
+
const s = n.resource;
|
|
7373
|
+
return s?.resourceType === "MedicationRequest" && !!s?.id;
|
|
7374
|
+
}).map((n) => n.resource) ?? [], r = /* @__PURE__ */ new Map();
|
|
7372
7375
|
return e.entry?.forEach((n) => {
|
|
7373
7376
|
const s = n.resource;
|
|
7374
7377
|
s.resourceType === "Medication" && r.set(s.id, s);
|
|
@@ -11971,7 +11974,7 @@ const Ag = /* @__PURE__ */ ym(Tg), Yn = "/bahmni_config/openmrs/apps/clinical/v2
|
|
|
11971
11974
|
CONFIG_ERROR: "ERROR_CONFIG_TITLE",
|
|
11972
11975
|
VALIDATION_ERROR: "ERROR_VALIDATION_TITLE",
|
|
11973
11976
|
DASHBOARD_ERROR: "ERROR_DASHBOARD_CONFIG_TITLE"
|
|
11974
|
-
}, Dg = "http://json-schema.org/draft-07/schema#", Cg = "Clinical App Configuration Schema", Lg = "Schema for global clinical app configuration including patient information, actions and available dashboards", kg = "object", Mg = ["patientInformation", "actions", "dashboards", "consultationPad"], xg = !1, qg = { patientInformation: { type: "object", description: "Patient information configuration", additionalProperties: !1 }, contextInformation: { type: "object", description: "Context information configuration for displaying additional patient context", additionalProperties: !1, properties: { program: { type: "object", description: "Program details configuration", required: ["fields"], additionalProperties: !1, properties: { fields: { type: "array", description: "List of fields to display in program details", items: { type: "string" } } } } } }, actions: { type: "array", description: "List of available actions" }, dashboards: { type: "array", description: "List of available dashboards", items: { type: "object", required: ["name", "requiredPrivileges", "url"], additionalProperties: !1, properties: { name: { type: "string", description: "Display name of the dashboard" }, requiredPrivileges: { type: "array", items: { type: "string" }, description: "List of permissions required to access this dashboard" }, icon: { type: "string", description: "Icon class name for the dashboard" }, default: { type: "boolean", description: "Whether this is the default dashboard" }, url: { type: "string", description: "URL to access the dashboard data" } } } }, consultationPad: { type: "object", description: "Configuration for consultation pad forms", required: ["allergyConceptMap"], additionalProperties: !
|
|
11977
|
+
}, Dg = "http://json-schema.org/draft-07/schema#", Cg = "Clinical App Configuration Schema", Lg = "Schema for global clinical app configuration including patient information, actions and available dashboards", kg = "object", Mg = ["patientInformation", "actions", "dashboards", "consultationPad"], xg = !1, qg = { patientInformation: { type: "object", description: "Patient information configuration", additionalProperties: !1 }, contextInformation: { type: "object", description: "Context information configuration for displaying additional patient context", additionalProperties: !1, properties: { program: { type: "object", description: "Program details configuration", required: ["fields"], additionalProperties: !1, properties: { fields: { type: "array", description: "List of fields to display in program details", items: { type: "string" } } } } } }, actions: { type: "array", description: "List of available actions" }, dashboards: { type: "array", description: "List of available dashboards", items: { type: "object", required: ["name", "requiredPrivileges", "url"], additionalProperties: !1, properties: { name: { type: "string", description: "Display name of the dashboard" }, requiredPrivileges: { type: "array", items: { type: "string" }, description: "List of permissions required to access this dashboard" }, icon: { type: "string", description: "Icon class name for the dashboard" }, default: { type: "boolean", description: "Whether this is the default dashboard" }, url: { type: "string", description: "URL to access the dashboard data" } } } }, consultationPad: { type: "object", description: "Configuration for consultation pad forms", required: ["allergyConceptMap"], additionalProperties: !0, properties: { allergyConceptMap: { type: "object", description: "UUID mappings for allergy concepts", required: ["medicationAllergenUuid", "foodAllergenUuid", "environmentalAllergenUuid", "allergyReactionUuid"], additionalProperties: !0, properties: { medicationAllergenUuid: { type: "string", description: "UUID for medication allergen concept" }, foodAllergenUuid: { type: "string", description: "UUID for food allergen concept" }, environmentalAllergenUuid: { type: "string", description: "UUID for environmental allergen concept" }, allergyReactionUuid: { type: "string", description: "UUID for allergy reaction concept" } } }, statDurationInHours: { type: "number", description: "Duration in hours for which a STAT order is valid" } } } }, Ug = {
|
|
11975
11978
|
$schema: Dg,
|
|
11976
11979
|
title: Cg,
|
|
11977
11980
|
description: Lg,
|