From 77c0174f220c86ce2eddb69216fe4a180d77b1a4 Mon Sep 17 00:00:00 2001 From: Ilya Beda Date: Tue, 19 Nov 2024 11:51:56 +1100 Subject: [PATCH] Bump "0.3.9" Support valueAttachment --- sdc-qrf/package.json | 2 +- .../converter/fceToFhir/questionnaireResponse/processAnswers.ts | 1 + .../converter/fhirToFce/questionnaireResponse/processAnswers.ts | 2 ++ web/package.json | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sdc-qrf/package.json b/sdc-qrf/package.json index c76507f..b4287a6 100644 --- a/sdc-qrf/package.json +++ b/sdc-qrf/package.json @@ -1,7 +1,7 @@ { "name": "sdc-qrf", "license": "MIT", - "version": "0.3.8", + "version": "0.3.9", "scripts": { "build": "tsc", "coverage": "jest --coverage --coverageReporters=text-lcov | coveralls", diff --git a/sdc-qrf/src/converter/fceToFhir/questionnaireResponse/processAnswers.ts b/sdc-qrf/src/converter/fceToFhir/questionnaireResponse/processAnswers.ts index dbc3b52..d774f89 100644 --- a/sdc-qrf/src/converter/fceToFhir/questionnaireResponse/processAnswers.ts +++ b/sdc-qrf/src/converter/fceToFhir/questionnaireResponse/processAnswers.ts @@ -37,6 +37,7 @@ function processAnswer( dateTime: 'valueDateTime', time: 'valueTime', Quantity: 'valueQuantity', + Attachment: 'valueAttachment', }; for (const key in valueMappings) { if (key in value) { diff --git a/sdc-qrf/src/converter/fhirToFce/questionnaireResponse/processAnswers.ts b/sdc-qrf/src/converter/fhirToFce/questionnaireResponse/processAnswers.ts index 03cb6a9..b38a015 100644 --- a/sdc-qrf/src/converter/fhirToFce/questionnaireResponse/processAnswers.ts +++ b/sdc-qrf/src/converter/fhirToFce/questionnaireResponse/processAnswers.ts @@ -1,4 +1,5 @@ import { + Attachment, Coding as FHIRCoding, QuestionnaireResponseItem as FHIRQuestionnaireResponseItem, QuestionnaireResponseItemAnswer as FHIRQuestionnaireResponseItemAnswer, @@ -41,6 +42,7 @@ function processAnswer( }), valueTime: (value: string) => ({ time: value }), valueQuantity: (value: FHIRCoding) => ({ Quantity: value }), + valueAttachment: (value: Attachment) => ({ Attachment: value }), }; for (const key in valueHandlers) { diff --git a/web/package.json b/web/package.json index 1890f84..80b885c 100644 --- a/web/package.json +++ b/web/package.json @@ -1,7 +1,7 @@ { "name": "web", "type": "module", - "version": "0.3.8", + "version": "0.3.9", "private": true, "dependencies": { "@codemirror/commands": "^6.2.4",