Skip to content

Commit

Permalink
Fix sdc-assemble module resolution issue
Browse files Browse the repository at this point in the history
- Update sdc-assemble and assemble-express to v1.3.1
  • Loading branch information
fongsean committed Jul 4, 2024
1 parent 2f86394 commit b117ef1
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 14 deletions.
2 changes: 1 addition & 1 deletion apps/smart-forms-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"homepage": "https://github.com/aehrc/smart-forms#readme",
"dependencies": {
"@aehrc/sdc-assemble": "^1.3.0",
"@aehrc/sdc-assemble": "^1.3.1",
"@aehrc/sdc-populate": "^2.2.7",
"@aehrc/smart-forms-renderer": "^0.35.9",
"@emotion/react": "^11.11.4",
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/sdc-assemble/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aehrc/sdc-assemble",
"version": "1.3.0",
"version": "1.3.1",
"description": "Performs the $assemble operation for modular forms from the HL7 FHIR SDC (Structured Data Capture) specification: http://hl7.org/fhir/uv/sdc/modular.html",
"main": "lib/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/sdc-assemble/src/interfaces/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
* limitations under the License.
*/

export { InputParameters, OutputParameters } from './parameters.interface';
export { InputParameters, OutputParameters, OutcomeParameter } from './parameters.interface';
export { FetchQuestionnaireCallback } from './callback.interface';
4 changes: 3 additions & 1 deletion push-assemble-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,7 @@ set -xe
cd services/assemble-express && npm run compile && cd -

# Build the Docker image for multiple architectures, then push to Docker Hub.
docker buildx build --file ./services/assemble-express/Dockerfile --tag aehrc/smart-forms-assemble:latest \
docker buildx build --file ./services/assemble-express/Dockerfile \
--tag aehrc/smart-forms-assemble:latest \
--tag aehrc/smart-forms-assemble:v1.3.1 \
--platform linux/amd64,linux/arm64/v8 --push --no-cache .
4 changes: 3 additions & 1 deletion push-extract-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,7 @@ set -xe
cd services/extract-express && npm run compile && cd -

# Build the Docker image for multiple architectures, then push to Docker Hub.
docker buildx build --file ./services/extract-express/Dockerfile --tag aehrc/smart-forms-extract:latest \
docker buildx build --file ./services/extract-express/Dockerfile \
--tag aehrc/smart-forms-extract:latest \
--tag aehrc/smart-forms-extract:v0.3.0 \
--platform linux/amd64,linux/arm64/v8 --push --no-cache .
4 changes: 3 additions & 1 deletion push-populate-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,7 @@ set -xe
cd services/populate-express && npm run compile && cd -

# Build the Docker image for multiple architectures, then push to Docker Hub.
docker buildx build --file ./services/populate-express/Dockerfile --tag aehrc/smart-forms-populate:latest \
docker buildx build --file ./services/populate-express/Dockerfile \
--tag aehrc/smart-forms-populate:latest \
--tag aehrc/smart-forms-populate:v2.2.7 \
--platform linux/amd64,linux/arm64/v8 --push --no-cache .
4 changes: 2 additions & 2 deletions services/assemble-express/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "assemble-express",
"version": "1.3.0",
"version": "1.3.1",
"description": "",
"main": "lib/index.js",
"scripts": {
Expand All @@ -13,7 +13,7 @@
"license": "Apache-2.0",
"dependencies": {
"express": "^4.19.2",
"@aehrc/sdc-assemble": "^1.3.0",
"@aehrc/sdc-assemble": "^1.3.1",
"dotenv": "^16.4.5",
"cors": "^2.8.5"
},
Expand Down
4 changes: 2 additions & 2 deletions services/assemble-express/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@

import express from 'express';
import cors from 'cors';
import type { OutcomeParameter } from '@aehrc/sdc-assemble';
import { assemble, isInputParameters } from '@aehrc/sdc-assemble';
import type { RequestConfig } from './callback';
import { fetchQuestionnaireCallback } from './callback';
import dotenv from 'dotenv';
import type { RequestConfig } from 'populate-express/lib/callback';
import {
addEndpointToNotFoundIssues,
createInvalidParametersOutcome,
createOperationOutcome
} from './operationOutcome';
import { createInputParameters, isQuestionnaire } from './questionnaire';
import { OutcomeParameter } from '@aehrc/sdc-assemble/lib/interfaces/parameters.interface';

const app = express();
const port = 3002;
Expand Down

0 comments on commit b117ef1

Please sign in to comment.