From ca147305e941973579f91b9e9be44b3751e853be Mon Sep 17 00:00:00 2001 From: Vladimir Ignatov Date: Thu, 15 Apr 2021 17:29:06 +0300 Subject: [PATCH] Add OperationDefinition as supported resource #41 --- ExportManager.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ExportManager.js b/ExportManager.js index 7352549..3ea513b 100644 --- a/ExportManager.js +++ b/ExportManager.js @@ -877,6 +877,9 @@ class ExportManager { const requestedTypes = lib.makeArray(types || "").map(t => String(t || "").trim()).filter(Boolean); const availableTypes = await lib.getAvailableResourceTypes(this.stu); + if (availableTypes.indexOf("OperationDefinition") === -1) { + availableTypes.push("OperationDefinition"); + } const badParam = requestedTypes.find(type => availableTypes.indexOf(type) == -1); if (badParam) { this.resourceTypes = [];