Skip to content

Commit

Permalink
Merge pull request #49 from jembi/fix-async
Browse files Browse the repository at this point in the history
Fix async handling based on how OpenHIM kafka integration works
  • Loading branch information
rcrichton authored Sep 16, 2024
2 parents 1e311b2 + 1e9f0f1 commit e00ae90
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
4 changes: 3 additions & 1 deletion src/routes/handlers/kafkaAsyncPatientHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ export const asyncPatientMatchHandler = async (): Promise<void> => {

return;
} else {
bundle = JSON.parse(bundleString);
const request = JSON.parse(bundleString);

bundle = JSON.parse(request.body);
}

const processingResult: MpiMediatorResponseObject = await processBundle(bundle);
Expand Down
10 changes: 3 additions & 7 deletions tests/docker/compose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,9 @@ function import_sources() {
}

function deploy_services() {
if [[ -z $(docker network ls -qf name=mediator_tests_default) ]]; then
docker network create mediator_tests_default 1>/dev/null
fi

docker-compose -p mediator_tests -f "$FILE_PATH"/sante-mpi/docker-compose.sante-mpi.yml up -d
docker-compose -p mediator_tests -f "$FILE_PATH"/hapi-fhir/docker-compose.hapi-fhir.yml up -d
docker-compose -p mediator_tests -f "$FILE_PATH"/openhim/docker-compose.openhim.yml up -d
docker compose -p mediator_tests -f "$FILE_PATH"/sante-mpi/docker-compose.sante-mpi.yml up -d
docker compose -p mediator_tests -f "$FILE_PATH"/hapi-fhir/docker-compose.hapi-fhir.yml up -d
docker compose -p mediator_tests -f "$FILE_PATH"/openhim/docker-compose.openhim.yml up -d
}

function await_sante_mpi() {
Expand Down

0 comments on commit e00ae90

Please sign in to comment.