diff --git a/Makefile b/Makefile index 57a8a6c..cd06af9 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ setup: requirements.txt ## Install required packages test: setup ## Run unit test $(PYTEST_COMMAND) $(PYTEST_ARGS) test/unit integration: setup ## Run integration test - docker run --name blaze --rm -d -e JAVA_TOOL_OPTIONS=-Xmx2g -p 8080:8080 samply/blaze:latest + docker run --name blaze --rm -d -e JAVA_TOOL_OPTIONS=-Xmx2g -e DB_SEARCH_PARAM_BUNDLE=/app/searchParamBundle.json -v ./searchParamBundle.json:/app/searchParamBundle.json -p 8080:8080 samply/blaze:latest .github/scripts/wait-for-url.sh http://localhost:8080/health $(PYTEST_COMMAND) $(PYTEST_ARGS) test/service docker stop blaze diff --git a/SearchParamBundle.json b/SearchParamBundle.json new file mode 100644 index 0000000..04f0067 --- /dev/null +++ b/SearchParamBundle.json @@ -0,0 +1,35 @@ +{ + "entry": [ + { + "request": { + "method": "POST", + "url": "SearchParameter" + }, + "resource": { + "resourceType": "SearchParameter", + "id": "ExtensionMemberEntitySearch", + "url": "https://fhir.bbmri-eric.eu/fhir/SearchParameter/GroupMember", + "base": [ + "Group" + ], + "target": [ + "Specimen", + "Group", + "Organization" + ], + "chain": [ + "*" + ], + "name": "groupMember", + "description": "Search parameter for searching Group by provided members via extension", + "status": "active", + "code": "groupMember", + "type": "reference", + "expression": "Group.extension('http://hl7.org/fhir/5.0/StructureDefinition/extension-Group.member.entity').value" + } + + } + ], + "type": "transaction", + "resourceType": "Bundle" +} \ No newline at end of file