onconova.terminology.management.commands.termsynch
Command
¶
Bases: BaseCommand
Django management command to synchronize valuesets in the database.
This command allows synchronizing valuesets in the database with external sources. It provides options to skip existing valuesets, force a reset, and specify which valuesets to synchronize.
Options:
--valuesets: A list of valueset names to synchronize. Use 'all' to synchronize all valuesets.
--skip-existing: Skip valuesets that already contain entries.
--force-reset: Reset all valuesets prior to synchronization (WARNING: Will trigger deletion cascades in the rest of the database).
--prune-dangling: Delete all dangling concepts in the database that are not collected by the valueset (WARNING: Will trigger deletion cascades in the rest of the database).
--collection-limit: Limit the number of concepts to be collected. For testing and debugging purposes.
Example
python manage.py termsynch --valuesets CTCAETerms MedicationClinicalDrugsIngredients --skip-existing
help
class-attribute
instance-attribute
¶
add_arguments(parser)
¶
Source code in onconova/terminology/management/commands/termsynch.py
handle(*args, **options)
¶
Main handler for the 'termsynch' command.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
list
|
Unused positional arguments. |
()
|
|
dict
|
Command-line options. |
{}
|
Source code in onconova/terminology/management/commands/termsynch.py
runner