Skip to content

Dev Question Construct (ControlConstruct)

Stig Norland edited this page Jun 19, 2018 · 1 revision

ControlConstruct

Control construcst are containers that can contain

QUESTION_CONSTRUCT,
STATEMENT_CONSTRUCT,
CONDITION_CONSTRUCT,
SEQUENCE_CONSTRUCT

All of these types are the same element in the backend a ControlConstruct

QuestionContruct will contain question(s), name,label,description, instructions and attachments (Othermaterials). When a QuestionContruct is included in a sequence, the indexRationale should be shown (editable). This field is used to give a rationale for its place in a sequence.

StatmentItem will only contain a statement (empty for all other elements), name optional.

ConditionConstruct will only contain a logic (statment) and all other elements are empty, name optional.

SequenceConstruct will only contain child elements name/label/description, all other elements are empty

{
  "id" : null,
  "modified" : null,
  "modifiedBy" : null,
  "agency" : null,
  "name" : "Posted entity",
  "basedOnObject" : null,
  "version" : null,
  "questionItem" : null,
  "questionItemRevision" : null;
  "changeKind" : null,
  "changeComment" : null,
  "children" : [ ],
  "indexRationale" : null,
  "label" : null;
  "description" : null;
  "questionItem" : null,
  "otherMaterials" : [ ],
  "preInstructions" : [ ],
  "postInstructions" : [ ],
  "logic" : null,
  "parameters" : [ ],
  "controlConstructionKind" : null
}

ControlConstructs are the building blocks for Instruments and are contained in InstrumentElement together with parameters(in parameter)

Clone this wiki locally