Reference API server of SMART Genomics
URL for assessedCondition
in GeneticObservation
is http://genomics.smartplatforms.org/dictionary/GeneticObservation#AssessedCondition
. If the URL doesn't match this, the server can't index the resource properly and won't be able to respond to search with parameter assesed-condition
.
-
Install dependency with
# this might require previledge (e.g. sudo) # or use virtualenv instead $ pip install -r requirements.txt
-
Rename
config.py.default
asconfig.py
and fill in settings as you desire. See comments inconfig.py.default
for detailed instructions. Currently we use PostgresSQL for development, and our scriptsetup_db.py
is written specifically for Postgres, you can switch to SQLite by using the proper SQL connection url inconfig.py
. MySQL is however not supported right now. Contributions to support MySQL are welcomed. -
Optional: load your version of FHIR spec with the script
load_spec.py
, which will updatefhir/fhir_spec.py
. -
If you haven't created the database you specified in
config.py
, simply use command below to create it$ python setup_db.py
-
Load sample data with
$ python load_example.py
-
To run with
gunicorn
do$ python server.py run
-
Alternatively you can use
flask
's debug instance like this$ python server.py run --debug
-
To wipe out the database (for debugging or whatever reason), do
$ python server.py clear