Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Planning (from readme) #118

Open
DanielHabenicht opened this issue Mar 7, 2021 · 0 comments
Open

Planning (from readme) #118

DanielHabenicht opened this issue Mar 7, 2021 · 0 comments

Comments

@DanielHabenicht
Copy link
Collaborator

Possible candidates to built on: JSON Logic https://jsonlogic.com/ JSL https://www.npmjs.com/package/lib-jsl

Requirements:

MUST:

Website with user interface to select a questionnaire, see questions and rules and try it

API to access questionnaire

questionnaire: - contains questions and logic - is referenced by author and version - versioning has a number scheme, "current" always points to newest questionnaire

questions: - have an order defined by the position in the JSON file - have a unique id (string) - can belong to one or many categories - have a question type, e.g. multiple choice, date question - have an enabled/disabled state

logic: - logic must be readable by non computer scientists (physicians), for example: if (conditions1 or conditions2) and conditions3 then action else nested if clause or action

- conditions:
	- address question by unique id
	- address group of questions by category
		- count number of answers
		- calculate average score
	- supported operations: + - * / && || == !=
- actions:
	- can enable/disable questions by unique id or category
	- can write to interpretation variable (append, clear)

[Evaluation Logic] interpretation -> Risc groups - array of strings ("Stay home", "please visit the local health..."]

IMPORTANT:

multi lingual
NICE TO HAVE:

Conversion of patient answers to space efficient bit string and vice versa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant