Version 0.3.0
Pre-release
Pre-release
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