Skip to content

Version 0.3.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@zxenia zxenia released this 19 Feb 21:55
· 1526 commits to master since this release
e63e202

Changes and new features

  • Optional Elasticsearch index for FHIR data
  • Improvements to serializers
  • Change in the data model: added field 'version' to dataset
  • Make table ownership public in CHORD app

Elasticsearch indexing of FHIR-formatted data

FHIR data can be indexed in Elasticsearch - this is optional. If an Elasticsearch instance is running on the server (so on localhost:9000) these models will automatically be indexed on creation / update. There are also two scripts provided to update these indexes all at once :

python manage.py patients_build_index
python manage.py phenopackets_build_index

To query this information, here is an example request :

curl -X POST -H 'Content-Type: application/json' -d '{"data_type": "phenopacket", "query": {"query": {"match": {"gender": "FEMALE"}}}}' http://127.0.0.1:8000/private/fhir-search