Skip to main content

Getting Started

Professional Use

MOISSCode is professional biomedical software. All clinical outputs should be validated by qualified professionals before patient care application. Aethryva Deeptech accepts no liability for clinical outcomes.

MOISSCode is a domain-specific language for clinical decision support and biotech workflow automation.

Prerequisites

Installation

git clone https://github.com/aethryva/MOISSCode.git
cd MOISSCode

Windows (PowerShell):

py -m pip install -e .

macOS / Linux:

pip install -e .

Your First Protocol

Create a file called hello.moiss:

protocol HelloMOISS {
input: Patient p;

let score = med.scores.qsofa(p);

if score >= 2 {
alert "High risk detected" severity: critical;
administer Norepinephrine dose: 0.1 mcg/kg/min;
} else {
alert "Patient stable" severity: info;
}

assess p for sepsis;
}

Run it:

moiss run hello.moiss -v

Validate Without Running

moiss validate hello.moiss

Output:

  ✅ Valid MOISSCode
Protocols: 1 | Types: 0 | Functions: 0 | Imports: 0

Use from Python

from moisscode import MOISSCodeLexer, MOISSCodeParser, MOISSCodeInterpreter

code = open('hello.moiss').read()
tokens = MOISSCodeLexer().tokenize(code)
program = MOISSCodeParser(tokens).parse_program()
events = MOISSCodeInterpreter().execute(program)

for e in events:
print(e)

What's Next?