Should you require any more information or have encountered a problem, please call the support helpdesk on (07) 5456 6000.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Later versions of the GELLO editor improve the writability of code when getting a casted value from an observation, and also when as part of that process applying an existence test.

Methods like .asCD() replace .value.oclAsType(CD) and .oclIfUndefined()  replace extra lines of code. This is particularly useful when using the GELLO within archetypes.


For example this:

Let tumourSite: CD= If template.Examples.Tumour_site
                                     .value.oclAsType(CD).oclIsDefined() 
                                        then  
                           template.Examples.Tumour_site
                                   .value.oclAsType(CD)
                   else null endif

can be rewritten as this:

Let tumourSite: CD= template.Examples.Tumour_site.asCD().oclIfUndefined(null)



Most types have these methods now, ie asBoolean(), asString() ..

  • No labels