Skip to Navigation | Skip to Content

openEHR-Technical mailing list archives

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Empty string for DV_TEXT


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


    
  


--
Ocean Informatics Thomas Beale
Chief Technology Officer, Ocean Informatics


Chair Architectural Review Board, openEHR Foundation
Honorary Research Fellow, University College London
Chartered IT Professional Fellow, BCS, British Computer Society
Health IT blog


_______________________________________________
openEHR-technical mailing list
openEHR-technical@openehr.org
http://lists.chime.ucl.ac.uk/mailman/listinfo/openehr-technical