The Archetype Definition Language (ADL) is a formal language for defining archetypes. Archetypes are a key part of the openEHR specifications, and are used to define the structure and semantics of clinical information.
I've built this tool to create an environment for editing and inspecting ADL files online.
Demo
untitled.adls — ADL Editor
1
archetype (adl_version=2.0.5; rm_release=1.1.5)
2
adl-test-instrument.guitar.v1.0.4
3
4
language
5
original_language = <[iso_639-1::en]>
6
7
description
8
original_author = <
9
["name"] = <"John Doe">
10
["organisation"] = <"ACME Inc.">
11
["date"] = <2022-07-25>
12
>
13
14
definition
15
INSTRUMENT[id1] matches {
16
sizematches {|60..120|} -- size in cm
17
date_of_manufacturematches {yyyy-mm-??} -- year & month ok
18
partscardinalitymatches{0..*}matches {
19
PART[id2] matches { -- neck
20
materialmatches {[ac1]} -- timber or nickel alloy
21
}
22
PART[id3] matches { -- body
23
materialmatches {[at3]} -- timber
24
}
25
}
26
}
27
28
terminology
29
term_definitions = <
30
["en"] = <
31
["id1"] = <
32
text= <"guitar">;
33
description= <"stringed instrument">
34
>
35
["id2"] = <
36
text= <"neck">;
37
description= <"neck of guitar">
38
>
39
["id3"] = <
40
text= <"body">;
41
description= <"body of guitar">
42
>
43
["at3"] = <
44
text= <"timber">;
45
description= <"straight, seasoned timber">
46
>
47
["at4"] = <
48
text= <"nickel alloy">;
49
description= <"frets">
50
>
51
>
52
>
Made by Anton Vasetenkov.
If you want to say hi, you can reach me on LinkedIn or via email. If you like my work, you can support me by buying me a coffee.