A step towards visual clinical programming

Would allowing if/then/else written inside the -----/==== lines make things better or worse?
Perhaps something like ;

    |
    | This is an if/then/else chain
    |
    hypertension_risk: Terminology_term
        Result :=
            ==========================[ IF ]==========================
            has_pre_eclampsia or 
            has_eclampsia:                      [obstetric_emergency],
            -----------------------[ ELSE IF ]-------------------------
            previous_obstetric_hypertension or
            previous_pre_eclampsia or
            previous_eclampsia or
            has_pregnancy_hypertension:         [refer_high_risk_care],
            -------------------------[ ELSE ]--------------------------
            *:                                  [normal_obstetric_care]
            ===========================================================

Otherwise (or in addition to the above) using a https://developers.google.com/blockly based editor might be a good idea discussed before in: Blockly for openEHR projects

(Not sure if i interpreted the “ELSE IF”-marked section correctly above though, maybe it should say something else…)

1 Like