On 29/06/2010 16:13, Leonardo Moretti wrote:
Thank you Ian, you are right, null_flavour tag is not needed.
But in the previous post I proposed also an other change: in the original
ADL code
ELEMENT[at0033] occurrences matches {0..1} matches { -- Comment
value matches {
DV_TEXT matches {*}
}
}
value doesn't have the existence attribute specified.
Being the default for existence attribute {1..1}, a DV_TEXT value tag is
this is a problem in ADL 1.4 that will disappear in ADL 1.5
- thomas beale
required! But when we have an empty Comment, we cannot have a DV_TEXT value
tag, so we can neither have the whole ELEMENT structure, and so we cannot
specificy a null_flavour!
To be able to do this, this extension would be needed:
ELEMENT[at0033] occurrences matches {0..1} matches { -- Comment
value existence matches {0..1} matches {
DV_TEXT matches {*}
}
}
regards
leo
Ian McNicoll-3 wrote:
Hi Leo,
No it works the other way round. All of the null flavours are
automatically
available unless you specifically constrain them out.
Ian
Dr Ian McNicoll
office / fax +44(0)141 560 4657
mobile +44 (0)775 209 7859
skype ianmcnicoll
ian.mcnicoll@oceaninformatics.com
ian@mcmi.co.uk
Clinical Analyst Ocean Informatics openEHR Archetype Editorial Group
Member BCS Primary Health Care SG Group www.phcsg.org / BCS Health
Scotland
|