- add preserve_item_version option for survey_transform_to_12(), using default=False
- parse survey component properties as expression
- make single item components optional
- use typed python
- fix version id in survey template
- parse prefillRules and contextRules
- render prefillRules and contextRules in html
- fix Survey versionId field
- fix html rendering for metadata field
- export read_survey_json at package level
- expression string are quoted in html output
Breaking change Survey model is now using the survey for study-engine from version 1.2.0 (history model refactoring)
- Migrate to new survey model
Survey
class has new properties .metadata, .version, and .survey_definition- survey_parse now accepts already parsed survey (or parse it if not)
- expression description json now requires some fields (params, kind)
- new function read_survey_json() to load a survey in json and transform it in new model if an old model is detected
- survey_transform_to_* function to transform a survey (dictionary loaded from json) 1.1->1.2 and 1.2->1.1
- Fix imports
- Fix dependency
Breaking change library is now under influenzanet.surveys namespace
- load templates using python modules, add html build helper
Initial version, extracted from legacy ifncli repo.