Backend

Intro

Notes on Directus

Administration

You can administer the DIrectus Instance directly by visiting https://api.palliative.vchlearn.ca/admin

Structure

PAPI contains the following collections which are used to store all the information PAT needs:

Info

A singleton collection that contains basic info about the data

  • version: Version number of current data

Plans

List of all plans that are reused by the protocols

  • plan: Name of the plan
  • details: Further details about the plan (such as time contraints)

Protocols

Contains Protocols

  • name: The Protocol name
  • assessment_questions: Assessment Questinos
  • additional_questions: Additional Questions
  • plans: Plans

Protocol Plans

Links together to protocol table and the plans table

  • protocol: protocol ID
  • plans: plan ID

Question Types

AList of the types of questions that can be displayed by PAT

  • type: string

Intro Questions

Questions asked before protocol is picked

  • question: The Question text

Assessment Letters

List of OPRSTUV letters used for assessment

  • letter: Single letter of acronymn
  • title: Full word that the letter stands for

Assessment Questions

List of questions asked once a protocol is selected

  • protocol: ID of protocol
  • question_type: ID od question_type to indicate which kind of question it is
  • question: Question text

Assessment Answers

List of answers for the questions asked as part of OPQRSTUV

  • quesiton: Question ID
  • answer: Answer text

Additional Questions

Are either questions or outcomes.

  • protocol: Id of protocol
  • question_type: id of question_type to indicate question type
  • question: Question text