We're updating the issue view to help you get more done.Learn more

ADL syntax for named nodes on profile datatypes

A requirement recently arose to model a Choice construct which has multiple identical datatypes and which therefore require named nodes. It appears that current ADL 1.4 does not define a syntax to represent node-naming when the datatype is part of a custom profile -see (C_DV_QUANTITY) below:

 
ELEMENT[at0023] occurrences matches {0..1} matches { -- Ambient oxygen
                                       value matches {
                                           (C_DV_QUANTITY) <
                                               property = <[openehr::126]>
                                               list = <
                                                   ["1"] = <
                                                       units = <"l/m">
                                                       magnitude =
<|0.0..50.0|>
                                                   >
                                               >
                                           >
                                           DV_PROPORTION[at0050] matches {
                                               numerator matches {|0.0..1.0|}
                                               is_integral matches {False}
                                               type matches {1}
                                           }
                                           DV_PROPORTION[at0051] matches {
                                               numerator matches {|0.0..100.0|}
                                               is_integral matches {False}
                                               type matches {2}
                                           }
}

Status

Assignee

Thomas Beale

Reporter

Ian McNicoll

Components

Affects versions

AM version 1.4

Priority

Minor